diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-04-20 03:09:25 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-04-24 16:14:29 +0200 |
commit | 82f2b76e25a4a67e01ec67e5ebe39d14ad771ea8 (patch) | |
tree | 965f6eb89b84d65a62b49008fd972c004832ccd1 /node_modules/fancy-log | |
parent | e6e0cbc387c2a77b48e4065c229daa65bf1aa0fa (diff) |
Reorganize module loading.
We now use webpack instead of SystemJS, effectively bundling modules
into one file (plus commons chunks) for every entry point. This results
in a much smaller extension size (almost half). Furthermore we use
yarn/npm even for extension run-time dependencies. This relieves us
from manually vendoring and building dependencies. It's also easier to
understand for new developers familiar with node.
Diffstat (limited to 'node_modules/fancy-log')
-rw-r--r-- | node_modules/fancy-log/LICENSE | 2 | ||||
-rw-r--r-- | node_modules/fancy-log/README.md | 18 | ||||
-rw-r--r-- | node_modules/fancy-log/index.js | 24 | ||||
-rw-r--r-- | node_modules/fancy-log/package.json | 10 |
4 files changed, 48 insertions, 6 deletions
diff --git a/node_modules/fancy-log/LICENSE b/node_modules/fancy-log/LICENSE index 0dd44fbde..790981418 100644 --- a/node_modules/fancy-log/LICENSE +++ b/node_modules/fancy-log/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 Blaine Bublitz +Copyright (c) 2015 Blaine Bublitz <blaine.bublitz@gmail.com> Based on gulp-util, copyright 2014 Fractal <contact@wearefractal.com> Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/node_modules/fancy-log/README.md b/node_modules/fancy-log/README.md index f3d227d05..dfd3a9443 100644 --- a/node_modules/fancy-log/README.md +++ b/node_modules/fancy-log/README.md @@ -27,7 +27,23 @@ current time in HH:MM:ss format. ### `log.error(msg...)` -Logs ths message as if you called `console.error` but prefixes the output with the +Logs the message as if you called `console.error` but prefixes the output with the +current time in HH:MM:ss format. + +### `log.warn(msg...)` + +Logs the message as if you called `console.warn` but prefixes the output with the +current time in HH:MM:ss format. + + +### `log.info(msg...)` + +Logs the message as if you called `console.info` but prefixes the output with the +current time in HH:MM:ss format. + +### `log.dir(msg...)` + +Logs the message as if you called `console.dir` but prefixes the output with the current time in HH:MM:ss format. ## License diff --git a/node_modules/fancy-log/index.js b/node_modules/fancy-log/index.js index a9d972267..12df5c34c 100644 --- a/node_modules/fancy-log/index.js +++ b/node_modules/fancy-log/index.js @@ -16,6 +16,27 @@ function log(){ return this; } +function info(){ + var time = getTimestamp(); + process.stdout.write(time + ' '); + console.info.apply(console, arguments); + return this; +} + +function dir(){ + var time = getTimestamp(); + process.stdout.write(time + ' '); + console.dir.apply(console, arguments); + return this; +} + +function warn(){ + var time = getTimestamp(); + process.stderr.write(time + ' '); + console.warn.apply(console, arguments); + return this; +} + function error(){ var time = getTimestamp(); process.stderr.write(time + ' '); @@ -24,4 +45,7 @@ function error(){ } module.exports = log; +module.exports.info = info; +module.exports.dir = dir; +module.exports.warn = warn; module.exports.error = error; diff --git a/node_modules/fancy-log/package.json b/node_modules/fancy-log/package.json index 73ed5d84c..063c4c66d 100644 --- a/node_modules/fancy-log/package.json +++ b/node_modules/fancy-log/package.json @@ -1,10 +1,12 @@ { "name": "fancy-log", - "version": "1.2.0", + "version": "1.3.0", "description": "Log things, prefixed with a timestamp", - "author": "Blaine Bublitz <blaine@iceddev.com> (http://iceddev.com)", - "contributors": [], - "repository": "phated/fancy-log", + "author": "Blaine Bublitz <blaine.bublitz@gmail.com>", + "contributors": [ + "Aman Mittal (http://amandeepmittal.github.io/)" + ], + "repository": "js-cli/fancy-log", "license": "MIT", "engines": { "node": ">= 0.10" |