@types/pino-http
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -8,7 +8,8 @@ // Type definitions for pino-http 4.0 | ||
import { IncomingMessage, ServerResponse } from 'http'; | ||
import { Level, Logger, LoggerOptions } from 'pino'; | ||
import { DestinationStream, Level, Logger, LoggerOptions } from 'pino'; | ||
export = PinoHttp; | ||
declare function PinoHttp(opts?: PinoHttp.Options): PinoHttp.HttpLogger; | ||
declare function PinoHttp(opts?: PinoHttp.Options, stream?: DestinationStream): PinoHttp.HttpLogger; | ||
declare function PinoHttp(stream?: DestinationStream): PinoHttp.HttpLogger; | ||
@@ -20,5 +21,10 @@ declare namespace PinoHttp { | ||
logger?: Logger; | ||
genReqId?: (req: IncomingMessage) => number; | ||
genReqId?: GenReqId; | ||
useLevel?: Level; | ||
stream?: DestinationStream; | ||
} | ||
interface GenReqId { | ||
(req: IncomingMessage): number | string | object; | ||
} | ||
} | ||
@@ -25,0 +31,0 @@ |
{ | ||
"name": "@types/pino-http", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "TypeScript definitions for pino-http", | ||
@@ -14,2 +14,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -23,4 +24,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "a5a24a4fe0c4c7c65fd9e5ef895c3c15bb8accb2e83d10c4f65fece2f6e0d89b", | ||
"typesPublisherContentHash": "f5737c3836d32b0c208f5dd1dd22499293f7edcbc81bc77582253b7e3f7c3871", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for pino-http (https://github.com/pinojs/pino-http#readme). | ||
This package contains type definitions for pino-http ( https://github.com/pinojs/pino-http#readme ). | ||
@@ -12,4 +12,4 @@ # Details | ||
Additional Details | ||
* Last updated: Fri, 12 Oct 2018 21:27:10 GMT | ||
* Dependencies: pino | ||
* Last updated: Thu, 24 Jan 2019 22:51:58 GMT | ||
* Dependencies: @types/pino | ||
* Global values: none | ||
@@ -16,0 +16,0 @@ |
3443
27