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
|
@@ -250,7 +250,7 @@ declare module 'crypto' {
|
|
|
250
250
|
*/
|
|
251
251
|
function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
|
|
252
252
|
// https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
|
|
253
|
-
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
|
|
253
|
+
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex' | 'binary';
|
|
254
254
|
type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
|
|
255
255
|
type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
|
|
256
256
|
type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
|
|
@@ -646,6 +646,7 @@ declare module 'crypto' {
|
|
|
646
646
|
}
|
|
647
647
|
type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
|
|
648
648
|
type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
|
|
649
|
+
type CipherOCBTypes = 'aes-128-ocb' | 'aes-192-ocb' | 'aes-256-ocb';
|
|
649
650
|
type BinaryLike = string | NodeJS.ArrayBufferView;
|
|
650
651
|
type CipherKey = BinaryLike | KeyObject;
|
|
651
652
|
interface CipherCCMOptions extends stream.TransformOptions {
|
|
@@ -654,6 +655,9 @@ declare module 'crypto' {
|
|
|
654
655
|
interface CipherGCMOptions extends stream.TransformOptions {
|
|
655
656
|
authTagLength?: number | undefined;
|
|
656
657
|
}
|
|
658
|
+
interface CipherOCBOptions extends stream.TransformOptions {
|
|
659
|
+
authTagLength: number;
|
|
660
|
+
}
|
|
657
661
|
/**
|
|
658
662
|
* Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
|
|
659
663
|
*
|
|
@@ -720,8 +724,9 @@ declare module 'crypto' {
|
|
|
720
724
|
* @since v0.1.94
|
|
721
725
|
* @param options `stream.transform` options
|
|
722
726
|
*/
|
|
723
|
-
function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike
|
|
724
|
-
function createCipheriv(algorithm:
|
|
727
|
+
function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): CipherCCM;
|
|
728
|
+
function createCipheriv(algorithm: CipherOCBTypes, key: CipherKey, iv: BinaryLike, options: CipherOCBOptions): CipherOCB;
|
|
729
|
+
function createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options?: CipherGCMOptions): CipherGCM;
|
|
725
730
|
function createCipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Cipher;
|
|
726
731
|
/**
|
|
727
732
|
* Instances of the `Cipher` class are used to encrypt data. The class can be
|
|
@@ -907,6 +912,15 @@ declare module 'crypto' {
|
|
|
907
912
|
): this;
|
|
908
913
|
getAuthTag(): Buffer;
|
|
909
914
|
}
|
|
915
|
+
interface CipherOCB extends Cipher {
|
|
916
|
+
setAAD(
|
|
917
|
+
buffer: NodeJS.ArrayBufferView,
|
|
918
|
+
options?: {
|
|
919
|
+
plaintextLength: number;
|
|
920
|
+
}
|
|
921
|
+
): this;
|
|
922
|
+
getAuthTag(): Buffer;
|
|
923
|
+
}
|
|
910
924
|
/**
|
|
911
925
|
* Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
|
|
912
926
|
*
|
|
@@ -961,8 +975,9 @@ declare module 'crypto' {
|
|
|
961
975
|
* @since v0.1.94
|
|
962
976
|
* @param options `stream.transform` options
|
|
963
977
|
*/
|
|
964
|
-
function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike
|
|
965
|
-
function createDecipheriv(algorithm:
|
|
978
|
+
function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): DecipherCCM;
|
|
979
|
+
function createDecipheriv(algorithm: CipherOCBTypes, key: CipherKey, iv: BinaryLike, options: CipherOCBOptions): DecipherOCB;
|
|
980
|
+
function createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
|
|
966
981
|
function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher;
|
|
967
982
|
/**
|
|
968
983
|
* Instances of the `Decipher` class are used to decrypt data. The class can be
|
|
@@ -1133,6 +1148,15 @@ declare module 'crypto' {
|
|
|
1133
1148
|
}
|
|
1134
1149
|
): this;
|
|
1135
1150
|
}
|
|
1151
|
+
interface DecipherOCB extends Decipher {
|
|
1152
|
+
setAuthTag(buffer: NodeJS.ArrayBufferView): this;
|
|
1153
|
+
setAAD(
|
|
1154
|
+
buffer: NodeJS.ArrayBufferView,
|
|
1155
|
+
options?: {
|
|
1156
|
+
plaintextLength: number;
|
|
1157
|
+
}
|
|
1158
|
+
): this;
|
|
1159
|
+
}
|
|
1136
1160
|
interface PrivateKeyInput {
|
|
1137
1161
|
key: string | Buffer;
|
|
1138
1162
|
format?: KeyFormat | undefined;
|
|
@@ -3084,21 +3108,28 @@ declare module 'crypto' {
|
|
|
3084
3108
|
* @since v15.6.0
|
|
3085
3109
|
*/
|
|
3086
3110
|
readonly fingerprint256: string;
|
|
3111
|
+
/**
|
|
3112
|
+
* The SHA-512 fingerprint of this certificate.
|
|
3113
|
+
* @since v16.14.0
|
|
3114
|
+
*/
|
|
3115
|
+
readonly fingerprint512: string;
|
|
3087
3116
|
/**
|
|
3088
3117
|
* The complete subject of this certificate.
|
|
3089
3118
|
* @since v15.6.0
|
|
3090
3119
|
*/
|
|
3091
3120
|
readonly subject: string;
|
|
3092
3121
|
/**
|
|
3093
|
-
* The subject alternative name specified for this certificate
|
|
3122
|
+
* The subject alternative name specified for this certificate or `undefined`
|
|
3123
|
+
* if not available.
|
|
3094
3124
|
* @since v15.6.0
|
|
3095
3125
|
*/
|
|
3096
|
-
readonly subjectAltName: string;
|
|
3126
|
+
readonly subjectAltName: string | undefined;
|
|
3097
3127
|
/**
|
|
3098
|
-
* The information access content of this certificate
|
|
3128
|
+
* The information access content of this certificate or `undefined` if not
|
|
3129
|
+
* available.
|
|
3099
3130
|
* @since v15.6.0
|
|
3100
3131
|
*/
|
|
3101
|
-
readonly infoAccess: string;
|
|
3132
|
+
readonly infoAccess: string | undefined;
|
|
3102
3133
|
/**
|
|
3103
3134
|
* An array detailing the key usages for this certificate.
|
|
3104
3135
|
* @since v15.6.0
|
|
@@ -3146,7 +3177,7 @@ declare module 'crypto' {
|
|
|
3146
3177
|
* @since v15.6.0
|
|
3147
3178
|
* @return Returns `email` if the certificate matches, `undefined` if it does not.
|
|
3148
3179
|
*/
|
|
3149
|
-
checkEmail(email: string, options?: X509CheckOptions): string | undefined;
|
|
3180
|
+
checkEmail(email: string, options?: Pick<X509CheckOptions, 'subject'>): string | undefined;
|
|
3150
3181
|
/**
|
|
3151
3182
|
* Checks whether the certificate matches the given host name.
|
|
3152
3183
|
* @since v15.6.0
|
|
@@ -3158,7 +3189,7 @@ declare module 'crypto' {
|
|
|
3158
3189
|
* @since v15.6.0
|
|
3159
3190
|
* @return Returns `ip` if the certificate matches, `undefined` if it does not.
|
|
3160
3191
|
*/
|
|
3161
|
-
checkIP(ip: string
|
|
3192
|
+
checkIP(ip: string): string | undefined;
|
|
3162
3193
|
/**
|
|
3163
3194
|
* Checks whether this certificate was issued by the given `otherCert`.
|
|
3164
3195
|
* @since v15.6.0
|
|
@@ -57,7 +57,7 @@ declare module 'diagnostics_channel' {
|
|
|
57
57
|
* @return The named channel object
|
|
58
58
|
*/
|
|
59
59
|
function channel(name: string): Channel;
|
|
60
|
-
type ChannelListener = (
|
|
60
|
+
type ChannelListener = (message: unknown, name: string) => void;
|
|
61
61
|
/**
|
|
62
62
|
* The class `Channel` represents an individual named channel within the data
|
|
63
63
|
* pipeline. It is use to track subscribers and to publish messages when there
|
|
@@ -89,6 +89,24 @@ declare module 'diagnostics_channel' {
|
|
|
89
89
|
*/
|
|
90
90
|
readonly hasSubscribers: boolean;
|
|
91
91
|
private constructor(name: string);
|
|
92
|
+
/**
|
|
93
|
+
* Publish a message to any subscribers to the channel. This will
|
|
94
|
+
* trigger message handlers synchronously so they will execute within
|
|
95
|
+
* the same context.
|
|
96
|
+
*
|
|
97
|
+
* ```js
|
|
98
|
+
* import diagnostics_channel from 'diagnostics_channel';
|
|
99
|
+
*
|
|
100
|
+
* const channel = diagnostics_channel.channel('my-channel');
|
|
101
|
+
*
|
|
102
|
+
* channel.publish({
|
|
103
|
+
* some: 'message'
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
* @since v15.1.0, v14.17.0
|
|
107
|
+
* @param message The message to send to the channel subscribers
|
|
108
|
+
*/
|
|
109
|
+
publish(message: unknown): void;
|
|
92
110
|
/**
|
|
93
111
|
* Register a message handler to subscribe to this channel. This message handler
|
|
94
112
|
* will be run synchronously whenever a message is published to the channel. Any
|
|
@@ -50,7 +50,7 @@ declare module 'events' {
|
|
|
50
50
|
listener: (...args: any[]) => void,
|
|
51
51
|
opts?: {
|
|
52
52
|
once: boolean;
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
54
|
): any;
|
|
55
55
|
}
|
|
56
56
|
interface StaticEventEmitterOptions {
|
|
@@ -154,7 +154,11 @@ declare module 'events' {
|
|
|
154
154
|
* ```
|
|
155
155
|
* @since v11.13.0, v10.16.0
|
|
156
156
|
*/
|
|
157
|
-
static once(
|
|
157
|
+
static once(
|
|
158
|
+
emitter: NodeEventTarget,
|
|
159
|
+
eventName: string | symbol,
|
|
160
|
+
options?: StaticEventEmitterOptions,
|
|
161
|
+
): Promise<any[]>;
|
|
158
162
|
static once(emitter: DOMEventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise<any[]>;
|
|
159
163
|
/**
|
|
160
164
|
* ```js
|
|
@@ -214,7 +218,11 @@ declare module 'events' {
|
|
|
214
218
|
* @param eventName The name of the event being listened for
|
|
215
219
|
* @return that iterates `eventName` events emitted by the `emitter`
|
|
216
220
|
*/
|
|
217
|
-
static on(
|
|
221
|
+
static on(
|
|
222
|
+
emitter: NodeJS.EventEmitter,
|
|
223
|
+
eventName: string,
|
|
224
|
+
options?: StaticEventEmitterOptions,
|
|
225
|
+
): AsyncIterableIterator<any>;
|
|
218
226
|
/**
|
|
219
227
|
* A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`.
|
|
220
228
|
*
|
|
@@ -260,6 +268,26 @@ declare module 'events' {
|
|
|
260
268
|
* @since v15.2.0, v14.17.0
|
|
261
269
|
*/
|
|
262
270
|
static getEventListeners(emitter: DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
|
|
271
|
+
/**
|
|
272
|
+
* By default `EventEmitter`s will print a warning if more than `10` listeners are
|
|
273
|
+
* added for a particular event. This is a useful default that helps finding
|
|
274
|
+
* memory leaks. The `EventEmitter.setMaxListeners()` method allows the default limit to be
|
|
275
|
+
* modified (if eventTargets is empty) or modify the limit specified in every `EventTarget` | `EventEmitter` passed as arguments.
|
|
276
|
+
* The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners.
|
|
277
|
+
*
|
|
278
|
+
* ```js
|
|
279
|
+
* EventEmitter.setMaxListeners(20);
|
|
280
|
+
* // Equivalent to
|
|
281
|
+
* EventEmitter.defaultMaxListeners = 20;
|
|
282
|
+
*
|
|
283
|
+
* const eventTarget = new EventTarget();
|
|
284
|
+
* // Only way to increase limit for `EventTarget` instances
|
|
285
|
+
* // as these doesn't expose its own `setMaxListeners` method
|
|
286
|
+
* EventEmitter.setMaxListeners(20, eventTarget);
|
|
287
|
+
* ```
|
|
288
|
+
* @since v15.3.0, v14.17.0
|
|
289
|
+
*/
|
|
290
|
+
static setMaxListeners(n?: number, ...eventTargets: Array<DOMEventTarget | NodeJS.EventEmitter>): void;
|
|
263
291
|
/**
|
|
264
292
|
* This symbol shall be used to install a listener for only monitoring `'error'`
|
|
265
293
|
* events. Listeners installed using this symbol are called before the regular
|
|
@@ -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
|
/**
|