Comparing version 0.0.4 to 0.0.5
@@ -0,1 +1,2 @@ | ||
const ee = require('event-emitter') | ||
const strftime = require('strftime') | ||
@@ -93,2 +94,3 @@ const chalk = require('chalk') | ||
Log.prototype.log = function (...args) { | ||
this.emit('log', ...args) | ||
this.__print(chalk.bgCyan(`<${chalk.bold('log')}>`), args) | ||
@@ -98,2 +100,3 @@ } | ||
Log.prototype.warn = function (...args) { | ||
this.emit('warn', ...args) | ||
this.__print(chalk.bgYellow(`<${chalk.bold('warn')}>`), args) | ||
@@ -103,2 +106,3 @@ } | ||
Log.prototype.error = function (...args) { | ||
this.emit('error', ...args) | ||
this.__print(chalk.bgRed(`<${chalk.bold('error')}>`), args) | ||
@@ -108,2 +112,3 @@ } | ||
Log.prototype.debug = function (...args) { | ||
this.emit('debug', ...args) | ||
this.__print(chalk.bgMagenta(`<${chalk.bold('debug')}>`), args) | ||
@@ -151,3 +156,4 @@ } | ||
ee(Log.prototype) | ||
module.exports = Log |
{ | ||
"name": "lpac", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Logger progress and counter", | ||
@@ -26,4 +26,5 @@ "main": "index.js", | ||
"chalk": "1.1.3", | ||
"event-emitter": "^0.3.5", | ||
"strftime": "0.10.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
4637
3
126
1
16
3
+ Addedevent-emitter@^0.3.5
+ Addedd@1.0.2(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@2.0.3(transitive)
+ Addedes6-symbol@3.1.4(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedext@1.7.0(transitive)
+ Addednext-tick@1.1.0(transitive)
+ Addedtype@2.7.3(transitive)