Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/pino-http

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/pino-http - npm Package Compare versions

Comparing version 5.4.1 to 5.4.2

36

pino-http/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc