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.4 to 0.2.5

2

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

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

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

for (var key in obj) {
if (obj[key]) {
if (obj.hasOwnProperty(key) && obj[key] !== undefined) {
data += ',"' + key + '":' + stringify(obj[key])

@@ -105,0 +105,0 @@ }

@@ -228,1 +228,26 @@ 'use strict'

})
test('set properties defined in the prototype chain', 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()
}))
function MyObject () {
this.hello = 'world'
}
MyObject.prototype.some = function () {}
instance.info(new MyObject())
})
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