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 0.2.3 to 0.2.4

2

package.json
{
"name": "pino",
"version": "0.2.3",
"version": "0.2.4",
"description": "fast and simple logger",

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

@@ -102,3 +102,5 @@ 'use strict'

for (var key in obj) {
data += ',"' + key + '":' + stringify(obj[key])
if (obj[key]) {
data += ',"' + key + '":' + stringify(obj[key])
}
}

@@ -105,0 +107,0 @@ data += '}'

@@ -209,1 +209,20 @@ 'use strict'

})
test('set undefined properties', function (t) {
t.plan(2)
var instance = pino(sink(function (chunk, enc, cb) {
t.ok(Date.parse(chunk.time) <= new Date(), 'time is greater than Date.now()')
delete chunk.time
t.deepEqual(chunk, {
pid: pid,
hostname: hostname,
level: 30,
hello: 'world',
v: 0
})
cb()
}))
instance.info({ hello: 'world', property: undefined })
})
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