cdk-ecr-deployment 3.1.8 → 3.1.10

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 (64) hide show
  1. package/.jsii +2 -2
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +3 -3
  4. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  5. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +55 -0
  6. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +114 -39
  7. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +4 -11
  8. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +3 -1
  9. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
  10. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1 -0
  11. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +81 -0
  12. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +24 -0
  13. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  14. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +5 -0
  15. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +19 -2
  16. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +105 -15
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +6 -1
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +936 -1000
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +40 -138
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +52 -10
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +1 -1
  24. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  25. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +55 -0
  26. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +114 -39
  27. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +4 -11
  28. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +3 -1
  29. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
  30. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1 -0
  31. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +81 -0
  32. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +24 -0
  33. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  34. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +5 -0
  35. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +19 -2
  36. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
  37. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +105 -15
  38. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +6 -1
  39. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +936 -1000
  40. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +40 -138
  41. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  42. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +52 -10
  43. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +1 -1
  44. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  45. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +55 -0
  46. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +114 -39
  47. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +4 -11
  48. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +3 -1
  49. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
  50. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1 -0
  51. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +81 -0
  52. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +24 -0
  53. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  54. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +5 -0
  55. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +19 -2
  56. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
  57. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +105 -15
  58. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +6 -1
  59. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +936 -1000
  60. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +40 -138
  61. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  62. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +52 -10
  63. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +1 -1
  64. package/package.json +4 -4
@@ -564,6 +564,23 @@ declare module "node:test" {
564
564
  /**
565
565
  * An object containing assertion methods bound to the test context.
566
566
  * The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans.
567
+ *
568
+ * **Note:** Some of the functions from `node:assert` contain type assertions. If these are called via the
569
+ * TestContext `assert` object, then the context parameter in the test's function signature **must be explicitly typed**
570
+ * (ie. the parameter must have a type annotation), otherwise an error will be raised by the TypeScript compiler:
571
+ * ```ts
572
+ * import { test, type TestContext } from 'node:test';
573
+ *
574
+ * // The test function's context parameter must have a type annotation.
575
+ * test('example', (t: TestContext) => {
576
+ * t.assert.deepStrictEqual(actual, expected);
577
+ * });
578
+ *
579
+ * // Omitting the type annotation will result in a compilation error.
580
+ * test('example', t => {
581
+ * t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
582
+ * });
583
+ * ```
567
584
  * @since v22.2.0, v20.15.0
568
585
  */
569
586
  readonly assert: TestContextAssert;
@@ -741,139 +758,29 @@ declare module "node:test" {
741
758
  */
742
759
  readonly mock: MockTracker;
743
760
  }
744
- interface TestContextAssert {
745
- /**
746
- * Identical to the `deepEqual` function from the `node:assert` module, but bound to the test context.
747
- */
748
- deepEqual: typeof import("node:assert").deepEqual;
749
- /**
750
- * Identical to the `deepStrictEqual` function from the `node:assert` module, but bound to the test context.
751
- *
752
- * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
753
- * type annotation, otherwise an error will be raised by the TypeScript compiler:
754
- * ```ts
755
- * import { test, type TestContext } from 'node:test';
756
- *
757
- * // The test function's context parameter must have a type annotation.
758
- * test('example', (t: TestContext) => {
759
- * t.assert.deepStrictEqual(actual, expected);
760
- * });
761
- *
762
- * // Omitting the type annotation will result in a compilation error.
763
- * test('example', t => {
764
- * t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
765
- * });
766
- * ```
767
- */
768
- deepStrictEqual: typeof import("node:assert").deepStrictEqual;
769
- /**
770
- * Identical to the `doesNotMatch` function from the `node:assert` module, but bound to the test context.
771
- */
772
- doesNotMatch: typeof import("node:assert").doesNotMatch;
773
- /**
774
- * Identical to the `doesNotReject` function from the `node:assert` module, but bound to the test context.
775
- */
776
- doesNotReject: typeof import("node:assert").doesNotReject;
777
- /**
778
- * Identical to the `doesNotThrow` function from the `node:assert` module, but bound to the test context.
779
- */
780
- doesNotThrow: typeof import("node:assert").doesNotThrow;
781
- /**
782
- * Identical to the `equal` function from the `node:assert` module, but bound to the test context.
783
- */
784
- equal: typeof import("node:assert").equal;
785
- /**
786
- * Identical to the `fail` function from the `node:assert` module, but bound to the test context.
787
- */
788
- fail: typeof import("node:assert").fail;
789
- /**
790
- * Identical to the `ifError` function from the `node:assert` module, but bound to the test context.
791
- *
792
- * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
793
- * type annotation, otherwise an error will be raised by the TypeScript compiler:
794
- * ```ts
795
- * import { test, type TestContext } from 'node:test';
796
- *
797
- * // The test function's context parameter must have a type annotation.
798
- * test('example', (t: TestContext) => {
799
- * t.assert.ifError(err);
800
- * });
801
- *
802
- * // Omitting the type annotation will result in a compilation error.
803
- * test('example', t => {
804
- * t.assert.ifError(err); // Error: 't' needs an explicit type annotation.
805
- * });
806
- * ```
807
- */
808
- ifError: typeof import("node:assert").ifError;
809
- /**
810
- * Identical to the `match` function from the `node:assert` module, but bound to the test context.
811
- */
812
- match: typeof import("node:assert").match;
813
- /**
814
- * Identical to the `notDeepEqual` function from the `node:assert` module, but bound to the test context.
815
- */
816
- notDeepEqual: typeof import("node:assert").notDeepEqual;
817
- /**
818
- * Identical to the `notDeepStrictEqual` function from the `node:assert` module, but bound to the test context.
819
- */
820
- notDeepStrictEqual: typeof import("node:assert").notDeepStrictEqual;
821
- /**
822
- * Identical to the `notEqual` function from the `node:assert` module, but bound to the test context.
823
- */
824
- notEqual: typeof import("node:assert").notEqual;
825
- /**
826
- * Identical to the `notStrictEqual` function from the `node:assert` module, but bound to the test context.
827
- */
828
- notStrictEqual: typeof import("node:assert").notStrictEqual;
829
- /**
830
- * Identical to the `ok` function from the `node:assert` module, but bound to the test context.
831
- *
832
- * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
833
- * type annotation, otherwise an error will be raised by the TypeScript compiler:
834
- * ```ts
835
- * import { test, type TestContext } from 'node:test';
836
- *
837
- * // The test function's context parameter must have a type annotation.
838
- * test('example', (t: TestContext) => {
839
- * t.assert.ok(condition);
840
- * });
841
- *
842
- * // Omitting the type annotation will result in a compilation error.
843
- * test('example', t => {
844
- * t.assert.ok(condition)); // Error: 't' needs an explicit type annotation.
845
- * });
846
- * ```
847
- */
848
- ok: typeof import("node:assert").ok;
849
- /**
850
- * Identical to the `rejects` function from the `node:assert` module, but bound to the test context.
851
- */
852
- rejects: typeof import("node:assert").rejects;
853
- /**
854
- * Identical to the `strictEqual` function from the `node:assert` module, but bound to the test context.
855
- *
856
- * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
857
- * type annotation, otherwise an error will be raised by the TypeScript compiler:
858
- * ```ts
859
- * import { test, type TestContext } from 'node:test';
860
- *
861
- * // The test function's context parameter must have a type annotation.
862
- * test('example', (t: TestContext) => {
863
- * t.assert.strictEqual(actual, expected);
864
- * });
865
- *
866
- * // Omitting the type annotation will result in a compilation error.
867
- * test('example', t => {
868
- * t.assert.strictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
869
- * });
870
- * ```
871
- */
872
- strictEqual: typeof import("node:assert").strictEqual;
873
- /**
874
- * Identical to the `throws` function from the `node:assert` module, but bound to the test context.
875
- */
876
- throws: typeof import("node:assert").throws;
761
+ interface TestContextAssert extends
762
+ Pick<
763
+ typeof import("assert"),
764
+ | "deepEqual"
765
+ | "deepStrictEqual"
766
+ | "doesNotMatch"
767
+ | "doesNotReject"
768
+ | "doesNotThrow"
769
+ | "equal"
770
+ | "fail"
771
+ | "ifError"
772
+ | "match"
773
+ | "notDeepEqual"
774
+ | "notDeepStrictEqual"
775
+ | "notEqual"
776
+ | "notStrictEqual"
777
+ | "ok"
778
+ | "partialDeepStrictEqual"
779
+ | "rejects"
780
+ | "strictEqual"
781
+ | "throws"
782
+ >
783
+ {
877
784
  /**
878
785
  * This function implements assertions for snapshot testing.
879
786
  * ```js
@@ -887,10 +794,7 @@ declare module "node:test" {
887
794
  * });
888
795
  * });
889
796
  * ```
890
- *
891
- * Only available through the [--experimental-test-snapshots](https://nodejs.org/api/cli.html#--experimental-test-snapshots) flag.
892
797
  * @since v22.3.0
893
- * @experimental
894
798
  */
895
799
  snapshot(value: any, options?: AssertSnapshotOptions): void;
896
800
  }
@@ -1691,9 +1595,7 @@ declare module "node:test" {
1691
1595
  [Symbol.dispose](): void;
1692
1596
  }
1693
1597
  /**
1694
- * Only available through the [--experimental-test-snapshots](https://nodejs.org/api/cli.html#--experimental-test-snapshots) flag.
1695
1598
  * @since v22.3.0
1696
- * @experimental
1697
1599
  */
1698
1600
  namespace snapshot {
1699
1601
  /**
@@ -24,7 +24,7 @@ declare module "buffer" {
24
24
  * @param array The octets to store.
25
25
  * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
26
26
  */
27
- new(array: Uint8Array): Buffer;
27
+ new(array: ArrayLike<number>): Buffer;
28
28
  /**
29
29
  * Produces a Buffer backed by the same allocated memory as
30
30
  * the given {ArrayBuffer}/{SharedArrayBuffer}.
@@ -33,20 +33,6 @@ declare module "buffer" {
33
33
  * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
34
34
  */
35
35
  new(arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
36
- /**
37
- * Allocates a new buffer containing the given {array} of octets.
38
- *
39
- * @param array The octets to store.
40
- * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
41
- */
42
- new(array: readonly any[]): Buffer;
43
- /**
44
- * Copies the passed {buffer} data onto a new {Buffer} instance.
45
- *
46
- * @param buffer The buffer to copy.
47
- * @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead.
48
- */
49
- new(buffer: Buffer): Buffer;
50
36
  /**
51
37
  * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
52
38
  * Array entries outside that range will be truncated to fit into it.
@@ -58,40 +44,120 @@ declare module "buffer" {
58
44
  * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
59
45
  * ```
60
46
  *
61
- * If `array` is an `Array`\-like object (that is, one with a `length` property of
47
+ * If `array` is an `Array`-like object (that is, one with a `length` property of
62
48
  * type `number`), it is treated as if it is an array, unless it is a `Buffer` or
63
- * a `Uint8Array`. This means all other `TypedArray` variants get treated as an `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use `Buffer.copyBytesFrom()`.
49
+ * a `Uint8Array`. This means all other `TypedArray` variants get treated as an
50
+ * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use
51
+ * `Buffer.copyBytesFrom()`.
64
52
  *
65
53
  * A `TypeError` will be thrown if `array` is not an `Array` or another type
66
54
  * appropriate for `Buffer.from()` variants.
67
55
  *
68
- * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
56
+ * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal
57
+ * `Buffer` pool like `Buffer.allocUnsafe()` does.
69
58
  * @since v5.10.0
70
59
  */
60
+ from(array: WithImplicitCoercion<ArrayLike<number>>): Buffer;
61
+ /**
62
+ * This creates a view of the `ArrayBuffer` without copying the underlying
63
+ * memory. For example, when passed a reference to the `.buffer` property of a
64
+ * `TypedArray` instance, the newly created `Buffer` will share the same
65
+ * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`.
66
+ *
67
+ * ```js
68
+ * import { Buffer } from 'node:buffer';
69
+ *
70
+ * const arr = new Uint16Array(2);
71
+ *
72
+ * arr[0] = 5000;
73
+ * arr[1] = 4000;
74
+ *
75
+ * // Shares memory with `arr`.
76
+ * const buf = Buffer.from(arr.buffer);
77
+ *
78
+ * console.log(buf);
79
+ * // Prints: <Buffer 88 13 a0 0f>
80
+ *
81
+ * // Changing the original Uint16Array changes the Buffer also.
82
+ * arr[1] = 6000;
83
+ *
84
+ * console.log(buf);
85
+ * // Prints: <Buffer 88 13 70 17>
86
+ * ```
87
+ *
88
+ * The optional `byteOffset` and `length` arguments specify a memory range within
89
+ * the `arrayBuffer` that will be shared by the `Buffer`.
90
+ *
91
+ * ```js
92
+ * import { Buffer } from 'node:buffer';
93
+ *
94
+ * const ab = new ArrayBuffer(10);
95
+ * const buf = Buffer.from(ab, 0, 2);
96
+ *
97
+ * console.log(buf.length);
98
+ * // Prints: 2
99
+ * ```
100
+ *
101
+ * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a
102
+ * `SharedArrayBuffer` or another type appropriate for `Buffer.from()`
103
+ * variants.
104
+ *
105
+ * It is important to remember that a backing `ArrayBuffer` can cover a range
106
+ * of memory that extends beyond the bounds of a `TypedArray` view. A new
107
+ * `Buffer` created using the `buffer` property of a `TypedArray` may extend
108
+ * beyond the range of the `TypedArray`:
109
+ *
110
+ * ```js
111
+ * import { Buffer } from 'node:buffer';
112
+ *
113
+ * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements
114
+ * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements
115
+ * console.log(arrA.buffer === arrB.buffer); // true
116
+ *
117
+ * const buf = Buffer.from(arrB.buffer);
118
+ * console.log(buf);
119
+ * // Prints: <Buffer 63 64 65 66>
120
+ * ```
121
+ * @since v5.10.0
122
+ * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the
123
+ * `.buffer` property of a `TypedArray`.
124
+ * @param byteOffset Index of first byte to expose. **Default:** `0`.
125
+ * @param length Number of bytes to expose. **Default:**
126
+ * `arrayBuffer.byteLength - byteOffset`.
127
+ */
71
128
  from(
72
129
  arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>,
73
130
  byteOffset?: number,
74
131
  length?: number,
75
132
  ): Buffer;
76
133
  /**
77
- * Creates a new Buffer using the passed {data}
78
- * @param data data to create a new Buffer
79
- */
80
- from(data: Uint8Array | readonly number[]): Buffer;
81
- from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): Buffer;
82
- /**
83
- * Creates a new Buffer containing the given JavaScript string {str}.
84
- * If provided, the {encoding} parameter identifies the character encoding.
85
- * If not provided, {encoding} defaults to 'utf8'.
134
+ * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies
135
+ * the character encoding to be used when converting `string` into bytes.
136
+ *
137
+ * ```js
138
+ * import { Buffer } from 'node:buffer';
139
+ *
140
+ * const buf1 = Buffer.from('this is a tést');
141
+ * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');
142
+ *
143
+ * console.log(buf1.toString());
144
+ * // Prints: this is a tést
145
+ * console.log(buf2.toString());
146
+ * // Prints: this is a tést
147
+ * console.log(buf1.toString('latin1'));
148
+ * // Prints: this is a tést
149
+ * ```
150
+ *
151
+ * A `TypeError` will be thrown if `string` is not a string or another type
152
+ * appropriate for `Buffer.from()` variants.
153
+ *
154
+ * `Buffer.from(string)` may also use the internal `Buffer` pool like
155
+ * `Buffer.allocUnsafe()` does.
156
+ * @since v5.10.0
157
+ * @param string A string to encode.
158
+ * @param encoding The encoding of `string`. **Default:** `'utf8'`.
86
159
  */
87
- from(
88
- str:
89
- | WithImplicitCoercion<string>
90
- | {
91
- [Symbol.toPrimitive](hint: "string"): string;
92
- },
93
- encoding?: BufferEncoding,
94
- ): Buffer;
160
+ from(string: WithImplicitCoercion<string>, encoding?: BufferEncoding): Buffer;
95
161
  /**
96
162
  * Creates a new Buffer using the passed {data}
97
163
  * @param values to create a new Buffer
@@ -382,4 +448,10 @@ declare module "buffer" {
382
448
  subarray(start?: number, end?: number): Buffer;
383
449
  }
384
450
  }
451
+ /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
452
+ var SlowBuffer: {
453
+ /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
454
+ new(size: number): Buffer;
455
+ prototype: Buffer;
456
+ };
385
457
  }
@@ -185,6 +185,13 @@ declare module "util" {
185
185
  * @since v10.0.0
186
186
  */
187
187
  export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
188
+ interface GetCallSitesOptions {
189
+ /**
190
+ * Reconstruct the original location in the stacktrace from the source-map.
191
+ * Enabled by default with the flag `--enable-source-maps`.
192
+ */
193
+ sourceMap?: boolean | undefined;
194
+ }
188
195
  /**
189
196
  * Returns an array of call site objects containing the stack of
190
197
  * the caller function.
@@ -225,12 +232,40 @@ declare module "util" {
225
232
  *
226
233
  * anotherFunction();
227
234
  * ```
235
+ *
236
+ * It is possible to reconstruct the original locations by setting the option `sourceMap` to `true`.
237
+ * If the source map is not available, the original location will be the same as the current location.
238
+ * When the `--enable-source-maps` flag is enabled, for example when using `--experimental-transform-types`,
239
+ * `sourceMap` will be true by default.
240
+ *
241
+ * ```ts
242
+ * import util from 'node:util';
243
+ *
244
+ * interface Foo {
245
+ * foo: string;
246
+ * }
247
+ *
248
+ * const callSites = util.getCallSites({ sourceMap: true });
249
+ *
250
+ * // With sourceMap:
251
+ * // Function Name: ''
252
+ * // Script Name: example.js
253
+ * // Line Number: 7
254
+ * // Column Number: 26
255
+ *
256
+ * // Without sourceMap:
257
+ * // Function Name: ''
258
+ * // Script Name: example.js
259
+ * // Line Number: 2
260
+ * // Column Number: 26
261
+ * ```
228
262
  * @param frameCount Number of frames to capture as call site objects.
229
263
  * **Default:** `10`. Allowable range is between 1 and 200.
230
264
  * @return An array of call site objects
231
265
  * @since v22.9.0
232
266
  */
233
- export function getCallSites(frameCount?: number): CallSiteObject[];
267
+ export function getCallSites(frameCount?: number, options?: GetCallSitesOptions): CallSiteObject[];
268
+ export function getCallSites(options: GetCallSitesOptions): CallSiteObject[];
234
269
  /**
235
270
  * Returns the string name for a numeric error code that comes from a Node.js API.
236
271
  * The mapping between error codes and error names is platform-dependent.
@@ -317,27 +352,36 @@ declare module "util" {
317
352
  */
318
353
  export function transferableAbortSignal(signal: AbortSignal): AbortSignal;
319
354
  /**
320
- * Listens to abort event on the provided `signal` and
321
- * returns a promise that is fulfilled when the `signal` is
322
- * aborted. If the passed `resource` is garbage collected before the `signal` is
323
- * aborted, the returned promise shall remain pending indefinitely.
355
+ * Listens to abort event on the provided `signal` and returns a promise that resolves when the `signal` is aborted.
356
+ * If `resource` is provided, it weakly references the operation's associated object,
357
+ * so if `resource` is garbage collected before the `signal` aborts,
358
+ * then returned promise shall remain pending.
359
+ * This prevents memory leaks in long-running or non-cancelable operations.
324
360
  *
325
361
  * ```js
326
362
  * import { aborted } from 'node:util';
327
363
  *
364
+ * // Obtain an object with an abortable signal, like a custom resource or operation.
328
365
  * const dependent = obtainSomethingAbortable();
329
366
  *
367
+ * // Pass `dependent` as the resource, indicating the promise should only resolve
368
+ * // if `dependent` is still in memory when the signal is aborted.
330
369
  * aborted(dependent.signal, dependent).then(() => {
331
- * // Do something when dependent is aborted.
370
+ * // This code runs when `dependent` is aborted.
371
+ * console.log('Dependent resource was aborted.');
332
372
  * });
333
373
  *
374
+ * // Simulate an event that triggers the abort.
334
375
  * dependent.on('event', () => {
335
- * dependent.abort();
376
+ * dependent.abort(); // This will cause the `aborted` promise to resolve.
336
377
  * });
337
378
  * ```
338
379
  * @since v19.7.0
339
380
  * @experimental
340
- * @param resource Any non-null entity, reference to which is held weakly.
381
+ * @param resource Any non-null object tied to the abortable operation and held weakly.
382
+ * If `resource` is garbage collected before the `signal` aborts, the promise remains pending,
383
+ * allowing Node.js to stop tracking it.
384
+ * This helps prevent memory leaks in long-running or non-cancelable operations.
341
385
  */
342
386
  export function aborted(signal: AbortSignal, resource: any): Promise<void>;
343
387
  /**
@@ -1321,8 +1365,6 @@ declare module "util" {
1321
1365
  | "strikethrough"
1322
1366
  | "underline";
1323
1367
  /**
1324
- * Stability: 1.1 - Active development
1325
- *
1326
1368
  * This function returns a formatted text considering the `format` passed.
1327
1369
  *
1328
1370
  * ```js
@@ -69,7 +69,7 @@ declare module "vm" {
69
69
  * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
70
70
  */
71
71
  importModuleDynamically?:
72
- | ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module)
72
+ | ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module | Promise<Module>)
73
73
  | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
74
74
  | undefined;
75
75
  }
@@ -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: Tue, 28 Jan 2025 02:01:18 GMT
11
+ * Last updated: Sat, 01 Mar 2025 06:37:25 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -956,6 +956,59 @@ declare module "assert" {
956
956
  * @since v13.6.0, v12.16.0
957
957
  */
958
958
  function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
959
+ /**
960
+ * `assert.partialDeepStrictEqual()` Asserts the equivalence between the `actual` and `expected` parameters through a
961
+ * deep comparison, ensuring that all properties in the `expected` parameter are
962
+ * present in the `actual` parameter with equivalent values, not allowing type coercion.
963
+ * The main difference with `assert.deepStrictEqual()` is that `assert.partialDeepStrictEqual()` does not require
964
+ * all properties in the `actual` parameter to be present in the `expected` parameter.
965
+ * This method should always pass the same test cases as `assert.deepStrictEqual()`, behaving as a super set of it.
966
+ *
967
+ * ```js
968
+ * import assert from 'node:assert';
969
+ *
970
+ * assert.partialDeepStrictEqual({ a: 1, b: 2 }, { a: 1, b: 2 });
971
+ * // OK
972
+ *
973
+ * assert.partialDeepStrictEqual({ a: { b: { c: 1 } } }, { a: { b: { c: 1 } } });
974
+ * // OK
975
+ *
976
+ * assert.partialDeepStrictEqual({ a: 1, b: 2, c: 3 }, { a: 1, b: 2 });
977
+ * // OK
978
+ *
979
+ * assert.partialDeepStrictEqual(new Set(['value1', 'value2']), new Set(['value1', 'value2']));
980
+ * // OK
981
+ *
982
+ * assert.partialDeepStrictEqual(new Map([['key1', 'value1']]), new Map([['key1', 'value1']]));
983
+ * // OK
984
+ *
985
+ * assert.partialDeepStrictEqual(new Uint8Array([1, 2, 3]), new Uint8Array([1, 2, 3]));
986
+ * // OK
987
+ *
988
+ * assert.partialDeepStrictEqual(/abc/, /abc/);
989
+ * // OK
990
+ *
991
+ * assert.partialDeepStrictEqual([{ a: 5 }, { b: 5 }], [{ a: 5 }]);
992
+ * // OK
993
+ *
994
+ * assert.partialDeepStrictEqual(new Set([{ a: 1 }, { b: 1 }]), new Set([{ a: 1 }]));
995
+ * // OK
996
+ *
997
+ * assert.partialDeepStrictEqual(new Date(0), new Date(0));
998
+ * // OK
999
+ *
1000
+ * assert.partialDeepStrictEqual({ a: 1 }, { a: 1, b: 2 });
1001
+ * // AssertionError
1002
+ *
1003
+ * assert.partialDeepStrictEqual({ a: 1, b: '2' }, { a: 1, b: 2 });
1004
+ * // AssertionError
1005
+ *
1006
+ * assert.partialDeepStrictEqual({ a: { b: 2 } }, { a: { b: '2' } });
1007
+ * // AssertionError
1008
+ * ```
1009
+ * @since v22.13.0
1010
+ */
1011
+ function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
959
1012
  /**
960
1013
  * In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example,
961
1014
  * {@link deepEqual} will behave like {@link deepStrictEqual}.
@@ -1015,6 +1068,7 @@ declare module "assert" {
1015
1068
  | "deepStrictEqual"
1016
1069
  | "ifError"
1017
1070
  | "strict"
1071
+ | "AssertionError"
1018
1072
  >
1019
1073
  & {
1020
1074
  (value: unknown, message?: string | Error): asserts value;
@@ -1030,6 +1084,7 @@ declare module "assert" {
1030
1084
  deepStrictEqual: typeof deepStrictEqual;
1031
1085
  ifError: typeof ifError;
1032
1086
  strict: typeof strict;
1087
+ AssertionError: typeof AssertionError;
1033
1088
  };
1034
1089
  }
1035
1090
  export = assert;