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

rotating-file-stream

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rotating-file-stream - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

1

compress.js

@@ -29,2 +29,3 @@ "use strict";

self.emit("rotated", name);
self.interval();
});

@@ -31,0 +32,0 @@ };

9

index.js

@@ -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

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