cdk-ecr-deployment 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +0 -1
- package/.jsii +2 -2
- package/changelog.md +2 -4
- package/lib/index.js +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +93 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +42 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +31 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +12 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +13 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +31 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +93 -3
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +42 -11
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +31 -3
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +13 -0
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +31 -1
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +93 -3
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +42 -11
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +31 -3
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +13 -0
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +31 -1
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1 -1
- package/package.json +9 -6
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
|
@@ -2233,6 +2233,23 @@ declare module 'fs' {
|
|
|
2233
2233
|
*/
|
|
2234
2234
|
export function writeSync(fd: number, string: string, position?: number | null, encoding?: BufferEncoding | null): number;
|
|
2235
2235
|
export type ReadPosition = number | bigint;
|
|
2236
|
+
export interface ReadSyncOptions {
|
|
2237
|
+
/**
|
|
2238
|
+
* @default 0
|
|
2239
|
+
*/
|
|
2240
|
+
offset?: number | undefined;
|
|
2241
|
+
/**
|
|
2242
|
+
* @default `length of buffer`
|
|
2243
|
+
*/
|
|
2244
|
+
length?: number | undefined;
|
|
2245
|
+
/**
|
|
2246
|
+
* @default null
|
|
2247
|
+
*/
|
|
2248
|
+
position?: ReadPosition | null | undefined;
|
|
2249
|
+
}
|
|
2250
|
+
export interface ReadAsyncOptions<TBuffer extends NodeJS.ArrayBufferView> extends ReadSyncOptions {
|
|
2251
|
+
buffer?: TBuffer;
|
|
2252
|
+
}
|
|
2236
2253
|
/**
|
|
2237
2254
|
* Read data from the file specified by `fd`.
|
|
2238
2255
|
*
|
|
@@ -2258,6 +2275,24 @@ declare module 'fs' {
|
|
|
2258
2275
|
position: ReadPosition | null,
|
|
2259
2276
|
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
|
|
2260
2277
|
): void;
|
|
2278
|
+
/**
|
|
2279
|
+
* Similar to the above `fs.read` function, this version takes an optional `options` object.
|
|
2280
|
+
* If not otherwise specified in an `options` object,
|
|
2281
|
+
* `buffer` defaults to `Buffer.alloc(16384)`,
|
|
2282
|
+
* `offset` defaults to `0`,
|
|
2283
|
+
* `length` defaults to `buffer.byteLength`, `- offset` as of Node 17.6.0
|
|
2284
|
+
* `position` defaults to `null`
|
|
2285
|
+
* @since v12.17.0, 13.11.0
|
|
2286
|
+
*/
|
|
2287
|
+
export function read<TBuffer extends NodeJS.ArrayBufferView>(
|
|
2288
|
+
fd: number,
|
|
2289
|
+
options: ReadAsyncOptions<TBuffer>,
|
|
2290
|
+
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
|
|
2291
|
+
): void;
|
|
2292
|
+
export function read(
|
|
2293
|
+
fd: number,
|
|
2294
|
+
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void
|
|
2295
|
+
): void;
|
|
2261
2296
|
export namespace read {
|
|
2262
2297
|
/**
|
|
2263
2298
|
* @param fd A file descriptor.
|
|
@@ -2276,20 +2311,19 @@ declare module 'fs' {
|
|
|
2276
2311
|
bytesRead: number;
|
|
2277
2312
|
buffer: TBuffer;
|
|
2278
2313
|
}>;
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
position?: ReadPosition | null | undefined;
|
|
2314
|
+
function __promisify__<TBuffer extends NodeJS.ArrayBufferView>(
|
|
2315
|
+
fd: number,
|
|
2316
|
+
options: ReadAsyncOptions<TBuffer>
|
|
2317
|
+
): Promise<{
|
|
2318
|
+
bytesRead: number;
|
|
2319
|
+
buffer: TBuffer;
|
|
2320
|
+
}>;
|
|
2321
|
+
function __promisify__(
|
|
2322
|
+
fd: number
|
|
2323
|
+
): Promise<{
|
|
2324
|
+
bytesRead: number;
|
|
2325
|
+
buffer: NodeJS.ArrayBufferView;
|
|
2326
|
+
}>;
|
|
2293
2327
|
}
|
|
2294
2328
|
/**
|
|
2295
2329
|
* Returns the number of `bytesRead`.
|
|
@@ -100,6 +100,16 @@ interface BigInt64Array extends RelativeIndexable<bigint> {}
|
|
|
100
100
|
interface BigUint64Array extends RelativeIndexable<bigint> {}
|
|
101
101
|
//#endregion ArrayLike.at() end
|
|
102
102
|
|
|
103
|
+
/**
|
|
104
|
+
* @since v17.0.0
|
|
105
|
+
*
|
|
106
|
+
* Creates a deep clone of an object.
|
|
107
|
+
*/
|
|
108
|
+
declare function structuredClone<T>(
|
|
109
|
+
value: T,
|
|
110
|
+
transfer?: { transfer: ReadonlyArray<import('worker_threads').TransferListItem> },
|
|
111
|
+
): T;
|
|
112
|
+
|
|
103
113
|
/*----------------------------------------------*
|
|
104
114
|
* *
|
|
105
115
|
* GLOBAL INTERFACES *
|
|
@@ -262,11 +272,11 @@ declare namespace NodeJS {
|
|
|
262
272
|
id: string;
|
|
263
273
|
filename: string;
|
|
264
274
|
loaded: boolean;
|
|
265
|
-
/** @deprecated since
|
|
275
|
+
/** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
|
|
266
276
|
parent: Module | null | undefined;
|
|
267
277
|
children: Module[];
|
|
268
278
|
/**
|
|
269
|
-
* @since
|
|
279
|
+
* @since v11.14.0
|
|
270
280
|
*
|
|
271
281
|
* The directory name of the module. This is usually the same as the path.dirname() of the module.id.
|
|
272
282
|
*/
|
|
@@ -580,6 +580,7 @@ declare module 'http2' {
|
|
|
580
580
|
parent?: number | undefined;
|
|
581
581
|
weight?: number | undefined;
|
|
582
582
|
waitForTrailers?: boolean | undefined;
|
|
583
|
+
signal?: AbortSignal | undefined;
|
|
583
584
|
}
|
|
584
585
|
export interface SessionState {
|
|
585
586
|
effectiveLocalWindowSize?: number | undefined;
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
// Nikita Galkin <https://github.com/galkin>
|
|
22
22
|
// Parambir Singh <https://github.com/parambirs>
|
|
23
23
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
24
|
-
// Seth Westphal <https://github.com/westy92>
|
|
25
24
|
// Simon Schick <https://github.com/SimonSchick>
|
|
26
25
|
// Thomas den Hollander <https://github.com/ThomasdenH>
|
|
27
26
|
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
@@ -41,6 +40,7 @@
|
|
|
41
40
|
// NodeJS Contributors <https://github.com/NodeJS>
|
|
42
41
|
// Linus Unnebäck <https://github.com/LinusU>
|
|
43
42
|
// wafuwafu13 <https://github.com/wafuwafu13>
|
|
43
|
+
// Matteo Collina <https://github.com/mcollina>
|
|
44
44
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -59,6 +59,7 @@ declare module 'net' {
|
|
|
59
59
|
path: string;
|
|
60
60
|
}
|
|
61
61
|
type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
|
|
62
|
+
type SocketReadyState = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed';
|
|
62
63
|
/**
|
|
63
64
|
* This class is an abstraction of a TCP socket or a streaming `IPC` endpoint
|
|
64
65
|
* (uses named pipes on Windows, and Unix domain sockets otherwise). It is also
|
|
@@ -262,6 +263,12 @@ declare module 'net' {
|
|
|
262
263
|
* @since v0.9.6
|
|
263
264
|
*/
|
|
264
265
|
readonly localPort?: number;
|
|
266
|
+
/**
|
|
267
|
+
* This property represents the state of the connection as a string.
|
|
268
|
+
* @see {https://nodejs.org/api/net.html#socketreadystate}
|
|
269
|
+
* @since v0.5.0
|
|
270
|
+
*/
|
|
271
|
+
readonly readyState: SocketReadyState;
|
|
265
272
|
/**
|
|
266
273
|
* The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if
|
|
267
274
|
* the socket is destroyed (for example, if the client disconnected).
|
|
@@ -278,6 +285,11 @@ declare module 'net' {
|
|
|
278
285
|
* @since v0.5.10
|
|
279
286
|
*/
|
|
280
287
|
readonly remotePort?: number | undefined;
|
|
288
|
+
/**
|
|
289
|
+
* The socket timeout in milliseconds as set by socket.setTimeout(). It is undefined if a timeout has not been set.
|
|
290
|
+
* @since v10.7.0
|
|
291
|
+
*/
|
|
292
|
+
readonly timeout?: number | undefined;
|
|
281
293
|
/**
|
|
282
294
|
* Half-closes the socket. i.e., it sends a FIN packet. It is possible the
|
|
283
295
|
* server will still send some data.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.35",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -110,11 +110,6 @@
|
|
|
110
110
|
"url": "https://github.com/eps1lon",
|
|
111
111
|
"githubUsername": "eps1lon"
|
|
112
112
|
},
|
|
113
|
-
{
|
|
114
|
-
"name": "Seth Westphal",
|
|
115
|
-
"url": "https://github.com/westy92",
|
|
116
|
-
"githubUsername": "westy92"
|
|
117
|
-
},
|
|
118
113
|
{
|
|
119
114
|
"name": "Simon Schick",
|
|
120
115
|
"url": "https://github.com/SimonSchick",
|
|
@@ -209,6 +204,11 @@
|
|
|
209
204
|
"name": "wafuwafu13",
|
|
210
205
|
"url": "https://github.com/wafuwafu13",
|
|
211
206
|
"githubUsername": "wafuwafu13"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "Matteo Collina",
|
|
210
|
+
"url": "https://github.com/mcollina",
|
|
211
|
+
"githubUsername": "mcollina"
|
|
212
212
|
}
|
|
213
213
|
],
|
|
214
214
|
"main": "",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
224
|
-
"typeScriptVersion": "3.
|
|
223
|
+
"typesPublisherContentHash": "6238ccaa7b50cbe1d37bc66eabdea21a4bfb4a7fd6bd780350e84241e2810a00",
|
|
224
|
+
"typeScriptVersion": "3.9"
|
|
225
225
|
}
|
|
@@ -1405,7 +1405,7 @@ declare module 'process' {
|
|
|
1405
1405
|
emit(event: 'unhandledRejection', reason: unknown, promise: Promise<unknown>): boolean;
|
|
1406
1406
|
emit(event: 'warning', warning: Error): boolean;
|
|
1407
1407
|
emit(event: 'message', message: unknown, sendHandle: unknown): this;
|
|
1408
|
-
emit(event: Signals, signal
|
|
1408
|
+
emit(event: Signals, signal?: Signals): boolean;
|
|
1409
1409
|
emit(event: 'multipleResolves', type: MultipleResolveType, promise: Promise<unknown>, value: unknown): this;
|
|
1410
1410
|
emit(event: 'worker', listener: WorkerListener): this;
|
|
1411
1411
|
on(event: 'beforeExit', listener: BeforeExitListener): this;
|
|
@@ -139,7 +139,8 @@ declare module 'stream/web' {
|
|
|
139
139
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
140
140
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
141
141
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
142
|
-
|
|
142
|
+
values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
|
|
143
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<R>;
|
|
143
144
|
}
|
|
144
145
|
const ReadableStream: {
|
|
145
146
|
prototype: ReadableStream;
|
|
@@ -1238,6 +1238,19 @@ declare module 'stream' {
|
|
|
1238
1238
|
ref(): void;
|
|
1239
1239
|
unref(): void;
|
|
1240
1240
|
}
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Returns whether the stream has encountered an error.
|
|
1244
|
+
* @since v17.3.0
|
|
1245
|
+
*/
|
|
1246
|
+
function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Returns whether the stream is readable.
|
|
1250
|
+
* @since v17.4.0
|
|
1251
|
+
*/
|
|
1252
|
+
function isReadable(stream: Readable | NodeJS.ReadableStream): boolean;
|
|
1253
|
+
|
|
1241
1254
|
const promises: typeof streamPromises;
|
|
1242
1255
|
const consumers: typeof streamConsumers;
|
|
1243
1256
|
}
|
|
@@ -69,7 +69,7 @@ declare module 'timers' {
|
|
|
69
69
|
namespace setTimeout {
|
|
70
70
|
const __promisify__: typeof setTimeoutPromise;
|
|
71
71
|
}
|
|
72
|
-
function clearTimeout(timeoutId: NodeJS.Timeout): void;
|
|
72
|
+
function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
|
|
73
73
|
function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timer;
|
|
74
74
|
// util.promisify no rest args compability
|
|
75
75
|
// tslint:disable-next-line void-return
|
|
@@ -77,7 +77,7 @@ declare module 'timers' {
|
|
|
77
77
|
namespace setInterval {
|
|
78
78
|
const __promisify__: typeof setIntervalPromise;
|
|
79
79
|
}
|
|
80
|
-
function clearInterval(intervalId: NodeJS.Timeout): void;
|
|
80
|
+
function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
|
|
81
81
|
function setImmediate<TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs): NodeJS.Immediate;
|
|
82
82
|
// util.promisify no rest args compability
|
|
83
83
|
// tslint:disable-next-line void-return
|
|
@@ -85,7 +85,7 @@ declare module 'timers' {
|
|
|
85
85
|
namespace setImmediate {
|
|
86
86
|
const __promisify__: typeof setImmediatePromise;
|
|
87
87
|
}
|
|
88
|
-
function clearImmediate(immediateId: NodeJS.Immediate): void;
|
|
88
|
+
function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
|
|
89
89
|
function queueMicrotask(callback: () => void): void;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -723,7 +723,7 @@ declare module 'tls' {
|
|
|
723
723
|
* object.passphrase is optional. Encrypted keys will be decrypted with
|
|
724
724
|
* object.passphrase if provided, or options.passphrase if it is not.
|
|
725
725
|
*/
|
|
726
|
-
key?: string | Buffer | Array<Buffer | KeyObject> | undefined;
|
|
726
|
+
key?: string | Buffer | Array<string | Buffer | KeyObject> | undefined;
|
|
727
727
|
/**
|
|
728
728
|
* Name of an OpenSSL engine to get private key from. Should be used
|
|
729
729
|
* together with privateKeyIdentifier.
|
|
@@ -778,7 +778,7 @@ declare module 'url' {
|
|
|
778
778
|
* @param fn Invoked for each name-value pair in the query
|
|
779
779
|
* @param thisArg To be used as `this` value for when `fn` is called
|
|
780
780
|
*/
|
|
781
|
-
forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams:
|
|
781
|
+
forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: TThis): void;
|
|
782
782
|
/**
|
|
783
783
|
* Returns the value of the first name-value pair whose name is `name`. If there
|
|
784
784
|
* are no such pairs, `null` is returned.
|
|
@@ -855,6 +855,36 @@ declare module 'url' {
|
|
|
855
855
|
values(): IterableIterator<string>;
|
|
856
856
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
857
857
|
}
|
|
858
|
+
|
|
859
|
+
import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
|
|
860
|
+
global {
|
|
861
|
+
interface URLSearchParams extends _URLSearchParams {}
|
|
862
|
+
interface URL extends _URL {}
|
|
863
|
+
interface Global {
|
|
864
|
+
URL: typeof _URL;
|
|
865
|
+
URLSearchParams: typeof _URLSearchParams;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* `URL` class is a global reference for `require('url').URL`
|
|
869
|
+
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
|
870
|
+
* @since v10.0.0
|
|
871
|
+
*/
|
|
872
|
+
var URL:
|
|
873
|
+
// For compatibility with "dom" and "webworker" URL declarations
|
|
874
|
+
typeof globalThis extends { onmessage: any, URL: infer URL }
|
|
875
|
+
? URL
|
|
876
|
+
: typeof _URL;
|
|
877
|
+
/**
|
|
878
|
+
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`
|
|
879
|
+
* https://nodejs.org/api/url.html#class-urlsearchparams
|
|
880
|
+
* @since v10.0.0
|
|
881
|
+
*/
|
|
882
|
+
var URLSearchParams:
|
|
883
|
+
// For compatibility with "dom" and "webworker" URLSearchParams declarations
|
|
884
|
+
typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
|
|
885
|
+
? URLSearchParams
|
|
886
|
+
: typeof _URLSearchParams;
|
|
887
|
+
}
|
|
858
888
|
}
|
|
859
889
|
declare module 'node:url' {
|
|
860
890
|
export * from 'url';
|
|
@@ -317,7 +317,7 @@ declare module 'util' {
|
|
|
317
317
|
* @return The representation of `object`.
|
|
318
318
|
*/
|
|
319
319
|
export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
|
|
320
|
-
export function inspect(object: any, options
|
|
320
|
+
export function inspect(object: any, options?: InspectOptions): string;
|
|
321
321
|
export namespace inspect {
|
|
322
322
|
let colors: NodeJS.Dict<[number, number]>;
|
|
323
323
|
let styles: {
|
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 19 May 2022 14:01:40 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
13
|
+
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), and [Matteo Collina](https://github.com/mcollina).
|
|
@@ -258,7 +258,7 @@ declare module 'async_hooks' {
|
|
|
258
258
|
* @param type The type of async event.
|
|
259
259
|
* @param triggerAsyncId The ID of the execution context that created
|
|
260
260
|
* this async event (default: `executionAsyncId()`), or an
|
|
261
|
-
* AsyncResourceOptions object (since
|
|
261
|
+
* AsyncResourceOptions object (since v9.3.0)
|
|
262
262
|
*/
|
|
263
263
|
constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions);
|
|
264
264
|
/**
|
|
@@ -390,7 +390,7 @@ declare module 'buffer' {
|
|
|
390
390
|
* @since v0.11.13
|
|
391
391
|
* @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details.
|
|
392
392
|
*/
|
|
393
|
-
compare(buf1: Uint8Array, buf2: Uint8Array):
|
|
393
|
+
compare(buf1: Uint8Array, buf2: Uint8Array): -1 | 0 | 1;
|
|
394
394
|
/**
|
|
395
395
|
* Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
|
|
396
396
|
*
|
|
@@ -443,7 +443,7 @@ declare module 'buffer' {
|
|
|
443
443
|
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
|
|
444
444
|
*
|
|
445
445
|
* The underlying memory for `Buffer` instances created in this way is _not_
|
|
446
|
-
* _initialized_. The contents of the newly created `Buffer` are unknown
|
|
446
|
+
* _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
|
|
447
447
|
*
|
|
448
448
|
* ```js
|
|
449
449
|
* import { Buffer } from 'buffer';
|
|
@@ -704,7 +704,7 @@ declare module 'buffer' {
|
|
|
704
704
|
* @param [sourceStart=0] The offset within `buf` at which to begin comparison.
|
|
705
705
|
* @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive).
|
|
706
706
|
*/
|
|
707
|
-
compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number):
|
|
707
|
+
compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): -1 | 0 | 1;
|
|
708
708
|
/**
|
|
709
709
|
* Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`.
|
|
710
710
|
*
|
|
@@ -909,6 +909,11 @@ declare module 'buffer' {
|
|
|
909
909
|
* @return `offset` plus the number of bytes written.
|
|
910
910
|
*/
|
|
911
911
|
writeBigUInt64BE(value: bigint, offset?: number): number;
|
|
912
|
+
/**
|
|
913
|
+
* @alias Buffer.writeBigUInt64BE
|
|
914
|
+
* @since v14.10.0, v12.19.0
|
|
915
|
+
*/
|
|
916
|
+
writeBigUint64BE(value: bigint, offset?: number): number;
|
|
912
917
|
/**
|
|
913
918
|
* Writes `value` to `buf` at the specified `offset` as little-endian
|
|
914
919
|
*
|
|
@@ -930,6 +935,11 @@ declare module 'buffer' {
|
|
|
930
935
|
* @return `offset` plus the number of bytes written.
|
|
931
936
|
*/
|
|
932
937
|
writeBigUInt64LE(value: bigint, offset?: number): number;
|
|
938
|
+
/**
|
|
939
|
+
* @alias Buffer.writeBigUInt64LE
|
|
940
|
+
* @since v14.10.0, v12.19.0
|
|
941
|
+
*/
|
|
942
|
+
writeBigUint64LE(value: bigint, offset?: number): number;
|
|
933
943
|
/**
|
|
934
944
|
* Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
|
|
935
945
|
* when `value` is anything other than an unsigned integer.
|
|
@@ -953,6 +963,11 @@ declare module 'buffer' {
|
|
|
953
963
|
* @return `offset` plus the number of bytes written.
|
|
954
964
|
*/
|
|
955
965
|
writeUIntLE(value: number, offset: number, byteLength: number): number;
|
|
966
|
+
/**
|
|
967
|
+
* @alias Buffer.writeUIntLE
|
|
968
|
+
* @since v14.9.0, v12.19.0
|
|
969
|
+
*/
|
|
970
|
+
writeUintLE(value: number, offset: number, byteLength: number): number;
|
|
956
971
|
/**
|
|
957
972
|
* Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined
|
|
958
973
|
* when `value` is anything other than an unsigned integer.
|
|
@@ -976,6 +991,11 @@ declare module 'buffer' {
|
|
|
976
991
|
* @return `offset` plus the number of bytes written.
|
|
977
992
|
*/
|
|
978
993
|
writeUIntBE(value: number, offset: number, byteLength: number): number;
|
|
994
|
+
/**
|
|
995
|
+
* @alias Buffer.writeUIntBE
|
|
996
|
+
* @since v14.9.0, v12.19.0
|
|
997
|
+
*/
|
|
998
|
+
writeUintBE(value: number, offset: number, byteLength: number): number;
|
|
979
999
|
/**
|
|
980
1000
|
* Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
|
|
981
1001
|
* when `value` is anything other than a signed integer.
|
|
@@ -1035,6 +1055,11 @@ declare module 'buffer' {
|
|
|
1035
1055
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
|
|
1036
1056
|
*/
|
|
1037
1057
|
readBigUInt64BE(offset?: number): bigint;
|
|
1058
|
+
/**
|
|
1059
|
+
* @alias Buffer.readBigUInt64BE
|
|
1060
|
+
* @since v14.10.0, v12.19.0
|
|
1061
|
+
*/
|
|
1062
|
+
readBigUint64BE(offset?: number): bigint;
|
|
1038
1063
|
/**
|
|
1039
1064
|
* Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`.
|
|
1040
1065
|
*
|
|
@@ -1052,6 +1077,11 @@ declare module 'buffer' {
|
|
|
1052
1077
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
|
|
1053
1078
|
*/
|
|
1054
1079
|
readBigUInt64LE(offset?: number): bigint;
|
|
1080
|
+
/**
|
|
1081
|
+
* @alias Buffer.readBigUInt64LE
|
|
1082
|
+
* @since v14.10.0, v12.19.0
|
|
1083
|
+
*/
|
|
1084
|
+
readBigUint64LE(offset?: number): bigint;
|
|
1055
1085
|
/**
|
|
1056
1086
|
* Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`.
|
|
1057
1087
|
*
|
|
@@ -1089,6 +1119,11 @@ declare module 'buffer' {
|
|
|
1089
1119
|
* @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
|
|
1090
1120
|
*/
|
|
1091
1121
|
readUIntLE(offset: number, byteLength: number): number;
|
|
1122
|
+
/**
|
|
1123
|
+
* @alias Buffer.readUIntLE
|
|
1124
|
+
* @since v14.9.0, v12.19.0
|
|
1125
|
+
*/
|
|
1126
|
+
readUintLE(offset: number, byteLength: number): number;
|
|
1092
1127
|
/**
|
|
1093
1128
|
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting
|
|
1094
1129
|
* up to 48 bits of accuracy.
|
|
@@ -1110,6 +1145,11 @@ declare module 'buffer' {
|
|
|
1110
1145
|
* @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
|
|
1111
1146
|
*/
|
|
1112
1147
|
readUIntBE(offset: number, byteLength: number): number;
|
|
1148
|
+
/**
|
|
1149
|
+
* @alias Buffer.readUIntBE
|
|
1150
|
+
* @since v14.9.0, v12.19.0
|
|
1151
|
+
*/
|
|
1152
|
+
readUintBE(offset: number, byteLength: number): number;
|
|
1113
1153
|
/**
|
|
1114
1154
|
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value
|
|
1115
1155
|
* supporting up to 48 bits of accuracy.
|
|
@@ -1169,6 +1209,11 @@ declare module 'buffer' {
|
|
|
1169
1209
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`.
|
|
1170
1210
|
*/
|
|
1171
1211
|
readUInt8(offset?: number): number;
|
|
1212
|
+
/**
|
|
1213
|
+
* @alias Buffer.readUInt8
|
|
1214
|
+
* @since v14.9.0, v12.19.0
|
|
1215
|
+
*/
|
|
1216
|
+
readUint8(offset?: number): number;
|
|
1172
1217
|
/**
|
|
1173
1218
|
* Reads an unsigned, little-endian 16-bit integer from `buf` at the specified`offset`.
|
|
1174
1219
|
*
|
|
@@ -1190,6 +1235,11 @@ declare module 'buffer' {
|
|
|
1190
1235
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
|
|
1191
1236
|
*/
|
|
1192
1237
|
readUInt16LE(offset?: number): number;
|
|
1238
|
+
/**
|
|
1239
|
+
* @alias Buffer.readUInt16LE
|
|
1240
|
+
* @since v14.9.0, v12.19.0
|
|
1241
|
+
*/
|
|
1242
|
+
readUint16LE(offset?: number): number;
|
|
1193
1243
|
/**
|
|
1194
1244
|
* Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`.
|
|
1195
1245
|
*
|
|
@@ -1209,6 +1259,11 @@ declare module 'buffer' {
|
|
|
1209
1259
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
|
|
1210
1260
|
*/
|
|
1211
1261
|
readUInt16BE(offset?: number): number;
|
|
1262
|
+
/**
|
|
1263
|
+
* @alias Buffer.readUInt16BE
|
|
1264
|
+
* @since v14.9.0, v12.19.0
|
|
1265
|
+
*/
|
|
1266
|
+
readUint16BE(offset?: number): number;
|
|
1212
1267
|
/**
|
|
1213
1268
|
* Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`.
|
|
1214
1269
|
*
|
|
@@ -1228,6 +1283,11 @@ declare module 'buffer' {
|
|
|
1228
1283
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
|
|
1229
1284
|
*/
|
|
1230
1285
|
readUInt32LE(offset?: number): number;
|
|
1286
|
+
/**
|
|
1287
|
+
* @alias Buffer.readUInt32LE
|
|
1288
|
+
* @since v14.9.0, v12.19.0
|
|
1289
|
+
*/
|
|
1290
|
+
readUint32LE(offset?: number): number;
|
|
1231
1291
|
/**
|
|
1232
1292
|
* Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`.
|
|
1233
1293
|
*
|
|
@@ -1245,6 +1305,11 @@ declare module 'buffer' {
|
|
|
1245
1305
|
* @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
|
|
1246
1306
|
*/
|
|
1247
1307
|
readUInt32BE(offset?: number): number;
|
|
1308
|
+
/**
|
|
1309
|
+
* @alias Buffer.readUInt32BE
|
|
1310
|
+
* @since v14.9.0, v12.19.0
|
|
1311
|
+
*/
|
|
1312
|
+
readUint32BE(offset?: number): number;
|
|
1248
1313
|
/**
|
|
1249
1314
|
* Reads a signed 8-bit integer from `buf` at the specified `offset`.
|
|
1250
1315
|
*
|
|
@@ -1517,6 +1582,11 @@ declare module 'buffer' {
|
|
|
1517
1582
|
* @return `offset` plus the number of bytes written.
|
|
1518
1583
|
*/
|
|
1519
1584
|
writeUInt8(value: number, offset?: number): number;
|
|
1585
|
+
/**
|
|
1586
|
+
* @alias Buffer.writeUInt8
|
|
1587
|
+
* @since v14.9.0, v12.19.0
|
|
1588
|
+
*/
|
|
1589
|
+
writeUint8(value: number, offset?: number): number;
|
|
1520
1590
|
/**
|
|
1521
1591
|
* Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is
|
|
1522
1592
|
* anything other than an unsigned 16-bit integer.
|
|
@@ -1540,6 +1610,11 @@ declare module 'buffer' {
|
|
|
1540
1610
|
* @return `offset` plus the number of bytes written.
|
|
1541
1611
|
*/
|
|
1542
1612
|
writeUInt16LE(value: number, offset?: number): number;
|
|
1613
|
+
/**
|
|
1614
|
+
* @alias Buffer.writeUInt16LE
|
|
1615
|
+
* @since v14.9.0, v12.19.0
|
|
1616
|
+
*/
|
|
1617
|
+
writeUint16LE(value: number, offset?: number): number;
|
|
1543
1618
|
/**
|
|
1544
1619
|
* Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an
|
|
1545
1620
|
* unsigned 16-bit integer.
|
|
@@ -1563,6 +1638,11 @@ declare module 'buffer' {
|
|
|
1563
1638
|
* @return `offset` plus the number of bytes written.
|
|
1564
1639
|
*/
|
|
1565
1640
|
writeUInt16BE(value: number, offset?: number): number;
|
|
1641
|
+
/**
|
|
1642
|
+
* @alias Buffer.writeUInt16BE
|
|
1643
|
+
* @since v14.9.0, v12.19.0
|
|
1644
|
+
*/
|
|
1645
|
+
writeUint16BE(value: number, offset?: number): number;
|
|
1566
1646
|
/**
|
|
1567
1647
|
* Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is
|
|
1568
1648
|
* anything other than an unsigned 32-bit integer.
|
|
@@ -1585,6 +1665,11 @@ declare module 'buffer' {
|
|
|
1585
1665
|
* @return `offset` plus the number of bytes written.
|
|
1586
1666
|
*/
|
|
1587
1667
|
writeUInt32LE(value: number, offset?: number): number;
|
|
1668
|
+
/**
|
|
1669
|
+
* @alias Buffer.writeUInt32LE
|
|
1670
|
+
* @since v14.9.0, v12.19.0
|
|
1671
|
+
*/
|
|
1672
|
+
writeUint32LE(value: number, offset?: number): number;
|
|
1588
1673
|
/**
|
|
1589
1674
|
* Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an
|
|
1590
1675
|
* unsigned 32-bit integer.
|
|
@@ -1607,6 +1692,11 @@ declare module 'buffer' {
|
|
|
1607
1692
|
* @return `offset` plus the number of bytes written.
|
|
1608
1693
|
*/
|
|
1609
1694
|
writeUInt32BE(value: number, offset?: number): number;
|
|
1695
|
+
/**
|
|
1696
|
+
* @alias Buffer.writeUInt32BE
|
|
1697
|
+
* @since v14.9.0, v12.19.0
|
|
1698
|
+
*/
|
|
1699
|
+
writeUint32BE(value: number, offset?: number): number;
|
|
1610
1700
|
/**
|
|
1611
1701
|
* Writes `value` to `buf` at the specified `offset`. `value` must be a valid
|
|
1612
1702
|
* signed 8-bit integer. Behavior is undefined when `value` is anything other than
|