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.1.8 to 1.1.9

36

compress.js

@@ -149,31 +149,27 @@ "use strict";

var close = fs.close.bind(fs, fd);
var unlink = fs.unlink.bind(fs, name, function(err) { if(err) self.emit("warning", err); });
var unlink = function(err) {
fs.unlink(name, function(err2) {
if(err2)
self.emit("warning", err2);
callback(err);
});
};
fs.write(fd, cont, function(err) {
if(err) {
close(function(err) {
if(err)
self.emit("warning", err);
unlink();
});
return callback(err);
}
close(function(err) {
fs.close(fd, function(err2) {
if(err) {
unlink();
if(err2)
self.emit("warning", err2);
return callback(err);
return unlink(err);
}
if(err2)
return unlink(err2);
if(name.indexOf(path.sep) === -1)
name = "." + path.sep + name;
cp.exec(name, function(err) {
unlink();
callback(err);
});
cp.exec(name, unlink);
});

@@ -180,0 +176,0 @@ });

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

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

@@ -307,2 +307,4 @@ # rotating-file-stream

* 2017-02-14 - v1.1.9
* fixed warning events order in case of external compression errors
* 2017-02-13 - v1.1.8

@@ -309,0 +311,0 @@ * removed tmp dependecy due it was causing a strange instability now disappeared

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