Comparing version 8.3.1 to 8.3.2
@@ -14,2 +14,7 @@ import { expectType } from 'tsd'; | ||
expectType<HttpLogger>(pinoHttp({ logger })); | ||
expectType<HttpLogger>(pinoHttp({ | ||
customSuccessMessage(req, res, responseTime) { | ||
return `${responseTime}` | ||
} | ||
})); | ||
expectType<HttpLogger>(pinoHttpNamed()); | ||
@@ -16,0 +21,0 @@ expectType<HttpLogger>(pinoHttpStar.default()); |
@@ -33,3 +33,3 @@ // Project: https://github.com/pinojs/pino-http#readme | ||
customReceivedMessage?: ((req: IncomingMessage, res: ServerResponse) => string) | undefined; | ||
customSuccessMessage?: ((req: IncomingMessage, res: ServerResponse) => string) | undefined; | ||
customSuccessMessage?: ((req: IncomingMessage, res: ServerResponse, responseTime: number) => string) | undefined; | ||
customErrorMessage?: ((req: IncomingMessage, res: ServerResponse, error: Error) => string) | undefined; | ||
@@ -36,0 +36,0 @@ customReceivedObject?: ((req: IncomingMessage, res: ServerResponse, val?: any) => any) | undefined; |
{ | ||
"name": "pino-http", | ||
"version": "8.3.1", | ||
"version": "8.3.2", | ||
"description": "High-speed HTTP logger for Node.js", | ||
@@ -8,3 +8,2 @@ "main": "logger.js", | ||
"dependencies": { | ||
"fast-url-parser": "^1.1.3", | ||
"get-caller-file": "^2.0.5", | ||
@@ -11,0 +10,0 @@ "pino": "^8.0.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
75313
4
1766
- Removedfast-url-parser@^1.1.3
- Removedfast-url-parser@1.1.3(transitive)
- Removedpunycode@1.4.1(transitive)