Socket
Socket
Sign inDemoInstall

pino

Package Overview
Dependencies
Maintainers
4
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino - npm Package Compare versions

Comparing version 7.6.4 to 7.6.5

2

docs/api.md

@@ -729,3 +729,3 @@ # API

logger.debug('nope') // will not log, since default level is info
const child = logger.child({foo: 'bar'}, {level: 'debug')
const child = logger.child({foo: 'bar'}, {level: 'debug'})
child.debug('debug!') // will log as the `level` property set the level to debug

@@ -732,0 +732,0 @@ ```

{
"name": "pino",
"version": "7.6.4",
"version": "7.6.5",
"description": "super fast, all natural json logger",

@@ -88,3 +88,3 @@ "main": "pino.js",

"loglevel": "^1.6.7",
"pino-pretty": "^v7.4.0",
"pino-pretty": "^v7.5.1",
"pre-commit": "^1.2.2",

@@ -91,0 +91,0 @@ "proxyquire": "^2.1.3",

@@ -22,6 +22,6 @@ // Type definitions for pino 7.0

import type { PrettyOptions as PinoPrettyOptions } from "pino-pretty";
import * as pinoStdSerializers from "pino-std-serializers";
import type { SonicBoom, SonicBoomOpts } from "sonic-boom";
import type { WorkerOptions } from "worker_threads";
import * as pinoStdSerializers from "pino-std-serializers";

@@ -37,3 +37,3 @@

type CustomLevelLogger<Options> = Options extends LoggerOptions ? Record<keyof Options["customLevels"], LogFn> : never
type CustomLevelLogger<Options> = Options extends { customLevels: Record<string, number> } ? Record<keyof Options["customLevels"], LogFn> : Record<never, LogFn>

@@ -46,3 +46,3 @@ interface redactOptions {

interface LoggerExtras extends EventEmitter {
interface LoggerExtras<Options = LoggerOptions> extends EventEmitter {
/**

@@ -82,3 +82,3 @@ * Exposes the Pino package version. Also available on the exported pino function.

*/
child(bindings: pino.Bindings, options?: pino.ChildLoggerOptions): pino.Logger;
child<ChildOptions extends pino.ChildLoggerOptions>(bindings: pino.Bindings, options?: ChildOptions): pino.Logger<Options & ChildOptions>;

@@ -216,3 +216,3 @@ /**

type Logger<Options = LoggerOptions> = BaseLogger & LoggerExtras & CustomLevelLogger<Options>;
type Logger<Options = LoggerOptions> = BaseLogger & LoggerExtras<Options> & CustomLevelLogger<Options>;

@@ -806,3 +806,2 @@ type SerializedError = pinoStdSerializers.SerializedError;

export { pino as default, pino };
// Export just the type side of the namespace as "P", allows

@@ -809,0 +808,0 @@ // `import {P} from "pino"; const log: P.Logger;`.

@@ -312,1 +312,15 @@ import P, { pino } from "../../";

log3.myLevel('')
log3.child({}).myLevel('')
const clog3 = log3.child({}, { customLevels: { childLevel: 120 } })
// child inherit parant
clog3.myLevel('')
// child itself
clog3.childLevel('')
const cclog3 = clog3.child({}, { customLevels: { childLevel2: 130 } })
// child inherit root
cclog3.myLevel('')
// child inherit parant
cclog3.childLevel('')
// child itself
cclog3.childLevel2('')
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