cdk-common 2.0.1410 → 2.0.1412

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 (44) hide show
  1. package/.jsii +15 -3
  2. package/API.md +12 -0
  3. package/lib/main.js +1 -1
  4. package/lib/managed-policies.d.ts +3 -1
  5. package/lib/managed-policies.js +3 -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/assert.d.ts +2 -2
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +5 -0
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +6 -13
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +21 -0
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.generated.d.ts +428 -415
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +0 -62
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +4 -4
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +18 -0
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +1 -0
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +103 -16
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +15 -5
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +42 -19
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +6 -2
  21. package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +22 -0
  22. package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +27 -2
  23. package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +0 -1
  24. package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +2 -2
  25. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  26. package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +2 -2
  27. package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +5 -0
  28. package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +6 -13
  29. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +21 -0
  30. package/node_modules/@types/form-data/node_modules/@types/node/inspector.generated.d.ts +428 -415
  31. package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +0 -62
  32. package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +4 -4
  33. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  34. package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +18 -0
  35. package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +1 -0
  36. package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +103 -16
  37. package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +15 -5
  38. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +42 -19
  39. package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +6 -2
  40. package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +22 -0
  41. package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +27 -2
  42. package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +0 -1
  43. package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +2 -2
  44. package/package.json +1 -1
@@ -308,6 +308,9 @@ declare module "node:util" {
308
308
  * Returns an array of call site objects containing the stack of
309
309
  * the caller function.
310
310
  *
311
+ * Unlike accessing an `error.stack`, the result returned from this API is not
312
+ * interfered with `Error.prepareStackTrace`.
313
+ *
311
314
  * ```js
312
315
  * import { getCallSites } from 'node:util';
313
316
  *
@@ -320,7 +323,7 @@ declare module "node:util" {
320
323
  * console.log(`Function Name: ${callSite.functionName}`);
321
324
  * console.log(`Script Name: ${callSite.scriptName}`);
322
325
  * console.log(`Line Number: ${callSite.lineNumber}`);
323
- * console.log(`Column Number: ${callSite.column}`);
326
+ * console.log(`Column Number: ${callSite.columnNumber}`);
324
327
  * });
325
328
  * // CallSite 1:
326
329
  * // Function Name: exampleFunction
@@ -750,6 +753,28 @@ declare module "node:util" {
750
753
  * @legacy Use ES2015 class syntax and `extends` keyword instead.
751
754
  */
752
755
  export function inherits(constructor: unknown, superConstructor: unknown): void;
756
+ /**
757
+ * The `util.convertProcessSignalToExitCode()` method converts a signal name to its
758
+ * corresponding POSIX exit code. Following the POSIX standard, the exit code
759
+ * for a process terminated by a signal is calculated as `128 + signal number`.
760
+ *
761
+ * If `signal` is not a valid signal name, then an error will be thrown. See
762
+ * [`signal(7)`](https://man7.org/linux/man-pages/man7/signal.7.html) for a list of valid signals.
763
+ *
764
+ * ```js
765
+ * import { convertProcessSignalToExitCode } from 'node:util';
766
+ *
767
+ * console.log(convertProcessSignalToExitCode('SIGTERM')); // 143 (128 + 15)
768
+ * console.log(convertProcessSignalToExitCode('SIGKILL')); // 137 (128 + 9)
769
+ * ```
770
+ *
771
+ * This is particularly useful when working with processes to determine
772
+ * the exit code based on the signal that terminated the process.
773
+ * @since v25.4.0
774
+ * @param signal A signal name (e.g. `'SIGTERM'`)
775
+ * @returns The exit code corresponding to `signal`
776
+ */
777
+ export function convertProcessSignalToExitCode(signal: NodeJS.Signals): number;
753
778
  export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
754
779
  export interface DebugLogger extends DebugLoggerFunction {
755
780
  /**
@@ -804,7 +829,7 @@ declare module "node:util" {
804
829
  *
805
830
  * ```js
806
831
  * import { debuglog } from 'node:util';
807
- * const log = debuglog('foo');
832
+ * const log = debuglog('foo-bar');
808
833
  *
809
834
  * log('hi there, it\'s foo-bar [%d]', 2333);
810
835
  * ```
@@ -308,7 +308,6 @@ declare module "node:v8" {
308
308
  * ```
309
309
  * @param ctor The constructor that can be used to search on the prototype chain in order to filter target objects in the heap.
310
310
  * @since v20.13.0
311
- * @experimental
312
311
  */
313
312
  function queryObjects(ctor: Function): number | string[];
314
313
  function queryObjects(ctor: Function, options: { format: "count" }): number;
@@ -33,8 +33,8 @@
33
33
  * workerData: script,
34
34
  * });
35
35
  * worker.on('message', resolve);
36
- * worker.on('error', reject);
37
- * worker.on('exit', (code) => {
36
+ * worker.once('error', reject);
37
+ * worker.once('exit', (code) => {
38
38
  * if (code !== 0)
39
39
  * reject(new Error(`Worker stopped with exit code ${code}`));
40
40
  * });
@@ -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: Fri, 06 Mar 2026 00:57:44 GMT
11
+ * Last updated: Mon, 09 Mar 2026 18:46:38 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -253,10 +253,10 @@ declare module "node:assert" {
253
253
  * import assert from 'node:assert/strict';
254
254
  *
255
255
  * // Using `assert()` works the same:
256
- * assert(0);
256
+ * assert(2 + 2 > 5);;
257
257
  * // AssertionError: The expression evaluated to a falsy value:
258
258
  * //
259
- * // assert(0)
259
+ * // assert(2 + 2 > 5)
260
260
  * ```
261
261
  * @since v0.1.21
262
262
  */
@@ -228,6 +228,11 @@ declare module "node:child_process" {
228
228
  /**
229
229
  * The `subprocess.exitCode` property indicates the exit code of the child process.
230
230
  * If the child process is still running, the field will be `null`.
231
+ *
232
+ * When the child process is terminated by a signal, `subprocess.exitCode` will be
233
+ * `null` and `subprocess.signalCode` will be set. To get the corresponding
234
+ * POSIX exit code, use
235
+ * `util.convertProcessSignalToExitCode(subprocess.signalCode)`.
231
236
  */
232
237
  readonly exitCode: number | null;
233
238
  /**
@@ -638,24 +638,17 @@ declare module "node:events" {
638
638
  */
639
639
  function getMaxListeners(emitter: EventEmitter | EventTarget): number;
640
640
  /**
641
- * A class method that returns the number of listeners for the given `eventName`
642
- * registered on the given `emitter`.
641
+ * Returns the number of registered listeners for the event named `eventName`.
643
642
  *
644
- * ```js
645
- * import { EventEmitter, listenerCount } from 'node:events';
643
+ * For `EventEmitter`s this behaves exactly the same as calling `.listenerCount`
644
+ * on the emitter.
646
645
  *
647
- * const myEmitter = new EventEmitter();
648
- * myEmitter.on('event', () => {});
649
- * myEmitter.on('event', () => {});
650
- * console.log(listenerCount(myEmitter, 'event'));
651
- * // Prints: 2
652
- * ```
646
+ * For `EventTarget`s this is the only way to obtain the listener count. This can
647
+ * be useful for debugging and diagnostic purposes.
653
648
  * @since v0.9.12
654
- * @deprecated Use `emitter.listenerCount()` instead.
655
- * @param emitter The emitter to query
656
- * @param eventName The event name
657
649
  */
658
650
  function listenerCount(emitter: EventEmitter, eventName: string | symbol): number;
651
+ function listenerCount(emitter: EventTarget, eventName: string): number;
659
652
  interface OnOptions extends Abortable {
660
653
  /**
661
654
  * Names of events that will end the iteration.
@@ -2136,6 +2136,27 @@ declare module "node:http" {
2136
2136
  * @param [max=1000]
2137
2137
  */
2138
2138
  function setMaxIdleHTTPParsers(max: number): void;
2139
+ /**
2140
+ * Dynamically resets the global configurations to enable built-in proxy support for
2141
+ * `fetch()` and `http.request()`/`https.request()` at runtime, as an alternative
2142
+ * to using the `--use-env-proxy` flag or `NODE_USE_ENV_PROXY` environment variable.
2143
+ * It can also be used to override settings configured from the environment variables.
2144
+ *
2145
+ * As this function resets the global configurations, any previously configured
2146
+ * `http.globalAgent`, `https.globalAgent` or undici global dispatcher would be
2147
+ * overridden after this function is invoked. It's recommended to invoke it before any
2148
+ * requests are made and avoid invoking it in the middle of any requests.
2149
+ *
2150
+ * See [Built-in Proxy Support](https://nodejs.org/docs/latest-v25.x/api/http.html#built-in-proxy-support) for details on proxy URL formats and `NO_PROXY`
2151
+ * syntax.
2152
+ * @since v25.4.0
2153
+ * @param proxyEnv An object containing proxy configuration. This accepts the
2154
+ * same options as the `proxyEnv` option accepted by {@link Agent}. **Default:**
2155
+ * `process.env`.
2156
+ * @returns A function that restores the original agent and dispatcher
2157
+ * settings to the state before this `http.setGlobalProxyFromEnv()` is invoked.
2158
+ */
2159
+ function setGlobalProxyFromEnv(proxyEnv?: ProxyEnv): () => void;
2139
2160
  /**
2140
2161
  * Global instance of `Agent` which is used as the default for all HTTP client
2141
2162
  * requests. Diverges from a default `Agent` configuration by having `keepAlive`