Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rotating-file-stream

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rotating-file-stream - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

nothing.js

3

CHANGELOG.md

@@ -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

3

index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc