@emulsify/cli 1.11.4 → 1.12.0
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/dist/node_modules/.package-lock.json +34 -24
- package/dist/node_modules/@types/node/README.md +2 -2
- package/dist/node_modules/@types/node/assert.d.ts +23 -1
- package/dist/node_modules/@types/node/async_hooks.d.ts +64 -0
- package/dist/node_modules/@types/node/buffer.buffer.d.ts +124 -38
- package/dist/node_modules/@types/node/buffer.d.ts +19 -17
- package/dist/node_modules/@types/node/child_process.d.ts +88 -161
- package/dist/node_modules/@types/node/cluster.d.ts +5 -6
- package/dist/node_modules/@types/node/constants.d.ts +14 -12
- package/dist/node_modules/@types/node/crypto.d.ts +237 -166
- package/dist/node_modules/@types/node/dgram.d.ts +15 -14
- package/dist/node_modules/@types/node/diagnostics_channel.d.ts +39 -15
- package/dist/node_modules/@types/node/dns/promises.d.ts +11 -9
- package/dist/node_modules/@types/node/dns.d.ts +28 -21
- package/dist/node_modules/@types/node/events.d.ts +81 -35
- package/dist/node_modules/@types/node/fs/promises.d.ts +61 -36
- package/dist/node_modules/@types/node/fs.d.ts +251 -193
- package/dist/node_modules/@types/node/globals.d.ts +146 -442
- package/dist/node_modules/@types/node/globals.typedarray.d.ts +17 -0
- package/dist/node_modules/@types/node/http.d.ts +136 -31
- package/dist/node_modules/@types/node/http2.d.ts +102 -26
- package/dist/node_modules/@types/node/https.d.ts +94 -60
- package/dist/node_modules/@types/node/index.d.ts +5 -3
- package/dist/node_modules/@types/node/{inspector.d.ts → inspector.generated.d.ts} +272 -2
- package/dist/node_modules/@types/node/module.d.ts +362 -138
- package/dist/node_modules/@types/node/net.d.ts +27 -20
- package/dist/node_modules/@types/node/os.d.ts +14 -3
- package/dist/node_modules/@types/node/package.json +4 -89
- package/dist/node_modules/@types/node/perf_hooks.d.ts +37 -10
- package/dist/node_modules/@types/node/process.d.ts +108 -35
- package/dist/node_modules/@types/node/querystring.d.ts +2 -3
- package/dist/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/dist/node_modules/@types/node/stream/consumers.d.ts +33 -7
- package/dist/node_modules/@types/node/stream/web.d.ts +13 -4
- package/dist/node_modules/@types/node/stream.d.ts +963 -1014
- package/dist/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/dist/node_modules/@types/node/test.d.ts +1504 -1655
- package/dist/node_modules/@types/node/timers/promises.d.ts +28 -17
- package/dist/node_modules/@types/node/timers.d.ts +157 -111
- package/dist/node_modules/@types/node/tls.d.ts +105 -67
- package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +120 -37
- package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
- package/dist/node_modules/@types/node/ts5.6/index.d.ts +5 -3
- package/dist/node_modules/@types/node/url.d.ts +10 -1
- package/dist/node_modules/@types/node/util.d.ts +28 -3
- package/dist/node_modules/@types/node/v8.d.ts +6 -5
- package/dist/node_modules/@types/node/vm.d.ts +147 -68
- package/dist/node_modules/@types/node/wasi.d.ts +1 -1
- package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/dist/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/dist/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/dist/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
- package/dist/node_modules/@types/node/worker_threads.d.ts +60 -39
- package/dist/node_modules/@types/node/zlib.d.ts +21 -20
- package/dist/node_modules/debug/package.json +7 -3
- package/dist/node_modules/debug/src/browser.js +2 -1
- package/dist/node_modules/debug/src/common.js +57 -39
- package/dist/node_modules/fast-uri/.github/dependabot.yml +1 -1
- package/dist/node_modules/fast-uri/.github/workflows/ci.yml +81 -3
- package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +6 -2
- package/dist/node_modules/fast-uri/LICENSE +3 -1
- package/dist/node_modules/fast-uri/README.md +55 -37
- package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/dist/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/dist/node_modules/fast-uri/benchmark/package.json +17 -0
- package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/dist/node_modules/fast-uri/eslint.config.js +6 -0
- package/dist/node_modules/fast-uri/index.js +98 -61
- package/dist/node_modules/fast-uri/lib/schemes.js +160 -81
- package/dist/node_modules/fast-uri/lib/utils.js +217 -123
- package/dist/node_modules/fast-uri/package.json +44 -14
- package/dist/node_modules/fast-uri/test/ajv.test.js +7 -3
- package/dist/node_modules/fast-uri/test/equal.test.js +7 -2
- package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/dist/node_modules/fast-uri/test/parse.test.js +31 -31
- package/dist/node_modules/fast-uri/test/resolve.test.js +52 -49
- package/dist/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/dist/node_modules/fast-uri/test/serialize.test.js +55 -47
- package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/dist/node_modules/fast-uri/test/uri-js.test.js +230 -230
- package/dist/node_modules/fast-uri/test/util.test.js +23 -8
- package/dist/node_modules/fast-uri/tsconfig.json +9 -0
- package/dist/node_modules/fast-uri/types/index.d.ts +16 -9
- package/dist/node_modules/fast-uri/types/index.test-d.ts +9 -9
- package/dist/node_modules/fs-extra/LICENSE +1 -1
- package/dist/node_modules/fs-extra/README.md +3 -1
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +11 -1
- package/dist/node_modules/fs-extra/lib/copy/copy.js +13 -15
- package/dist/node_modules/fs-extra/lib/fs/index.js +6 -0
- package/dist/node_modules/fs-extra/lib/util/async.js +29 -0
- package/dist/node_modules/fs-extra/lib/util/stat.js +2 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/jsonfile/README.md +1 -1
- package/dist/node_modules/jsonfile/index.js +3 -3
- package/dist/node_modules/jsonfile/package.json +1 -1
- package/dist/node_modules/simple-git/dist/cjs/index.js +235 -235
- package/dist/node_modules/simple-git/dist/cjs/index.js.map +3 -3
- package/dist/node_modules/simple-git/dist/esm/index.js +229 -233
- package/dist/node_modules/simple-git/dist/esm/index.js.map +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +2 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +2 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -1
- package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +2 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +4 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +2 -2
- package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +9 -13
- package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +5 -6
- package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +5 -7
- package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +11 -10
- package/dist/node_modules/simple-git/package.json +6 -6
- package/dist/node_modules/simple-git/readme.md +8 -0
- package/dist/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/dist/node_modules/undici-types/eventsource.d.ts +0 -2
- package/dist/node_modules/undici-types/filereader.d.ts +1 -1
- package/dist/node_modules/undici-types/interceptors.d.ts +3 -1
- package/dist/node_modules/undici-types/package.json +1 -1
- package/dist/node_modules/undici-types/patch.d.ts +0 -38
- package/dist/node_modules/undici-types/readable.d.ts +5 -0
- package/dist/node_modules/undici-types/webidl.d.ts +6 -0
- package/dist/node_modules/undici-types/websocket.d.ts +0 -2
- package/dist/package-lock.json +911 -812
- package/dist/package.json +1 -1
- package/dist/util/getAvailableStarters.js +2 -2
- package/package.json +1 -1
- package/dist/node_modules/@types/node/dom-events.d.ts +0 -124
- package/dist/node_modules/fast-uri/benchmark.js +0 -105
- package/dist/node_modules/fast-uri/lib/scopedChars.js +0 -30
- package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
- package/dist/node_modules/fast-uri/test/compatibility.test.js +0 -131
- package/dist/node_modules/jsonfile/CHANGELOG.md +0 -171
|
@@ -1,468 +1,172 @@
|
|
|
1
|
-
|
|
1
|
+
declare var global: typeof globalThis;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// Will either be empty if lib-dom is included, or the undici version otherwise.
|
|
6
|
-
type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
|
|
7
|
-
type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
|
|
8
|
-
type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
|
|
9
|
-
type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
|
|
10
|
-
type _MessageEvent = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").MessageEvent;
|
|
11
|
-
type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
|
|
12
|
-
: import("undici-types").RequestInit;
|
|
13
|
-
type _ResponseInit = typeof globalThis extends { onmessage: any } ? {}
|
|
14
|
-
: import("undici-types").ResponseInit;
|
|
15
|
-
// #endregion Fetch and friends
|
|
3
|
+
declare var process: NodeJS.Process;
|
|
4
|
+
declare var console: Console;
|
|
16
5
|
|
|
17
|
-
|
|
18
|
-
type _DOMException = typeof globalThis extends { onmessage: any } ? {} : NodeDOMException;
|
|
19
|
-
interface NodeDOMException extends Error {
|
|
6
|
+
interface ErrorConstructor {
|
|
20
7
|
/**
|
|
21
|
-
*
|
|
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.
|
|
22
11
|
*
|
|
23
|
-
*
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
readonly DOMSTRING_SIZE_ERR: 2;
|
|
32
|
-
readonly HIERARCHY_REQUEST_ERR: 3;
|
|
33
|
-
readonly WRONG_DOCUMENT_ERR: 4;
|
|
34
|
-
readonly INVALID_CHARACTER_ERR: 5;
|
|
35
|
-
readonly NO_DATA_ALLOWED_ERR: 6;
|
|
36
|
-
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
|
|
37
|
-
readonly NOT_FOUND_ERR: 8;
|
|
38
|
-
readonly NOT_SUPPORTED_ERR: 9;
|
|
39
|
-
readonly INUSE_ATTRIBUTE_ERR: 10;
|
|
40
|
-
readonly INVALID_STATE_ERR: 11;
|
|
41
|
-
readonly SYNTAX_ERR: 12;
|
|
42
|
-
readonly INVALID_MODIFICATION_ERR: 13;
|
|
43
|
-
readonly NAMESPACE_ERR: 14;
|
|
44
|
-
readonly INVALID_ACCESS_ERR: 15;
|
|
45
|
-
readonly VALIDATION_ERR: 16;
|
|
46
|
-
readonly TYPE_MISMATCH_ERR: 17;
|
|
47
|
-
readonly SECURITY_ERR: 18;
|
|
48
|
-
readonly NETWORK_ERR: 19;
|
|
49
|
-
readonly ABORT_ERR: 20;
|
|
50
|
-
readonly URL_MISMATCH_ERR: 21;
|
|
51
|
-
readonly QUOTA_EXCEEDED_ERR: 22;
|
|
52
|
-
readonly TIMEOUT_ERR: 23;
|
|
53
|
-
readonly INVALID_NODE_TYPE_ERR: 24;
|
|
54
|
-
readonly DATA_CLONE_ERR: 25;
|
|
55
|
-
}
|
|
56
|
-
interface NodeDOMExceptionConstructor {
|
|
57
|
-
prototype: DOMException;
|
|
58
|
-
new(message?: string, nameOrOptions?: string | { name?: string; cause?: unknown }): DOMException;
|
|
59
|
-
readonly INDEX_SIZE_ERR: 1;
|
|
60
|
-
readonly DOMSTRING_SIZE_ERR: 2;
|
|
61
|
-
readonly HIERARCHY_REQUEST_ERR: 3;
|
|
62
|
-
readonly WRONG_DOCUMENT_ERR: 4;
|
|
63
|
-
readonly INVALID_CHARACTER_ERR: 5;
|
|
64
|
-
readonly NO_DATA_ALLOWED_ERR: 6;
|
|
65
|
-
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
|
|
66
|
-
readonly NOT_FOUND_ERR: 8;
|
|
67
|
-
readonly NOT_SUPPORTED_ERR: 9;
|
|
68
|
-
readonly INUSE_ATTRIBUTE_ERR: 10;
|
|
69
|
-
readonly INVALID_STATE_ERR: 11;
|
|
70
|
-
readonly SYNTAX_ERR: 12;
|
|
71
|
-
readonly INVALID_MODIFICATION_ERR: 13;
|
|
72
|
-
readonly NAMESPACE_ERR: 14;
|
|
73
|
-
readonly INVALID_ACCESS_ERR: 15;
|
|
74
|
-
readonly VALIDATION_ERR: 16;
|
|
75
|
-
readonly TYPE_MISMATCH_ERR: 17;
|
|
76
|
-
readonly SECURITY_ERR: 18;
|
|
77
|
-
readonly NETWORK_ERR: 19;
|
|
78
|
-
readonly ABORT_ERR: 20;
|
|
79
|
-
readonly URL_MISMATCH_ERR: 21;
|
|
80
|
-
readonly QUOTA_EXCEEDED_ERR: 22;
|
|
81
|
-
readonly TIMEOUT_ERR: 23;
|
|
82
|
-
readonly INVALID_NODE_TYPE_ERR: 24;
|
|
83
|
-
readonly DATA_CLONE_ERR: 25;
|
|
84
|
-
}
|
|
85
|
-
// #endregion DOMException
|
|
86
|
-
|
|
87
|
-
declare global {
|
|
88
|
-
// Declare "static" methods in Error
|
|
89
|
-
interface ErrorConstructor {
|
|
90
|
-
/** Create .stack property on a target object */
|
|
91
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Optional override for formatting stack traces
|
|
95
|
-
*
|
|
96
|
-
* @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
97
|
-
*/
|
|
98
|
-
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
99
|
-
|
|
100
|
-
stackTraceLimit: number;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/*-----------------------------------------------*
|
|
104
|
-
* *
|
|
105
|
-
* GLOBAL *
|
|
106
|
-
* *
|
|
107
|
-
------------------------------------------------*/
|
|
108
|
-
|
|
109
|
-
// For backwards compability
|
|
110
|
-
interface NodeRequire extends NodeJS.Require {}
|
|
111
|
-
interface RequireResolve extends NodeJS.RequireResolve {}
|
|
112
|
-
interface NodeModule extends NodeJS.Module {}
|
|
113
|
-
|
|
114
|
-
var global: typeof globalThis;
|
|
115
|
-
|
|
116
|
-
var process: NodeJS.Process;
|
|
117
|
-
var console: Console;
|
|
118
|
-
|
|
119
|
-
var __filename: string;
|
|
120
|
-
var __dirname: string;
|
|
121
|
-
|
|
122
|
-
var require: NodeRequire;
|
|
123
|
-
var module: NodeModule;
|
|
124
|
-
|
|
125
|
-
// Same as module.exports
|
|
126
|
-
var exports: any;
|
|
127
|
-
|
|
128
|
-
interface GCFunction {
|
|
129
|
-
(options: {
|
|
130
|
-
execution?: "sync";
|
|
131
|
-
type?: "major" | "minor";
|
|
132
|
-
}): void;
|
|
133
|
-
(options: {
|
|
134
|
-
execution: "async";
|
|
135
|
-
type?: "major" | "minor";
|
|
136
|
-
}): Promise<void>;
|
|
137
|
-
(options?: boolean): void;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Only available if `--expose-gc` is passed to the process.
|
|
142
|
-
*/
|
|
143
|
-
var gc: undefined | GCFunction;
|
|
144
|
-
|
|
145
|
-
// #region borrowed
|
|
146
|
-
// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
|
|
147
|
-
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
148
|
-
interface AbortController {
|
|
149
|
-
/**
|
|
150
|
-
* Returns the AbortSignal object associated with this object.
|
|
151
|
-
*/
|
|
152
|
-
|
|
153
|
-
readonly signal: AbortSignal;
|
|
154
|
-
/**
|
|
155
|
-
* 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.
|
|
156
|
-
*/
|
|
157
|
-
abort(reason?: any): void;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/** 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. */
|
|
161
|
-
interface AbortSignal extends EventTarget {
|
|
162
|
-
/**
|
|
163
|
-
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
164
|
-
*/
|
|
165
|
-
readonly aborted: boolean;
|
|
166
|
-
readonly reason: any;
|
|
167
|
-
onabort: null | ((this: AbortSignal, event: Event) => any);
|
|
168
|
-
throwIfAborted(): void;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
|
|
172
|
-
: {
|
|
173
|
-
prototype: AbortController;
|
|
174
|
-
new(): AbortController;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
|
|
178
|
-
: {
|
|
179
|
-
prototype: AbortSignal;
|
|
180
|
-
new(): AbortSignal;
|
|
181
|
-
abort(reason?: any): AbortSignal;
|
|
182
|
-
timeout(milliseconds: number): AbortSignal;
|
|
183
|
-
any(signals: AbortSignal[]): AbortSignal;
|
|
184
|
-
};
|
|
185
|
-
// #endregion borrowed
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* @since v17.0.0
|
|
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}`.
|
|
189
20
|
*
|
|
190
|
-
*
|
|
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
|
+
* ```
|
|
191
51
|
*/
|
|
192
|
-
|
|
193
|
-
value: T,
|
|
194
|
-
transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
|
|
195
|
-
): T;
|
|
196
|
-
|
|
197
|
-
// #region DOMException
|
|
52
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
198
53
|
/**
|
|
199
|
-
* @
|
|
200
|
-
* An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
|
|
201
|
-
*
|
|
202
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
|
|
54
|
+
* @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
203
55
|
*/
|
|
204
|
-
|
|
205
|
-
|
|
56
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
206
57
|
/**
|
|
207
|
-
*
|
|
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.
|
|
208
64
|
*
|
|
209
|
-
*
|
|
65
|
+
* If set to a non-number value, or set to a negative number, stack traces will
|
|
66
|
+
* not capture any frames.
|
|
210
67
|
*/
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
// #endregion DOMException
|
|
214
|
-
|
|
215
|
-
/*----------------------------------------------*
|
|
216
|
-
* *
|
|
217
|
-
* GLOBAL INTERFACES *
|
|
218
|
-
* *
|
|
219
|
-
*-----------------------------------------------*/
|
|
220
|
-
namespace NodeJS {
|
|
221
|
-
interface CallSite {
|
|
222
|
-
/**
|
|
223
|
-
* Value of "this"
|
|
224
|
-
*/
|
|
225
|
-
getThis(): unknown;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Type of "this" as a string.
|
|
229
|
-
* This is the name of the function stored in the constructor field of
|
|
230
|
-
* "this", if available. Otherwise the object's [[Class]] internal
|
|
231
|
-
* property.
|
|
232
|
-
*/
|
|
233
|
-
getTypeName(): string | null;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Current function
|
|
237
|
-
*/
|
|
238
|
-
getFunction(): Function | undefined;
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Name of the current function, typically its name property.
|
|
242
|
-
* If a name property is not available an attempt will be made to try
|
|
243
|
-
* to infer a name from the function's context.
|
|
244
|
-
*/
|
|
245
|
-
getFunctionName(): string | null;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Name of the property [of "this" or one of its prototypes] that holds
|
|
249
|
-
* the current function
|
|
250
|
-
*/
|
|
251
|
-
getMethodName(): string | null;
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Name of the script [if this function was defined in a script]
|
|
255
|
-
*/
|
|
256
|
-
getFileName(): string | undefined;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Current line number [if this function was defined in a script]
|
|
260
|
-
*/
|
|
261
|
-
getLineNumber(): number | null;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Current column number [if this function was defined in a script]
|
|
265
|
-
*/
|
|
266
|
-
getColumnNumber(): number | null;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* A call site object representing the location where eval was called
|
|
270
|
-
* [if this function was created using a call to eval]
|
|
271
|
-
*/
|
|
272
|
-
getEvalOrigin(): string | undefined;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Is this a toplevel invocation, that is, is "this" the global object?
|
|
276
|
-
*/
|
|
277
|
-
isToplevel(): boolean;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Does this call take place in code defined by a call to eval?
|
|
281
|
-
*/
|
|
282
|
-
isEval(): boolean;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Is this call in native V8 code?
|
|
286
|
-
*/
|
|
287
|
-
isNative(): boolean;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Is this a constructor call?
|
|
291
|
-
*/
|
|
292
|
-
isConstructor(): boolean;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* is this an async call (i.e. await, Promise.all(), or Promise.any())?
|
|
296
|
-
*/
|
|
297
|
-
isAsync(): boolean;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* is this an async call to Promise.all()?
|
|
301
|
-
*/
|
|
302
|
-
isPromiseAll(): boolean;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* returns the index of the promise element that was followed in
|
|
306
|
-
* Promise.all() or Promise.any() for async stack traces, or null
|
|
307
|
-
* if the CallSite is not an async
|
|
308
|
-
*/
|
|
309
|
-
getPromiseIndex(): number | null;
|
|
310
|
-
|
|
311
|
-
getScriptNameOrSourceURL(): string;
|
|
312
|
-
getScriptHash(): string;
|
|
313
|
-
|
|
314
|
-
getEnclosingColumnNumber(): number;
|
|
315
|
-
getEnclosingLineNumber(): number;
|
|
316
|
-
getPosition(): number;
|
|
317
|
-
|
|
318
|
-
toString(): string;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
interface ErrnoException extends Error {
|
|
322
|
-
errno?: number | undefined;
|
|
323
|
-
code?: string | undefined;
|
|
324
|
-
path?: string | undefined;
|
|
325
|
-
syscall?: string | undefined;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
interface ReadableStream extends EventEmitter {
|
|
329
|
-
readable: boolean;
|
|
330
|
-
read(size?: number): string | Buffer;
|
|
331
|
-
setEncoding(encoding: BufferEncoding): this;
|
|
332
|
-
pause(): this;
|
|
333
|
-
resume(): this;
|
|
334
|
-
isPaused(): boolean;
|
|
335
|
-
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
|
|
336
|
-
unpipe(destination?: WritableStream): this;
|
|
337
|
-
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
|
|
338
|
-
wrap(oldStream: ReadableStream): this;
|
|
339
|
-
[Symbol.asyncIterator](): NodeJS.AsyncIterator<string | Buffer>;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
interface WritableStream extends EventEmitter {
|
|
343
|
-
writable: boolean;
|
|
344
|
-
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
345
|
-
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
346
|
-
end(cb?: () => void): this;
|
|
347
|
-
end(data: string | Uint8Array, cb?: () => void): this;
|
|
348
|
-
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
interface ReadWriteStream extends ReadableStream, WritableStream {}
|
|
352
|
-
|
|
353
|
-
interface RefCounted {
|
|
354
|
-
ref(): this;
|
|
355
|
-
unref(): this;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
interface Require {
|
|
359
|
-
(id: string): any;
|
|
360
|
-
resolve: RequireResolve;
|
|
361
|
-
cache: Dict<NodeModule>;
|
|
362
|
-
/**
|
|
363
|
-
* @deprecated
|
|
364
|
-
*/
|
|
365
|
-
extensions: RequireExtensions;
|
|
366
|
-
main: Module | undefined;
|
|
367
|
-
}
|
|
68
|
+
stackTraceLimit: number;
|
|
69
|
+
}
|
|
368
70
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Enable this API with the `--expose-gc` CLI flag.
|
|
73
|
+
*/
|
|
74
|
+
declare var gc: NodeJS.GCFunction | undefined;
|
|
75
|
+
|
|
76
|
+
declare namespace NodeJS {
|
|
77
|
+
interface CallSite {
|
|
78
|
+
getColumnNumber(): number | null;
|
|
79
|
+
getEnclosingColumnNumber(): number | null;
|
|
80
|
+
getEnclosingLineNumber(): number | null;
|
|
81
|
+
getEvalOrigin(): string | undefined;
|
|
82
|
+
getFileName(): string | null;
|
|
83
|
+
getFunction(): Function | undefined;
|
|
84
|
+
getFunctionName(): string | null;
|
|
85
|
+
getLineNumber(): number | null;
|
|
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;
|
|
95
|
+
isEval(): boolean;
|
|
96
|
+
isNative(): boolean;
|
|
97
|
+
isPromiseAll(): boolean;
|
|
98
|
+
isToplevel(): boolean;
|
|
99
|
+
}
|
|
373
100
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* `true` if the module is running during the Node.js preload
|
|
382
|
-
*/
|
|
383
|
-
isPreloading: boolean;
|
|
384
|
-
exports: any;
|
|
385
|
-
require: Require;
|
|
386
|
-
id: string;
|
|
387
|
-
filename: string;
|
|
388
|
-
loaded: boolean;
|
|
389
|
-
/** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
|
|
390
|
-
parent: Module | null | undefined;
|
|
391
|
-
children: Module[];
|
|
392
|
-
/**
|
|
393
|
-
* @since v11.14.0
|
|
394
|
-
*
|
|
395
|
-
* The directory name of the module. This is usually the same as the path.dirname() of the module.id.
|
|
396
|
-
*/
|
|
397
|
-
path: string;
|
|
398
|
-
paths: string[];
|
|
399
|
-
}
|
|
101
|
+
interface ErrnoException extends Error {
|
|
102
|
+
errno?: number | undefined;
|
|
103
|
+
code?: string | undefined;
|
|
104
|
+
path?: string | undefined;
|
|
105
|
+
syscall?: string | undefined;
|
|
106
|
+
}
|
|
400
107
|
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
108
|
+
interface ReadableStream extends EventEmitter {
|
|
109
|
+
readable: boolean;
|
|
110
|
+
read(size?: number): string | Buffer;
|
|
111
|
+
setEncoding(encoding: BufferEncoding): this;
|
|
112
|
+
pause(): this;
|
|
113
|
+
resume(): this;
|
|
114
|
+
isPaused(): boolean;
|
|
115
|
+
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
|
|
116
|
+
unpipe(destination?: WritableStream): this;
|
|
117
|
+
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
|
|
118
|
+
wrap(oldStream: ReadableStream): this;
|
|
119
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
|
|
120
|
+
}
|
|
404
121
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
122
|
+
interface WritableStream extends EventEmitter {
|
|
123
|
+
writable: boolean;
|
|
124
|
+
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
125
|
+
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
126
|
+
end(cb?: () => void): this;
|
|
127
|
+
end(data: string | Uint8Array, cb?: () => void): this;
|
|
128
|
+
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
129
|
+
}
|
|
408
130
|
|
|
409
|
-
|
|
410
|
-
// Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used IterableIterator.
|
|
411
|
-
interface Iterator<T, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
|
|
412
|
-
[Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
|
|
413
|
-
}
|
|
131
|
+
interface ReadWriteStream extends ReadableStream, WritableStream {}
|
|
414
132
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
[Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
|
|
419
|
-
}
|
|
133
|
+
interface RefCounted {
|
|
134
|
+
ref(): this;
|
|
135
|
+
unref(): this;
|
|
420
136
|
}
|
|
421
137
|
|
|
422
|
-
interface
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
input: string | URL | globalThis.Request,
|
|
426
|
-
init?: RequestInit,
|
|
427
|
-
): Promise<Response>;
|
|
138
|
+
interface Dict<T> {
|
|
139
|
+
[key: string]: T | undefined;
|
|
140
|
+
}
|
|
428
141
|
|
|
429
|
-
interface
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
Request: infer T;
|
|
433
|
-
} ? T
|
|
434
|
-
: typeof import("undici-types").Request;
|
|
142
|
+
interface ReadOnlyDict<T> {
|
|
143
|
+
readonly [key: string]: T | undefined;
|
|
144
|
+
}
|
|
435
145
|
|
|
436
|
-
|
|
146
|
+
type PartialOptions<T> = { [K in keyof T]?: T[K] | undefined };
|
|
437
147
|
|
|
438
|
-
interface
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
}
|
|
443
|
-
: typeof import("undici-types").Response;
|
|
148
|
+
interface GCFunction {
|
|
149
|
+
(minor?: boolean): void;
|
|
150
|
+
(options: NodeJS.GCOptions & { execution: "async" }): Promise<void>;
|
|
151
|
+
(options: NodeJS.GCOptions): void;
|
|
152
|
+
}
|
|
444
153
|
|
|
445
|
-
interface
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
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
|
+
}
|
|
451
160
|
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}
|
|
457
|
-
: typeof import("undici-types").Headers;
|
|
161
|
+
/** An iterable iterator returned by the Node.js API. */
|
|
162
|
+
// Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used IterableIterator.
|
|
163
|
+
interface Iterator<T, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
|
|
164
|
+
[Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
|
|
165
|
+
}
|
|
458
166
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
onmessage: any;
|
|
465
|
-
MessageEvent: infer T;
|
|
466
|
-
} ? T
|
|
467
|
-
: typeof import("undici-types").MessageEvent;
|
|
167
|
+
/** An async iterable iterator returned by the Node.js API. */
|
|
168
|
+
// Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used AsyncIterableIterator.
|
|
169
|
+
interface AsyncIterator<T, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
|
|
170
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
|
|
171
|
+
}
|
|
468
172
|
}
|
|
@@ -17,5 +17,22 @@ declare global {
|
|
|
17
17
|
type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
|
|
18
18
|
| TypedArray<TArrayBuffer>
|
|
19
19
|
| DataView<TArrayBuffer>;
|
|
20
|
+
|
|
21
|
+
// The following aliases are required to allow use of non-shared ArrayBufferViews in @types/node
|
|
22
|
+
// while maintaining compatibility with TS <=5.6.
|
|
23
|
+
type NonSharedUint8Array = Uint8Array<ArrayBuffer>;
|
|
24
|
+
type NonSharedUint8ClampedArray = Uint8ClampedArray<ArrayBuffer>;
|
|
25
|
+
type NonSharedUint16Array = Uint16Array<ArrayBuffer>;
|
|
26
|
+
type NonSharedUint32Array = Uint32Array<ArrayBuffer>;
|
|
27
|
+
type NonSharedInt8Array = Int8Array<ArrayBuffer>;
|
|
28
|
+
type NonSharedInt16Array = Int16Array<ArrayBuffer>;
|
|
29
|
+
type NonSharedInt32Array = Int32Array<ArrayBuffer>;
|
|
30
|
+
type NonSharedBigUint64Array = BigUint64Array<ArrayBuffer>;
|
|
31
|
+
type NonSharedBigInt64Array = BigInt64Array<ArrayBuffer>;
|
|
32
|
+
type NonSharedFloat32Array = Float32Array<ArrayBuffer>;
|
|
33
|
+
type NonSharedFloat64Array = Float64Array<ArrayBuffer>;
|
|
34
|
+
type NonSharedDataView = DataView<ArrayBuffer>;
|
|
35
|
+
type NonSharedTypedArray = TypedArray<ArrayBuffer>;
|
|
36
|
+
type NonSharedArrayBufferView = ArrayBufferView<ArrayBuffer>;
|
|
20
37
|
}
|
|
21
38
|
}
|