Comparing version 8.3.0 to 8.3.1
'use strict' | ||
module.exports = { version: '8.3.0' } | ||
module.exports = { version: '8.3.1' } |
@@ -308,3 +308,5 @@ 'use strict' | ||
if (!hasBeenTampered(process.stdout)) { | ||
stream = buildSafeSonicBoom({ fd: process.stdout.fd }) | ||
// If process.stdout.fd is undefined, it means that we are running | ||
// in a worker thread. Let's assume we are logging to file descriptor 1. | ||
stream = buildSafeSonicBoom({ fd: process.stdout.fd || 1 }) | ||
} else { | ||
@@ -311,0 +313,0 @@ stream = process.stdout |
{ | ||
"name": "pino", | ||
"version": "8.3.0", | ||
"version": "8.3.1", | ||
"description": "super fast, all natural json logger", | ||
@@ -118,3 +118,3 @@ "main": "pino.js", | ||
"quick-format-unescaped": "^4.0.3", | ||
"real-require": "^0.1.0", | ||
"real-require": "^0.2.0", | ||
"safe-stable-stringify": "^2.3.1", | ||
@@ -121,0 +121,0 @@ "sonic-boom": "^3.1.0", |
@@ -26,1 +26,8 @@ 'use strict' | ||
}) | ||
test('do not crash if process.stdout has no fd', async ({ teardown }) => { | ||
const fd = process.stdout.fd | ||
delete process.stdout.fd | ||
teardown(function () { process.stdout.fd = fd }) | ||
pino() | ||
}) |
@@ -15,4 +15,6 @@ 'use strict' | ||
const rimraf = require('rimraf') | ||
const { promisify } = require('util') | ||
const { tmpdir } = os | ||
const immediate = promisify(setImmediate) | ||
const pid = process.pid | ||
@@ -402,2 +404,3 @@ const hostname = os.hostname() | ||
await once(child, 'close') | ||
await immediate() | ||
not(strip(actual).match(/Hello/), null) | ||
@@ -415,2 +418,3 @@ }) | ||
await once(child, 'close') | ||
await immediate() | ||
not(strip(actual).match(/Hello/), null) | ||
@@ -417,0 +421,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
461874
11147
- Removedreal-require@0.1.0(transitive)
Updatedreal-require@^0.2.0