Comparing version 0.7.0 to 0.7.1
@@ -43,12 +43,23 @@ /* | ||
callback = args.pop(), | ||
meta = args; | ||
ltype = typeof callback, | ||
meta = args.length ? args : null; | ||
if (typeof callback !== 'function') { | ||
meta.push(callback); | ||
if (ltype !== 'function') { | ||
if (meta && ltype !== 'undefined') { | ||
meta.push(callback); | ||
} | ||
callback = null; | ||
} | ||
meta = (meta.length <= 1 && meta.shift()) || meta; | ||
if (meta) { | ||
meta = (meta.length <= 1 && meta.shift()) || meta; | ||
return callback | ||
? target.log(level, msg, meta, callback) | ||
: target.log(level, msg, meta) | ||
} | ||
return target.log(level, msg, meta, callback); | ||
return callback | ||
? target.log(level, msg, callback) | ||
: target.log(level, msg) | ||
}; | ||
@@ -55,0 +66,0 @@ }); |
{ | ||
"name": "winston", | ||
"description": "A multi-transport async logging library for Node.js", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"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
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
194206
4643