Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "pino", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "super fast, all natural json logger", | ||
@@ -5,0 +5,0 @@ "main": "pino.js", |
@@ -218,3 +218,3 @@ 'use strict' | ||
levelVal: levels.isStandardLevelVal(this.levelVal) ? undefined : this.levelVal, | ||
serializers: bindings.hasOwnProperty('serializers') ? Object.assign(this.serializers, bindings.serializers) : this.serializers, | ||
serializers: bindings.hasOwnProperty('serializers') ? Object.assign({}, this.serializers, bindings.serializers) : this.serializers, | ||
stringify: this.stringify, | ||
@@ -221,0 +221,0 @@ end: this.end, |
@@ -20,4 +20,4 @@ 'use strict' | ||
t.deepEqual(parent.serializers, parentSerializers) | ||
t.deepEqual(child.serializers, childSerializers) | ||
t.equal(parent.serializers.test(), 'parent') | ||
t.equal(child.serializers.test(), 'child') | ||
}) | ||
@@ -31,3 +31,3 @@ | ||
t.deepEqual(child.serializers, parentSerializers) | ||
t.equal(child.serializers.test(), 'parent') | ||
}) | ||
@@ -75,3 +75,3 @@ | ||
test('non overriden serializers are available in the children', function (t) { | ||
t.plan(3) | ||
t.plan(4) | ||
var pSerializers = { | ||
@@ -93,2 +93,3 @@ onlyParent: function () { return 'parent' }, | ||
t.equal(child.serializers.onlyChild(), 'child') | ||
t.notOk(parent.serializers.onlyChild) | ||
}) |
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
116262
2668