aws-delivlib 14.15.95 → 14.15.97

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.
Files changed (23) hide show
  1. package/lib/custom-resource-handlers/src/certificate-signing-request.tsbuildinfo +1 -1
  2. package/lib/custom-resource-handlers/src/pgp-secret.tsbuildinfo +1 -1
  3. package/lib/custom-resource-handlers/src/private-key.tsbuildinfo +1 -1
  4. package/lib/package-integrity/handler/validate.bundle.js +80 -71
  5. package/lib/publishing/github/node_modules/.yarn-integrity +1 -1
  6. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/README.md +1 -1
  7. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/async_hooks.d.ts +64 -0
  8. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.buffer.d.ts +2 -0
  9. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.d.ts +2 -2
  10. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/cluster.d.ts +1 -1
  11. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/diagnostics_channel.d.ts +20 -1
  12. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +5 -15
  13. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs.d.ts +51 -7
  14. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.d.ts +140 -280
  15. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http.d.ts +22 -1
  16. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/net.d.ts +12 -6
  17. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +2 -2
  18. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/querystring.d.ts +2 -3
  19. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/web.d.ts +3 -3
  20. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tls.d.ts +1 -1
  21. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +2 -0
  22. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts +13 -0
  23. package/package.json +8 -8
@@ -18,43 +18,11 @@ type _EventSource = typeof globalThis extends { onmessage: any } ? {} : import("
18
18
 
19
19
  // Conditional type definitions for webstorage interface, which conflicts with lib.dom otherwise.
20
20
  type _Storage = typeof globalThis extends { onabort: any } ? {} : {
21
- /**
22
- * Returns the number of key/value pairs.
23
- *
24
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)
25
- */
26
21
  readonly length: number;
27
- /**
28
- * Removes all key/value pairs, if there are any.
29
- *
30
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)
31
- */
32
22
  clear(): void;
33
- /**
34
- * Returns the current value associated with the given key, or null if the given key does not exist.
35
- *
36
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
37
- */
38
23
  getItem(key: string): string | null;
39
- /**
40
- * Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
41
- *
42
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)
43
- */
44
24
  key(index: number): string | null;
45
- /**
46
- * Removes the key/value pair with the given key, if a key/value pair with the given key exists.
47
- *
48
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)
49
- */
50
25
  removeItem(key: string): void;
51
- /**
52
- * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
53
- *
54
- * Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set.
55
- *
56
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)
57
- */
58
26
  setItem(key: string, value: string): void;
59
27
  [key: string]: any;
60
28
  };
@@ -62,15 +30,8 @@ type _Storage = typeof globalThis extends { onabort: any } ? {} : {
62
30
  // #region DOMException
63
31
  type _DOMException = typeof globalThis extends { onmessage: any } ? {} : NodeDOMException;
64
32
  interface NodeDOMException extends Error {
65
- /**
66
- * @deprecated
67
- *
68
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
69
- */
70
33
  readonly code: number;
71
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
72
34
  readonly message: string;
73
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
74
35
  readonly name: string;
75
36
  readonly INDEX_SIZE_ERR: 1;
76
37
  readonly DOMSTRING_SIZE_ERR: 2;
@@ -130,263 +91,104 @@ interface NodeDOMExceptionConstructor {
130
91
  // #endregion DOMException
131
92
 
132
93
  declare global {
133
- // Declare "static" methods in Error
134
- interface ErrorConstructor {
135
- /** Create .stack property on a target object */
136
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
137
-
138
- /**
139
- * Optional override for formatting stack traces
140
- *
141
- * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
142
- */
143
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
144
-
145
- stackTraceLimit: number;
146
- }
147
-
148
- /*-----------------------------------------------*
149
- * *
150
- * GLOBAL *
151
- * *
152
- ------------------------------------------------*/
153
-
154
94
  var global: typeof globalThis;
155
95
 
156
96
  var process: NodeJS.Process;
157
97
  var console: Console;
158
98
 
159
- interface GCFunction {
160
- (options: {
161
- execution?: "sync";
162
- flavor?: "regular" | "last-resort";
163
- type?: "major-snapshot" | "major" | "minor";
164
- filename?: string;
165
- }): void;
166
- (options: {
167
- execution: "async";
168
- flavor?: "regular" | "last-resort";
169
- type?: "major-snapshot" | "major" | "minor";
170
- filename?: string;
171
- }): Promise<void>;
172
- (options?: boolean): void;
173
- }
174
-
175
- /**
176
- * Only available if `--expose-gc` is passed to the process.
177
- */
178
- var gc: undefined | GCFunction;
179
-
180
- // #region borrowed
181
- // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
182
- /** A controller object that allows you to abort one or more DOM requests as and when desired. */
183
- interface AbortController {
99
+ interface ErrorConstructor {
184
100
  /**
185
- * Returns the AbortSignal object associated with this object.
101
+ * Creates a `.stack` property on `targetObject`, which when accessed returns
102
+ * a string representing the location in the code at which
103
+ * `Error.captureStackTrace()` was called.
104
+ *
105
+ * ```js
106
+ * const myObject = {};
107
+ * Error.captureStackTrace(myObject);
108
+ * myObject.stack; // Similar to `new Error().stack`
109
+ * ```
110
+ *
111
+ * The first line of the trace will be prefixed with
112
+ * `${myObject.name}: ${myObject.message}`.
113
+ *
114
+ * The optional `constructorOpt` argument accepts a function. If given, all frames
115
+ * above `constructorOpt`, including `constructorOpt`, will be omitted from the
116
+ * generated stack trace.
117
+ *
118
+ * The `constructorOpt` argument is useful for hiding implementation
119
+ * details of error generation from the user. For instance:
120
+ *
121
+ * ```js
122
+ * function a() {
123
+ * b();
124
+ * }
125
+ *
126
+ * function b() {
127
+ * c();
128
+ * }
129
+ *
130
+ * function c() {
131
+ * // Create an error without stack trace to avoid calculating the stack trace twice.
132
+ * const { stackTraceLimit } = Error;
133
+ * Error.stackTraceLimit = 0;
134
+ * const error = new Error();
135
+ * Error.stackTraceLimit = stackTraceLimit;
136
+ *
137
+ * // Capture the stack trace above function b
138
+ * Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
139
+ * throw error;
140
+ * }
141
+ *
142
+ * a();
143
+ * ```
186
144
  */
187
-
188
- readonly signal: AbortSignal;
145
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
189
146
  /**
190
- * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
147
+ * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
191
148
  */
192
- abort(reason?: any): void;
193
- }
194
-
195
- /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
196
- interface AbortSignal extends EventTarget {
149
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
197
150
  /**
198
- * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
151
+ * The `Error.stackTraceLimit` property specifies the number of stack frames
152
+ * collected by a stack trace (whether generated by `new Error().stack` or
153
+ * `Error.captureStackTrace(obj)`).
154
+ *
155
+ * The default value is `10` but may be set to any valid JavaScript number. Changes
156
+ * will affect any stack trace captured _after_ the value has been changed.
157
+ *
158
+ * If set to a non-number value, or set to a negative number, stack traces will
159
+ * not capture any frames.
199
160
  */
200
- readonly aborted: boolean;
201
- readonly reason: any;
202
- onabort: null | ((this: AbortSignal, event: Event) => any);
203
- throwIfAborted(): void;
161
+ stackTraceLimit: number;
204
162
  }
205
163
 
206
- var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
207
- : {
208
- prototype: AbortController;
209
- new(): AbortController;
210
- };
211
-
212
- var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
213
- : {
214
- prototype: AbortSignal;
215
- new(): AbortSignal;
216
- abort(reason?: any): AbortSignal;
217
- timeout(milliseconds: number): AbortSignal;
218
- any(signals: AbortSignal[]): AbortSignal;
219
- };
220
- // #endregion borrowed
221
-
222
- // #region Storage
223
- /**
224
- * This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items.
225
- *
226
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)
227
- */
228
- interface Storage extends _Storage {}
229
-
230
- // Conditional on `onabort` rather than `onmessage`, in order to exclude lib.webworker
231
- var Storage: typeof globalThis extends { onabort: any; Storage: infer T } ? T
232
- : {
233
- prototype: Storage;
234
- new(): Storage;
235
- };
236
-
237
- /**
238
- * A browser-compatible implementation of [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage). Data is stored
239
- * unencrypted in the file specified by the `--localstorage-file` CLI flag.
240
- * The maximum amount of data that can be stored is 10 MB.
241
- * Any modification of this data outside of the Web Storage API is not supported.
242
- * Enable this API with the `--experimental-webstorage` CLI flag.
243
- * `localStorage` data is not stored per user or per request when used in the context
244
- * of a server, it is shared across all users and requests.
245
- * @since v22.4.0
246
- */
247
- var localStorage: Storage;
248
-
249
- /**
250
- * A browser-compatible implementation of [`sessionStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage). Data is stored in
251
- * memory, with a storage quota of 10 MB. `sessionStorage` data persists only within
252
- * the currently running process, and is not shared between workers.
253
- * @since v22.4.0
254
- */
255
- var sessionStorage: Storage;
256
- // #endregion Storage
257
-
258
- /**
259
- * @since v17.0.0
260
- *
261
- * Creates a deep clone of an object.
262
- */
263
- function structuredClone<T>(
264
- value: T,
265
- transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
266
- ): T;
267
-
268
- // #region DOMException
269
- /**
270
- * @since v17.0.0
271
- * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
272
- *
273
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
274
- */
275
- interface DOMException extends _DOMException {}
276
-
277
164
  /**
278
- * @since v17.0.0
279
- *
280
- * The WHATWG `DOMException` class. See [DOMException](https://developer.mozilla.org/docs/Web/API/DOMException) for more details.
165
+ * Enable this API with the `--expose-gc` CLI flag.
281
166
  */
282
- var DOMException: typeof globalThis extends { onmessage: any; DOMException: infer T } ? T
283
- : NodeDOMExceptionConstructor;
284
- // #endregion DOMException
167
+ var gc: NodeJS.GCFunction | undefined;
285
168
 
286
- /*----------------------------------------------*
287
- * *
288
- * GLOBAL INTERFACES *
289
- * *
290
- *-----------------------------------------------*/
291
169
  namespace NodeJS {
292
170
  interface CallSite {
293
- /**
294
- * Value of "this"
295
- */
296
- getThis(): unknown;
297
-
298
- /**
299
- * Type of "this" as a string.
300
- * This is the name of the function stored in the constructor field of
301
- * "this", if available. Otherwise the object's [[Class]] internal
302
- * property.
303
- */
304
- getTypeName(): string | null;
305
-
306
- /**
307
- * Current function
308
- */
171
+ getColumnNumber(): number | null;
172
+ getEnclosingColumnNumber(): number | null;
173
+ getEnclosingLineNumber(): number | null;
174
+ getEvalOrigin(): string | undefined;
175
+ getFileName(): string | null;
309
176
  getFunction(): Function | undefined;
310
-
311
- /**
312
- * Name of the current function, typically its name property.
313
- * If a name property is not available an attempt will be made to try
314
- * to infer a name from the function's context.
315
- */
316
177
  getFunctionName(): string | null;
317
-
318
- /**
319
- * Name of the property [of "this" or one of its prototypes] that holds
320
- * the current function
321
- */
322
- getMethodName(): string | null;
323
-
324
- /**
325
- * Name of the script [if this function was defined in a script]
326
- */
327
- getFileName(): string | undefined;
328
-
329
- /**
330
- * Current line number [if this function was defined in a script]
331
- */
332
178
  getLineNumber(): number | null;
333
-
334
- /**
335
- * Current column number [if this function was defined in a script]
336
- */
337
- getColumnNumber(): number | null;
338
-
339
- /**
340
- * A call site object representing the location where eval was called
341
- * [if this function was created using a call to eval]
342
- */
343
- getEvalOrigin(): string | undefined;
344
-
345
- /**
346
- * Is this a toplevel invocation, that is, is "this" the global object?
347
- */
348
- isToplevel(): boolean;
349
-
350
- /**
351
- * Does this call take place in code defined by a call to eval?
352
- */
179
+ getMethodName(): string | null;
180
+ getPosition(): number;
181
+ getPromiseIndex(): number | null;
182
+ getScriptHash(): string;
183
+ getScriptNameOrSourceURL(): string | null;
184
+ getThis(): unknown;
185
+ getTypeName(): string | null;
186
+ isAsync(): boolean;
187
+ isConstructor(): boolean;
353
188
  isEval(): boolean;
354
-
355
- /**
356
- * Is this call in native V8 code?
357
- */
358
189
  isNative(): boolean;
359
-
360
- /**
361
- * Is this a constructor call?
362
- */
363
- isConstructor(): boolean;
364
-
365
- /**
366
- * is this an async call (i.e. await, Promise.all(), or Promise.any())?
367
- */
368
- isAsync(): boolean;
369
-
370
- /**
371
- * is this an async call to Promise.all()?
372
- */
373
190
  isPromiseAll(): boolean;
374
-
375
- /**
376
- * returns the index of the promise element that was followed in
377
- * Promise.all() or Promise.any() for async stack traces, or null
378
- * if the CallSite is not an async
379
- */
380
- getPromiseIndex(): number | null;
381
-
382
- getScriptNameOrSourceURL(): string;
383
- getScriptHash(): string;
384
-
385
- getEnclosingColumnNumber(): number;
386
- getEnclosingLineNumber(): number;
387
- getPosition(): number;
388
-
389
- toString(): string;
191
+ isToplevel(): boolean;
390
192
  }
391
193
 
392
194
  interface ErrnoException extends Error {
@@ -434,6 +236,19 @@ declare global {
434
236
  readonly [key: string]: T | undefined;
435
237
  }
436
238
 
239
+ interface GCFunction {
240
+ (minor?: boolean): void;
241
+ (options: NodeJS.GCOptions & { execution: "async" }): Promise<void>;
242
+ (options: NodeJS.GCOptions): void;
243
+ }
244
+
245
+ interface GCOptions {
246
+ execution?: "sync" | "async" | undefined;
247
+ flavor?: "regular" | "last-resort" | undefined;
248
+ type?: "major-snapshot" | "major" | "minor" | undefined;
249
+ filename?: string | undefined;
250
+ }
251
+
437
252
  /** An iterable iterator returned by the Node.js API. */
438
253
  // Default TReturn/TNext in v22 is `any`, for compatibility with the previously-used IterableIterator.
439
254
  // TODO: In next major @types/node version, change default TReturn to undefined.
@@ -449,6 +264,58 @@ declare global {
449
264
  }
450
265
  }
451
266
 
267
+ // Global DOM types
268
+
269
+ function structuredClone<T>(
270
+ value: T,
271
+ transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
272
+ ): T;
273
+
274
+ interface DOMException extends _DOMException {}
275
+ var DOMException: typeof globalThis extends { onmessage: any; DOMException: infer T } ? T
276
+ : NodeDOMExceptionConstructor;
277
+
278
+ // #region AbortController
279
+ interface AbortController {
280
+ readonly signal: AbortSignal;
281
+ abort(reason?: any): void;
282
+ }
283
+ var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
284
+ : {
285
+ prototype: AbortController;
286
+ new(): AbortController;
287
+ };
288
+
289
+ interface AbortSignal extends EventTarget {
290
+ readonly aborted: boolean;
291
+ onabort: ((this: AbortSignal, ev: Event) => any) | null;
292
+ readonly reason: any;
293
+ throwIfAborted(): void;
294
+ }
295
+ var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
296
+ : {
297
+ prototype: AbortSignal;
298
+ new(): AbortSignal;
299
+ abort(reason?: any): AbortSignal;
300
+ any(signals: AbortSignal[]): AbortSignal;
301
+ timeout(milliseconds: number): AbortSignal;
302
+ };
303
+ // #endregion AbortController
304
+
305
+ // #region Storage
306
+ interface Storage extends _Storage {}
307
+ // Conditional on `onabort` rather than `onmessage`, in order to exclude lib.webworker
308
+ var Storage: typeof globalThis extends { onabort: any; Storage: infer T } ? T
309
+ : {
310
+ prototype: Storage;
311
+ new(): Storage;
312
+ };
313
+
314
+ var localStorage: Storage;
315
+ var sessionStorage: Storage;
316
+ // #endregion Storage
317
+
318
+ // #region fetch
452
319
  interface RequestInit extends _RequestInit {}
453
320
 
454
321
  function fetch(
@@ -487,9 +354,6 @@ declare global {
487
354
  : typeof import("undici-types").Headers;
488
355
 
489
356
  interface MessageEvent extends _MessageEvent {}
490
- /**
491
- * @since v15.0.0
492
- */
493
357
  var MessageEvent: typeof globalThis extends {
494
358
  onmessage: any;
495
359
  MessageEvent: infer T;
@@ -501,11 +365,7 @@ declare global {
501
365
  : typeof import("undici-types").WebSocket;
502
366
 
503
367
  interface EventSource extends _EventSource {}
504
- /**
505
- * Only available through the [--experimental-eventsource](https://nodejs.org/api/cli.html#--experimental-eventsource) flag.
506
- *
507
- * @since v22.3.0
508
- */
509
368
  var EventSource: typeof globalThis extends { onmessage: any; EventSource: infer T } ? T
510
369
  : typeof import("undici-types").EventSource;
370
+ // #endregion fetch
511
371
  }
@@ -48,6 +48,7 @@ declare module "http" {
48
48
  // incoming headers will never contain number
49
49
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
50
50
  accept?: string | undefined;
51
+ "accept-encoding"?: string | undefined;
51
52
  "accept-language"?: string | undefined;
52
53
  "accept-patch"?: string | undefined;
53
54
  "accept-ranges"?: string | undefined;
@@ -207,7 +208,7 @@ declare module "http" {
207
208
  | undefined;
208
209
  defaultPort?: number | string | undefined;
209
210
  family?: number | undefined;
210
- headers?: OutgoingHttpHeaders | undefined;
211
+ headers?: OutgoingHttpHeaders | readonly string[] | undefined;
211
212
  hints?: LookupOptions["hints"];
212
213
  host?: string | null | undefined;
213
214
  hostname?: string | null | undefined;
@@ -269,6 +270,13 @@ declare module "http" {
269
270
  * @default 30000
270
271
  */
271
272
  connectionsCheckingInterval?: number | undefined;
273
+ /**
274
+ * Sets the timeout value in milliseconds for receiving the complete HTTP headers from the client.
275
+ * See {@link Server.headersTimeout} for more information.
276
+ * @default 60000
277
+ * @since 18.0.0
278
+ */
279
+ headersTimeout?: number | undefined;
272
280
  /**
273
281
  * Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
274
282
  * This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`.
@@ -296,6 +304,13 @@ declare module "http" {
296
304
  * @since v16.5.0
297
305
  */
298
306
  noDelay?: boolean | undefined;
307
+ /**
308
+ * If set to `true`, it forces the server to respond with a 400 (Bad Request) status code
309
+ * to any HTTP/1.1 request message that lacks a Host header (as mandated by the specification).
310
+ * @default true
311
+ * @since 20.0.0
312
+ */
313
+ requireHostHeader?: boolean | undefined;
299
314
  /**
300
315
  * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received,
301
316
  * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`.
@@ -314,6 +329,12 @@ declare module "http" {
314
329
  * If the header's value is an array, the items will be joined using `; `.
315
330
  */
316
331
  uniqueHeaders?: Array<string | string[]> | undefined;
332
+ /**
333
+ * If set to `true`, an error is thrown when writing to an HTTP response which does not have a body.
334
+ * @default false
335
+ * @since v18.17.0, v20.2.0
336
+ */
337
+ rejectNonStandardBodyWrites?: boolean | undefined;
317
338
  }
318
339
  type RequestListener<
319
340
  Request extends typeof IncomingMessage = typeof IncomingMessage,
@@ -377,7 +377,7 @@ declare module "net" {
377
377
  addListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
378
378
  addListener(
379
379
  event: "connectionAttemptFailed",
380
- listener: (ip: string, port: number, family: number) => void,
380
+ listener: (ip: string, port: number, family: number, error: Error) => void,
381
381
  ): this;
382
382
  addListener(
383
383
  event: "connectionAttemptTimeout",
@@ -397,7 +397,7 @@ declare module "net" {
397
397
  emit(event: "close", hadError: boolean): boolean;
398
398
  emit(event: "connect"): boolean;
399
399
  emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean;
400
- emit(event: "connectionAttemptFailed", ip: string, port: number, family: number): boolean;
400
+ emit(event: "connectionAttemptFailed", ip: string, port: number, family: number, error: Error): boolean;
401
401
  emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean;
402
402
  emit(event: "data", data: Buffer): boolean;
403
403
  emit(event: "drain"): boolean;
@@ -410,7 +410,10 @@ declare module "net" {
410
410
  on(event: "close", listener: (hadError: boolean) => void): this;
411
411
  on(event: "connect", listener: () => void): this;
412
412
  on(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
413
- on(event: "connectionAttemptFailed", listener: (ip: string, port: number, family: number) => void): this;
413
+ on(
414
+ event: "connectionAttemptFailed",
415
+ listener: (ip: string, port: number, family: number, error: Error) => void,
416
+ ): this;
414
417
  on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
415
418
  on(event: "data", listener: (data: Buffer) => void): this;
416
419
  on(event: "drain", listener: () => void): this;
@@ -425,7 +428,10 @@ declare module "net" {
425
428
  once(event: string, listener: (...args: any[]) => void): this;
426
429
  once(event: "close", listener: (hadError: boolean) => void): this;
427
430
  once(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
428
- once(event: "connectionAttemptFailed", listener: (ip: string, port: number, family: number) => void): this;
431
+ once(
432
+ event: "connectionAttemptFailed",
433
+ listener: (ip: string, port: number, family: number, error: Error) => void,
434
+ ): this;
429
435
  once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
430
436
  once(event: "connect", listener: () => void): this;
431
437
  once(event: "data", listener: (data: Buffer) => void): this;
@@ -444,7 +450,7 @@ declare module "net" {
444
450
  prependListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
445
451
  prependListener(
446
452
  event: "connectionAttemptFailed",
447
- listener: (ip: string, port: number, family: number) => void,
453
+ listener: (ip: string, port: number, family: number, error: Error) => void,
448
454
  ): this;
449
455
  prependListener(
450
456
  event: "connectionAttemptTimeout",
@@ -469,7 +475,7 @@ declare module "net" {
469
475
  ): this;
470
476
  prependOnceListener(
471
477
  event: "connectionAttemptFailed",
472
- listener: (ip: string, port: number, family: number) => void,
478
+ listener: (ip: string, port: number, family: number, error: Error) => void,
473
479
  ): this;
474
480
  prependOnceListener(
475
481
  event: "connectionAttemptTimeout",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.15.3",
3
+ "version": "22.15.14",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  "undici-types": "~6.21.0"
221
221
  },
222
222
  "peerDependencies": {},
223
- "typesPublisherContentHash": "2aecc93ec4fa0fcbf62f8df1fe665ab3615d3005c7b01703781b7e8c26655911",
223
+ "typesPublisherContentHash": "ffc2a6547f97ecddd3c3a0571777c7a02a04de14e127c1a7e02d89c998e27371",
224
224
  "typeScriptVersion": "5.1"
225
225
  }
@@ -37,9 +37,8 @@ declare module "querystring" {
37
37
  | string
38
38
  | number
39
39
  | boolean
40
- | readonly string[]
41
- | readonly number[]
42
- | readonly boolean[]
40
+ | bigint
41
+ | ReadonlyArray<string | number | boolean | bigint>
43
42
  | null
44
43
  >
45
44
  {}
@@ -97,7 +97,7 @@ declare module "stream/web" {
97
97
  signal?: AbortSignal;
98
98
  }
99
99
  interface ReadableStreamGenericReader {
100
- readonly closed: Promise<undefined>;
100
+ readonly closed: Promise<void>;
101
101
  cancel(reason?: any): Promise<void>;
102
102
  }
103
103
  type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
@@ -307,9 +307,9 @@ declare module "stream/web" {
307
307
  * sink.
308
308
  */
309
309
  interface WritableStreamDefaultWriter<W = any> {
310
- readonly closed: Promise<undefined>;
310
+ readonly closed: Promise<void>;
311
311
  readonly desiredSize: number | null;
312
- readonly ready: Promise<undefined>;
312
+ readonly ready: Promise<void>;
313
313
  abort(reason?: any): Promise<void>;
314
314
  close(): Promise<void>;
315
315
  releaseLock(): void;
@@ -647,7 +647,7 @@ declare module "tls" {
647
647
  * @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc), or a TLS context object created
648
648
  * with {@link createSecureContext} itself.
649
649
  */
650
- addContext(hostname: string, context: SecureContextOptions): void;
650
+ addContext(hostname: string, context: SecureContextOptions | SecureContext): void;
651
651
  /**
652
652
  * Returns the session ticket keys.
653
653
  *