pino-pretty
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -223,3 +223,3 @@ 'use strict' | ||
for (var i = 0; i < keys.length; i += 1) { | ||
if (errorLikeObjectKeys.indexOf(keys[i]) !== -1) { | ||
if (errorLikeObjectKeys.indexOf(keys[i]) !== -1 && value[keys[i]] !== undefined) { | ||
const arrayOfLines = ( | ||
@@ -226,0 +226,0 @@ IDENT + keys[i] + ': ' + |
{ | ||
"name": "pino-pretty", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "Prettifier for Pino log lines", | ||
@@ -39,9 +39,9 @@ "main": "index.js", | ||
"pump": "^3.0.0", | ||
"readable-stream": "^3.0.2", | ||
"readable-stream": "^3.0.6", | ||
"split2": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"pino": "^5.5.0", | ||
"pino": "^5.8.0", | ||
"pre-commit": "^1.2.2", | ||
"snazzy": "^7.1.1", | ||
"snazzy": "^8.0.0", | ||
"standard": "^12.0.1", | ||
@@ -48,0 +48,0 @@ "tap": "^12.0.1" |
@@ -70,2 +70,9 @@ 'use strict' | ||
t.test('prettifies ignores undefined errorLikeObject', (t) => { | ||
const pretty = prettyFactory() | ||
pretty({ err: undefined }) | ||
pretty({ error: undefined }) | ||
t.end() | ||
}) | ||
t.test('prettifies Error in property within errorLikeObjectKeys', (t) => { | ||
@@ -72,0 +79,0 @@ t.plan(8) |
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
218773
997
Updatedreadable-stream@^3.0.6