Socket
Socket
Sign inDemoInstall

winston

Package Overview
Dependencies
25
Maintainers
6
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-rc2 to 3.0.0-rc3

5

CHANGELOG.md
# CHANGELOG
## v3.0.0-rc3 / 2018-03-16
### I GOT NOTHING EDITION
- CHANGELOG entry forthcoming.
## v3.0.0-rc2 / 2018-03-09

@@ -4,0 +9,0 @@ ### MAINTENANCE RESUMES EDITION

4

lib/winston/create-logger.js

@@ -43,3 +43,3 @@ 'use strict';

if (arguments.length === 1) {
const info = msg.message && msg || { message: msg };
const info = msg && msg.message && msg || { message: msg };
info.level = info[LEVEL] = level;

@@ -55,3 +55,3 @@ this.write(info);

//
this.log.apply(this, [level].concat(Array.prototype.slice.call(arguments)));
return this.log.apply(this, [level].concat(Array.prototype.slice.call(arguments)));
};

@@ -58,0 +58,0 @@ });

@@ -158,2 +158,8 @@ 'use strict';

if (arguments.length === 2) {
if (msg && typeof msg === 'object') {
msg[LEVEL] = msg.level = level;
this.write(msg);
return this;
}
this.write({ [LEVEL]: level, level, message: msg });

@@ -416,3 +422,3 @@ return this;

//
Logger.prototype.stream = function stream(options) {
Logger.prototype.stream = function _stream(options) {
options = options || {};

@@ -419,0 +425,0 @@

@@ -346,2 +346,4 @@ /*

debug('err ENOENT', fullpath);
// Update internally tracked filename with the new target name
self.filename = target;
return callback(null, 0);

@@ -348,0 +350,0 @@ }

{
"name": "winston",
"description": "A multi-transport async logging library for Node.js",
"version": "3.0.0-rc2",
"version": "3.0.0-rc3",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",

@@ -33,3 +33,3 @@ "maintainers": [

"assume": "^1.5.1",
"colors": ">= 1.2.0-rc0",
"colors": "^1.2.0",
"cross-spawn-async": "^2.0.0",

@@ -36,0 +36,0 @@ "eslint-config-populist": "^4.1.0",

@@ -11,6 +11,6 @@ # winston

## winston@3.0.0-rc0
## winston@3.0.0-rc3
We are looking for feedback on the latest version of `winston`:
`winston@3.0.0-rc0`.
`winston@3.0.0-rc3`.

@@ -576,5 +576,23 @@ ```

This enables transports with the 'colorize' option set to appropriately color
This enables transports with the 'colorize' option set to appropriately color and style
the output of custom levels.
Additionally, you can also change background color and font style.
For example,
``` js
baz: 'italic yellow',
foobar: 'bold red cyanBG'
```
Possible options are below.
* Font styles: `bold`, `dim`, `italic`, `underline`, `inverse`, `hidden`,
`strikethrough`.
* Font foreground colors: `black`, `red`, `green`, `yellow`, `blue`, `magenta`,
`cyan`, `white`, `gray`, `grey`.
* Background colors: `blackBG`, `redBG`, `greenBG`, `yellowBG`, `blueBG`
`magentaBG`, `cyanBG`, `whiteBG`
## Transports

@@ -581,0 +599,0 @@

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