winston-daily-rotate-file
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -369,3 +369,3 @@ 'use strict'; | ||
function push(log) { | ||
if (options.rows && results.length >= options.rows) { | ||
if (options.rows && results.length >= options.rows && options.order !== 'desc') { | ||
if (stream.readable) { | ||
@@ -385,2 +385,7 @@ stream.destroy(); | ||
if (options.order === 'desc') { | ||
if (results.length >= options.rows) { | ||
results.shift(); | ||
} | ||
} | ||
results.push(log); | ||
@@ -387,0 +392,0 @@ } |
{ | ||
"name": "winston-daily-rotate-file", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "A transport for winston which logs to a rotating file each day.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60906
1512