rotating-file-stream
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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 |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
113471
24
3188
400
21
7