pino-pretty
Advanced tools
Comparing version 4.7.0 to 4.7.1
@@ -135,4 +135,4 @@ 'use strict' | ||
if (line.length > 0) { | ||
line += (singleLine ? ' ' : EOL) | ||
if (line.length > 0 && !singleLine) { | ||
line += EOL | ||
} | ||
@@ -161,2 +161,7 @@ | ||
}) | ||
// In single line mode, include a space only if prettified version isn't empty | ||
if (singleLine && !/^\s$/.test(prettifiedObject)) { | ||
line += ' ' | ||
} | ||
line += prettifiedObject | ||
@@ -163,0 +168,0 @@ } |
{ | ||
"name": "pino-pretty", | ||
"version": "4.7.0", | ||
"version": "4.7.1", | ||
"description": "Prettifier for Pino log lines", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -727,3 +727,3 @@ 'use strict' | ||
const formatted = pretty(chunk.toString()) | ||
t.is(formatted, `[${epoch}] INFO (${pid} on ${hostname}): message \n`) | ||
t.is(formatted, `[${epoch}] INFO (${pid} on ${hostname}): message\n`) | ||
cb() | ||
@@ -730,0 +730,0 @@ } |
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
280169
2432