cdk-common 2.0.1351 → 2.0.1352
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 +38 -2
- package/API.md +36 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +7 -1
- package/lib/managed-policies.js +7 -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/strict.d.ts +5 -11
- package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +9 -169
- package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +8 -8
- package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +44 -168
- package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +16 -64
- package/node_modules/@types/concat-stream/node_modules/@types/node/cluster.d.ts +240 -332
- package/node_modules/@types/concat-stream/node_modules/@types/node/console.d.ts +49 -351
- package/node_modules/@types/concat-stream/node_modules/@types/node/constants.d.ts +3 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +279 -1631
- package/node_modules/@types/concat-stream/node_modules/@types/node/dgram.d.ts +15 -51
- package/node_modules/@types/concat-stream/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/dns/promises.d.ts +3 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +131 -132
- package/node_modules/@types/concat-stream/node_modules/@types/node/domain.d.ts +13 -17
- package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +869 -791
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +7 -8
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +417 -455
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +6 -26
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.typedarray.d.ts +60 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +263 -254
- package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +528 -804
- package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +59 -239
- package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +15 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector/promises.d.ts +41 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +6 -59
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.generated.d.ts +3 -10
- package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +47 -122
- package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +63 -184
- package/node_modules/@types/concat-stream/node_modules/@types/node/os.d.ts +6 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/path.d.ts +120 -133
- package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +282 -643
- package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +156 -128
- package/node_modules/@types/concat-stream/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/querystring.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/quic.d.ts +910 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +3 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +67 -120
- package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +75 -98
- 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 +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream/promises.d.ts +136 -15
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream/web.d.ts +176 -453
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +555 -478
- package/node_modules/@types/concat-stream/node_modules/@types/node/string_decoder.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/test/reporters.d.ts +96 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +80 -180
- package/node_modules/@types/concat-stream/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/timers.d.ts +4 -130
- package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +102 -177
- package/node_modules/@types/concat-stream/node_modules/@types/node/trace_events.d.ts +9 -9
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/index.d.ts +15 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/index.d.ts +15 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/tty.d.ts +58 -16
- package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +54 -592
- package/node_modules/@types/concat-stream/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +120 -792
- package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +32 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +13 -13
- package/node_modules/@types/concat-stream/node_modules/@types/node/wasi.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/crypto.d.ts +7 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/events.d.ts +9 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/fetch.d.ts +4 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/streams.d.ts +93 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +176 -358
- package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +8 -71
- 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/strict.d.ts +5 -11
- package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +9 -169
- package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +8 -8
- package/node_modules/@types/form-data/node_modules/@types/node/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +44 -168
- package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +16 -64
- package/node_modules/@types/form-data/node_modules/@types/node/cluster.d.ts +240 -332
- package/node_modules/@types/form-data/node_modules/@types/node/console.d.ts +49 -351
- package/node_modules/@types/form-data/node_modules/@types/node/constants.d.ts +3 -4
- package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +279 -1631
- package/node_modules/@types/form-data/node_modules/@types/node/dgram.d.ts +15 -51
- package/node_modules/@types/form-data/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/dns/promises.d.ts +3 -3
- package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +131 -132
- package/node_modules/@types/form-data/node_modules/@types/node/domain.d.ts +13 -17
- package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +869 -791
- package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +7 -8
- package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +417 -455
- package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +6 -26
- package/node_modules/@types/form-data/node_modules/@types/node/globals.typedarray.d.ts +60 -0
- package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +263 -254
- package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +528 -804
- package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +59 -239
- package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +15 -1
- package/node_modules/@types/form-data/node_modules/@types/node/inspector/promises.d.ts +41 -0
- package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +6 -59
- package/node_modules/@types/form-data/node_modules/@types/node/inspector.generated.d.ts +3 -10
- package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +47 -122
- package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +63 -184
- package/node_modules/@types/form-data/node_modules/@types/node/os.d.ts +6 -6
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/form-data/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/form-data/node_modules/@types/node/path.d.ts +120 -133
- package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +282 -643
- package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +156 -128
- package/node_modules/@types/form-data/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/form-data/node_modules/@types/node/querystring.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/quic.d.ts +910 -0
- package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +3 -3
- package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +67 -120
- package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +75 -98
- 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 +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/form-data/node_modules/@types/node/stream/promises.d.ts +136 -15
- package/node_modules/@types/form-data/node_modules/@types/node/stream/web.d.ts +176 -453
- package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +555 -478
- package/node_modules/@types/form-data/node_modules/@types/node/string_decoder.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/test/reporters.d.ts +96 -0
- package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +80 -180
- package/node_modules/@types/form-data/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/timers.d.ts +4 -130
- package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +102 -177
- package/node_modules/@types/form-data/node_modules/@types/node/trace_events.d.ts +9 -9
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/index.d.ts +15 -1
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/index.d.ts +15 -1
- package/node_modules/@types/form-data/node_modules/@types/node/tty.d.ts +58 -16
- package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +54 -592
- package/node_modules/@types/form-data/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +120 -792
- package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +32 -5
- package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +13 -13
- package/node_modules/@types/form-data/node_modules/@types/node/wasi.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/crypto.d.ts +7 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/events.d.ts +9 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/fetch.d.ts +4 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/streams.d.ts +93 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +176 -358
- package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +8 -71
- package/package.json +4 -4
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* ```js
|
|
5
5
|
* import v8 from 'node:v8';
|
|
6
6
|
* ```
|
|
7
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
7
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/v8.js)
|
|
8
8
|
*/
|
|
9
|
-
declare module "v8" {
|
|
9
|
+
declare module "node:v8" {
|
|
10
10
|
import { NonSharedBuffer } from "node:buffer";
|
|
11
11
|
import { Readable } from "node:stream";
|
|
12
12
|
interface HeapSpaceInfo {
|
|
@@ -401,6 +401,21 @@ declare module "v8" {
|
|
|
401
401
|
* @since v12.8.0
|
|
402
402
|
*/
|
|
403
403
|
function getHeapCodeStatistics(): HeapCodeStatistics;
|
|
404
|
+
/**
|
|
405
|
+
* @since v25.0.0
|
|
406
|
+
*/
|
|
407
|
+
interface SyncCPUProfileHandle {
|
|
408
|
+
/**
|
|
409
|
+
* Stopping collecting the profile and return the profile data.
|
|
410
|
+
* @since v25.0.0
|
|
411
|
+
*/
|
|
412
|
+
stop(): string;
|
|
413
|
+
/**
|
|
414
|
+
* Stopping collecting the profile and the profile will be discarded.
|
|
415
|
+
* @since v25.0.0
|
|
416
|
+
*/
|
|
417
|
+
[Symbol.dispose](): void;
|
|
418
|
+
}
|
|
404
419
|
/**
|
|
405
420
|
* @since v24.8.0
|
|
406
421
|
*/
|
|
@@ -433,6 +448,18 @@ declare module "v8" {
|
|
|
433
448
|
*/
|
|
434
449
|
[Symbol.asyncDispose](): Promise<void>;
|
|
435
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
* Starting a CPU profile then return a `SyncCPUProfileHandle` object.
|
|
453
|
+
* This API supports `using` syntax.
|
|
454
|
+
*
|
|
455
|
+
* ```js
|
|
456
|
+
* const handle = v8.startCpuProfile();
|
|
457
|
+
* const profile = handle.stop();
|
|
458
|
+
* console.log(profile);
|
|
459
|
+
* ```
|
|
460
|
+
* @since v25.0.0
|
|
461
|
+
*/
|
|
462
|
+
function startCPUProfile(): SyncCPUProfileHandle;
|
|
436
463
|
/**
|
|
437
464
|
* V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string.
|
|
438
465
|
* If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;
|
|
@@ -613,7 +640,7 @@ declare module "v8" {
|
|
|
613
640
|
function stopCoverage(): void;
|
|
614
641
|
/**
|
|
615
642
|
* The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once.
|
|
616
|
-
* `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-
|
|
643
|
+
* `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information.
|
|
617
644
|
* @since v18.10.0, v16.18.0
|
|
618
645
|
*/
|
|
619
646
|
function setHeapSnapshotNearHeapLimit(limit: number): void;
|
|
@@ -947,6 +974,6 @@ declare module "v8" {
|
|
|
947
974
|
function isBuildingSnapshot(): boolean;
|
|
948
975
|
}
|
|
949
976
|
}
|
|
950
|
-
declare module "
|
|
951
|
-
export * from "v8";
|
|
977
|
+
declare module "v8" {
|
|
978
|
+
export * from "node:v8";
|
|
952
979
|
}
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
*
|
|
35
35
|
* console.log(x); // 1; y is not defined.
|
|
36
36
|
* ```
|
|
37
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
37
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/vm.js)
|
|
38
38
|
*/
|
|
39
|
-
declare module "vm" {
|
|
39
|
+
declare module "node:vm" {
|
|
40
40
|
import { NonSharedBuffer } from "node:buffer";
|
|
41
41
|
import { ImportAttributes, ImportPhase } from "node:module";
|
|
42
42
|
interface Context extends NodeJS.Dict<any> {}
|
|
@@ -73,7 +73,7 @@ declare module "vm" {
|
|
|
73
73
|
/**
|
|
74
74
|
* Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
|
|
75
75
|
* part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
|
|
76
|
-
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-
|
|
76
|
+
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v25.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
|
77
77
|
* @experimental
|
|
78
78
|
*/
|
|
79
79
|
importModuleDynamically?:
|
|
@@ -119,7 +119,7 @@ declare module "vm" {
|
|
|
119
119
|
/**
|
|
120
120
|
* Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
|
|
121
121
|
* part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
|
|
122
|
-
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-
|
|
122
|
+
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v25.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
|
123
123
|
* @experimental
|
|
124
124
|
*/
|
|
125
125
|
importModuleDynamically?:
|
|
@@ -133,7 +133,7 @@ declare module "vm" {
|
|
|
133
133
|
/**
|
|
134
134
|
* Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
|
|
135
135
|
* part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
|
|
136
|
-
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-
|
|
136
|
+
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v25.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
|
137
137
|
* @experimental
|
|
138
138
|
*/
|
|
139
139
|
importModuleDynamically?:
|
|
@@ -153,7 +153,7 @@ declare module "vm" {
|
|
|
153
153
|
/**
|
|
154
154
|
* Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
|
|
155
155
|
* part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
|
|
156
|
-
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-
|
|
156
|
+
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v25.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
|
157
157
|
* @experimental
|
|
158
158
|
*/
|
|
159
159
|
importModuleDynamically?:
|
|
@@ -197,7 +197,7 @@ declare module "vm" {
|
|
|
197
197
|
/**
|
|
198
198
|
* Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
|
|
199
199
|
* part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
|
|
200
|
-
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-
|
|
200
|
+
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v25.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
|
201
201
|
* @experimental
|
|
202
202
|
*/
|
|
203
203
|
importModuleDynamically?:
|
|
@@ -400,9 +400,9 @@ declare module "vm" {
|
|
|
400
400
|
}
|
|
401
401
|
/**
|
|
402
402
|
* If the given `contextObject` is an object, the `vm.createContext()` method will
|
|
403
|
-
* [prepare that object](https://nodejs.org/docs/latest-
|
|
403
|
+
* [prepare that object](https://nodejs.org/docs/latest-v25.x/api/vm.html#what-does-it-mean-to-contextify-an-object)
|
|
404
404
|
* and return a reference to it so that it can be used in calls to {@link runInContext} or
|
|
405
|
-
* [`script.runInContext()`](https://nodejs.org/docs/latest-
|
|
405
|
+
* [`script.runInContext()`](https://nodejs.org/docs/latest-v25.x/api/vm.html#scriptrunincontextcontextifiedobject-options).
|
|
406
406
|
* Inside such scripts, the global object will be wrapped by the `contextObject`, retaining all of its
|
|
407
407
|
* existing properties but also having the built-in objects and functions any standard
|
|
408
408
|
* [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global
|
|
@@ -887,7 +887,7 @@ declare module "vm" {
|
|
|
887
887
|
/**
|
|
888
888
|
* Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
|
|
889
889
|
* part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
|
|
890
|
-
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-
|
|
890
|
+
* [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v25.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
|
891
891
|
* @experimental
|
|
892
892
|
*/
|
|
893
893
|
importModuleDynamically?: DynamicModuleLoader<SourceTextModule> | undefined;
|
|
@@ -1156,7 +1156,7 @@ declare module "vm" {
|
|
|
1156
1156
|
* and `vm.compileFunction()` so that Node.js uses the default ESM loader from the main
|
|
1157
1157
|
* context to load the requested module.
|
|
1158
1158
|
*
|
|
1159
|
-
* For detailed information, see [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-
|
|
1159
|
+
* For detailed information, see [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v25.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
|
1160
1160
|
* @since v21.7.0, v20.12.0
|
|
1161
1161
|
*/
|
|
1162
1162
|
const USE_MAIN_CONTEXT_DEFAULT_LOADER: number;
|
|
@@ -1175,6 +1175,6 @@ declare module "vm" {
|
|
|
1175
1175
|
const DONT_CONTEXTIFY: number;
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
declare module "
|
|
1179
|
-
export * from "vm";
|
|
1178
|
+
declare module "vm" {
|
|
1179
|
+
export * from "node:vm";
|
|
1180
1180
|
}
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
* wat2wasm demo.wat
|
|
68
68
|
* ```
|
|
69
69
|
* @experimental
|
|
70
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
70
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/wasi.js)
|
|
71
71
|
*/
|
|
72
|
-
declare module "wasi" {
|
|
72
|
+
declare module "node:wasi" {
|
|
73
73
|
interface WASIOptions {
|
|
74
74
|
/**
|
|
75
75
|
* An array of strings that the WebAssembly application will
|
|
@@ -197,6 +197,6 @@ declare module "wasi" {
|
|
|
197
197
|
readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
declare module "
|
|
201
|
-
export * from "wasi";
|
|
200
|
+
declare module "wasi" {
|
|
201
|
+
export * from "node:wasi";
|
|
202
202
|
}
|
package/node_modules/@types/form-data/node_modules/@types/node/web-globals/abortcontroller.d.ts
CHANGED
|
@@ -1,17 +1,42 @@
|
|
|
1
1
|
export {};
|
|
2
2
|
|
|
3
|
+
import { InternalEventTargetEventProperties } from "node:events";
|
|
4
|
+
|
|
3
5
|
type _AbortController = typeof globalThis extends { onmessage: any } ? {} : AbortController;
|
|
4
6
|
interface AbortController {
|
|
5
7
|
readonly signal: AbortSignal;
|
|
6
8
|
abort(reason?: any): void;
|
|
7
9
|
}
|
|
8
10
|
|
|
11
|
+
interface AbortSignalEventMap {
|
|
12
|
+
"abort": Event;
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
type _AbortSignal = typeof globalThis extends { onmessage: any } ? {} : AbortSignal;
|
|
10
|
-
interface AbortSignal extends EventTarget {
|
|
16
|
+
interface AbortSignal extends EventTarget, InternalEventTargetEventProperties<AbortSignalEventMap> {
|
|
11
17
|
readonly aborted: boolean;
|
|
12
|
-
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
13
18
|
readonly reason: any;
|
|
14
19
|
throwIfAborted(): void;
|
|
20
|
+
addEventListener<K extends keyof AbortSignalEventMap>(
|
|
21
|
+
type: K,
|
|
22
|
+
listener: (ev: AbortSignalEventMap[K]) => void,
|
|
23
|
+
options?: AddEventListenerOptions | boolean,
|
|
24
|
+
): void;
|
|
25
|
+
addEventListener(
|
|
26
|
+
type: string,
|
|
27
|
+
listener: EventListener | EventListenerObject,
|
|
28
|
+
options?: AddEventListenerOptions | boolean,
|
|
29
|
+
): void;
|
|
30
|
+
removeEventListener<K extends keyof AbortSignalEventMap>(
|
|
31
|
+
type: K,
|
|
32
|
+
listener: (ev: AbortSignalEventMap[K]) => void,
|
|
33
|
+
options?: EventListenerOptions | boolean,
|
|
34
|
+
): void;
|
|
35
|
+
removeEventListener(
|
|
36
|
+
type: string,
|
|
37
|
+
listener: EventListener | EventListenerObject,
|
|
38
|
+
options?: EventListenerOptions | boolean,
|
|
39
|
+
): void;
|
|
15
40
|
}
|
|
16
41
|
|
|
17
42
|
declare global {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
import * as buffer from "node:buffer";
|
|
4
|
+
|
|
5
|
+
type _Blob = typeof globalThis extends { onmessage: any } ? {} : buffer.Blob;
|
|
6
|
+
type _BlobPropertyBag = typeof globalThis extends { onmessage: any } ? {} : buffer.BlobPropertyBag;
|
|
7
|
+
type _File = typeof globalThis extends { onmessage: any } ? {} : buffer.File;
|
|
8
|
+
type _FilePropertyBag = typeof globalThis extends { onmessage: any } ? {} : buffer.FilePropertyBag;
|
|
9
|
+
|
|
10
|
+
declare global {
|
|
11
|
+
interface Blob extends _Blob {}
|
|
12
|
+
var Blob: typeof globalThis extends { onmessage: any; Blob: infer T } ? T : typeof buffer.Blob;
|
|
13
|
+
|
|
14
|
+
interface BlobPropertyBag extends _BlobPropertyBag {}
|
|
15
|
+
|
|
16
|
+
interface File extends _File {}
|
|
17
|
+
var File: typeof globalThis extends { onmessage: any; File: infer T } ? T : typeof buffer.File;
|
|
18
|
+
|
|
19
|
+
interface FilePropertyBag extends _FilePropertyBag {}
|
|
20
|
+
|
|
21
|
+
function atob(data: string): string;
|
|
22
|
+
function btoa(data: string): string;
|
|
23
|
+
}
|
|
@@ -2,17 +2,24 @@ export {};
|
|
|
2
2
|
|
|
3
3
|
import { webcrypto } from "crypto";
|
|
4
4
|
|
|
5
|
+
type _Crypto = typeof globalThis extends { onmessage: any } ? {} : webcrypto.Crypto;
|
|
6
|
+
type _CryptoKey = typeof globalThis extends { onmessage: any } ? {} : webcrypto.CryptoKey;
|
|
7
|
+
type _SubtleCrypto = typeof globalThis extends { onmessage: any } ? {} : webcrypto.SubtleCrypto;
|
|
8
|
+
|
|
5
9
|
declare global {
|
|
10
|
+
interface Crypto extends _Crypto {}
|
|
6
11
|
var Crypto: typeof globalThis extends { onmessage: any; Crypto: infer T } ? T : {
|
|
7
12
|
prototype: webcrypto.Crypto;
|
|
8
13
|
new(): webcrypto.Crypto;
|
|
9
14
|
};
|
|
10
15
|
|
|
16
|
+
interface CryptoKey extends _CryptoKey {}
|
|
11
17
|
var CryptoKey: typeof globalThis extends { onmessage: any; CryptoKey: infer T } ? T : {
|
|
12
18
|
prototype: webcrypto.CryptoKey;
|
|
13
19
|
new(): webcrypto.CryptoKey;
|
|
14
20
|
};
|
|
15
21
|
|
|
22
|
+
interface SubtleCrypto extends _SubtleCrypto {}
|
|
16
23
|
var SubtleCrypto: typeof globalThis extends { onmessage: any; SubtleCrypto: infer T } ? T : {
|
|
17
24
|
prototype: webcrypto.SubtleCrypto;
|
|
18
25
|
new(): webcrypto.SubtleCrypto;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
import * as util from "node:util";
|
|
4
|
+
|
|
5
|
+
declare global {
|
|
6
|
+
interface TextDecoder extends util.TextDecoder {}
|
|
7
|
+
var TextDecoder: typeof globalThis extends { onmessage: any; TextDecoder: infer T } ? T : typeof util.TextDecoder;
|
|
8
|
+
|
|
9
|
+
interface TextEncoder extends util.TextEncoder {}
|
|
10
|
+
var TextEncoder: typeof globalThis extends { onmessage: any; TextEncoder: infer T } ? T : typeof util.TextEncoder;
|
|
11
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export {};
|
|
2
2
|
|
|
3
|
+
type _AddEventListenerOptions = typeof globalThis extends { onmessage: any } ? {} : AddEventListenerOptions;
|
|
3
4
|
interface AddEventListenerOptions extends EventListenerOptions {
|
|
4
5
|
once?: boolean;
|
|
5
6
|
passive?: boolean;
|
|
@@ -43,10 +44,12 @@ interface EventInit {
|
|
|
43
44
|
composed?: boolean;
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
type _EventListener = typeof globalThis extends { onmessage: any } ? {} : EventListener;
|
|
46
48
|
interface EventListener {
|
|
47
49
|
(evt: Event): void;
|
|
48
50
|
}
|
|
49
51
|
|
|
52
|
+
type _EventListenerObject = typeof globalThis extends { onmessage: any } ? {} : EventListenerObject;
|
|
50
53
|
interface EventListenerObject {
|
|
51
54
|
handleEvent(object: Event): void;
|
|
52
55
|
}
|
|
@@ -72,6 +75,8 @@ interface EventTarget {
|
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
declare global {
|
|
78
|
+
interface AddEventListenerOptions extends _AddEventListenerOptions {}
|
|
79
|
+
|
|
75
80
|
interface CustomEvent<T = any> extends _CustomEvent<T> {}
|
|
76
81
|
var CustomEvent: typeof globalThis extends { onmessage: any; CustomEvent: infer T } ? T
|
|
77
82
|
: {
|
|
@@ -86,6 +91,10 @@ declare global {
|
|
|
86
91
|
new(type: string, eventInitDict?: EventInit): Event;
|
|
87
92
|
};
|
|
88
93
|
|
|
94
|
+
interface EventListener extends _EventListener {}
|
|
95
|
+
|
|
96
|
+
interface EventListenerObject extends _EventListenerObject {}
|
|
97
|
+
|
|
89
98
|
interface EventListenerOptions extends _EventListenerOptions {}
|
|
90
99
|
|
|
91
100
|
interface EventTarget extends _EventTarget {}
|
|
@@ -3,6 +3,7 @@ export {};
|
|
|
3
3
|
import * as undici from "undici-types";
|
|
4
4
|
|
|
5
5
|
type _CloseEvent = typeof globalThis extends { onmessage: any } ? {} : undici.CloseEvent;
|
|
6
|
+
type _ErrorEvent = typeof globalThis extends { onmessage: any } ? {} : undici.ErrorEvent;
|
|
6
7
|
type _EventSource = typeof globalThis extends { onmessage: any } ? {} : undici.EventSource;
|
|
7
8
|
type _FormData = typeof globalThis extends { onmessage: any } ? {} : undici.FormData;
|
|
8
9
|
type _Headers = typeof globalThis extends { onmessage: any } ? {} : undici.Headers;
|
|
@@ -22,6 +23,9 @@ declare global {
|
|
|
22
23
|
interface CloseEvent extends _CloseEvent {}
|
|
23
24
|
var CloseEvent: typeof globalThis extends { onmessage: any; CloseEvent: infer T } ? T : typeof undici.CloseEvent;
|
|
24
25
|
|
|
26
|
+
interface ErrorEvent extends _ErrorEvent {}
|
|
27
|
+
var ErrorEvent: typeof globalThis extends { onmessage: any; ErrorEvent: infer T } ? T : typeof undici.ErrorEvent;
|
|
28
|
+
|
|
25
29
|
interface EventSource extends _EventSource {}
|
|
26
30
|
var EventSource: typeof globalThis extends { onmessage: any; EventSource: infer T } ? T : typeof undici.EventSource;
|
|
27
31
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
import * as worker_threads from "node:worker_threads";
|
|
4
|
+
|
|
5
|
+
type _BroadcastChannel = typeof globalThis extends { onmessage: any } ? {} : worker_threads.BroadcastChannel;
|
|
6
|
+
type _MessageChannel = typeof globalThis extends { onmessage: any } ? {} : worker_threads.MessageChannel;
|
|
7
|
+
type _MessagePort = typeof globalThis extends { onmessage: any } ? {} : worker_threads.MessagePort;
|
|
8
|
+
|
|
9
|
+
declare global {
|
|
10
|
+
function structuredClone<T = any>(value: T, options?: worker_threads.StructuredSerializeOptions): T;
|
|
11
|
+
|
|
12
|
+
interface BroadcastChannel extends _BroadcastChannel {}
|
|
13
|
+
var BroadcastChannel: typeof globalThis extends { onmessage: any; BroadcastChannel: infer T } ? T
|
|
14
|
+
: typeof worker_threads.BroadcastChannel;
|
|
15
|
+
|
|
16
|
+
interface MessageChannel extends _MessageChannel {}
|
|
17
|
+
var MessageChannel: typeof globalThis extends { onmessage: any; MessageChannel: infer T } ? T
|
|
18
|
+
: typeof worker_threads.MessageChannel;
|
|
19
|
+
|
|
20
|
+
interface MessagePort extends _MessagePort {}
|
|
21
|
+
var MessagePort: typeof globalThis extends { onmessage: any; MessagePort: infer T } ? T
|
|
22
|
+
: typeof worker_threads.MessagePort;
|
|
23
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
import * as perf_hooks from "node:perf_hooks";
|
|
4
|
+
|
|
5
|
+
type _Performance = typeof globalThis extends { onmessage: any } ? {} : perf_hooks.Performance;
|
|
6
|
+
type _PerformanceEntry = typeof globalThis extends { onmessage: any } ? {} : perf_hooks.PerformanceEntry;
|
|
7
|
+
type _PerformanceMark = typeof globalThis extends { onmessage: any } ? {} : perf_hooks.PerformanceMark;
|
|
8
|
+
type _PerformanceMeasure = typeof globalThis extends { onmessage: any } ? {} : perf_hooks.PerformanceMeasure;
|
|
9
|
+
type _PerformanceObserver = typeof globalThis extends { onmessage: any } ? {} : perf_hooks.PerformanceObserver;
|
|
10
|
+
type _PerformanceObserverEntryList = typeof globalThis extends { onmessage: any } ? {}
|
|
11
|
+
: perf_hooks.PerformanceObserverEntryList;
|
|
12
|
+
type _PerformanceResourceTiming = typeof globalThis extends { onmessage: any } ? {}
|
|
13
|
+
: perf_hooks.PerformanceResourceTiming;
|
|
14
|
+
|
|
15
|
+
declare global {
|
|
16
|
+
interface Performance extends _Performance {}
|
|
17
|
+
var Performance: typeof globalThis extends { onmessage: any; Performance: infer T } ? T
|
|
18
|
+
: typeof perf_hooks.Performance;
|
|
19
|
+
|
|
20
|
+
interface PerformanceEntry extends _PerformanceEntry {}
|
|
21
|
+
var PerformanceEntry: typeof globalThis extends { onmessage: any; PerformanceEntry: infer T } ? T
|
|
22
|
+
: typeof perf_hooks.PerformanceEntry;
|
|
23
|
+
|
|
24
|
+
interface PerformanceMark extends _PerformanceMark {}
|
|
25
|
+
var PerformanceMark: typeof globalThis extends { onmessage: any; PerformanceMark: infer T } ? T
|
|
26
|
+
: typeof perf_hooks.PerformanceMark;
|
|
27
|
+
|
|
28
|
+
interface PerformanceMeasure extends _PerformanceMeasure {}
|
|
29
|
+
var PerformanceMeasure: typeof globalThis extends { onmessage: any; PerformanceMeasure: infer T } ? T
|
|
30
|
+
: typeof perf_hooks.PerformanceMeasure;
|
|
31
|
+
|
|
32
|
+
interface PerformanceObserver extends _PerformanceObserver {}
|
|
33
|
+
var PerformanceObserver: typeof globalThis extends { onmessage: any; PerformanceObserver: infer T } ? T
|
|
34
|
+
: typeof perf_hooks.PerformanceObserver;
|
|
35
|
+
|
|
36
|
+
interface PerformanceObserverEntryList extends _PerformanceObserverEntryList {}
|
|
37
|
+
var PerformanceObserverEntryList: typeof globalThis extends
|
|
38
|
+
{ onmessage: any; PerformanceObserverEntryList: infer T } ? T : typeof perf_hooks.PerformanceObserverEntryList;
|
|
39
|
+
|
|
40
|
+
interface PerformanceResourceTiming extends _PerformanceResourceTiming {}
|
|
41
|
+
var PerformanceResourceTiming: typeof globalThis extends { onmessage: any; PerformanceResourceTiming: infer T } ? T
|
|
42
|
+
: typeof perf_hooks.PerformanceResourceTiming;
|
|
43
|
+
|
|
44
|
+
var performance: typeof globalThis extends { onmessage: any; performance: infer T } ? T : perf_hooks.Performance;
|
|
45
|
+
}
|
|
@@ -2,10 +2,40 @@ export {};
|
|
|
2
2
|
|
|
3
3
|
import * as webstreams from "stream/web";
|
|
4
4
|
|
|
5
|
+
type _ByteLengthQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
|
|
6
|
+
: webstreams.ByteLengthQueuingStrategy;
|
|
5
7
|
type _CompressionStream = typeof globalThis extends { onmessage: any } ? {} : webstreams.CompressionStream;
|
|
8
|
+
type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {} : webstreams.CountQueuingStrategy;
|
|
6
9
|
type _DecompressionStream = typeof globalThis extends { onmessage: any } ? {} : webstreams.DecompressionStream;
|
|
10
|
+
type _QueuingStrategy<T = any> = typeof globalThis extends { onmessage: any } ? {} : webstreams.QueuingStrategy<T>;
|
|
11
|
+
type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
|
|
12
|
+
: webstreams.ReadableByteStreamController;
|
|
13
|
+
type _ReadableStream<R = any> = typeof globalThis extends { onmessage: any } ? {} : webstreams.ReadableStream<R>;
|
|
14
|
+
type _ReadableStreamBYOBReader = typeof globalThis extends { onmessage: any } ? {}
|
|
15
|
+
: webstreams.ReadableStreamBYOBReader;
|
|
16
|
+
type _ReadableStreamBYOBRequest = typeof globalThis extends { onmessage: any } ? {}
|
|
17
|
+
: webstreams.ReadableStreamBYOBRequest;
|
|
18
|
+
type _ReadableStreamDefaultController<R = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
19
|
+
: webstreams.ReadableStreamDefaultController<R>;
|
|
20
|
+
type _ReadableStreamDefaultReader<R = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
21
|
+
: webstreams.ReadableStreamDefaultReader<R>;
|
|
22
|
+
type _TextDecoderStream = typeof globalThis extends { onmessage: any } ? {} : webstreams.TextDecoderStream;
|
|
23
|
+
type _TextEncoderStream = typeof globalThis extends { onmessage: any } ? {} : webstreams.TextEncoderStream;
|
|
24
|
+
type _TransformStream<I = any, O = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
25
|
+
: webstreams.TransformStream<I, O>;
|
|
26
|
+
type _TransformStreamDefaultController<O = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
27
|
+
: webstreams.TransformStreamDefaultController<O>;
|
|
28
|
+
type _WritableStream<W = any> = typeof globalThis extends { onmessage: any } ? {} : webstreams.WritableStream<W>;
|
|
29
|
+
type _WritableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {}
|
|
30
|
+
: webstreams.WritableStreamDefaultController;
|
|
31
|
+
type _WritableStreamDefaultWriter<W = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
32
|
+
: webstreams.WritableStreamDefaultWriter<W>;
|
|
7
33
|
|
|
8
34
|
declare global {
|
|
35
|
+
interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {}
|
|
36
|
+
var ByteLengthQueuingStrategy: typeof globalThis extends { onmessage: any; ByteLengthQueuingStrategy: infer T } ? T
|
|
37
|
+
: typeof webstreams.ByteLengthQueuingStrategy;
|
|
38
|
+
|
|
9
39
|
interface CompressionStream extends _CompressionStream {}
|
|
10
40
|
var CompressionStream: typeof globalThis extends {
|
|
11
41
|
onmessage: any;
|
|
@@ -13,10 +43,73 @@ declare global {
|
|
|
13
43
|
} ? T
|
|
14
44
|
: typeof webstreams.CompressionStream;
|
|
15
45
|
|
|
46
|
+
interface CountQueuingStrategy extends _CountQueuingStrategy {}
|
|
47
|
+
var CountQueuingStrategy: typeof globalThis extends { onmessage: any; CountQueuingStrategy: infer T } ? T
|
|
48
|
+
: typeof webstreams.CountQueuingStrategy;
|
|
49
|
+
|
|
16
50
|
interface DecompressionStream extends _DecompressionStream {}
|
|
17
51
|
var DecompressionStream: typeof globalThis extends {
|
|
18
52
|
onmessage: any;
|
|
19
53
|
DecompressionStream: infer T;
|
|
20
54
|
} ? T
|
|
21
55
|
: typeof webstreams.DecompressionStream;
|
|
56
|
+
|
|
57
|
+
interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
|
|
58
|
+
|
|
59
|
+
interface ReadableByteStreamController extends _ReadableByteStreamController {}
|
|
60
|
+
var ReadableByteStreamController: typeof globalThis extends
|
|
61
|
+
{ onmessage: any; ReadableByteStreamController: infer T } ? T : typeof webstreams.ReadableByteStreamController;
|
|
62
|
+
|
|
63
|
+
interface ReadableStream<R = any> extends _ReadableStream<R> {}
|
|
64
|
+
var ReadableStream: typeof globalThis extends { onmessage: any; ReadableStream: infer T } ? T
|
|
65
|
+
: typeof webstreams.ReadableStream;
|
|
66
|
+
|
|
67
|
+
interface ReadableStreamBYOBReader extends _ReadableStreamBYOBReader {}
|
|
68
|
+
var ReadableStreamBYOBReader: typeof globalThis extends { onmessage: any; ReadableStreamBYOBReader: infer T } ? T
|
|
69
|
+
: typeof webstreams.ReadableStreamBYOBReader;
|
|
70
|
+
|
|
71
|
+
interface ReadableStreamBYOBRequest extends _ReadableStreamBYOBRequest {}
|
|
72
|
+
var ReadableStreamBYOBRequest: typeof globalThis extends { onmessage: any; ReadableStreamBYOBRequest: infer T } ? T
|
|
73
|
+
: typeof webstreams.ReadableStreamBYOBRequest;
|
|
74
|
+
|
|
75
|
+
interface ReadableStreamDefaultController<R = any> extends _ReadableStreamDefaultController<R> {}
|
|
76
|
+
var ReadableStreamDefaultController: typeof globalThis extends
|
|
77
|
+
{ onmessage: any; ReadableStreamDefaultController: infer T } ? T
|
|
78
|
+
: typeof webstreams.ReadableStreamDefaultController;
|
|
79
|
+
|
|
80
|
+
interface ReadableStreamDefaultReader<R = any> extends _ReadableStreamDefaultReader<R> {}
|
|
81
|
+
var ReadableStreamDefaultReader: typeof globalThis extends { onmessage: any; ReadableStreamDefaultReader: infer T }
|
|
82
|
+
? T
|
|
83
|
+
: typeof webstreams.ReadableStreamDefaultReader;
|
|
84
|
+
|
|
85
|
+
interface TextDecoderStream extends _TextDecoderStream {}
|
|
86
|
+
var TextDecoderStream: typeof globalThis extends { onmessage: any; TextDecoderStream: infer T } ? T
|
|
87
|
+
: typeof webstreams.TextDecoderStream;
|
|
88
|
+
|
|
89
|
+
interface TextEncoderStream extends _TextEncoderStream {}
|
|
90
|
+
var TextEncoderStream: typeof globalThis extends { onmessage: any; TextEncoderStream: infer T } ? T
|
|
91
|
+
: typeof webstreams.TextEncoderStream;
|
|
92
|
+
|
|
93
|
+
interface TransformStream<I = any, O = any> extends _TransformStream<I, O> {}
|
|
94
|
+
var TransformStream: typeof globalThis extends { onmessage: any; TransformStream: infer T } ? T
|
|
95
|
+
: typeof webstreams.TransformStream;
|
|
96
|
+
|
|
97
|
+
interface TransformStreamDefaultController<O = any> extends _TransformStreamDefaultController<O> {}
|
|
98
|
+
var TransformStreamDefaultController: typeof globalThis extends
|
|
99
|
+
{ onmessage: any; TransformStreamDefaultController: infer T } ? T
|
|
100
|
+
: typeof webstreams.TransformStreamDefaultController;
|
|
101
|
+
|
|
102
|
+
interface WritableStream<W = any> extends _WritableStream<W> {}
|
|
103
|
+
var WritableStream: typeof globalThis extends { onmessage: any; WritableStream: infer T } ? T
|
|
104
|
+
: typeof webstreams.WritableStream;
|
|
105
|
+
|
|
106
|
+
interface WritableStreamDefaultController extends _WritableStreamDefaultController {}
|
|
107
|
+
var WritableStreamDefaultController: typeof globalThis extends
|
|
108
|
+
{ onmessage: any; WritableStreamDefaultController: infer T } ? T
|
|
109
|
+
: typeof webstreams.WritableStreamDefaultController;
|
|
110
|
+
|
|
111
|
+
interface WritableStreamDefaultWriter<W = any> extends _WritableStreamDefaultWriter<W> {}
|
|
112
|
+
var WritableStreamDefaultWriter: typeof globalThis extends { onmessage: any; WritableStreamDefaultWriter: infer T }
|
|
113
|
+
? T
|
|
114
|
+
: typeof webstreams.WritableStreamDefaultWriter;
|
|
22
115
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
import * as promises from "node:timers/promises";
|
|
4
|
+
|
|
5
|
+
// Note: The timer function definitions allow a single void-accepting argument
|
|
6
|
+
// to be optional in arguments lists. This allows usage such as
|
|
7
|
+
// `new Promise(resolve => setTimeout(resolve, ms))` (#54258)
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
9
|
+
type MakeVoidParameterOptional<TArgs extends any[]> = [void] extends TArgs ? Partial<TArgs> : TArgs;
|
|
10
|
+
|
|
11
|
+
declare global {
|
|
12
|
+
function setImmediate<TArgs extends any[]>(
|
|
13
|
+
callback: (...args: TArgs) => void,
|
|
14
|
+
...args: MakeVoidParameterOptional<TArgs>
|
|
15
|
+
): NodeJS.Immediate;
|
|
16
|
+
namespace setImmediate {
|
|
17
|
+
import __promisify__ = promises.setImmediate;
|
|
18
|
+
export { __promisify__ };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function setInterval<TArgs extends any[]>(
|
|
22
|
+
callback: (...args: TArgs) => void,
|
|
23
|
+
delay?: number,
|
|
24
|
+
...args: MakeVoidParameterOptional<TArgs>
|
|
25
|
+
): NodeJS.Timeout;
|
|
26
|
+
|
|
27
|
+
function setTimeout<TArgs extends any[]>(
|
|
28
|
+
callback: (...args: TArgs) => void,
|
|
29
|
+
delay?: number,
|
|
30
|
+
...args: MakeVoidParameterOptional<TArgs>
|
|
31
|
+
): NodeJS.Timeout;
|
|
32
|
+
namespace setTimeout {
|
|
33
|
+
import __promisify__ = promises.setTimeout;
|
|
34
|
+
export { __promisify__ };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function clearImmediate(immediate: NodeJS.Immediate | undefined): void;
|
|
38
|
+
|
|
39
|
+
function clearInterval(timeout: NodeJS.Timeout | string | number | undefined): void;
|
|
40
|
+
|
|
41
|
+
function clearTimeout(timeout: NodeJS.Timeout | string | number | undefined): void;
|
|
42
|
+
|
|
43
|
+
function queueMicrotask(callback: () => void): void;
|
|
44
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
import * as url from "node:url";
|
|
4
|
+
|
|
5
|
+
declare global {
|
|
6
|
+
interface URL extends url.URL {}
|
|
7
|
+
var URL: typeof globalThis extends { onmessage: any; URL: infer T } ? T : typeof url.URL;
|
|
8
|
+
|
|
9
|
+
interface URLPattern extends url.URLPattern {}
|
|
10
|
+
var URLPattern: typeof globalThis extends {
|
|
11
|
+
onmessage: any;
|
|
12
|
+
scheduler: any; // Must be a var introduced at the same time as URLPattern.
|
|
13
|
+
URLPattern: infer T;
|
|
14
|
+
} ? T
|
|
15
|
+
: typeof url.URLPattern;
|
|
16
|
+
|
|
17
|
+
interface URLPatternInit extends url.URLPatternInit {}
|
|
18
|
+
|
|
19
|
+
interface URLPatternResult extends url.URLPatternResult {}
|
|
20
|
+
|
|
21
|
+
interface URLSearchParams extends url.URLSearchParams {}
|
|
22
|
+
var URLSearchParams: typeof globalThis extends { onmessage: any; URLSearchParams: infer T } ? T
|
|
23
|
+
: typeof url.URLSearchParams;
|
|
24
|
+
}
|