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 4.2.1 to 4.2.2

2

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

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

@@ -126,2 +126,5 @@ 'use strict'

}
// we need the child bindings added to the output first so that logged
// objects can take precedence when JSON.parse-ing the resulting log line
data = data + this.chindings
var value

@@ -142,3 +145,3 @@ if (obj) {

}
return data + this.chindings + this.end
return data + this.end
}

@@ -145,0 +148,0 @@ Object.defineProperty(pinoPrototype, 'asJson', {

@@ -398,1 +398,12 @@ 'use strict'

})
// https://github.com/pinojs/pino/issues/222
test('children with same names render in correct order', function (t) {
t.plan(1)
var root = pino(sink(function (chunk, enc, cb) {
t.is(chunk.a, 3, 'last logged object takes precedence')
cb()
}))
root.child({a: 1}).child({a: 2}).info({a: 3})
})
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