Comparing version 6.1.0 to 6.1.1
@@ -246,3 +246,3 @@ 'use strict' | ||
time | ||
}, chindings, lastObj, errorProps) | ||
}, lastObj, errorProps) | ||
@@ -260,2 +260,8 @@ const serializers = lastLogger[serializersSym] | ||
for (key in chindings) { | ||
if (!obj.hasOwnProperty(key)) { | ||
obj[key] = chindings[key] | ||
} | ||
} | ||
const stringifiers = lastLogger[stringifiersSym] | ||
@@ -262,0 +268,0 @@ const redact = stringifiers[redactFmtSym] |
{ | ||
"name": "pino", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "super fast, all natural json logger", | ||
@@ -5,0 +5,0 @@ "main": "pino.js", |
@@ -8,3 +8,3 @@ ![banner](pino-banner.png) | ||
[Very low overhead](#low-overhead) Node.js logger, inspired by Bunyan. | ||
[Very low overhead](#low-overhead) Node.js logger. | ||
@@ -11,0 +11,0 @@ ## Documentation |
@@ -115,2 +115,21 @@ 'use strict' | ||
test('parses and outputs chindings with serializer', async ({ is, isNot }) => { | ||
var actual = '' | ||
const child = execa(process.argv[0], [join(__dirname, 'fixtures', 'pretty', 'child-with-serializer.js')]) | ||
child.stdout.pipe(writer((s, enc, cb) => { | ||
actual += s | ||
cb() | ||
})) | ||
await once(child, 'close') | ||
isNot(strip(actual).match(/\(123456 on abcdefghijklmnopqr\): h/), null) | ||
isNot(strip(actual).match(/\(123456 on abcdefghijklmnopqr\): h2/), null) | ||
isNot(strip(actual).match(/\(123456 on abcdefghijklmnopqr\): h3/), null) | ||
isNot(strip(actual).match(/\(123456 on abcdefghijklmnopqr\): h4/), null) | ||
isNot(strip(actual).match(/a: 2/), null) | ||
isNot(strip(actual).match(/a: 16/), null) | ||
isNot(strip(actual).match(/a: 42/), null) | ||
is(strip(actual).match(/a: /g).length, 4) | ||
}) | ||
test('applies serializers', async ({ is, isNot }) => { | ||
@@ -117,0 +136,0 @@ var actual = '' |
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
297132
81
6999
27