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 4.10.2 to 4.10.3

4

lib/events.js

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

function hup (err) {
function hup () {
if (process.listenerCount('SIGHUP') === 1) {
return theWorldIsBurning.call({name: 'SIGHUP'}, err)
return theWorldIsBurning.call({name: 'SIGHUP'})
}

@@ -15,0 +15,0 @@ pinoInstance.flush()

{
"name": "pino",
"version": "4.10.2",
"version": "4.10.3",
"description": "super fast, all natural json logger",

@@ -58,7 +58,7 @@ "main": "pino.js",

"devDependencies": {
"benchmark": "^2.1.2",
"benchmark": "^2.1.4",
"bole": "^3.0.2",
"bunyan": "^1.8.5",
"debug": "^3.0.0",
"fastbench": "^1.0.0",
"bunyan": "^1.8.12",
"debug": "^3.1.0",
"fastbench": "^1.0.1",
"flush-write-stream": "^1.0.2",

@@ -71,7 +71,7 @@ "fresh-require": "^1.0.3",

"snazzy": "^7.0.0",
"standard": "^10.0.0",
"standard": "^10.0.3",
"steed": "^1.1.3",
"tap": "^10.7.3",
"tape": "^4.6.2",
"through2": "^2.0.1",
"tap": "^11.0.0",
"tape": "^4.8.0",
"through2": "^2.0.3",
"winston": "^2.4.0",

@@ -82,6 +82,6 @@ "zuul": "^3.11.1"

"chalk": "^2.3.0",
"fast-json-parse": "^1.0.0",
"fast-json-parse": "^1.0.3",
"fast-safe-stringify": "^1.2.1",
"flatstr": "^1.0.4",
"pump": "^1.0.3",
"flatstr": "^1.0.5",
"pump": "^2.0.0",
"quick-format-unescaped": "^1.1.1",

@@ -88,0 +88,0 @@ "split2": "^2.2.0"

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

function withSpaces (value, eol) {
var lines = value.split('\r?\n')
var lines = value.split(/\r?\n/)
for (var i = 1; i < lines.length; i++) {

@@ -30,0 +30,0 @@ lines[i] = ' ' + lines[i]

@@ -99,2 +99,4 @@ 'use strict'

child.stderr.pipe(process.stdout)
child.on('exit', function (code) {

@@ -101,0 +103,0 @@ t.is(code, 0)

@@ -8,4 +8,2 @@ 'use strict'

var pino = require(require.resolve('./../../../'))
if (process.listenerCount('SIGHUP') > 0) {

@@ -16,2 +14,4 @@ // needed because of a hook added by code coverage

var pino = require(require.resolve('./../../../'))
// extreme mode

@@ -18,0 +18,0 @@ var log = pino({extreme: true})

@@ -242,2 +242,23 @@ 'use strict'

test('pino transform prettifies nested properties', function (t) {
t.plan(5)
var expectedLines = [
undefined,
' a: {',
' "b": {',
' "c": "d"',
' }',
' }'
]
var prettier = pretty()
prettier.pipe(split(function (line) {
var expectedLine = expectedLines.shift()
if (expectedLine !== undefined) {
t.equal(line, expectedLine, 'prettifies the line')
}
}))
var instance = pino(prettier)
instance.info({ a: { b: { c: 'd' } } }, 'hello world')
})
test('pino transform treats the name with care', function (t) {

@@ -244,0 +265,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