cdk-common 1.0.1092 → 1.0.1094
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/.jsii +2 -2
- package/lib/main.js +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +53 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.buffer.d.ts +2 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/dgram.d.ts +3 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +1 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +74 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +24 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +19 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +104 -14
- package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +0 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +52 -10
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +53 -0
- package/node_modules/@types/form-data/node_modules/@types/node/buffer.buffer.d.ts +2 -1
- package/node_modules/@types/form-data/node_modules/@types/node/dgram.d.ts +3 -1
- package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +1 -0
- package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +74 -0
- package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +24 -0
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +19 -2
- package/node_modules/@types/form-data/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +104 -14
- package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +0 -5
- package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +52 -10
- package/package.json +2 -2
|
@@ -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
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
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
|
-
* //
|
|
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
|
|
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
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"jsii-docgen": "^10.5.0",
|
|
56
56
|
"jsii-pacmak": "^1.106.0",
|
|
57
57
|
"jsii-rosetta": "5.3.x",
|
|
58
|
-
"projen": "0.91.
|
|
58
|
+
"projen": "0.91.7",
|
|
59
59
|
"ts-jest": "^27",
|
|
60
60
|
"typescript": "^5"
|
|
61
61
|
},
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
|
-
"version": "1.0.
|
|
94
|
+
"version": "1.0.1094",
|
|
95
95
|
"jest": {
|
|
96
96
|
"coverageProvider": "v8",
|
|
97
97
|
"testMatch": [
|