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 3.2.3 to 3.2.4

8

dist/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createStream = exports.RotatingFileStream = exports.RotatingFileStreamError = void 0;
exports.RotatingFileStream = exports.RotatingFileStreamError = void 0;
exports.createStream = createStream;
const child_process_1 = require("child_process");

@@ -11,2 +12,4 @@ const zlib_1 = require("zlib");

const util_1 = require("util");
// Do not remove: https://github.com/iccicci/rotating-file-stream/issues/106
const timers_1 = require("timers");
async function exists(filename) {

@@ -294,3 +297,3 @@ return new Promise(resolve => (0, fs_1.access)(filename, fs_1.constants.F_OK, error => resolve(!error)));

else {
this.timeout = setTimeout(set, time > this.maxTimeout ? this.maxTimeout : time);
this.timeout = (0, timers_1.setTimeout)(set, time > this.maxTimeout ? this.maxTimeout : time);
this.timeout.unref();

@@ -589,2 +592,1 @@ }

}
exports.createStream = createStream;

@@ -8,2 +8,4 @@ import { exec } from "child_process";

import { TextDecoder } from "util";
// Do not remove: https://github.com/iccicci/rotating-file-stream/issues/106
import { setTimeout } from "timers";
async function exists(filename) {

@@ -10,0 +12,0 @@ return new Promise(resolve => access(filename, constants.F_OK, error => resolve(!error)));

@@ -1,3 +0,1 @@

/// <reference types="node" />
/// <reference types="node" />
import { Readable, Writable } from "stream";

@@ -4,0 +2,0 @@ export declare class RotatingFileStreamError extends Error {

{
"name": "rotating-file-stream",
"version": "3.2.3",
"version": "3.2.4",
"description": "Opens a stream.Writable to a file rotated by interval and/or size. A logrotate alternative.",

@@ -52,4 +52,4 @@ "scripts": {

"devDependencies": {
"@types/jest": "29.5.12",
"@types/node": "20.14.2",
"@types/jest": "29.5.13",
"@types/node": "22.5.4",
"@typescript-eslint/eslint-plugin": "6.16.0",

@@ -61,6 +61,6 @@ "@typescript-eslint/parser": "6.16.0",

"jest-environment-node-single-context": "29.4.0",
"prettier": "3.3.1",
"ts-jest": "29.1.4",
"tsx": "4.15.1",
"typescript": "5.4.5"
"prettier": "3.3.3",
"ts-jest": "29.2.5",
"tsx": "4.19.1",
"typescript": "5.6.2"
},

@@ -67,0 +67,0 @@ "prettier": {

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