Socket
Socket
Sign inDemoInstall

winston

Package Overview
Dependencies
Maintainers
4
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

test/logger-levels-test.js

26

lib/winston/common.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc