@types/pino-http
Advanced tools
Comparing version 5.4.1 to 5.4.2
@@ -31,13 +31,13 @@ // Type definitions for pino-http 5.4 | ||
interface Options extends LoggerOptions { | ||
logger?: Logger; | ||
genReqId?: GenReqId; | ||
useLevel?: Level; | ||
stream?: DestinationStream; | ||
autoLogging?: boolean | AutoLoggingOptions; | ||
customLogLevel?: (res: ServerResponse, error: Error) => Level; | ||
customSuccessMessage?: (res: ServerResponse) => string; | ||
customErrorMessage?: (error: Error, res: ServerResponse) => string; | ||
customAttributeKeys?: CustomAttributeKeys; | ||
wrapSerializers?: boolean; | ||
reqCustomProps?: (req: IncomingMessage, res: ServerResponse) => object; | ||
logger?: Logger | undefined; | ||
genReqId?: GenReqId | undefined; | ||
useLevel?: Level | undefined; | ||
stream?: DestinationStream | undefined; | ||
autoLogging?: boolean | AutoLoggingOptions | undefined; | ||
customLogLevel?: ((res: ServerResponse, error: Error) => Level) | undefined; | ||
customSuccessMessage?: ((res: ServerResponse) => string) | undefined; | ||
customErrorMessage?: ((error: Error, res: ServerResponse) => string) | undefined; | ||
customAttributeKeys?: CustomAttributeKeys | undefined; | ||
wrapSerializers?: boolean | undefined; | ||
reqCustomProps?: ((req: IncomingMessage, res: ServerResponse) => object) | undefined; | ||
} | ||
@@ -50,11 +50,11 @@ | ||
interface AutoLoggingOptions { | ||
ignorePaths?: string[]; | ||
getPath?: (req: IncomingMessage) => string | undefined; | ||
ignorePaths?: string[] | undefined; | ||
getPath?: ((req: IncomingMessage) => string | undefined) | undefined; | ||
} | ||
interface CustomAttributeKeys { | ||
req?: string; | ||
res?: string; | ||
err?: string; | ||
responseTime?: string; | ||
req?: string | undefined; | ||
res?: string | undefined; | ||
err?: string | undefined; | ||
responseTime?: string | undefined; | ||
} | ||
@@ -72,3 +72,3 @@ | ||
interface ServerResponse { | ||
err?: Error; | ||
err?: Error | undefined; | ||
} | ||
@@ -75,0 +75,0 @@ |
{ | ||
"name": "@types/pino-http", | ||
"version": "5.4.1", | ||
"version": "5.4.2", | ||
"description": "TypeScript definitions for pino-http", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pino-http", | ||
"license": "MIT", | ||
@@ -39,4 +40,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "b805853568c5cfb0331aac8106f99292ba7e19aca2038086135275e10c8e2cb6", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "965a35199998b5e27cab7b57ef3e69018eb0c7e888a1cdeb933d89379456ccbe", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 20 Apr 2021 22:01:21 GMT | ||
* Last updated: Wed, 07 Jul 2021 17:02:30 GMT | ||
* Dependencies: [@types/pino](https://npmjs.com/package/@types/pino) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5724
0