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

pino

Package Overview
Dependencies
Maintainers
4
Versions
311
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 8.17.1 to 8.17.2

2

lib/meta.js
'use strict'
module.exports = { version: '8.17.1' }
module.exports = { version: '8.17.2' }
{
"name": "pino",
"version": "8.17.1",
"version": "8.17.2",
"description": "super fast, all natural json logger",

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

"pino-std-serializers": "^6.0.0",
"process-warning": "^2.0.0",
"process-warning": "^3.0.0",
"quick-format-unescaped": "^4.0.3",

@@ -112,0 +112,0 @@ "real-require": "^0.2.0",

@@ -633,3 +633,3 @@ // Project: https://github.com/pinojs/pino.git, http://getpino.io

*/
onChild?: OnChildCallback;
onChild?: OnChildCallback<CustomLevels>;

@@ -803,3 +803,3 @@ /**

*/
declare function pino<CustomLevels extends string>(options: LoggerOptions<CustomLevels>, stream: DestinationStream): Logger<CustomLevels>;
declare function pino<CustomLevels extends string = never>(options: LoggerOptions<CustomLevels>, stream: DestinationStream): Logger<CustomLevels>;

@@ -806,0 +806,0 @@

@@ -407,1 +407,21 @@ import P, { pino } from "../../";

}))
const parentLogger1 = pino({
customLevels: { myLevel: 90 },
onChild: (child) => { const a = child.myLevel; }
}, process.stdout)
parentLogger1.onChild = (child) => { child.myLevel(''); }
const childLogger1 = parentLogger1.child({});
childLogger1.myLevel('');
expectError(childLogger1.doesntExist(''));
const parentLogger2 = pino({}, process.stdin);
expectError(parentLogger2.onChild = (child) => { const b = child.doesntExist; });
const childLogger2 = parentLogger2.child({});
expectError(childLogger2.doesntExist);
expectError(pino({
onChild: (child) => { const a = child.doesntExist; }
}, process.stdout));
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