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 4.10.0 to 4.10.1

2

package.json
{
"name": "pino",
"version": "4.10.0",
"version": "4.10.1",
"description": "super fast, all natural json logger",

@@ -5,0 +5,0 @@ "main": "pino.js",

@@ -276,9 +276,9 @@ 'use strict'

if (iopts.extreme && iopts.prettyPrint) throw Error('cannot enable pretty print in extreme mode')
if (stream && iopts.prettyPrint) throw Error('cannot enable pretty print when stream specified')
istream = istream || process.stdout
var isStdout = istream === process.stdout
if (!isStdout && iopts.prettyPrint) throw Error('cannot enable pretty print when stream is not process.stdout')
if (iopts.prettyPrint) {
var prettyOpts = Object.assign({ messageKey: iopts.messageKey }, iopts.prettyPrint)
var pstream = pretty(prettyOpts)
var origStream = istream
pump(pstream, origStream, function (err) {
pump(pstream, process.stdout, function (err) {
if (err) instance.emit('error', err)

@@ -285,0 +285,0 @@ })

@@ -268,1 +268,6 @@ 'use strict'

})
test('does not throw error when enabled with stream specified', function (t) {
pino({prettyPrint: true}, process.stdout)
t.end()
})
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