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

@types/node

Package Overview
Dependencies
Maintainers
1
Versions
1959
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 18.18.7 to 18.18.13

4

node v18.18/assert.d.ts

@@ -34,3 +34,3 @@ /**

/** If provided, the generated stack trace omits frames before this function. */
// tslint:disable-next-line:ban-types
// eslint-disable-next-line @typescript-eslint/ban-types
stackStartFn?: Function | undefined;

@@ -221,3 +221,3 @@ });

operator?: string,
// tslint:disable-next-line:ban-types
// eslint-disable-next-line @typescript-eslint/ban-types
stackStartFn?: Function,

@@ -224,0 +224,0 @@ ): never;

@@ -253,3 +253,3 @@ /**

*/
table(tabularData: any, properties?: ReadonlyArray<string>): void;
table(tabularData: any, properties?: readonly string[]): void;
/**

@@ -256,0 +256,0 @@ * Starts a timer that can be used to compute the duration of an operation. Timers

@@ -345,3 +345,3 @@ /**

send(
msg: string | Uint8Array | ReadonlyArray<any>,
msg: string | Uint8Array | readonly any[],
port?: number,

@@ -352,3 +352,3 @@ address?: string,

send(
msg: string | Uint8Array | ReadonlyArray<any>,
msg: string | Uint8Array | readonly any[],
port?: number,

@@ -358,3 +358,3 @@ callback?: (error: Error | null, bytes: number) => void,

send(
msg: string | Uint8Array | ReadonlyArray<any>,
msg: string | Uint8Array | readonly any[],
callback?: (error: Error | null, bytes: number) => void,

@@ -361,0 +361,0 @@ ): void;

@@ -664,3 +664,3 @@ /**

*/
export function setServers(servers: ReadonlyArray<string>): void;
export function setServers(servers: readonly string[]): void;
/**

@@ -667,0 +667,0 @@ * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),

@@ -311,2 +311,10 @@ /**

/**
* Get the default value for `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be:
*
* * `ipv4first`: for `verbatim` defaulting to `false`.
* * `verbatim`: for `verbatim` defaulting to `true`.
* @since v18.17.0
*/
function getDefaultResultOrder(): "ipv4first" | "verbatim";
/**
* Sets the IP address and port of servers to be used when performing DNS

@@ -337,3 +345,3 @@ * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted

*/
function setServers(servers: ReadonlyArray<string>): void;
function setServers(servers: readonly string[]): void;
/**

@@ -340,0 +348,0 @@ * Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be:

@@ -445,3 +445,3 @@ /**

*/
writev(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
writev(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<WriteVResult>;
/**

@@ -453,3 +453,3 @@ * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s

*/
readv(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
readv(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<ReadVResult>;
/**

@@ -456,0 +456,0 @@ * Closes the file handle after waiting for any pending operation on the handle to

@@ -95,2 +95,8 @@ /**

/**
* Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately.
* If the socket is still writable it implicitly calls `socket.end()`.
* @since v0.3.4
*/
destroySoon(): void;
/**
* Sends data on the socket. The second parameter specifies the encoding in the

@@ -97,0 +103,0 @@ * case of a string. It defaults to UTF8 encoding.

{
"name": "@types/node",
"version": "18.18.7",
"version": "18.18.13",
"description": "TypeScript definitions for node",

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

},
"typesPublisherContentHash": "70c4d21408627479f5a10adcd252e29200f4d46bc4680ea9056fdb9ea9e9f146",
"typesPublisherContentHash": "233d48af42c5a6a08c93c83e8dea73b8f8ed3a67b8d59d4d9af7d12e0e6c40de",
"typeScriptVersion": "4.5",
"nonNpm": true
}

@@ -448,3 +448,3 @@ /**

| {
entryTypes: ReadonlyArray<EntryType>;
entryTypes: readonly EntryType[];
buffered?: boolean | undefined;

@@ -451,0 +451,0 @@ }

@@ -104,3 +104,3 @@ /**

*/
encode(codePoints: ReadonlyArray<number>): string;
encode(codePoints: readonly number[]): string;
}

@@ -107,0 +107,0 @@ /**

@@ -28,5 +28,5 @@ /**

| boolean
| ReadonlyArray<string>
| ReadonlyArray<number>
| ReadonlyArray<boolean>
| readonly string[]
| readonly number[]
| readonly boolean[]
| null

@@ -33,0 +33,0 @@ >

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

### Additional Details
* Last updated: Wed, 25 Oct 2023 17:45:39 GMT
* Last updated: Thu, 23 Nov 2023 21:35:40 GMT
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)

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

@@ -92,3 +92,3 @@ /**

// util.promisify no rest args compability
// tslint:disable-next-line void-return
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout;

@@ -105,3 +105,3 @@ namespace setTimeout {

// util.promisify no rest args compability
// tslint:disable-next-line void-return
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout;

@@ -117,3 +117,3 @@ namespace setInterval {

// util.promisify no rest args compability
// tslint:disable-next-line void-return
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
function setImmediate(callback: (args: void) => void): NodeJS.Immediate;

@@ -120,0 +120,0 @@ namespace setImmediate {

@@ -1187,3 +1187,3 @@ /**

*/
const rootCertificates: ReadonlyArray<string>;
const rootCertificates: readonly string[];
}

@@ -1190,0 +1190,0 @@ declare module "node:tls" {

@@ -34,3 +34,3 @@ /**

/** If provided, the generated stack trace omits frames before this function. */
// tslint:disable-next-line:ban-types
// eslint-disable-next-line @typescript-eslint/ban-types
stackStartFn?: Function | undefined;

@@ -221,3 +221,3 @@ });

operator?: string,
// tslint:disable-next-line:ban-types
// eslint-disable-next-line @typescript-eslint/ban-types
stackStartFn?: Function,

@@ -224,0 +224,0 @@ ): never;

@@ -253,3 +253,3 @@ /**

*/
table(tabularData: any, properties?: ReadonlyArray<string>): void;
table(tabularData: any, properties?: readonly string[]): void;
/**

@@ -256,0 +256,0 @@ * Starts a timer that can be used to compute the duration of an operation. Timers

@@ -345,3 +345,3 @@ /**

send(
msg: string | Uint8Array | ReadonlyArray<any>,
msg: string | Uint8Array | readonly any[],
port?: number,

@@ -352,3 +352,3 @@ address?: string,

send(
msg: string | Uint8Array | ReadonlyArray<any>,
msg: string | Uint8Array | readonly any[],
port?: number,

@@ -358,3 +358,3 @@ callback?: (error: Error | null, bytes: number) => void,

send(
msg: string | Uint8Array | ReadonlyArray<any>,
msg: string | Uint8Array | readonly any[],
callback?: (error: Error | null, bytes: number) => void,

@@ -361,0 +361,0 @@ ): void;

@@ -664,3 +664,3 @@ /**

*/
export function setServers(servers: ReadonlyArray<string>): void;
export function setServers(servers: readonly string[]): void;
/**

@@ -667,0 +667,0 @@ * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),

@@ -311,2 +311,10 @@ /**

/**
* Get the default value for `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be:
*
* * `ipv4first`: for `verbatim` defaulting to `false`.
* * `verbatim`: for `verbatim` defaulting to `true`.
* @since v18.17.0
*/
function getDefaultResultOrder(): "ipv4first" | "verbatim";
/**
* Sets the IP address and port of servers to be used when performing DNS

@@ -337,3 +345,3 @@ * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted

*/
function setServers(servers: ReadonlyArray<string>): void;
function setServers(servers: readonly string[]): void;
/**

@@ -340,0 +348,0 @@ * Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be:

@@ -445,3 +445,3 @@ /**

*/
writev(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
writev(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<WriteVResult>;
/**

@@ -453,3 +453,3 @@ * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s

*/
readv(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
readv(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<ReadVResult>;
/**

@@ -456,0 +456,0 @@ * Closes the file handle after waiting for any pending operation on the handle to

@@ -95,2 +95,8 @@ /**

/**
* Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately.
* If the socket is still writable it implicitly calls `socket.end()`.
* @since v0.3.4
*/
destroySoon(): void;
/**
* Sends data on the socket. The second parameter specifies the encoding in the

@@ -97,0 +103,0 @@ * case of a string. It defaults to UTF8 encoding.

@@ -448,3 +448,3 @@ /**

| {
entryTypes: ReadonlyArray<EntryType>;
entryTypes: readonly EntryType[];
buffered?: boolean | undefined;

@@ -451,0 +451,0 @@ }

@@ -104,3 +104,3 @@ /**

*/
encode(codePoints: ReadonlyArray<number>): string;
encode(codePoints: readonly number[]): string;
}

@@ -107,0 +107,0 @@ /**

@@ -28,5 +28,5 @@ /**

| boolean
| ReadonlyArray<string>
| ReadonlyArray<number>
| ReadonlyArray<boolean>
| readonly string[]
| readonly number[]
| readonly boolean[]
| null

@@ -33,0 +33,0 @@ >

@@ -92,3 +92,3 @@ /**

// util.promisify no rest args compability
// tslint:disable-next-line void-return
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout;

@@ -105,3 +105,3 @@ namespace setTimeout {

// util.promisify no rest args compability
// tslint:disable-next-line void-return
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout;

@@ -117,3 +117,3 @@ namespace setInterval {

// util.promisify no rest args compability
// tslint:disable-next-line void-return
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
function setImmediate(callback: (args: void) => void): NodeJS.Immediate;

@@ -120,0 +120,0 @@ namespace setImmediate {

@@ -1187,3 +1187,3 @@ /**

*/
const rootCertificates: ReadonlyArray<string>;
const rootCertificates: readonly string[];
}

@@ -1190,0 +1190,0 @@ declare module "node:tls" {

@@ -777,3 +777,3 @@ /**

| string
| Record<string, string | ReadonlyArray<string>>
| Record<string, string | readonly string[]>
| Iterable<[string, string]>

@@ -780,0 +780,0 @@ | ReadonlyArray<[string, string]>,

@@ -492,3 +492,3 @@ /**

code: string,
params?: ReadonlyArray<string>,
params?: readonly string[],
options?: CompileFunctionOptions,

@@ -495,0 +495,0 @@ ): Function & {

@@ -136,3 +136,3 @@ /**

*/
start(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
start(instance: object): number; // TODO: avoid DOM dependency until WASM moved to own lib.
/**

@@ -139,0 +139,0 @@ * Attempt to initialize `instance` as a WASI reactor by invoking its`_initialize()` export, if it is present. If `instance` contains a `_start()`export, then an exception is thrown.

@@ -176,3 +176,3 @@ /**

*/
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
postMessage(value: any, transferList?: readonly TransferListItem[]): void;
/**

@@ -408,3 +408,3 @@ * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default

*/
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
postMessage(value: any, transferList?: readonly TransferListItem[]): void;
/**

@@ -411,0 +411,0 @@ * Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default

@@ -777,3 +777,3 @@ /**

| string
| Record<string, string | ReadonlyArray<string>>
| Record<string, string | readonly string[]>
| Iterable<[string, string]>

@@ -780,0 +780,0 @@ | ReadonlyArray<[string, string]>,

@@ -492,3 +492,3 @@ /**

code: string,
params?: ReadonlyArray<string>,
params?: readonly string[],
options?: CompileFunctionOptions,

@@ -495,0 +495,0 @@ ): Function & {

@@ -136,3 +136,3 @@ /**

*/
start(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
start(instance: object): number; // TODO: avoid DOM dependency until WASM moved to own lib.
/**

@@ -139,0 +139,0 @@ * Attempt to initialize `instance` as a WASI reactor by invoking its`_initialize()` export, if it is present. If `instance` contains a `_start()`export, then an exception is thrown.

@@ -176,3 +176,3 @@ /**

*/
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
postMessage(value: any, transferList?: readonly TransferListItem[]): void;
/**

@@ -408,3 +408,3 @@ * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default

*/
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
postMessage(value: any, transferList?: readonly TransferListItem[]): void;
/**

@@ -411,0 +411,0 @@ * Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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