Comparing version 8.6.0 to 8.6.1
@@ -15,3 +15,3 @@ // Project: https://github.com/pinojs/pino-http#readme | ||
declare function PinoHttp<IM = IncomingMessage, SR = ServerResponse, CustomLevels extends string = never>(opts?: Options<IM, SR>, stream?: pino.DestinationStream): HttpLogger<IM, SR, CustomLevels>; | ||
declare function PinoHttp<IM = IncomingMessage, SR = ServerResponse, CustomLevels extends string = never>(opts?: Options<IM, SR, CustomLevels>, stream?: pino.DestinationStream): HttpLogger<IM, SR, CustomLevels>; | ||
@@ -26,4 +26,4 @@ declare function PinoHttp<IM = IncomingMessage, SR = ServerResponse>(stream?: pino.DestinationStream): HttpLogger<IM, SR>; | ||
export interface Options<IM = IncomingMessage, SR = ServerResponse> extends pino.LoggerOptions { | ||
logger?: pino.Logger | undefined; | ||
export interface Options<IM = IncomingMessage, SR = ServerResponse, CustomLevels extends string = never> extends pino.LoggerOptions { | ||
logger?: pino.Logger<CustomLevels> | undefined; | ||
genReqId?: GenReqId<IM, SR> | undefined; | ||
@@ -30,0 +30,0 @@ useLevel?: pino.LevelWithSilent | undefined; |
@@ -216,1 +216,12 @@ | ||
}).logger.bark("arf arf"); | ||
// customLevels in parent pino instance should be not cause | ||
// TypeScript errors | ||
const customLogger = pino({ | ||
customLevels: { | ||
bark: 25, | ||
} | ||
}); | ||
pinoHttp({ | ||
logger: customLogger | ||
}).logger.bark("arf arf"); |
{ | ||
"name": "pino-http", | ||
"version": "8.6.0", | ||
"version": "8.6.1", | ||
"description": "High-speed HTTP logger for Node.js", | ||
@@ -9,5 +9,5 @@ "main": "logger.js", | ||
"get-caller-file": "^2.0.5", | ||
"pino": "^8.17.0", | ||
"pino-std-serializers": "^6.0.0", | ||
"process-warning": "^2.0.0" | ||
"pino": "^8.17.1", | ||
"pino-std-serializers": "^6.2.2", | ||
"process-warning": "^3.0.0" | ||
}, | ||
@@ -26,3 +26,3 @@ "devDependencies": { | ||
"ts-node": "^10.3.0", | ||
"tsd": "^0.29.0", | ||
"tsd": "^0.30.0", | ||
"typescript": "^5.0.2" | ||
@@ -29,0 +29,0 @@ }, |
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
79186
1857
- Removedprocess-warning@2.3.2(transitive)
Updatedpino@^8.17.1
Updatedpino-std-serializers@^6.2.2
Updatedprocess-warning@^3.0.0