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.0.1 to 1.1.0

2

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

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

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

const fileName = buildFileName(file, number, extension)
let fileName = buildFileName(file, number, extension)
const createdFileNames = [fileName]

@@ -97,3 +97,3 @@ let currentSize = await getFileSize(fileName)

currentSize += writtenSize
if (currentSize >= maxSize) {
if (fileName === destination.file && currentSize >= maxSize) {
currentSize = 0

@@ -107,3 +107,3 @@ // delay to let the destination finish its write

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

@@ -110,0 +110,0 @@ if (limit) {

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