Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

winston

Package Overview
Dependencies
Maintainers
4
Versions
89
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.0 to 0.7.1

21

lib/winston/common.js

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

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