rotating-file-stream
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -29,2 +29,3 @@ "use strict"; | ||
self.emit("rotated", name); | ||
self.interval(); | ||
}); | ||
@@ -31,0 +32,0 @@ }; |
@@ -139,2 +139,4 @@ "use strict"; | ||
this.once("open", this.interval.bind(this)); | ||
fs.stat(this.name, function(err, stats) { | ||
@@ -221,4 +223,6 @@ if(err) { | ||
self.compress(name); | ||
else | ||
else { | ||
self.emit("rotated", name); | ||
self.interval(); | ||
} | ||
}; | ||
@@ -249,3 +253,3 @@ | ||
RotatingFileStream.prototype.now = function(retry) { | ||
RotatingFileStream.prototype.now = function() { | ||
return new Date().getTime(); | ||
@@ -273,3 +277,2 @@ }; | ||
self.emit("open"); | ||
self.interval(); | ||
@@ -276,0 +279,0 @@ callback(); |
{ | ||
"name": "rotating-file-stream", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Opens a stream.Writable to a file rotated by interval and/or size. A logrotate alternative.", | ||
@@ -32,7 +32,7 @@ "engines": { | ||
"devDependencies": { | ||
"istanbul": "0.4.0", | ||
"jshint": "2.8.0", | ||
"mocha": "2.3.3", | ||
"istanbul": "0.4.3", | ||
"jshint": "2.9.2", | ||
"mocha": "2.4.5", | ||
"mocha-istanbul": "0.2.0" | ||
} | ||
} |
@@ -257,2 +257,3 @@ # rotating-file-stream | ||
compatibility. The package it tested under following versions: | ||
* 6.0 | ||
* 5.0 | ||
@@ -277,2 +278,5 @@ * 4.2 | ||
* 2016-04-29 - v1.0.5 | ||
* Tested on node v6.0 | ||
* Fixed a bug on rotation with interval and compression | ||
* 2015-11-09 - v1.0.4 | ||
@@ -279,0 +283,0 @@ * Tested on node v5.0 |
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
25258
492
308