Comparing version 3.1.2 to 4.0.0
@@ -222,3 +222,5 @@ 'use strict' | ||
var disp = log.disp[m.level] || m.level | ||
// If 'disp' is null or undefined, use the lvl as a default | ||
// Allows: '', 0 as valid disp | ||
var disp = log.disp[m.level] != null ? log.disp[m.level] : m.level | ||
this.clearProgress() | ||
@@ -268,3 +270,4 @@ m.message.split(/\r?\n/).forEach(function (line) { | ||
log.addLevel = function (lvl, n, style, disp) { | ||
if (!disp) disp = lvl | ||
// If 'disp' is null or undefined, use the lvl as a default | ||
if (disp == null) disp = lvl | ||
this.levels[lvl] = n | ||
@@ -271,0 +274,0 @@ this.style[lvl] = style |
@@ -5,3 +5,3 @@ { | ||
"description": "logger for npm", | ||
"version": "3.1.2", | ||
"version": "4.0.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
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
260
16681
5