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

pino-http

Package Overview
Dependencies
Maintainers
4
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-http - npm Package Compare versions

Comparing version 8.3.1 to 8.3.2

5

import.test-d.ts

@@ -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());

2

index.d.ts

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

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