pino-pretty
Advanced tools
Comparing version 2.6.0 to 2.6.1
10
index.js
@@ -136,5 +136,7 @@ 'use strict' | ||
const coloredLevel = levels.hasOwnProperty(log.level) | ||
? color[log.level](levels[log.level]) | ||
: color.default(levels.default) | ||
const coloredLevel = log.level | ||
? levels.hasOwnProperty(log.level) | ||
? color[log.level](levels[log.level]) | ||
: color.default(levels.default) | ||
: '' | ||
if (opts.levelFirst) { | ||
@@ -172,3 +174,3 @@ line = `${coloredLevel} ${line}` | ||
line += ': ' | ||
line += line ? ': ' : '' | ||
@@ -175,0 +177,0 @@ if (log[messageKey] && typeof log[messageKey] === 'string') { |
{ | ||
"name": "pino-pretty", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "Prettifier for Pino log lines", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -229,5 +229,5 @@ 'use strict' | ||
const expectedLines = [ | ||
' type: "Error"', | ||
' some: "property"', | ||
' stack: null', | ||
' some: "property"' | ||
' type: "Error"' | ||
] | ||
@@ -234,0 +234,0 @@ const log = pino({}, new Writable({ |
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
222207
1095