Comparing version 8.17.1 to 8.17.2
'use strict' | ||
module.exports = { version: '8.17.1' } | ||
module.exports = { version: '8.17.2' } |
{ | ||
"name": "pino", | ||
"version": "8.17.1", | ||
"version": "8.17.2", | ||
"description": "super fast, all natural json logger", | ||
@@ -109,3 +109,3 @@ "main": "pino.js", | ||
"pino-std-serializers": "^6.0.0", | ||
"process-warning": "^2.0.0", | ||
"process-warning": "^3.0.0", | ||
"quick-format-unescaped": "^4.0.3", | ||
@@ -112,0 +112,0 @@ "real-require": "^0.2.0", |
@@ -633,3 +633,3 @@ // Project: https://github.com/pinojs/pino.git, http://getpino.io | ||
*/ | ||
onChild?: OnChildCallback; | ||
onChild?: OnChildCallback<CustomLevels>; | ||
@@ -803,3 +803,3 @@ /** | ||
*/ | ||
declare function pino<CustomLevels extends string>(options: LoggerOptions<CustomLevels>, stream: DestinationStream): Logger<CustomLevels>; | ||
declare function pino<CustomLevels extends string = never>(options: LoggerOptions<CustomLevels>, stream: DestinationStream): Logger<CustomLevels>; | ||
@@ -806,0 +806,0 @@ |
@@ -407,1 +407,21 @@ import P, { pino } from "../../"; | ||
})) | ||
const parentLogger1 = pino({ | ||
customLevels: { myLevel: 90 }, | ||
onChild: (child) => { const a = child.myLevel; } | ||
}, process.stdout) | ||
parentLogger1.onChild = (child) => { child.myLevel(''); } | ||
const childLogger1 = parentLogger1.child({}); | ||
childLogger1.myLevel(''); | ||
expectError(childLogger1.doesntExist('')); | ||
const parentLogger2 = pino({}, process.stdin); | ||
expectError(parentLogger2.onChild = (child) => { const b = child.doesntExist; }); | ||
const childLogger2 = parentLogger2.child({}); | ||
expectError(childLogger2.doesntExist); | ||
expectError(pino({ | ||
onChild: (child) => { const a = child.doesntExist; } | ||
}, process.stdout)); |
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
689226
13521
+ Addedprocess-warning@3.0.0(transitive)
- Removedprocess-warning@2.3.2(transitive)
Updatedprocess-warning@^3.0.0