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 6.1.0 to 6.1.1

test/fixtures/pretty/child-with-serializer.js

8

lib/tools.js

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

time
}, chindings, lastObj, errorProps)
}, lastObj, errorProps)

@@ -260,2 +260,8 @@ const serializers = lastLogger[serializersSym]

for (key in chindings) {
if (!obj.hasOwnProperty(key)) {
obj[key] = chindings[key]
}
}
const stringifiers = lastLogger[stringifiersSym]

@@ -262,0 +268,0 @@ const redact = stringifiers[redactFmtSym]

2

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

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

@@ -8,3 +8,3 @@ ![banner](pino-banner.png)

[Very low overhead](#low-overhead) Node.js logger, inspired by Bunyan.
[Very low overhead](#low-overhead) Node.js logger.

@@ -11,0 +11,0 @@ ## Documentation

@@ -115,2 +115,21 @@ 'use strict'

test('parses and outputs chindings with serializer', async ({ is, isNot }) => {
var actual = ''
const child = execa(process.argv[0], [join(__dirname, 'fixtures', 'pretty', 'child-with-serializer.js')])
child.stdout.pipe(writer((s, enc, cb) => {
actual += s
cb()
}))
await once(child, 'close')
isNot(strip(actual).match(/\(123456 on abcdefghijklmnopqr\): h/), null)
isNot(strip(actual).match(/\(123456 on abcdefghijklmnopqr\): h2/), null)
isNot(strip(actual).match(/\(123456 on abcdefghijklmnopqr\): h3/), null)
isNot(strip(actual).match(/\(123456 on abcdefghijklmnopqr\): h4/), null)
isNot(strip(actual).match(/a: 2/), null)
isNot(strip(actual).match(/a: 16/), null)
isNot(strip(actual).match(/a: 42/), null)
is(strip(actual).match(/a: /g).length, 4)
})
test('applies serializers', async ({ is, isNot }) => {

@@ -117,0 +136,0 @@ var actual = ''

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