Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pino

Package Overview
Dependencies
Maintainers
4
Versions
311
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.2.0 to 8.3.0

2

lib/meta.js
'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)
})
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