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

pino-multi-stream

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-multi-stream - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

2

multistream.js

@@ -52,4 +52,4 @@ 'use strict'

dest = streams[i]
stream = dest.stream
if (dest.level <= level) {
stream = dest.stream
if (stream[metadata]) {

@@ -56,0 +56,0 @@ const { lastTime, lastMsg, lastObj, lastLogger } = this

{
"name": "pino-multi-stream",
"version": "5.1.0",
"version": "5.1.1",
"description": "A wrapper for the Pino logger that provides Bunyan's multipe destination stream API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -330,3 +330,3 @@ 'use strict'

var stream1 = writeStream(function (data, enc, cb) {
messageCount += 1
messageCount -= 1
cb()

@@ -342,3 +342,4 @@ })

{
stream: stream1
stream: stream1,
level: 'info'
},

@@ -354,3 +355,5 @@ {

}, multistream(streams, { dedupe: true }))
log.info('info stream')
log.fatal('fatal stream')
log.fatal('fatal stream')
t.is(messageCount, 1)

@@ -357,0 +360,0 @@ t.done()

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