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.2.0 to 1.2.1

.codeclimate.yml

8

interval.js

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

function historyRemove(self, res, step) {
function historyRemove(self, res, step, number) {
var file = res.shift();

@@ -79,3 +79,3 @@

else
self.emit("removed", file.name);
self.emit("removed", file.name, number);

@@ -98,3 +98,3 @@ step(self, res);

historyRemove(self, res, historyCheckSize);
historyRemove(self, res, historyCheckSize, false);
}

@@ -108,3 +108,3 @@

historyRemove(self, res,historyCheckFiles);
historyRemove(self, res, historyCheckFiles, true);
}

@@ -111,0 +111,0 @@

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

@@ -29,3 +29,3 @@ "scripts": {

"devDependencies": {
"eslint": "3.17.1",
"eslint": "3.18.0",
"istanbul": "0.4.5",

@@ -32,0 +32,0 @@ "mocha-istanbul": "0.3.0",

@@ -6,3 +6,3 @@ # rotating-file-stream

[![Test Coverage](https://codeclimate.com/github/iccicci/rotating-file-stream/badges/coverage.svg)](https://codeclimate.com/github/iccicci/rotating-file-stream/coverage)
[![Donate](http://img.shields.io/bitcoin/donate.png?color=blue)](https://www.coinbase.com/cicci)
[![Donate](http://img.shields.io/donate/bitcoin.png?color=blue)](https://blockchain.info/address/12p1p5q7sK75tPyuesZmssiMYr4TKzpSCN)

@@ -249,3 +249,3 @@ [![NPM version](https://badge.fury.io/js/rotating-file-stream.svg)](https://www.npmjs.com/package/rotating-file-stream)

### Events
## Events

@@ -286,3 +286,3 @@ Custom _Events_ are emitted by the stream.

### Rotation logic
## Rotation logic

@@ -293,3 +293,3 @@ Regardless of when and why rotation happens, the content of a single

#### by size
### by size

@@ -301,3 +301,3 @@ Once the _not-rotated_ file is opened first time, its size is checked and if it is greater or equal to

#### by interval
### by interval

@@ -307,3 +307,3 @@ The package sets a [Timeout](https://nodejs.org/api/timers.html#timers_settimeout_callback_delay_args)

### Under the hood
## Under the hood

@@ -331,3 +331,3 @@ Logs should be handled so carefully, so this package tries to never overwrite files.

### Compatibility
## Compatibility

@@ -340,12 +340,14 @@ This package is written following __Node.js 4.0__ specifications always taking care about backward

### Licence
## Licence
[MIT Licence](https://github.com/iccicci/rotating-file-stream/blob/master/LICENSE)
### Bugs
## Bugs
Do not hesitate to report any bug or inconsistency [@github](https://github.com/iccicci/rotating-file-stream/issues).
### ChangeLog
## ChangeLog
* 2017-03-22 - v1.2.1
* fixed removed event
* 2017-03-20 - v1.2.0

@@ -352,0 +354,0 @@ * __maxFiles__ and __maxSize__ options added

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