cdk-common 2.0.1279 → 2.0.1281

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 (46) hide show
  1. package/.jsii +8 -2
  2. package/API.md +6 -0
  3. package/lib/main.js +1 -1
  4. package/lib/managed-policies.d.ts +2 -1
  5. package/lib/managed-policies.js +2 -1
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +5 -0
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +25 -1
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +5 -0
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +1 -1
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +187 -4145
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +21 -0
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +3 -3
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +7 -0
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +32 -0
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/index.d.ts +1 -1
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/index.d.ts +1 -1
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +8 -5
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +6 -4
  21. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/navigator.d.ts +3 -0
  22. package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +29 -0
  23. package/node_modules/@types/concat-stream/node_modules/undici-types/package.json +1 -1
  24. package/node_modules/@types/concat-stream/node_modules/undici-types/webidl.d.ts +10 -0
  25. package/node_modules/@types/concat-stream/node_modules/undici-types/websocket.d.ts +2 -0
  26. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  27. package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +5 -0
  28. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +25 -1
  29. package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +5 -0
  30. package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +1 -1
  31. package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +187 -4145
  32. package/node_modules/@types/form-data/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  33. package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +21 -0
  34. package/node_modules/@types/form-data/node_modules/@types/node/package.json +3 -3
  35. package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +7 -0
  36. package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +32 -0
  37. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/index.d.ts +1 -1
  38. package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/index.d.ts +1 -1
  39. package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +8 -5
  40. package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +6 -4
  41. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/navigator.d.ts +3 -0
  42. package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +29 -0
  43. package/node_modules/@types/form-data/node_modules/undici-types/package.json +1 -1
  44. package/node_modules/@types/form-data/node_modules/undici-types/webidl.d.ts +10 -0
  45. package/node_modules/@types/form-data/node_modules/undici-types/websocket.d.ts +2 -0
  46. package/package.json +1 -1
@@ -805,6 +805,27 @@ declare module "net" {
805
805
  * @param value Any JS value
806
806
  */
807
807
  static isBlockList(value: unknown): value is BlockList;
808
+ /**
809
+ * ```js
810
+ * const blockList = new net.BlockList();
811
+ * const data = [
812
+ * 'Subnet: IPv4 192.168.1.0/24',
813
+ * 'Address: IPv4 10.0.0.5',
814
+ * 'Range: IPv4 192.168.2.1-192.168.2.10',
815
+ * 'Range: IPv4 10.0.0.1-10.0.0.10',
816
+ * ];
817
+ * blockList.fromJSON(data);
818
+ * blockList.fromJSON(JSON.stringify(data));
819
+ * ```
820
+ * @since v24.5.0
821
+ * @experimental
822
+ */
823
+ fromJSON(data: string | readonly string[]): void;
824
+ /**
825
+ * @since v24.5.0
826
+ * @experimental
827
+ */
828
+ toJSON(): readonly string[];
808
829
  }
809
830
  interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
810
831
  timeout?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.4.0",
3
+ "version": "24.5.1",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -147,9 +147,9 @@
147
147
  },
148
148
  "scripts": {},
149
149
  "dependencies": {
150
- "undici-types": "~7.11.0"
150
+ "undici-types": "~7.12.0"
151
151
  },
152
152
  "peerDependencies": {},
153
- "typesPublisherContentHash": "fdbd3633b95006b69d1e43664ff9e3d7f2b3679ec29a1a4db03450cfe21d96ef",
153
+ "typesPublisherContentHash": "a75178555ac6bb4988973bb3fd7e3d6dfed50fe88cbe16c385e14646f513240e",
154
154
  "typeScriptVersion": "5.2"
155
155
  }
@@ -593,6 +593,13 @@ declare module "node:sqlite" {
593
593
  * @param enabled Enables or disables support for unknown named parameters.
594
594
  */
595
595
  setAllowUnknownNamedParameters(enabled: boolean): void;
596
+ /**
597
+ * When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead
598
+ * of objects.
599
+ * @since v24.0.0
600
+ * @param enabled Enables or disables the return of query results as arrays.
601
+ */
602
+ setReturnArrays(enabled: boolean): void;
596
603
  /**
597
604
  * When reading from the database, SQLite `INTEGER`s are mapped to JavaScript
598
605
  * numbers by default. However, SQLite `INTEGER`s can store values larger than
@@ -1162,6 +1162,38 @@ declare module "tls" {
1162
1162
  * @since v0.10.2
1163
1163
  */
1164
1164
  function getCiphers(): string[];
1165
+ /**
1166
+ * Sets the default CA certificates used by Node.js TLS clients. If the provided
1167
+ * certificates are parsed successfully, they will become the default CA
1168
+ * certificate list returned by {@link getCACertificates} and used
1169
+ * by subsequent TLS connections that don't specify their own CA certificates.
1170
+ * The certificates will be deduplicated before being set as the default.
1171
+ *
1172
+ * This function only affects the current Node.js thread. Previous
1173
+ * sessions cached by the HTTPS agent won't be affected by this change, so
1174
+ * this method should be called before any unwanted cachable TLS connections are
1175
+ * made.
1176
+ *
1177
+ * To use system CA certificates as the default:
1178
+ *
1179
+ * ```js
1180
+ * import tls from 'node:tls';
1181
+ * tls.setDefaultCACertificates(tls.getCACertificates('system'));
1182
+ * ```
1183
+ *
1184
+ * This function completely replaces the default CA certificate list. To add additional
1185
+ * certificates to the existing defaults, get the current certificates and append to them:
1186
+ *
1187
+ * ```js
1188
+ * import tls from 'node:tls';
1189
+ * const currentCerts = tls.getCACertificates('default');
1190
+ * const additionalCerts = ['-----BEGIN CERTIFICATE-----\n...'];
1191
+ * tls.setDefaultCACertificates([...currentCerts, ...additionalCerts]);
1192
+ * ```
1193
+ * @since v24.5.0
1194
+ * @param certs An array of CA certificates in PEM format.
1195
+ */
1196
+ function setDefaultCACertificates(certs: ReadonlyArray<string | NodeJS.ArrayBufferView>): void;
1165
1197
  /**
1166
1198
  * The default curve name to use for ECDH key agreement in a tls server.
1167
1199
  * The default value is `'auto'`. See `{@link createSecureContext()}` for further
@@ -59,7 +59,6 @@
59
59
  /// <reference path="../diagnostics_channel.d.ts" />
60
60
  /// <reference path="../dns.d.ts" />
61
61
  /// <reference path="../dns/promises.d.ts" />
62
- /// <reference path="../dns/promises.d.ts" />
63
62
  /// <reference path="../domain.d.ts" />
64
63
  /// <reference path="../events.d.ts" />
65
64
  /// <reference path="../fs.d.ts" />
@@ -68,6 +67,7 @@
68
67
  /// <reference path="../http2.d.ts" />
69
68
  /// <reference path="../https.d.ts" />
70
69
  /// <reference path="../inspector.d.ts" />
70
+ /// <reference path="../inspector.generated.d.ts" />
71
71
  /// <reference path="../module.d.ts" />
72
72
  /// <reference path="../net.d.ts" />
73
73
  /// <reference path="../os.d.ts" />
@@ -59,7 +59,6 @@
59
59
  /// <reference path="../diagnostics_channel.d.ts" />
60
60
  /// <reference path="../dns.d.ts" />
61
61
  /// <reference path="../dns/promises.d.ts" />
62
- /// <reference path="../dns/promises.d.ts" />
63
62
  /// <reference path="../domain.d.ts" />
64
63
  /// <reference path="../events.d.ts" />
65
64
  /// <reference path="../fs.d.ts" />
@@ -68,6 +67,7 @@
68
67
  /// <reference path="../http2.d.ts" />
69
68
  /// <reference path="../https.d.ts" />
70
69
  /// <reference path="../inspector.d.ts" />
70
+ /// <reference path="../inspector.generated.d.ts" />
71
71
  /// <reference path="../module.d.ts" />
72
72
  /// <reference path="../net.d.ts" />
73
73
  /// <reference path="../os.d.ts" />
@@ -455,12 +455,15 @@ declare module "url" {
455
455
  */
456
456
  static canParse(input: string, base?: string): boolean;
457
457
  /**
458
- * Parses a string as a URL. If `base` is provided, it will be used as the base URL for the purpose of resolving non-absolute `input` URLs.
459
- * Returns `null` if `input` is not a valid.
460
- * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is
461
- * `converted to a string` first.
462
- * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first.
458
+ * Parses a string as a URL. If `base` is provided, it will be used as the base
459
+ * URL for the purpose of resolving non-absolute `input` URLs. Returns `null`
460
+ * if the parameters can't be resolved to a valid URL.
463
461
  * @since v22.1.0
462
+ * @param input The absolute or relative input URL to parse. If `input`
463
+ * is relative, then `base` is required. If `input` is absolute, the `base`
464
+ * is ignored. If `input` is not a string, it is [converted to a string](https://tc39.es/ecma262/#sec-tostring) first.
465
+ * @param base The base URL to resolve against if the `input` is not
466
+ * absolute. If `base` is not a string, it is [converted to a string](https://tc39.es/ecma262/#sec-tostring) first.
464
467
  */
465
468
  static parse(input: string, base?: string): URL | null;
466
469
  constructor(input: string | { toString: () => string }, base?: string | URL);
@@ -1420,10 +1420,12 @@ declare module "util" {
1420
1420
  */
1421
1421
  short?: string | undefined;
1422
1422
  /**
1423
- * The default value to
1424
- * be used if (and only if) the option does not appear in the arguments to be
1425
- * parsed. It must be of the same type as the `type` property. When `multiple`
1426
- * is `true`, it must be an array.
1423
+ * The value to assign to
1424
+ * the option if it does not appear in the arguments to be parsed. The value
1425
+ * must match the type specified by the `type` property. If `multiple` is
1426
+ * `true`, it must be an array. No default value is applied when the option
1427
+ * does appear in the arguments to be parsed, even if the provided value
1428
+ * is falsy.
1427
1429
  * @since v18.11.0
1428
1430
  */
1429
1431
  default?: string | boolean | string[] | boolean[] | undefined;
@@ -1,11 +1,14 @@
1
1
  export {};
2
2
 
3
+ import { LockManager } from "worker_threads";
4
+
3
5
  // lib.webworker has `WorkerNavigator` rather than `Navigator`, so conditionals use `onabort` instead of `onmessage`
4
6
  type _Navigator = typeof globalThis extends { onabort: any } ? {} : Navigator;
5
7
  interface Navigator {
6
8
  readonly hardwareConcurrency: number;
7
9
  readonly language: string;
8
10
  readonly languages: readonly string[];
11
+ readonly locks: LockManager;
9
12
  readonly platform: string;
10
13
  readonly userAgent: string;
11
14
  }
@@ -598,6 +598,35 @@ declare module "worker_threads" {
598
598
  */
599
599
  postMessage(message: unknown): void;
600
600
  }
601
+ interface Lock {
602
+ readonly mode: LockMode;
603
+ readonly name: string;
604
+ }
605
+ interface LockGrantedCallback<T> {
606
+ (lock: Lock | null): T;
607
+ }
608
+ interface LockInfo {
609
+ clientId: string;
610
+ mode: LockMode;
611
+ name: string;
612
+ }
613
+ interface LockManager {
614
+ query(): Promise<LockManagerSnapshot>;
615
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
616
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
617
+ }
618
+ interface LockManagerSnapshot {
619
+ held: LockInfo[];
620
+ pending: LockInfo[];
621
+ }
622
+ type LockMode = "exclusive" | "shared";
623
+ interface LockOptions {
624
+ ifAvailable?: boolean;
625
+ mode?: LockMode;
626
+ signal?: AbortSignal;
627
+ steal?: boolean;
628
+ }
629
+ var locks: LockManager;
601
630
  /**
602
631
  * Mark an object as not transferable. If `object` occurs in the transfer list of
603
632
  * a `port.postMessage()` call, it is ignored.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "7.11.0",
3
+ "version": "7.12.0",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
@@ -182,6 +182,16 @@ interface WebidlConverters {
182
182
 
183
183
  ['record<ByteString, ByteString>']: RecordConverter<string, string>
184
184
 
185
+ /**
186
+ * @see https://fetch.spec.whatwg.org/#requestinfo
187
+ */
188
+ RequestInfo (V: unknown): undici.Request | string
189
+
190
+ /**
191
+ * @see https://fetch.spec.whatwg.org/#requestinit
192
+ */
193
+ RequestInit (V: unknown): undici.RequestInit
194
+
185
195
  [Key: string]: (...args: any[]) => unknown
186
196
  }
187
197
 
@@ -182,3 +182,5 @@ export declare const WebSocketError: {
182
182
  prototype: WebSocketError
183
183
  new (type: string, init?: WebSocketCloseInfo): WebSocketError
184
184
  }
185
+
186
+ export declare const ping: (ws: WebSocket, body?: Buffer) => void
@@ -8,7 +8,7 @@ This package contains type definitions for node (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: Sun, 14 Sep 2025 10:33:22 GMT
11
+ * Last updated: Tue, 16 Sep 2025 21:32:23 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -830,6 +830,11 @@ declare module "dns" {
830
830
  * @default 4
831
831
  */
832
832
  tries?: number;
833
+ /**
834
+ * The max retry timeout, in milliseconds.
835
+ * @default 0
836
+ */
837
+ maxTimeout?: number | undefined;
833
838
  }
834
839
  /**
835
840
  * An independent resolver for DNS requests.
@@ -1419,6 +1419,14 @@ declare module "http" {
1419
1419
  */
1420
1420
  destroy(error?: Error): this;
1421
1421
  }
1422
+ interface ProxyEnv extends NodeJS.ProcessEnv {
1423
+ HTTP_PROXY?: string | undefined;
1424
+ HTTPS_PROXY?: string | undefined;
1425
+ NO_PROXY?: string | undefined;
1426
+ http_proxy?: string | undefined;
1427
+ https_proxy?: string | undefined;
1428
+ no_proxy?: string | undefined;
1429
+ }
1422
1430
  interface AgentOptions extends Partial<TcpSocketConnectOpts> {
1423
1431
  /**
1424
1432
  * Keep sockets around in a pool to be used by other requests in the future. Default = false
@@ -1450,6 +1458,22 @@ declare module "http" {
1450
1458
  * @default `lifo`
1451
1459
  */
1452
1460
  scheduling?: "fifo" | "lifo" | undefined;
1461
+ /**
1462
+ * Environment variables for proxy configuration. See
1463
+ * [Built-in Proxy Support](https://nodejs.org/docs/latest-v24.x/api/http.html#built-in-proxy-support) for details.
1464
+ * @since v24.5.0
1465
+ */
1466
+ proxyEnv?: ProxyEnv | undefined;
1467
+ /**
1468
+ * Default port to use when the port is not specified in requests.
1469
+ * @since v24.5.0
1470
+ */
1471
+ defaultPort?: number | undefined;
1472
+ /**
1473
+ * The protocol to use for the agent.
1474
+ * @since v24.5.0
1475
+ */
1476
+ protocol?: string | undefined;
1453
1477
  }
1454
1478
  /**
1455
1479
  * An `Agent` is responsible for managing connection persistence
@@ -1591,7 +1615,7 @@ declare module "http" {
1591
1615
  createConnection(
1592
1616
  options: ClientRequestArgs,
1593
1617
  callback?: (err: Error | null, stream: stream.Duplex) => void,
1594
- ): stream.Duplex;
1618
+ ): stream.Duplex | null | undefined;
1595
1619
  /**
1596
1620
  * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to:
1597
1621
  *
@@ -32,6 +32,11 @@ declare module "https" {
32
32
  class Agent extends http.Agent {
33
33
  constructor(options?: AgentOptions);
34
34
  options: AgentOptions;
35
+ createConnection(
36
+ options: RequestOptions,
37
+ callback?: (err: Error | null, stream: Duplex) => void,
38
+ ): Duplex | null | undefined;
39
+ getName(options?: RequestOptions): string;
35
40
  }
36
41
  interface Server<
37
42
  Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
@@ -57,7 +57,6 @@
57
57
  /// <reference path="diagnostics_channel.d.ts" />
58
58
  /// <reference path="dns.d.ts" />
59
59
  /// <reference path="dns/promises.d.ts" />
60
- /// <reference path="dns/promises.d.ts" />
61
60
  /// <reference path="domain.d.ts" />
62
61
  /// <reference path="events.d.ts" />
63
62
  /// <reference path="fs.d.ts" />
@@ -66,6 +65,7 @@
66
65
  /// <reference path="http2.d.ts" />
67
66
  /// <reference path="https.d.ts" />
68
67
  /// <reference path="inspector.d.ts" />
68
+ /// <reference path="inspector.generated.d.ts" />
69
69
  /// <reference path="module.d.ts" />
70
70
  /// <reference path="net.d.ts" />
71
71
  /// <reference path="os.d.ts" />