Comparing version 3.0.6 to 3.0.7
{ | ||
"name": "pino", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "super fast, all natural json logger", | ||
@@ -5,0 +5,0 @@ "main": "pino.js", |
@@ -50,3 +50,6 @@ #! /usr/bin/env node | ||
function isPinoLine (line) { | ||
return line.hasOwnProperty('hostname') && line.hasOwnProperty('pid') && (line.hasOwnProperty('v') && line.v === 1) | ||
return line && | ||
line.hasOwnProperty('hostname') && | ||
line.hasOwnProperty('pid') && | ||
(line.hasOwnProperty('v') && line.v === 1) | ||
} | ||
@@ -53,0 +56,0 @@ |
@@ -142,1 +142,34 @@ 'use strict' | ||
}) | ||
test('handles `null` input', function (t) { | ||
t.plan(1) | ||
var pretty = pino.pretty() | ||
pretty.pipe(split(function (line) { | ||
t.is(line, 'null') | ||
return line | ||
})) | ||
pretty.write('null') | ||
pretty.end() | ||
}) | ||
test('handles `undefined` input', function (t) { | ||
t.plan(1) | ||
var pretty = pino.pretty() | ||
pretty.pipe(split(function (line) { | ||
t.is(line, 'undefined') | ||
return line | ||
})) | ||
pretty.write('undefined') | ||
pretty.end() | ||
}) | ||
test('handles `true` input', function (t) { | ||
t.plan(1) | ||
var pretty = pino.pretty() | ||
pretty.pipe(split(function (line) { | ||
t.is(line, 'true') | ||
return line | ||
})) | ||
pretty.write('true') | ||
pretty.end() | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
98423
2166
2