rotating-file-stream
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,4 @@ | ||
- 2019-12-24 - v2.0.1 | ||
- Fixed a [bug about setTimeout on some node environments](https://github.com/iccicci/rotating-file-stream/pull/46) (thanks to [Rastopyr](https://github.com/Rastopyr)) | ||
- devDependencies update | ||
- 2019-11-24 - v2.0.0 | ||
@@ -2,0 +5,0 @@ - complete refactoring with TypeScript |
@@ -9,2 +9,3 @@ "use strict"; | ||
const util_1 = require("util"); | ||
const timers_1 = require("timers"); | ||
class RotatingFileStreamError extends Error { | ||
@@ -347,3 +348,3 @@ constructor() { | ||
const time = this.next - this.now().getTime(); | ||
this.timer = time > this.maxTimeout ? setTimeout(set, this.maxTimeout) : setTimeout(() => this.rotate(error => (this.error = error)), time); | ||
this.timer = time > this.maxTimeout ? timers_1.setTimeout(set, this.maxTimeout) : timers_1.setTimeout(() => this.rotate(error => (this.error = error)), time); | ||
this.timer.unref(); | ||
@@ -350,0 +351,0 @@ }; |
{ | ||
"name": "rotating-file-stream", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Opens a stream.Writable to a file rotated by interval and/or size. A logrotate alternative.", | ||
@@ -43,12 +43,11 @@ "scripts": { | ||
"@types/mocha": "5.2.7", | ||
"@types/node": "12.12.12", | ||
"@typescript-eslint/eslint-plugin": "2.8.0", | ||
"@typescript-eslint/parser": "2.8.0", | ||
"eslint": "6.7.0", | ||
"@types/node": "13.1.0", | ||
"@typescript-eslint/eslint-plugin": "2.13.0", | ||
"@typescript-eslint/parser": "2.13.0", | ||
"eslint": "6.8.0", | ||
"mocha": "6.2.2", | ||
"nyc": "14.1.1", | ||
"prettier": "1.19.1", | ||
"ts-node": "8.5.2", | ||
"typescript": "3.7.2" | ||
"nyc": "15.0.0", | ||
"ts-node": "8.5.4", | ||
"typescript": "3.7.4" | ||
} | ||
} |
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
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
58312
9
7
811
1