@types/pino-http
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -32,4 +32,7 @@ // Type definitions for pino-http 5.0 | ||
stream?: DestinationStream; | ||
autoLogging?: boolean | autoLoggingOptions; | ||
autoLogging?: boolean | AutoLoggingOptions; | ||
customLogLevel?: (res: ServerResponse, error: Error) => Level; | ||
customSuccessMessage?: (req: IncomingMessage) => string; | ||
customErrorMessage?: (req: IncomingMessage) => string; | ||
customAttributeKeys?: CustomAttributeKeys; | ||
} | ||
@@ -41,6 +44,13 @@ | ||
interface autoLoggingOptions { | ||
interface AutoLoggingOptions { | ||
ignorePaths?: string[]; | ||
getPath?: (req: IncomingMessage) => string | undefined; | ||
} | ||
interface CustomAttributeKeys { | ||
req?: string; | ||
res?: string; | ||
err?: string; | ||
responseTime?: string; | ||
} | ||
} | ||
@@ -47,0 +57,0 @@ |
{ | ||
"name": "@types/pino-http", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "TypeScript definitions for pino-http", | ||
@@ -39,4 +39,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "9ce4fb0f826467a72d31892a50ffce14487fbf112a0983b3ad320cc3025eb136", | ||
"typesPublisherContentHash": "88aaa3f4b905cf4b9fa046e8a3d8a0924c35754cb7f7daea3fb6242c807f32e6", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 17 Apr 2020 00:15:41 GMT | ||
* Last updated: Thu, 23 Apr 2020 17:50:35 GMT | ||
* Dependencies: [@types/pino](https://npmjs.com/package/@types/pino) | ||
@@ -14,0 +14,0 @@ * Global values: none |
5098
55