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.6.0 to 8.6.1

6

index.d.ts

@@ -15,3 +15,3 @@ // Project: https://github.com/pinojs/pino-http#readme

declare function PinoHttp<IM = IncomingMessage, SR = ServerResponse, CustomLevels extends string = never>(opts?: Options<IM, SR>, stream?: pino.DestinationStream): HttpLogger<IM, SR, CustomLevels>;
declare function PinoHttp<IM = IncomingMessage, SR = ServerResponse, CustomLevels extends string = never>(opts?: Options<IM, SR, CustomLevels>, stream?: pino.DestinationStream): HttpLogger<IM, SR, CustomLevels>;

@@ -26,4 +26,4 @@ declare function PinoHttp<IM = IncomingMessage, SR = ServerResponse>(stream?: pino.DestinationStream): HttpLogger<IM, SR>;

export interface Options<IM = IncomingMessage, SR = ServerResponse> extends pino.LoggerOptions {
logger?: pino.Logger | undefined;
export interface Options<IM = IncomingMessage, SR = ServerResponse, CustomLevels extends string = never> extends pino.LoggerOptions {
logger?: pino.Logger<CustomLevels> | undefined;
genReqId?: GenReqId<IM, SR> | undefined;

@@ -30,0 +30,0 @@ useLevel?: pino.LevelWithSilent | undefined;

@@ -216,1 +216,12 @@

}).logger.bark("arf arf");
// customLevels in parent pino instance should be not cause
// TypeScript errors
const customLogger = pino({
customLevels: {
bark: 25,
}
});
pinoHttp({
logger: customLogger
}).logger.bark("arf arf");
{
"name": "pino-http",
"version": "8.6.0",
"version": "8.6.1",
"description": "High-speed HTTP logger for Node.js",

@@ -9,5 +9,5 @@ "main": "logger.js",

"get-caller-file": "^2.0.5",
"pino": "^8.17.0",
"pino-std-serializers": "^6.0.0",
"process-warning": "^2.0.0"
"pino": "^8.17.1",
"pino-std-serializers": "^6.2.2",
"process-warning": "^3.0.0"
},

@@ -26,3 +26,3 @@ "devDependencies": {

"ts-node": "^10.3.0",
"tsd": "^0.29.0",
"tsd": "^0.30.0",
"typescript": "^5.0.2"

@@ -29,0 +29,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