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

pino

Package Overview
Dependencies
Maintainers
2
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 2.12.0 to 2.12.1

2

package.json
{
"name": "pino",
"version": "2.12.0",
"version": "2.12.1",
"description": "fast and simple logger",

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

@@ -241,5 +241,5 @@ 'use strict'

if (obj.hasOwnProperty(key) && value !== undefined) {
value = this.serializers[key] ? this.serializers[key](value) : value
value = this.stringify(this.serializers[key] ? this.serializers[key](value) : value)
if (value !== undefined) {
data += ',"' + key + '":' + this.stringify(value)
data += ',"' + key + '":' + value
}

@@ -246,0 +246,0 @@ }

@@ -295,2 +295,15 @@ 'use strict'

test('correctly strip undefined when returned from toJSON', function (t) {
t.plan(1)
var instance = pino({
test: 'this'
}, sink(function (obj, enc, cb) {
t.notOk('test' in obj)
cb()
}))
instance.fatal({test: {toJSON: function () { return undefined }}})
})
test('correctly support node v4+ stderr', function (t) {

@@ -297,0 +310,0 @@ t.plan(1)

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