Socket
Socket
Sign inDemoInstall

winston

Package Overview
Dependencies
29
Maintainers
8
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.12.1 to 3.13.0

7

dist/winston/transports/http.js

@@ -31,3 +31,4 @@ /**

var TransportStream = require('winston-transport');
var jsonStringify = require('safe-stable-stringify');
var _require2 = require('safe-stable-stringify'),
configure = _require2.configure;

@@ -59,2 +60,3 @@ /**

_this.path = options.path || '';
_this.maximumDepth = options.maximumDepth;
_this.agent = options.agent;

@@ -281,2 +283,5 @@ _this.headers = options.headers || {};

});
var jsonStringify = configure(_objectSpread({}, this.maximumDepth && {
maximumDepth: this.maximumDepth
}));
req.end(Buffer.from(jsonStringify(options, this.options.replacer), 'utf8'));

@@ -283,0 +288,0 @@ }

@@ -14,3 +14,3 @@ /**

const TransportStream = require('winston-transport');
const jsonStringify = require('safe-stable-stringify');
const { configure } = require('safe-stable-stringify');

@@ -39,2 +39,3 @@ /**

this.path = options.path || '';
this.maximumDepth = options.maximumDepth;
this.agent = options.agent;

@@ -258,4 +259,7 @@ this.headers = options.headers || {};

));
const jsonStringify = configure({
...(this.maximumDepth && { maximumDepth: this.maximumDepth })
});
req.end(Buffer.from(jsonStringify(options, this.options.replacer), 'utf8'));
}
};

@@ -68,2 +68,3 @@ // Type definitions for winston 3.0

replacer?: (key: string, value: any) => any;
maximumDepth?: number;
}

@@ -75,2 +76,3 @@

host: string;
maximumDepth: number;
port: number;

@@ -77,0 +79,0 @@ auth?: { username?: string | undefined, password?: string | undefined, bearer?: string | undefined };

2

package.json
{
"name": "winston",
"description": "A logger for just about everything.",
"version": "3.12.1",
"version": "3.13.0",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",

@@ -6,0 +6,0 @@ "maintainers": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc