Comparing version 8.2.0 to 8.3.0
'use strict' | ||
module.exports = { version: '8.2.0' } | ||
module.exports = { version: '8.3.0' } |
@@ -306,5 +306,8 @@ 'use strict' | ||
if (enabled === false) opts.level = 'silent' | ||
stream = stream || process.stdout | ||
if (stream === process.stdout && stream.fd >= 0 && !hasBeenTampered(stream)) { | ||
stream = buildSafeSonicBoom({ fd: stream.fd }) | ||
if (!stream) { | ||
if (!hasBeenTampered(process.stdout)) { | ||
stream = buildSafeSonicBoom({ fd: process.stdout.fd }) | ||
} else { | ||
stream = process.stdout | ||
} | ||
} | ||
@@ -311,0 +314,0 @@ return { opts, stream } |
{ | ||
"name": "pino", | ||
"version": "8.2.0", | ||
"version": "8.3.0", | ||
"description": "super fast, all natural json logger", | ||
@@ -70,3 +70,3 @@ "main": "pino.js", | ||
}, | ||
"homepage": "http://getpino.io", | ||
"homepage": "https://getpino.io", | ||
"devDependencies": { | ||
@@ -121,3 +121,3 @@ "@types/flush-write-stream": "^1.0.0", | ||
"safe-stable-stringify": "^2.3.1", | ||
"sonic-boom": "^3.0.0", | ||
"sonic-boom": "^3.1.0", | ||
"thread-stream": "^2.0.0" | ||
@@ -124,0 +124,0 @@ }, |
@@ -8,2 +8,3 @@ 'use strict' | ||
const writer = require('flush-write-stream') | ||
const pino = require('..') | ||
@@ -21,1 +22,6 @@ test('do not use SonicBoom is someone tampered with process.stdout.write', async ({ not }) => { | ||
}) | ||
test('do not use SonicBoom is someone has passed process.stdout to pino', async ({ equal }) => { | ||
const logger = pino(process.stdout) | ||
equal(logger[pino.symbols.streamSym], process.stdout) | ||
}) |
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
461396
11135
Updatedsonic-boom@^3.1.0