Comparing version 8.6.0 to 8.6.1
'use strict' | ||
module.exports = { version: '8.6.0' } | ||
module.exports = { version: '8.6.1' } |
@@ -56,3 +56,3 @@ 'use strict' | ||
} else { | ||
this[writeSym](null, format(o, n, this[formatOptsSym]), level) | ||
this[writeSym](null, format(o === undefined ? n.shift() : o, n, this[formatOptsSym]), level) | ||
} | ||
@@ -59,0 +59,0 @@ } |
{ | ||
"name": "pino", | ||
"version": "8.6.0", | ||
"version": "8.6.1", | ||
"description": "super fast, all natural json logger", | ||
@@ -107,3 +107,3 @@ "main": "pino.js", | ||
"ts-node": "^10.9.1", | ||
"tsd": "^0.23.0", | ||
"tsd": "^0.24.1", | ||
"typescript": "^4.8.2", | ||
@@ -110,0 +110,0 @@ "winston": "^3.7.2" |
@@ -112,2 +112,18 @@ 'use strict' | ||
test(`passing a undefined and a string at level ${name}`, async ({ equal, same }) => { | ||
const stream = sink() | ||
const instance = pino(stream) | ||
instance.level = name | ||
instance[name](undefined, 'a string') | ||
const result = await once(stream, 'data') | ||
equal(new Date(result.time) <= new Date(), true, 'time is greater than Date.now()') | ||
delete result.time | ||
same(result, { | ||
pid, | ||
hostname, | ||
level, | ||
msg: 'a string' | ||
}) | ||
}) | ||
test(`overriding object key by string at level ${name}`, async ({ equal, same }) => { | ||
@@ -114,0 +130,0 @@ const stream = sink() |
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
466902
11291