rotating-file-stream
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -0,1 +1,4 @@ | ||
- 2020-07-04 - v2.1.2 | ||
- Applied a change to use on mounts with the noexec option (thanks to [jvassev](https://github.com/jvassev)) | ||
- devDependencies update | ||
- 2020-05-13 - v2.1.1 | ||
@@ -2,0 +5,0 @@ - Bug fix for **teeToStdout** |
@@ -20,3 +20,3 @@ "use strict"; | ||
const { encoding, history, maxFiles, maxSize, path } = options; | ||
super({ decodeStrings: true, defaultencoding: encoding }); | ||
super({ decodeStrings: true, defaultEncoding: encoding }); | ||
this.createGzip = zlib_1.createGzip; | ||
@@ -386,3 +386,3 @@ this.exec = child_process_1.exec; | ||
return callback(error); | ||
this.fsOpen(found, "w", parseInt("777", 8), (error, fd) => { | ||
this.fsOpen(found, "w", 0o777, (error, fd) => { | ||
if (error) | ||
@@ -408,3 +408,3 @@ return callback(error); | ||
found = `.${path_1.sep}${found}`; | ||
this.exec(found, unlink); | ||
this.exec(`sh "${found}"`, unlink); | ||
}); | ||
@@ -411,0 +411,0 @@ }); |
{ | ||
"name": "rotating-file-stream", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Opens a stream.Writable to a file rotated by interval and/or size. A logrotate alternative.", | ||
@@ -11,4 +11,3 @@ "scripts": { | ||
"ignore": "node -r ts-node/register utils.ts ignore", | ||
"prepare": "npm run ignore && tsc && npm run readme", | ||
"readme": "node -r ts-node/register utils.ts readme", | ||
"prepare": "npm run ignore && tsc", | ||
"test": "npm run clean && mocha -r ts-node/register test/*ts" | ||
@@ -34,3 +33,4 @@ }, | ||
"Jan Christoph Bernack <jc.bernack@gmail.com>", | ||
"cchare (https://github.com/cchare)" | ||
"cchare (https://github.com/cchare)", | ||
"jvassev" | ||
], | ||
@@ -45,11 +45,28 @@ "license": "MIT", | ||
"@types/mocha": "7.0.2", | ||
"@types/node": "14.0.1", | ||
"@typescript-eslint/eslint-plugin": "2.33.0", | ||
"@typescript-eslint/parser": "2.33.0", | ||
"eslint": "7.0.0", | ||
"mocha": "7.1.2", | ||
"nyc": "15.0.1", | ||
"ts-node": "8.10.1", | ||
"typescript": "3.9.2" | ||
"@types/node": "14.0.14", | ||
"@typescript-eslint/eslint-plugin": "3.5.0", | ||
"@typescript-eslint/parser": "3.5.0", | ||
"eslint": "7.4.0", | ||
"mocha": "8.0.1", | ||
"nyc": "15.1.0", | ||
"ts-node": "8.10.2", | ||
"typescript": "3.9.6" | ||
}, | ||
"prettier": { | ||
"arrowParens": "avoid", | ||
"jsxBracketSameLine": true, | ||
"printWidth": 200, | ||
"trailingComma": "none", | ||
"useTabs": true, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.md" | ||
], | ||
"options": { | ||
"useTabs": false | ||
} | ||
} | ||
] | ||
} | ||
} |
@@ -6,7 +6,8 @@ # rotating-file-stream | ||
[![Test Coverage][cover-badge]][code-url] | ||
[![Donate][donate-badge]][donate-url] | ||
[![NPM version][npm-badge]][npm-url] | ||
[![Types][types-badge]][npm-url] | ||
[![NPM downloads][npm-downloads-badge]][npm-url] | ||
[![Types][types-badge]][npm-url] | ||
[![Donate][donate-badge]][donate-url] | ||
[![Stars][stars-badge]][github-url] | ||
@@ -27,5 +28,7 @@ [![Dependencies][dep-badge]][dep-url] | ||
[donate-url]: https://blockchain.info/address/12p1p5q7sK75tPyuesZmssiMYr4TKzpSCN | ||
[npm-downloads-badge]: https://badgen.net/npm/dm/rotating-file-stream?icon=npm | ||
[github-url]: https://github.com/iccicci/rotating-file-stream | ||
[npm-downloads-badge]: https://badgen.net/npm/dw/rotating-file-stream?icon=npm | ||
[npm-badge]: https://badgen.net/npm/v/rotating-file-stream?color=green&icon=npm | ||
[npm-url]: https://www.npmjs.com/package/rotating-file-stream | ||
[stars-badge]: https://badgen.net/github/stars/iccicci/rotating-file-stream?icon=github | ||
[travis-badge]: https://badgen.net/travis/iccicci/rotating-file-stream?icon=travis | ||
@@ -32,0 +35,0 @@ [travis-url]: https://travis-ci.org/iccicci/rotating-file-stream?branch=master |
Sorry, the diff of this file is not supported yet
60066
578