Comparing version 8.4.1 to 8.4.2
'use strict' | ||
module.exports = { version: '8.4.1' } | ||
module.exports = { version: '8.4.2' } |
@@ -34,2 +34,5 @@ 'use strict' | ||
fn = realRequire(target) | ||
} else if (error.code === undefined) { | ||
// When bundled with pkg, an undefined error is thrown when called with realImport | ||
fn = realRequire(decodeURIComponent(target)) | ||
} else { | ||
@@ -36,0 +39,0 @@ throw error |
{ | ||
"name": "pino", | ||
"version": "8.4.1", | ||
"version": "8.4.2", | ||
"description": "super fast, all natural json logger", | ||
@@ -93,3 +93,3 @@ "main": "pino.js", | ||
"loglevel": "^1.6.7", | ||
"pino-pretty": "^8.0.0", | ||
"pino-pretty": "^9.0.0", | ||
"pre-commit": "^1.2.2", | ||
@@ -96,0 +96,0 @@ "proxyquire": "^2.1.3", |
@@ -69,2 +69,32 @@ 'use strict' | ||
test('pino.transport with worker destination overridden by bundler and mjs transport', async ({ same, teardown }) => { | ||
globalThis.__bundlerPathsOverrides = { | ||
'pino-worker': join(__dirname, '..', '..', 'lib/worker.js') | ||
} | ||
const destination = file() | ||
const transport = pino.transport({ | ||
targets: [ | ||
{ | ||
target: join(__dirname, '..', 'fixtures', 'ts', 'to-file-transport.es2017.cjs'), | ||
options: { destination } | ||
} | ||
] | ||
}) | ||
teardown(transport.end.bind(transport)) | ||
const instance = pino(transport) | ||
instance.info('hello') | ||
await watchFileCreated(destination) | ||
const result = JSON.parse(await readFile(destination)) | ||
delete result.time | ||
same(result, { | ||
pid, | ||
hostname, | ||
level: 30, | ||
msg: 'hello' | ||
}) | ||
globalThis.__bundlerPathsOverrides = undefined | ||
}) | ||
test('pino.transport with worker-pipeline destination overridden by bundler', async ({ same, teardown }) => { | ||
@@ -71,0 +101,0 @@ globalThis.__bundlerPathsOverrides = { |
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
466748
11264