Socket
Socket
Sign inDemoInstall

pino

Package Overview
Dependencies
Maintainers
4
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino - npm Package Compare versions

Comparing version 8.4.1 to 8.4.2

2

lib/meta.js
'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 = {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc