@rio-cloud/cdk-v2-constructs 8.2.0 → 8.2.1
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/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/node_modules/@types/node/assert.d.ts +211 -92
- package/node_modules/@types/node/async_hooks.d.ts +103 -19
- package/node_modules/@types/node/buffer.buffer.d.ts +472 -0
- package/node_modules/@types/node/buffer.d.ts +88 -516
- package/node_modules/@types/node/child_process.d.ts +167 -231
- package/node_modules/@types/node/cluster.d.ts +172 -26
- package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/node/console.d.ts +66 -28
- package/node_modules/@types/node/constants.d.ts +14 -12
- package/node_modules/@types/node/crypto.d.ts +1458 -497
- package/node_modules/@types/node/dgram.d.ts +44 -30
- package/node_modules/@types/node/diagnostics_channel.d.ts +389 -4
- package/node_modules/@types/node/dns/promises.d.ts +120 -42
- package/node_modules/@types/node/dns.d.ts +209 -95
- package/node_modules/@types/node/domain.d.ts +14 -18
- package/node_modules/@types/node/events.d.ts +245 -113
- package/node_modules/@types/node/fs/promises.d.ts +194 -96
- package/node_modules/@types/node/fs.d.ts +695 -270
- package/node_modules/@types/node/globals.d.ts +97 -308
- package/node_modules/@types/node/globals.typedarray.d.ts +41 -0
- package/node_modules/@types/node/http.d.ts +363 -97
- package/node_modules/@types/node/http2.d.ts +684 -231
- package/node_modules/@types/node/https.d.ts +122 -87
- package/node_modules/@types/node/index.d.ts +24 -11
- package/node_modules/@types/node/inspector.d.ts +220 -2690
- package/node_modules/@types/node/inspector.generated.d.ts +4239 -0
- package/node_modules/@types/node/module.d.ts +705 -149
- package/node_modules/@types/node/net.d.ts +178 -54
- package/node_modules/@types/node/os.d.ts +47 -17
- package/node_modules/@types/node/package.json +22 -97
- package/node_modules/@types/node/path.d.ts +12 -3
- package/node_modules/@types/node/perf_hooks.d.ts +500 -97
- package/node_modules/@types/node/process.d.ts +657 -87
- package/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/node/querystring.d.ts +24 -13
- package/node_modules/@types/node/readline/promises.d.ts +25 -14
- package/node_modules/@types/node/readline.d.ts +102 -41
- package/node_modules/@types/node/repl.d.ts +38 -30
- package/node_modules/@types/node/sea.d.ts +162 -0
- package/node_modules/@types/node/sqlite.d.ts +1040 -0
- package/node_modules/@types/node/stream/consumers.d.ts +33 -7
- package/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/node/stream/web.d.ts +251 -28
- package/node_modules/@types/node/stream.d.ts +1060 -1055
- package/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/test.d.ts +2133 -1166
- package/node_modules/@types/node/timers/promises.d.ts +31 -16
- package/node_modules/@types/node/timers.d.ts +159 -114
- package/node_modules/@types/node/tls.d.ts +232 -163
- package/node_modules/@types/node/trace_events.d.ts +43 -28
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +103 -0
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +103 -0
- package/node_modules/@types/node/tty.d.ts +9 -9
- package/node_modules/@types/node/url.d.ts +236 -84
- package/node_modules/@types/node/util.d.ts +562 -412
- package/node_modules/@types/node/v8.d.ts +368 -21
- package/node_modules/@types/node/vm.d.ts +443 -149
- package/node_modules/@types/node/wasi.d.ts +62 -18
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +62 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@types/node/worker_threads.d.ts +310 -107
- package/node_modules/@types/node/zlib.d.ts +301 -73
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/agent.d.ts +13 -12
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +19 -7
- package/node_modules/undici-types/cache-interceptor.d.ts +173 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +26 -15
- package/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +19 -12
- package/node_modules/undici-types/dispatcher.d.ts +148 -113
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici-types/errors.d.ts +79 -46
- package/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/undici-types/fetch.d.ts +41 -39
- package/node_modules/undici-types/formdata.d.ts +8 -8
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +11 -5
- package/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/undici-types/index.d.ts +68 -43
- package/node_modules/undici-types/interceptors.d.ts +71 -3
- package/node_modules/undici-types/mock-agent.d.ts +36 -18
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +6 -4
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +24 -23
- package/node_modules/undici-types/mock-pool.d.ts +6 -4
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -42
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +21 -8
- package/node_modules/undici-types/proxy-agent.d.ts +5 -6
- package/node_modules/undici-types/readable.d.ts +24 -17
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +157 -36
- package/node_modules/undici-types/websocket.d.ts +67 -12
- package/package.json +9 -60
- package/version.json +1 -1
- package/node_modules/@types/node/dom-events.d.ts +0 -122
- package/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -796
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1232
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4289
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -381
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -287
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -477
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1532
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2186
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -901
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/argparse/CHANGELOG.md +0 -216
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
|
@@ -1,222 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
interface ErrorConstructor {
|
|
3
|
-
/** Create .stack property on a target object */
|
|
4
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Optional override for formatting stack traces
|
|
8
|
-
*
|
|
9
|
-
* @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
10
|
-
*/
|
|
11
|
-
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
12
|
-
|
|
13
|
-
stackTraceLimit: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/*-----------------------------------------------*
|
|
17
|
-
* *
|
|
18
|
-
* GLOBAL *
|
|
19
|
-
* *
|
|
20
|
-
------------------------------------------------*/
|
|
21
|
-
|
|
22
|
-
// For backwards compability
|
|
23
|
-
interface NodeRequire extends NodeJS.Require {}
|
|
24
|
-
interface RequireResolve extends NodeJS.RequireResolve {}
|
|
25
|
-
interface NodeModule extends NodeJS.Module {}
|
|
1
|
+
declare var global: typeof globalThis;
|
|
26
2
|
|
|
27
3
|
declare var process: NodeJS.Process;
|
|
28
4
|
declare var console: Console;
|
|
29
5
|
|
|
30
|
-
|
|
31
|
-
declare var __dirname: string;
|
|
32
|
-
|
|
33
|
-
declare var require: NodeRequire;
|
|
34
|
-
declare var module: NodeModule;
|
|
35
|
-
|
|
36
|
-
// Same as module.exports
|
|
37
|
-
declare var exports: any;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Only available if `--expose-gc` is passed to the process.
|
|
41
|
-
*/
|
|
42
|
-
declare var gc: undefined | (() => void);
|
|
43
|
-
|
|
44
|
-
// #region borrowed
|
|
45
|
-
// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
|
|
46
|
-
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
47
|
-
interface AbortController {
|
|
48
|
-
/**
|
|
49
|
-
* Returns the AbortSignal object associated with this object.
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
readonly signal: AbortSignal;
|
|
53
|
-
/**
|
|
54
|
-
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
|
|
55
|
-
*/
|
|
56
|
-
abort(reason?: any): void;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
|
|
60
|
-
interface AbortSignal extends EventTarget {
|
|
61
|
-
/**
|
|
62
|
-
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
63
|
-
*/
|
|
64
|
-
readonly aborted: boolean;
|
|
65
|
-
readonly reason: any;
|
|
66
|
-
onabort: null | ((this: AbortSignal, event: Event) => any);
|
|
67
|
-
throwIfAborted(): void;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
declare var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
|
|
71
|
-
: {
|
|
72
|
-
prototype: AbortController;
|
|
73
|
-
new(): AbortController;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
declare var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
|
|
77
|
-
: {
|
|
78
|
-
prototype: AbortSignal;
|
|
79
|
-
new(): AbortSignal;
|
|
80
|
-
abort(reason?: any): AbortSignal;
|
|
81
|
-
timeout(milliseconds: number): AbortSignal;
|
|
82
|
-
};
|
|
83
|
-
// #endregion borrowed
|
|
84
|
-
|
|
85
|
-
// #region Disposable
|
|
86
|
-
interface SymbolConstructor {
|
|
6
|
+
interface ErrorConstructor {
|
|
87
7
|
/**
|
|
88
|
-
*
|
|
8
|
+
* Creates a `.stack` property on `targetObject`, which when accessed returns
|
|
9
|
+
* a string representing the location in the code at which
|
|
10
|
+
* `Error.captureStackTrace()` was called.
|
|
11
|
+
*
|
|
12
|
+
* ```js
|
|
13
|
+
* const myObject = {};
|
|
14
|
+
* Error.captureStackTrace(myObject);
|
|
15
|
+
* myObject.stack; // Similar to `new Error().stack`
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* The first line of the trace will be prefixed with
|
|
19
|
+
* `${myObject.name}: ${myObject.message}`.
|
|
20
|
+
*
|
|
21
|
+
* The optional `constructorOpt` argument accepts a function. If given, all frames
|
|
22
|
+
* above `constructorOpt`, including `constructorOpt`, will be omitted from the
|
|
23
|
+
* generated stack trace.
|
|
24
|
+
*
|
|
25
|
+
* The `constructorOpt` argument is useful for hiding implementation
|
|
26
|
+
* details of error generation from the user. For instance:
|
|
27
|
+
*
|
|
28
|
+
* ```js
|
|
29
|
+
* function a() {
|
|
30
|
+
* b();
|
|
31
|
+
* }
|
|
32
|
+
*
|
|
33
|
+
* function b() {
|
|
34
|
+
* c();
|
|
35
|
+
* }
|
|
36
|
+
*
|
|
37
|
+
* function c() {
|
|
38
|
+
* // Create an error without stack trace to avoid calculating the stack trace twice.
|
|
39
|
+
* const { stackTraceLimit } = Error;
|
|
40
|
+
* Error.stackTraceLimit = 0;
|
|
41
|
+
* const error = new Error();
|
|
42
|
+
* Error.stackTraceLimit = stackTraceLimit;
|
|
43
|
+
*
|
|
44
|
+
* // Capture the stack trace above function b
|
|
45
|
+
* Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
|
|
46
|
+
* throw error;
|
|
47
|
+
* }
|
|
48
|
+
*
|
|
49
|
+
* a();
|
|
50
|
+
* ```
|
|
89
51
|
*/
|
|
90
|
-
|
|
91
|
-
|
|
52
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
92
53
|
/**
|
|
93
|
-
*
|
|
54
|
+
* @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
94
55
|
*/
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
interface Disposable {
|
|
99
|
-
[Symbol.dispose](): void;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
interface AsyncDisposable {
|
|
103
|
-
[Symbol.asyncDispose](): PromiseLike<void>;
|
|
104
|
-
}
|
|
105
|
-
// #endregion Disposable
|
|
106
|
-
|
|
107
|
-
// #region ArrayLike.at()
|
|
108
|
-
interface RelativeIndexable<T> {
|
|
56
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
109
57
|
/**
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
58
|
+
* The `Error.stackTraceLimit` property specifies the number of stack frames
|
|
59
|
+
* collected by a stack trace (whether generated by `new Error().stack` or
|
|
60
|
+
* `Error.captureStackTrace(obj)`).
|
|
61
|
+
*
|
|
62
|
+
* The default value is `10` but may be set to any valid JavaScript number. Changes
|
|
63
|
+
* will affect any stack trace captured _after_ the value has been changed.
|
|
64
|
+
*
|
|
65
|
+
* If set to a non-number value, or set to a negative number, stack traces will
|
|
66
|
+
* not capture any frames.
|
|
113
67
|
*/
|
|
114
|
-
|
|
68
|
+
stackTraceLimit: number;
|
|
115
69
|
}
|
|
116
|
-
interface String extends RelativeIndexable<string> {}
|
|
117
|
-
interface Array<T> extends RelativeIndexable<T> {}
|
|
118
|
-
interface ReadonlyArray<T> extends RelativeIndexable<T> {}
|
|
119
|
-
interface Int8Array extends RelativeIndexable<number> {}
|
|
120
|
-
interface Uint8Array extends RelativeIndexable<number> {}
|
|
121
|
-
interface Uint8ClampedArray extends RelativeIndexable<number> {}
|
|
122
|
-
interface Int16Array extends RelativeIndexable<number> {}
|
|
123
|
-
interface Uint16Array extends RelativeIndexable<number> {}
|
|
124
|
-
interface Int32Array extends RelativeIndexable<number> {}
|
|
125
|
-
interface Uint32Array extends RelativeIndexable<number> {}
|
|
126
|
-
interface Float32Array extends RelativeIndexable<number> {}
|
|
127
|
-
interface Float64Array extends RelativeIndexable<number> {}
|
|
128
|
-
interface BigInt64Array extends RelativeIndexable<bigint> {}
|
|
129
|
-
interface BigUint64Array extends RelativeIndexable<bigint> {}
|
|
130
|
-
// #endregion ArrayLike.at() end
|
|
131
70
|
|
|
132
71
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* Creates a deep clone of an object.
|
|
72
|
+
* Enable this API with the `--expose-gc` CLI flag.
|
|
136
73
|
*/
|
|
137
|
-
declare
|
|
138
|
-
value: T,
|
|
139
|
-
transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
|
|
140
|
-
): T;
|
|
74
|
+
declare var gc: NodeJS.GCFunction | undefined;
|
|
141
75
|
|
|
142
|
-
/*----------------------------------------------*
|
|
143
|
-
* *
|
|
144
|
-
* GLOBAL INTERFACES *
|
|
145
|
-
* *
|
|
146
|
-
*-----------------------------------------------*/
|
|
147
76
|
declare namespace NodeJS {
|
|
148
77
|
interface CallSite {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Type of "this" as a string.
|
|
156
|
-
* This is the name of the function stored in the constructor field of
|
|
157
|
-
* "this", if available. Otherwise the object's [[Class]] internal
|
|
158
|
-
* property.
|
|
159
|
-
*/
|
|
160
|
-
getTypeName(): string | null;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Current function
|
|
164
|
-
*/
|
|
78
|
+
getColumnNumber(): number | null;
|
|
79
|
+
getEnclosingColumnNumber(): number | null;
|
|
80
|
+
getEnclosingLineNumber(): number | null;
|
|
81
|
+
getEvalOrigin(): string | undefined;
|
|
82
|
+
getFileName(): string | null;
|
|
165
83
|
getFunction(): Function | undefined;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Name of the current function, typically its name property.
|
|
169
|
-
* If a name property is not available an attempt will be made to try
|
|
170
|
-
* to infer a name from the function's context.
|
|
171
|
-
*/
|
|
172
84
|
getFunctionName(): string | null;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Name of the property [of "this" or one of its prototypes] that holds
|
|
176
|
-
* the current function
|
|
177
|
-
*/
|
|
178
|
-
getMethodName(): string | null;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Name of the script [if this function was defined in a script]
|
|
182
|
-
*/
|
|
183
|
-
getFileName(): string | undefined;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Current line number [if this function was defined in a script]
|
|
187
|
-
*/
|
|
188
85
|
getLineNumber(): number | null;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
*/
|
|
199
|
-
getEvalOrigin(): string | undefined;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Is this a toplevel invocation, that is, is "this" the global object?
|
|
203
|
-
*/
|
|
204
|
-
isToplevel(): boolean;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Does this call take place in code defined by a call to eval?
|
|
208
|
-
*/
|
|
86
|
+
getMethodName(): string | null;
|
|
87
|
+
getPosition(): number;
|
|
88
|
+
getPromiseIndex(): number | null;
|
|
89
|
+
getScriptHash(): string;
|
|
90
|
+
getScriptNameOrSourceURL(): string | null;
|
|
91
|
+
getThis(): unknown;
|
|
92
|
+
getTypeName(): string | null;
|
|
93
|
+
isAsync(): boolean;
|
|
94
|
+
isConstructor(): boolean;
|
|
209
95
|
isEval(): boolean;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Is this call in native V8 code?
|
|
213
|
-
*/
|
|
214
96
|
isNative(): boolean;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
* Is this a constructor call?
|
|
218
|
-
*/
|
|
219
|
-
isConstructor(): boolean;
|
|
97
|
+
isPromiseAll(): boolean;
|
|
98
|
+
isToplevel(): boolean;
|
|
220
99
|
}
|
|
221
100
|
|
|
222
101
|
interface ErrnoException extends Error {
|
|
@@ -256,63 +135,6 @@ declare namespace NodeJS {
|
|
|
256
135
|
unref(): this;
|
|
257
136
|
}
|
|
258
137
|
|
|
259
|
-
type TypedArray =
|
|
260
|
-
| Uint8Array
|
|
261
|
-
| Uint8ClampedArray
|
|
262
|
-
| Uint16Array
|
|
263
|
-
| Uint32Array
|
|
264
|
-
| Int8Array
|
|
265
|
-
| Int16Array
|
|
266
|
-
| Int32Array
|
|
267
|
-
| BigUint64Array
|
|
268
|
-
| BigInt64Array
|
|
269
|
-
| Float32Array
|
|
270
|
-
| Float64Array;
|
|
271
|
-
type ArrayBufferView = TypedArray | DataView;
|
|
272
|
-
|
|
273
|
-
interface Require {
|
|
274
|
-
(id: string): any;
|
|
275
|
-
resolve: RequireResolve;
|
|
276
|
-
cache: Dict<NodeModule>;
|
|
277
|
-
/**
|
|
278
|
-
* @deprecated
|
|
279
|
-
*/
|
|
280
|
-
extensions: RequireExtensions;
|
|
281
|
-
main: Module | undefined;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
interface RequireResolve {
|
|
285
|
-
(id: string, options?: { paths?: string[] | undefined }): string;
|
|
286
|
-
paths(request: string): string[] | null;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
|
|
290
|
-
".js": (m: Module, filename: string) => any;
|
|
291
|
-
".json": (m: Module, filename: string) => any;
|
|
292
|
-
".node": (m: Module, filename: string) => any;
|
|
293
|
-
}
|
|
294
|
-
interface Module {
|
|
295
|
-
/**
|
|
296
|
-
* `true` if the module is running during the Node.js preload
|
|
297
|
-
*/
|
|
298
|
-
isPreloading: boolean;
|
|
299
|
-
exports: any;
|
|
300
|
-
require: Require;
|
|
301
|
-
id: string;
|
|
302
|
-
filename: string;
|
|
303
|
-
loaded: boolean;
|
|
304
|
-
/** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
|
|
305
|
-
parent: Module | null | undefined;
|
|
306
|
-
children: Module[];
|
|
307
|
-
/**
|
|
308
|
-
* @since v11.14.0
|
|
309
|
-
*
|
|
310
|
-
* The directory name of the module. This is usually the same as the path.dirname() of the module.id.
|
|
311
|
-
*/
|
|
312
|
-
path: string;
|
|
313
|
-
paths: string[];
|
|
314
|
-
}
|
|
315
|
-
|
|
316
138
|
interface Dict<T> {
|
|
317
139
|
[key: string]: T | undefined;
|
|
318
140
|
}
|
|
@@ -321,61 +143,28 @@ declare namespace NodeJS {
|
|
|
321
143
|
readonly [key: string]: T | undefined;
|
|
322
144
|
}
|
|
323
145
|
|
|
324
|
-
|
|
325
|
-
type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
|
|
326
|
-
type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
|
|
327
|
-
type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
|
|
328
|
-
type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
|
|
329
|
-
type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
|
|
330
|
-
: import("undici-types").RequestInit;
|
|
331
|
-
type Request = globalThis.Request;
|
|
332
|
-
type Response = globalThis.Response;
|
|
333
|
-
type Headers = globalThis.Headers;
|
|
334
|
-
type FormData = globalThis.FormData;
|
|
335
|
-
type RequestInit = globalThis.RequestInit;
|
|
336
|
-
type RequestInfo = import("undici-types").RequestInfo;
|
|
337
|
-
type HeadersInit = import("undici-types").HeadersInit;
|
|
338
|
-
type BodyInit = import("undici-types").BodyInit;
|
|
339
|
-
type RequestRedirect = import("undici-types").RequestRedirect;
|
|
340
|
-
type RequestCredentials = import("undici-types").RequestCredentials;
|
|
341
|
-
type RequestMode = import("undici-types").RequestMode;
|
|
342
|
-
type ReferrerPolicy = import("undici-types").ReferrerPolicy;
|
|
343
|
-
type Dispatcher = import("undici-types").Dispatcher;
|
|
344
|
-
type RequestDuplex = import("undici-types").RequestDuplex;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
interface RequestInit extends NodeJS.fetch._RequestInit {}
|
|
146
|
+
type PartialOptions<T> = { [K in keyof T]?: T[K] | undefined };
|
|
349
147
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
):
|
|
354
|
-
|
|
355
|
-
interface Request extends NodeJS.fetch._Request {}
|
|
356
|
-
declare var Request: typeof globalThis extends {
|
|
357
|
-
onmessage: any;
|
|
358
|
-
Request: infer T;
|
|
359
|
-
} ? T
|
|
360
|
-
: typeof import("undici-types").Request;
|
|
148
|
+
interface GCFunction {
|
|
149
|
+
(minor?: boolean): void;
|
|
150
|
+
(options: NodeJS.GCOptions & { execution: "async" }): Promise<void>;
|
|
151
|
+
(options: NodeJS.GCOptions): void;
|
|
152
|
+
}
|
|
361
153
|
|
|
362
|
-
interface
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
154
|
+
interface GCOptions {
|
|
155
|
+
execution?: "sync" | "async" | undefined;
|
|
156
|
+
flavor?: "regular" | "last-resort" | undefined;
|
|
157
|
+
type?: "major-snapshot" | "major" | "minor" | undefined;
|
|
158
|
+
filename?: string | undefined;
|
|
159
|
+
}
|
|
368
160
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
} ? T
|
|
374
|
-
: typeof import("undici-types").FormData;
|
|
161
|
+
/** An iterable iterator returned by the Node.js API. */
|
|
162
|
+
interface Iterator<T, TReturn = undefined, TNext = any> extends IteratorObject<T, TReturn, TNext> {
|
|
163
|
+
[Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
|
|
164
|
+
}
|
|
375
165
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
: typeof import("undici-types").Headers;
|
|
166
|
+
/** An async iterable iterator returned by the Node.js API. */
|
|
167
|
+
interface AsyncIterator<T, TReturn = undefined, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
|
|
168
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export {}; // Make this a module
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
namespace NodeJS {
|
|
5
|
+
type TypedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
|
|
6
|
+
| Uint8Array<TArrayBuffer>
|
|
7
|
+
| Uint8ClampedArray<TArrayBuffer>
|
|
8
|
+
| Uint16Array<TArrayBuffer>
|
|
9
|
+
| Uint32Array<TArrayBuffer>
|
|
10
|
+
| Int8Array<TArrayBuffer>
|
|
11
|
+
| Int16Array<TArrayBuffer>
|
|
12
|
+
| Int32Array<TArrayBuffer>
|
|
13
|
+
| BigUint64Array<TArrayBuffer>
|
|
14
|
+
| BigInt64Array<TArrayBuffer>
|
|
15
|
+
| Float16Array<TArrayBuffer>
|
|
16
|
+
| Float32Array<TArrayBuffer>
|
|
17
|
+
| Float64Array<TArrayBuffer>;
|
|
18
|
+
type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
|
|
19
|
+
| TypedArray<TArrayBuffer>
|
|
20
|
+
| DataView<TArrayBuffer>;
|
|
21
|
+
|
|
22
|
+
// The following aliases are required to allow use of non-shared ArrayBufferViews in @types/node
|
|
23
|
+
// while maintaining compatibility with TS <=5.6.
|
|
24
|
+
// TODO: remove once @types/node no longer supports TS 5.6, and replace with native types.
|
|
25
|
+
type NonSharedUint8Array = Uint8Array<ArrayBuffer>;
|
|
26
|
+
type NonSharedUint8ClampedArray = Uint8ClampedArray<ArrayBuffer>;
|
|
27
|
+
type NonSharedUint16Array = Uint16Array<ArrayBuffer>;
|
|
28
|
+
type NonSharedUint32Array = Uint32Array<ArrayBuffer>;
|
|
29
|
+
type NonSharedInt8Array = Int8Array<ArrayBuffer>;
|
|
30
|
+
type NonSharedInt16Array = Int16Array<ArrayBuffer>;
|
|
31
|
+
type NonSharedInt32Array = Int32Array<ArrayBuffer>;
|
|
32
|
+
type NonSharedBigUint64Array = BigUint64Array<ArrayBuffer>;
|
|
33
|
+
type NonSharedBigInt64Array = BigInt64Array<ArrayBuffer>;
|
|
34
|
+
type NonSharedFloat16Array = Float16Array<ArrayBuffer>;
|
|
35
|
+
type NonSharedFloat32Array = Float32Array<ArrayBuffer>;
|
|
36
|
+
type NonSharedFloat64Array = Float64Array<ArrayBuffer>;
|
|
37
|
+
type NonSharedDataView = DataView<ArrayBuffer>;
|
|
38
|
+
type NonSharedTypedArray = TypedArray<ArrayBuffer>;
|
|
39
|
+
type NonSharedArrayBufferView = ArrayBufferView<ArrayBuffer>;
|
|
40
|
+
}
|
|
41
|
+
}
|