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

pino-roll

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-roll - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

package.json
{
"name": "pino-roll",
"version": "1.1.0",
"version": "1.2.0",
"description": "A Pino transport that automatically rolls your log files",

@@ -5,0 +5,0 @@ "main": "pino-roll.js",

@@ -98,4 +98,5 @@ 'use strict'

currentSize = 0
fileName = buildFileName(file, ++number, extension)
// delay to let the destination finish its write
setTimeout(roll, 0)
destination.once('drain', roll)
}

@@ -106,3 +107,2 @@ })

function roll () {
fileName = buildFileName(file, ++number, extension)
destination.reopen(fileName)

@@ -118,2 +118,3 @@ if (limit) {

rollTimeout = setTimeout(() => {
fileName = buildFileName(file, ++number, extension)
roll()

@@ -120,0 +121,0 @@ frequencySpec.next = getNext(frequency)

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