rotating-file-stream
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -0,1 +1,5 @@ | ||
- 2019-04-22 - v1.4.1 | ||
- From [istanbul](https://www.npmjs.com/package/istanbul) to [nyc](https://www.npmjs.com/package/nyc) for tests coverage | ||
- Several typos fixed in [README.md](https://github.com/iccicci/rotating-file-stream/blob/master/README.md); thanks to [dhurlburtusa](https://github.com/dhurlburtusa) | ||
- devDependencies update | ||
- 2019-01-09 - v1.4.0 | ||
@@ -2,0 +6,0 @@ - Fixed the [TimeoutOverflowWarning bug](https://github.com/iccicci/rotating-file-stream/issues/34) |
{ | ||
"name": "rotating-file-stream", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Opens a stream.Writable to a file rotated by interval and/or size. A logrotate alternative.", | ||
"scripts": { | ||
"all": "npm run npmignore && npm run eslint && npm run coverage && npm run ts", | ||
"coverage": "TZ=\"Europe/Rome\" ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --recursive test", | ||
"coverage": "TZ=\"Europe/Rome\" ./node_modules/.bin/nyc -r lcov -r text -r text-summary npm test", | ||
"eslint": "./node_modules/.bin/eslint *.js test/*js", | ||
"npmignore": "echo '.codeclimate.yml\\n.eslintrc\\n.gitignore\\n.travis.yml\\nCHANGELOG.md\\ntest' > .npmignore ; cat .gitignore >> .npmignore", | ||
"test": "bash -c 'if [[ `node --version` =~ ^v0.1 ]] ; then npm install mocha@3.5.3 ; fi' ; TZ=\"Europe/Rome\" ./node_modules/.bin/_mocha test", | ||
"test": "TZ=\"Europe/Rome\" ./node_modules/.bin/_mocha test", | ||
"ts": "node_modules/.bin/tsc index.d.ts --lib es6" | ||
@@ -21,3 +21,3 @@ }, | ||
"engines": { | ||
"node": ">=0.11" | ||
"node": ">=6.0" | ||
}, | ||
@@ -38,9 +38,8 @@ "author": "Daniele Ricci <daniele.icc@gmail.com> (https://github.com/iccicci)", | ||
"devDependencies": { | ||
"eslint": "5.12.0", | ||
"istanbul": "0.4.5", | ||
"mocha": "5.2.0", | ||
"mocha-istanbul": "0.3.0", | ||
"typescript": "3.2.2", | ||
"@types/node": "10.12.18" | ||
"eslint": "5.16.0", | ||
"mocha": "6.1.4", | ||
"nyc": "14.0.0", | ||
"typescript": "3.4.4", | ||
"@types/node": "11.13.6" | ||
} | ||
} |
@@ -265,3 +265,3 @@ # rotating-file-stream | ||
When program stops in a rotation period then restarts in a new rotation period, logs of differente rotation period will | ||
When program stops in a rotation period then restarts in a new rotation period, logs of different rotation period will | ||
go in the next rotated file; in a few words: a rotation job is lost. If this option is set to **true** an initial check | ||
@@ -286,4 +286,4 @@ is performed against the _not-rotated file_ timestamp and, if it falls in a previous rotation period, an initial | ||
called with a **null** _time_ parameter and new files are immediately generated with their rotated name. | ||
**rotation** _envet_ now has a _filename_ paramere with the newly created file name. | ||
Usefull to send logs to logstash through filebeat. | ||
**rotation** _event_ now has a _filename_ parameter with the newly created file name. | ||
Useful to send logs to logstash through filebeat. | ||
@@ -298,3 +298,3 @@ **Note:** | ||
As specified above, if rotation by interval is enabled, the parameter _time_ passed to _rotatle name generator_ is the | ||
As specified above, if rotation by interval is enabled, the parameter _time_ passed to _rotated file name generator_ is the | ||
start time of rotation period. Setting this option to **true**, parameter _time_ passed is time when rotation job | ||
@@ -310,3 +310,3 @@ started. | ||
size of rotated files should not exceed a given limit, the package needs a file where to store this information. This | ||
option specifies the name of that file. This option takes effects only if at least one of **maxFiles** or **maxSize** | ||
option specifies the name of that file. This option takes effect only if at least one of **maxFiles** or **maxSize** | ||
is used. If **null**, the _not rotated filename_ with the '.txt' suffix is used. | ||
@@ -393,4 +393,4 @@ | ||
given limits are respected. This means that **while rotation job is running both the limits could be not respected**, | ||
the same can happend (if **maxFiles** or **maxSize** are changed) till the end of first _rotation job_. | ||
The first check performed is the one against **maxFiles**, in case some files are removed, than the check against | ||
the same can happen (if **maxFiles** or **maxSize** are changed) till the end of first _rotation job_. | ||
The first check performed is the one against **maxFiles**, in case some files are removed, then the check against | ||
**maxSize** is performed, finally other files can be removed. When **maxFiles** or **maxSize** are enabled for first | ||
@@ -404,8 +404,5 @@ time, an _history file_ can be created with one _rotated filename_ (as returned by _filename generator function_) at | ||
This package is written following **Node.js 4.0** specifications always taking care about backward | ||
compatibility. The package is tested under | ||
[several Node.js versions](https://travis-ci.org/iccicci/rotating-file-stream). | ||
The package is tested under [all Node.js versions](https://travis-ci.org/iccicci/rotating-file-stream) | ||
currently supported accordingly to [Node.js Release](https://github.com/nodejs/Release). | ||
**Required: Node.js 0.11** | ||
## TypeScript | ||
@@ -412,0 +409,0 @@ |
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
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
43465
5
11
426