Comparing version 4.2.1 to 4.2.2
{ | ||
"name": "pino", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "super fast, all natural json logger", | ||
@@ -5,0 +5,0 @@ "main": "pino.js", |
@@ -126,2 +126,5 @@ 'use strict' | ||
} | ||
// we need the child bindings added to the output first so that logged | ||
// objects can take precedence when JSON.parse-ing the resulting log line | ||
data = data + this.chindings | ||
var value | ||
@@ -142,3 +145,3 @@ if (obj) { | ||
} | ||
return data + this.chindings + this.end | ||
return data + this.end | ||
} | ||
@@ -145,0 +148,0 @@ Object.defineProperty(pinoPrototype, 'asJson', { |
@@ -398,1 +398,12 @@ 'use strict' | ||
}) | ||
// https://github.com/pinojs/pino/issues/222 | ||
test('children with same names render in correct order', function (t) { | ||
t.plan(1) | ||
var root = pino(sink(function (chunk, enc, cb) { | ||
t.is(chunk.a, 3, 'last logged object takes precedence') | ||
cb() | ||
})) | ||
root.child({a: 1}).child({a: 2}).info({a: 3}) | ||
}) |
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
124702
2949