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 8.6.0 to 8.6.1

2

lib/meta.js
'use strict'
module.exports = { version: '8.6.0' }
module.exports = { version: '8.6.1' }

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

} else {
this[writeSym](null, format(o, n, this[formatOptsSym]), level)
this[writeSym](null, format(o === undefined ? n.shift() : o, n, this[formatOptsSym]), level)
}

@@ -59,0 +59,0 @@ }

{
"name": "pino",
"version": "8.6.0",
"version": "8.6.1",
"description": "super fast, all natural json logger",

@@ -107,3 +107,3 @@ "main": "pino.js",

"ts-node": "^10.9.1",
"tsd": "^0.23.0",
"tsd": "^0.24.1",
"typescript": "^4.8.2",

@@ -110,0 +110,0 @@ "winston": "^3.7.2"

@@ -112,2 +112,18 @@ 'use strict'

test(`passing a undefined and a string at level ${name}`, async ({ equal, same }) => {
const stream = sink()
const instance = pino(stream)
instance.level = name
instance[name](undefined, 'a string')
const result = await once(stream, 'data')
equal(new Date(result.time) <= new Date(), true, 'time is greater than Date.now()')
delete result.time
same(result, {
pid,
hostname,
level,
msg: 'a string'
})
})
test(`overriding object key by string at level ${name}`, async ({ equal, same }) => {

@@ -114,0 +130,0 @@ const stream = sink()

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