Socket
Socket
Sign inDemoInstall

pino

Package Overview
Dependencies
Maintainers
2
Versions
310
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 2.11.0 to 2.12.0

2

package.json
{
"name": "pino",
"version": "2.11.0",
"version": "2.12.0",
"description": "fast and simple logger",

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

@@ -49,2 +49,6 @@ #! /usr/bin/env node

function isPinoLine (line) {
return line.hasOwnProperty('hostname') && line.hasOwnProperty('pid') && (line.hasOwnProperty('v') && line.v === 1)
}
function pretty (opts) {

@@ -83,3 +87,3 @@ var timeTransOnly = opts && opts.timeTransOnly

if (parsed.err) {
if (parsed.err || !isPinoLine(value)) {
// pass through

@@ -86,0 +90,0 @@ return line + '\n'

@@ -84,1 +84,16 @@ 'use strict'

})
test('handles missing time', function (t) {
t.plan(1)
var pretty = pino.pretty()
var lines = []
pretty.pipe(split(function (line) {
lines.push(line)
return line
}))
pretty.write('{"hello":"world"}')
pretty.end()
t.deepEqual(lines, ['{"hello":"world"}'], 'preserved lines')
})
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