cdk-ecr-deployment 3.1.8 → 3.1.9
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/.jsii.tabl.json +1 -1
- package/lib/index.js +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +55 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +3 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +74 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +24 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +19 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +104 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +0 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +52 -10
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +55 -0
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +3 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +74 -0
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +24 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +19 -2
- package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +104 -14
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +0 -5
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +52 -10
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +55 -0
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +3 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +74 -0
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +24 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +19 -2
- package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +104 -14
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +0 -5
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +52 -10
- package/package.json +2 -2
|
@@ -186,7 +186,10 @@ declare module "process" {
|
|
|
186
186
|
readonly inspector: boolean;
|
|
187
187
|
/**
|
|
188
188
|
* A boolean value that is `true` if the current Node.js build includes support for IPv6.
|
|
189
|
+
*
|
|
190
|
+
* Since all Node.js builds have IPv6 support, this value is always `true`.
|
|
189
191
|
* @since v0.5.3
|
|
192
|
+
* @deprecated This property is always true, and any checks based on it are redundant.
|
|
190
193
|
*/
|
|
191
194
|
readonly ipv6: boolean;
|
|
192
195
|
/**
|
|
@@ -202,17 +205,29 @@ declare module "process" {
|
|
|
202
205
|
readonly tls: boolean;
|
|
203
206
|
/**
|
|
204
207
|
* A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS.
|
|
208
|
+
*
|
|
209
|
+
* In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional ALPN support.
|
|
210
|
+
* This value is therefore identical to that of `process.features.tls`.
|
|
205
211
|
* @since v4.8.0
|
|
212
|
+
* @deprecated Use `process.features.tls` instead.
|
|
206
213
|
*/
|
|
207
214
|
readonly tls_alpn: boolean;
|
|
208
215
|
/**
|
|
209
216
|
* A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS.
|
|
217
|
+
*
|
|
218
|
+
* In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional OCSP support.
|
|
219
|
+
* This value is therefore identical to that of `process.features.tls`.
|
|
210
220
|
* @since v0.11.13
|
|
221
|
+
* @deprecated Use `process.features.tls` instead.
|
|
211
222
|
*/
|
|
212
223
|
readonly tls_ocsp: boolean;
|
|
213
224
|
/**
|
|
214
225
|
* A boolean value that is `true` if the current Node.js build includes support for SNI in TLS.
|
|
226
|
+
*
|
|
227
|
+
* In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional SNI support.
|
|
228
|
+
* This value is therefore identical to that of `process.features.tls`.
|
|
215
229
|
* @since v0.5.3
|
|
230
|
+
* @deprecated Use `process.features.tls` instead.
|
|
216
231
|
*/
|
|
217
232
|
readonly tls_sni: boolean;
|
|
218
233
|
/**
|
|
@@ -223,8 +238,10 @@ declare module "process" {
|
|
|
223
238
|
readonly typescript: "strip" | "transform" | false;
|
|
224
239
|
/**
|
|
225
240
|
* A boolean value that is `true` if the current Node.js build includes support for libuv.
|
|
226
|
-
*
|
|
241
|
+
*
|
|
242
|
+
* Since it's not possible to build Node.js without libuv, this value is always `true`.
|
|
227
243
|
* @since v0.5.3
|
|
244
|
+
* @deprecated This property is always true, and any checks based on it are redundant.
|
|
228
245
|
*/
|
|
229
246
|
readonly uv: boolean;
|
|
230
247
|
}
|
|
@@ -1676,7 +1693,7 @@ declare module "process" {
|
|
|
1676
1693
|
*/
|
|
1677
1694
|
nextTick(callback: Function, ...args: any[]): void;
|
|
1678
1695
|
/**
|
|
1679
|
-
* This API is available through the [--
|
|
1696
|
+
* This API is available through the [--permission](https://nodejs.org/api/cli.html#--permission) flag.
|
|
1680
1697
|
*
|
|
1681
1698
|
* `process.permission` is an object whose methods are used to manage permissions for the current process.
|
|
1682
1699
|
* Additional documentation is available in the [Permission Model](https://nodejs.org/api/permissions.html#permission-model).
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/sqlite.js)
|
|
44
44
|
*/
|
|
45
45
|
declare module "node:sqlite" {
|
|
46
|
+
type SupportedValueType = null | number | bigint | string | Uint8Array;
|
|
46
47
|
interface DatabaseSyncOptions {
|
|
47
48
|
/**
|
|
48
49
|
* If `true`, the database is opened by the constructor. When
|
|
@@ -77,6 +78,14 @@ declare module "node:sqlite" {
|
|
|
77
78
|
* @default false
|
|
78
79
|
*/
|
|
79
80
|
readOnly?: boolean | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* If `true`, the `loadExtension` SQL function
|
|
83
|
+
* and the `loadExtension()` method are enabled.
|
|
84
|
+
* You can call `enableLoadExtension(false)` later to disable this feature.
|
|
85
|
+
* @since v22.13.0
|
|
86
|
+
* @default false
|
|
87
|
+
*/
|
|
88
|
+
allowExtension?: boolean | undefined;
|
|
80
89
|
}
|
|
81
90
|
interface CreateSessionOptions {
|
|
82
91
|
/**
|
|
@@ -105,6 +114,34 @@ declare module "node:sqlite" {
|
|
|
105
114
|
*/
|
|
106
115
|
onConflict?: number | undefined;
|
|
107
116
|
}
|
|
117
|
+
interface FunctionOptions {
|
|
118
|
+
/**
|
|
119
|
+
* If `true`, the [`SQLITE_DETERMINISTIC`](https://www.sqlite.org/c3ref/c_deterministic.html) flag is
|
|
120
|
+
* set on the created function.
|
|
121
|
+
* @default false
|
|
122
|
+
*/
|
|
123
|
+
deterministic?: boolean | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* If `true`, the [`SQLITE_DIRECTONLY`](https://www.sqlite.org/c3ref/c_directonly.html) flag is set on
|
|
126
|
+
* the created function.
|
|
127
|
+
* @default false
|
|
128
|
+
*/
|
|
129
|
+
directOnly?: boolean | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* If `true`, integer arguments to `function`
|
|
132
|
+
* are converted to `BigInt`s. If `false`, integer arguments are passed as
|
|
133
|
+
* JavaScript numbers.
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
136
|
+
useBigIntArguments?: boolean | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* If `true`, `function` can accept a variable number of
|
|
139
|
+
* arguments. If `false`, `function` must be invoked with exactly
|
|
140
|
+
* `function.length` arguments.
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
|
+
varargs?: boolean | undefined;
|
|
144
|
+
}
|
|
108
145
|
/**
|
|
109
146
|
* This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
|
|
110
147
|
* exposed by this class execute synchronously.
|
|
@@ -126,6 +163,22 @@ declare module "node:sqlite" {
|
|
|
126
163
|
* @since v22.5.0
|
|
127
164
|
*/
|
|
128
165
|
close(): void;
|
|
166
|
+
/**
|
|
167
|
+
* Loads a shared library into the database connection. This method is a wrapper
|
|
168
|
+
* around [`sqlite3_load_extension()`](https://www.sqlite.org/c3ref/load_extension.html). It is required to enable the
|
|
169
|
+
* `allowExtension` option when constructing the `DatabaseSync` instance.
|
|
170
|
+
* @since v22.13.0
|
|
171
|
+
* @param path The path to the shared library to load.
|
|
172
|
+
*/
|
|
173
|
+
loadExtension(path: string): void;
|
|
174
|
+
/**
|
|
175
|
+
* Enables or disables the `loadExtension` SQL function, and the `loadExtension()`
|
|
176
|
+
* method. When `allowExtension` is `false` when constructing, you cannot enable
|
|
177
|
+
* loading extensions for security reasons.
|
|
178
|
+
* @since v22.13.0
|
|
179
|
+
* @param allow Whether to allow loading extensions.
|
|
180
|
+
*/
|
|
181
|
+
enableLoadExtension(allow: boolean): void;
|
|
129
182
|
/**
|
|
130
183
|
* This method allows one or more SQL statements to be executed without returning
|
|
131
184
|
* any results. This method is useful when executing SQL statements read from a
|
|
@@ -134,6 +187,21 @@ declare module "node:sqlite" {
|
|
|
134
187
|
* @param sql A SQL string to execute.
|
|
135
188
|
*/
|
|
136
189
|
exec(sql: string): void;
|
|
190
|
+
/**
|
|
191
|
+
* This method is used to create SQLite user-defined functions. This method is a
|
|
192
|
+
* wrapper around [`sqlite3_create_function_v2()`](https://www.sqlite.org/c3ref/create_function.html).
|
|
193
|
+
* @since v22.13.0
|
|
194
|
+
* @param name The name of the SQLite function to create.
|
|
195
|
+
* @param options Optional configuration settings for the function.
|
|
196
|
+
* @param func The JavaScript function to call when the SQLite
|
|
197
|
+
* function is invoked.
|
|
198
|
+
*/
|
|
199
|
+
function(
|
|
200
|
+
name: string,
|
|
201
|
+
options: FunctionOptions,
|
|
202
|
+
func: (...args: SupportedValueType[]) => SupportedValueType,
|
|
203
|
+
): void;
|
|
204
|
+
function(name: string, func: (...args: SupportedValueType[]) => SupportedValueType): void;
|
|
137
205
|
/**
|
|
138
206
|
* Opens the database specified in the `location` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via
|
|
139
207
|
* the constructor. An exception is thrown if the database is already open.
|
|
@@ -215,7 +283,6 @@ declare module "node:sqlite" {
|
|
|
215
283
|
*/
|
|
216
284
|
close(): void;
|
|
217
285
|
}
|
|
218
|
-
type SupportedValueType = null | number | bigint | string | Uint8Array;
|
|
219
286
|
interface StatementResultingChanges {
|
|
220
287
|
/**
|
|
221
288
|
* The number of rows modified, inserted, or deleted by the most recently completed `INSERT`, `UPDATE`, or `DELETE` statement.
|
|
@@ -281,6 +348,24 @@ declare module "node:sqlite" {
|
|
|
281
348
|
*/
|
|
282
349
|
get(...anonymousParameters: SupportedValueType[]): unknown;
|
|
283
350
|
get(namedParameters: Record<string, SupportedValueType>, ...anonymousParameters: SupportedValueType[]): unknown;
|
|
351
|
+
/**
|
|
352
|
+
* This method executes a prepared statement and returns an iterator of
|
|
353
|
+
* objects. If the prepared statement does not return any results, this method
|
|
354
|
+
* returns an empty iterator. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using
|
|
355
|
+
* the values in `namedParameters` and `anonymousParameters`.
|
|
356
|
+
* @since v22.13.0
|
|
357
|
+
* @param namedParameters An optional object used to bind named parameters.
|
|
358
|
+
* The keys of this object are used to configure the mapping.
|
|
359
|
+
* @param anonymousParameters Zero or more values to bind to anonymous parameters.
|
|
360
|
+
* @returns An iterable iterator of objects. Each object corresponds to a row
|
|
361
|
+
* returned by executing the prepared statement. The keys and values of each
|
|
362
|
+
* object correspond to the column names and values of the row.
|
|
363
|
+
*/
|
|
364
|
+
iterate(...anonymousParameters: SupportedValueType[]): NodeJS.Iterator<unknown>;
|
|
365
|
+
iterate(
|
|
366
|
+
namedParameters: Record<string, SupportedValueType>,
|
|
367
|
+
...anonymousParameters: SupportedValueType[]
|
|
368
|
+
): NodeJS.Iterator<unknown>;
|
|
284
369
|
/**
|
|
285
370
|
* This method executes a prepared statement and returns an object summarizing the
|
|
286
371
|
* resulting changes. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using the
|
|
@@ -332,18 +417,23 @@ declare module "node:sqlite" {
|
|
|
332
417
|
readonly sourceSQL: string;
|
|
333
418
|
}
|
|
334
419
|
/**
|
|
335
|
-
*
|
|
336
|
-
* @since v22.12.0
|
|
337
|
-
*/
|
|
338
|
-
const SQLITE_CHANGESET_OMIT: number;
|
|
339
|
-
/**
|
|
340
|
-
* Conflicting changes replace existing values.
|
|
341
|
-
* @since v22.12.0
|
|
342
|
-
*/
|
|
343
|
-
const SQLITE_CHANGESET_REPLACE: number;
|
|
344
|
-
/**
|
|
345
|
-
* Abort when a change encounters a conflict and roll back databsase.
|
|
346
|
-
* @since v22.12.0
|
|
420
|
+
* @since v22.13.0
|
|
347
421
|
*/
|
|
348
|
-
|
|
422
|
+
namespace constants {
|
|
423
|
+
/**
|
|
424
|
+
* Conflicting changes are omitted.
|
|
425
|
+
* @since v22.12.0
|
|
426
|
+
*/
|
|
427
|
+
const SQLITE_CHANGESET_OMIT: number;
|
|
428
|
+
/**
|
|
429
|
+
* Conflicting changes replace existing values.
|
|
430
|
+
* @since v22.12.0
|
|
431
|
+
*/
|
|
432
|
+
const SQLITE_CHANGESET_REPLACE: number;
|
|
433
|
+
/**
|
|
434
|
+
* Abort when a change encounters a conflict and roll back database.
|
|
435
|
+
* @since v22.12.0
|
|
436
|
+
*/
|
|
437
|
+
const SQLITE_CHANGESET_ABORT: number;
|
|
438
|
+
}
|
|
349
439
|
}
|
|
@@ -887,10 +887,7 @@ declare module "node:test" {
|
|
|
887
887
|
* });
|
|
888
888
|
* });
|
|
889
889
|
* ```
|
|
890
|
-
*
|
|
891
|
-
* Only available through the [--experimental-test-snapshots](https://nodejs.org/api/cli.html#--experimental-test-snapshots) flag.
|
|
892
890
|
* @since v22.3.0
|
|
893
|
-
* @experimental
|
|
894
891
|
*/
|
|
895
892
|
snapshot(value: any, options?: AssertSnapshotOptions): void;
|
|
896
893
|
}
|
|
@@ -1691,9 +1688,7 @@ declare module "node:test" {
|
|
|
1691
1688
|
[Symbol.dispose](): void;
|
|
1692
1689
|
}
|
|
1693
1690
|
/**
|
|
1694
|
-
* Only available through the [--experimental-test-snapshots](https://nodejs.org/api/cli.html#--experimental-test-snapshots) flag.
|
|
1695
1691
|
* @since v22.3.0
|
|
1696
|
-
* @experimental
|
|
1697
1692
|
*/
|
|
1698
1693
|
namespace snapshot {
|
|
1699
1694
|
/**
|
|
@@ -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
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"jsii-diff": "^1.106.0",
|
|
65
65
|
"jsii-docgen": "^10.5.0",
|
|
66
66
|
"jsii-pacmak": "^1.106.0",
|
|
67
|
-
"jsii-rosetta": "^5.7.
|
|
67
|
+
"jsii-rosetta": "^5.7.4",
|
|
68
68
|
"projen": "^0.91.4",
|
|
69
69
|
"ts-jest": "^27",
|
|
70
70
|
"ts-node": "^10.9.2",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"access": "public"
|
|
96
96
|
},
|
|
97
|
-
"version": "3.1.
|
|
97
|
+
"version": "3.1.9",
|
|
98
98
|
"jest": {
|
|
99
99
|
"coverageProvider": "v8",
|
|
100
100
|
"testMatch": [
|