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

winston-daily-rotate-file

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-daily-rotate-file - npm Package Compare versions

Comparing version 4.4.3 to 4.5.0

15

daily-rotate-file.js

@@ -108,3 +108,12 @@ 'use strict';

if (fs.existsSync(gzName)) {
fs.unlinkSync(gzName);
try {
fs.unlinkSync(gzName);
}
catch (_err) {
// file is there but we got an error when trying to delete,
// so permissions problem or concurrency issue and another
// process already deleted it we could detect the concurrency
// issue by checking err.type === ENOENT or EACCESS for
// permissions ... but then?
}
self.emit('logRemoved', gzName);

@@ -301,3 +310,5 @@ return;

var time = new Date(log.timestamp);
if ((options.from && time < options.from) || (options.until && time > options.until)) {
if ((options.from && time < options.from) ||
(options.until && time > options.until) ||
(options.level && options.level !== log.level)) {
return;

@@ -304,0 +315,0 @@ }

2

package.json
{
"name": "winston-daily-rotate-file",
"version": "4.4.3",
"version": "4.5.0",
"description": "A transport for winston which logs to a rotating file each day.",

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

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