Socket
Socket
Sign inDemoInstall

@types/node

Package Overview
Dependencies
Maintainers
0
Versions
1916
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/node - npm Package Compare versions

Comparing version 20.14.8 to 20.14.9

38

node/events.d.ts

@@ -83,2 +83,4 @@ /**

signal?: AbortSignal | undefined;
}
interface StaticEventEmitterIteratorOptions extends StaticEventEmitterOptions {
/**

@@ -89,11 +91,10 @@ * Names of events that will end the iteration.

/**
* The high watermark. The emitter is paused every time the size
* of events being buffered is higher than it. Supported only
* on emitters implementing `pause()` and `resume()` methods.
* @default `Number.MAX_SAFE_INTEGER`
* The high watermark. The emitter is paused every time the size of events being buffered is higher than it.
* Supported only on emitters implementing `pause()` and `resume()` methods.
* @default Number.MAX_SAFE_INTEGER
*/
highWaterMark?: number | undefined;
/**
* The low watermark. The emitter is resumed every time the size of events being buffered
* is lower than it. Supported only on emitters implementing `pause()` and `resume()` methods.
* The low watermark. The emitter is resumed every time the size of events being buffered is lower than it.
* Supported only on emitters implementing `pause()` and `resume()` methods.
* @default 1

@@ -103,18 +104,2 @@ */

}
interface StaticEventEmitterIteratorOptions extends StaticEventEmitterOptions {
/**
* Names of events that will end the iteration.
*/
close?: string[];
/**
* The emitter is paused every time the size of events being buffered is higher than it. Supported only on emitters implementing pause() and resume() methods.
* @default Number.MAX_SAFE_INTEGER
*/
highWaterMark?: number;
/**
* The emitter is resumed every time the size of events being buffered is lower than it. Supported only on emitters implementing pause() and resume() methods.
* @default 1
*/
lowWaterMark?: number;
}
interface EventEmitter<T extends EventMap<T> = DefaultEventMap> extends NodeJS.EventEmitter<T> {}

@@ -238,3 +223,3 @@ type EventMap<T> = Record<keyof T, any[]> | DefaultEventMap;

eventName: string | symbol,
options?: Pick<StaticEventEmitterOptions, "signal">,
options?: StaticEventEmitterOptions,
): Promise<any[]>;

@@ -320,3 +305,2 @@ static once(emitter: EventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise<any[]>;

* @since v13.6.0, v12.16.0
* @param eventName The name of the event being listened for
* @return An `AsyncIterator` that iterates `eventName` events emitted by the `emitter`

@@ -327,4 +311,4 @@ */

eventName: string | symbol,
options?: StaticEventEmitterOptions,
): AsyncIterableIterator<any>;
options?: StaticEventEmitterIteratorOptions,
): AsyncIterableIterator<any[]>;
static on(

@@ -334,3 +318,3 @@ emitter: EventTarget,

options?: StaticEventEmitterIteratorOptions,
): AsyncIterableIterator<any>;
): AsyncIterableIterator<any[]>;
/**

@@ -337,0 +321,0 @@ * A class method that returns the number of listeners for the given `eventName` registered on the given `emitter`.

{
"name": "@types/node",
"version": "20.14.8",
"version": "20.14.9",
"description": "TypeScript definitions for node",

@@ -215,4 +215,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",

},
"typesPublisherContentHash": "7f1c7cbbd4b01202220b325496b6a96822975f892d3eb44558ea7ffcf74ae32c",
"typeScriptVersion": "4.7"
"typesPublisherContentHash": "e4d1051361599ca04bc4b8596571d29434f7b5618cadeb651672ab388dae60aa",
"typeScriptVersion": "4.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sat, 22 Jun 2024 07:35:32 GMT
* Last updated: Tue, 25 Jun 2024 22:07:01 GMT
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)

@@ -14,0 +14,0 @@

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