rotating-file-stream
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -0,1 +1,4 @@ | ||
- 2020-07-07 - v2.1.3 | ||
- Fixed a bug causing EEXIST opening two files in same not existing directory in a rapid sequence (thanks to [jameslahm](https://github.com/jameslahm)) | ||
- devDependencies update | ||
- 2020-07-04 - v2.1.2 | ||
@@ -2,0 +5,0 @@ - Applied a change to use on mounts with the noexec option (thanks to [jvassev](https://github.com/jvassev)) |
@@ -143,2 +143,4 @@ "use strict"; | ||
return this.makePath(dir, (error) => (error ? callback(error) : this.makePath(name, callback))); | ||
if (error.code === "EEXIST") | ||
return callback(); | ||
return callback(error); | ||
@@ -145,0 +147,0 @@ } |
{ | ||
"name": "rotating-file-stream", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Opens a stream.Writable to a file rotated by interval and/or size. A logrotate alternative.", | ||
@@ -8,3 +8,3 @@ "scripts": { | ||
"clean": "node -r ts-node/register utils.ts clean", | ||
"coverage": "tsc && TZ=\"Europe/Rome\" nyc -r lcov -r text -r text-summary -r html mocha -r ts-node/register test/*ts", | ||
"coverage": "npm run clean && TZ=\"Europe/Rome\" nyc -r lcov -r text -r text-summary -r html mocha -r ts-node/register test/*ts", | ||
"eslint": "eslint index.ts utils.ts test/*ts", | ||
@@ -29,8 +29,9 @@ "ignore": "node -r ts-node/register utils.ts ignore", | ||
"allevo", | ||
"kbirger", | ||
"jvassev", | ||
"wangao", | ||
"rakshith-ravi", | ||
"kbirger", | ||
"Jorge Silva <jorgemsrs@gmail.com>", | ||
"Jan Christoph Bernack <jc.bernack@gmail.com>", | ||
"cchare (https://github.com/cchare)", | ||
"jvassev" | ||
"cchare (https://github.com/cchare)" | ||
], | ||
@@ -45,5 +46,5 @@ "license": "MIT", | ||
"@types/mocha": "7.0.2", | ||
"@types/node": "14.0.14", | ||
"@typescript-eslint/eslint-plugin": "3.5.0", | ||
"@typescript-eslint/parser": "3.5.0", | ||
"@types/node": "14.0.18", | ||
"@typescript-eslint/eslint-plugin": "3.6.0", | ||
"@typescript-eslint/parser": "3.6.0", | ||
"eslint": "7.4.0", | ||
@@ -50,0 +51,0 @@ "mocha": "8.0.1", |
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
60375
816