New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rotating-file-stream

Package Overview
Dependencies
Maintainers
2
Versions
68
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.4.5 to 1.4.6

2

CHANGELOG.md

@@ -0,1 +1,3 @@

- 2019-10-20 - v1.4.6
- tests fix
- 2019-10-18 - v1.4.5

@@ -2,0 +4,0 @@ - Fixed a [bug](https://github.com/iccicci/rotating-file-stream/issues/39) when **immutable** and **history** are both set.

17

index.js

@@ -45,3 +45,3 @@ "use strict";

this.firstOpen();
process.nextTick(this.firstOpen.bind(this));
}

@@ -54,9 +54,6 @@

this.stream.on("finish", done);
this.stream.end(() => this.emit("close"));
this.stream.end();
this.stream = null;
}
else {
this.emit("close");
done();
}
else done();
};

@@ -140,3 +137,9 @@

this.name = this.generator(null);
try {
this.name = this.generator(null);
}
catch(e) {
return this.emit("error", e);
}
this.once("open", this.interval.bind(this));

@@ -143,0 +146,0 @@

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

res.map(e => files.push(e.name));
self.files = files;

@@ -139,2 +140,8 @@ fs.writeFile(self.options.history, files.join("\n"), "utf8", function(err) {

if(this.files) {
this.files.push(lastfile);
return historyGather(self, this.files, 0, []);
}
if(! filename) this.options.history = filename = this.generator(null) + ".txt";

@@ -141,0 +148,0 @@

{
"name": "rotating-file-stream",
"version": "1.4.5",
"version": "1.4.6",
"description": "Opens a stream.Writable to a file rotated by interval and/or size. A logrotate alternative.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -329,6 +329,2 @@ # rotating-file-stream

stream.on('close', function() {
// the stream have been closed
});
stream.on('error', function(err) {

@@ -335,0 +331,0 @@ // here are reported blocking errors

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