Comparing version 0.7.1 to 0.7.2
@@ -41,25 +41,5 @@ /* | ||
target[level] = function (msg) { | ||
var args = Array.prototype.slice.call(arguments, 1), | ||
callback = args.pop(), | ||
ltype = typeof callback, | ||
meta = args.length ? args : null; | ||
if (ltype !== 'function') { | ||
if (meta && ltype !== 'undefined') { | ||
meta.push(callback); | ||
} | ||
callback = null; | ||
} | ||
if (meta) { | ||
meta = (meta.length <= 1 && meta.shift()) || meta; | ||
return callback | ||
? target.log(level, msg, meta, callback) | ||
: target.log(level, msg, meta) | ||
} | ||
return callback | ||
? target.log(level, msg, callback) | ||
: target.log(level, msg) | ||
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback]) | ||
var args = [level].concat(Array.prototype.slice.call(arguments)); | ||
target.log.apply(target, args); | ||
}; | ||
@@ -66,0 +46,0 @@ }); |
{ | ||
"name": "winston", | ||
"description": "A multi-transport async logging library for Node.js", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"author": "Nodejitsu Inc. <info@nodejitsu.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
198197
55
4741
11