@zuplo/cli 6.71.6 → 6.71.7
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/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/assert/strict.d.ts +10 -1
- package/node_modules/@types/node/assert.d.ts +144 -17
- package/node_modules/@types/node/async_hooks.d.ts +9 -9
- package/node_modules/@types/node/buffer.d.ts +0 -5
- package/node_modules/@types/node/child_process.d.ts +17 -21
- package/node_modules/@types/node/cluster.d.ts +13 -13
- package/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/node/crypto.d.ts +454 -571
- package/node_modules/@types/node/diagnostics_channel.d.ts +20 -9
- package/node_modules/@types/node/dns.d.ts +14 -14
- package/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@types/node/fs/promises.d.ts +4 -4
- package/node_modules/@types/node/fs.d.ts +3 -12
- package/node_modules/@types/node/globals.d.ts +4 -4
- package/node_modules/@types/node/http.d.ts +5 -5
- package/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@types/node/index.d.ts +0 -3
- package/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/node/module.d.ts +16 -45
- package/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/node/os.d.ts +2 -2
- package/node_modules/@types/node/package.json +4 -4
- package/node_modules/@types/node/perf_hooks.d.ts +1 -9
- package/node_modules/@types/node/process.d.ts +11 -11
- package/node_modules/@types/node/readline.d.ts +12 -11
- package/node_modules/@types/node/repl.d.ts +10 -10
- package/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@types/node/stream/promises.d.ts +2 -2
- package/node_modules/@types/node/stream/web.d.ts +1 -1
- package/node_modules/@types/node/stream.d.ts +5 -5
- package/node_modules/@types/node/test/reporters.d.ts +1 -1
- package/node_modules/@types/node/test.d.ts +8 -8
- package/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/node/ts5.6/index.d.ts +1 -4
- package/node_modules/@types/node/ts5.7/index.d.ts +0 -3
- package/node_modules/@types/node/url.d.ts +3 -3
- package/node_modules/@types/node/util/types.d.ts +1 -1
- package/node_modules/@types/node/util.d.ts +3 -20
- package/node_modules/@types/node/v8.d.ts +1 -1
- package/node_modules/@types/node/vm.d.ts +9 -9
- package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
- package/node_modules/@types/node/worker_threads.d.ts +2 -5
- package/node_modules/@types/node/zlib.d.ts +3 -3
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/pg-protocol/dist/b.js.map +1 -1
- package/node_modules/pg-protocol/dist/buffer-reader.d.ts +0 -1
- package/node_modules/pg-protocol/dist/buffer-reader.js +1 -1
- package/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -1
- package/node_modules/pg-protocol/dist/buffer-writer.d.ts +2 -1
- package/node_modules/pg-protocol/dist/buffer-writer.js +23 -0
- package/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -1
- package/node_modules/pg-protocol/dist/inbound-parser.test.js +1 -1
- package/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -1
- package/node_modules/pg-protocol/dist/index.d.ts +0 -1
- package/node_modules/pg-protocol/dist/index.js +2 -2
- package/node_modules/pg-protocol/dist/index.js.map +1 -1
- package/node_modules/pg-protocol/dist/messages.d.ts +2 -3
- package/node_modules/pg-protocol/dist/outbound-serializer.test.js +73 -0
- package/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -1
- package/node_modules/pg-protocol/dist/parser.d.ts +3 -5
- package/node_modules/pg-protocol/dist/parser.js +1 -1
- package/node_modules/pg-protocol/dist/parser.js.map +1 -1
- package/node_modules/pg-protocol/dist/serializer.d.ts +9 -10
- package/node_modules/pg-protocol/dist/serializer.js +11 -4
- package/node_modules/pg-protocol/dist/serializer.js.map +1 -1
- package/node_modules/pg-protocol/package.json +2 -2
- package/node_modules/pg-protocol/src/buffer-reader.ts +1 -1
- package/node_modules/pg-protocol/src/buffer-writer.ts +25 -0
- package/node_modules/pg-protocol/src/outbound-serializer.test.ts +80 -0
- package/node_modules/pg-protocol/src/parser.ts +1 -1
- package/node_modules/pg-protocol/src/serializer.ts +10 -4
- package/node_modules/undici-types/agent.d.ts +0 -2
- package/node_modules/undici-types/client.d.ts +25 -19
- package/node_modules/undici-types/dispatcher.d.ts +7 -33
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici-types/fetch.d.ts +24 -4
- package/node_modules/undici-types/h2c-client.d.ts +6 -6
- package/node_modules/undici-types/handlers.d.ts +1 -2
- package/node_modules/undici-types/header.d.ts +5 -0
- package/node_modules/undici-types/index.d.ts +3 -1
- package/node_modules/undici-types/interceptors.d.ts +1 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/pool.d.ts +0 -2
- package/node_modules/undici-types/proxy-agent.d.ts +2 -2
- package/node_modules/undici-types/round-robin-pool.d.ts +0 -2
- package/node_modules/undici-types/snapshot-agent.d.ts +4 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +2 -2
- package/node_modules/undici-types/webidl.d.ts +0 -1
- package/package.json +6 -6
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
|
@@ -81,6 +81,8 @@ declare module "node:process" {
|
|
|
81
81
|
"node:stream": typeof import("node:stream");
|
|
82
82
|
"stream/consumers": typeof import("stream/consumers");
|
|
83
83
|
"node:stream/consumers": typeof import("node:stream/consumers");
|
|
84
|
+
"stream/iter": typeof import("stream/iter");
|
|
85
|
+
"node:stream/iter": typeof import("node:stream/iter");
|
|
84
86
|
"stream/promises": typeof import("stream/promises");
|
|
85
87
|
"node:stream/promises": typeof import("node:stream/promises");
|
|
86
88
|
"stream/web": typeof import("stream/web");
|
|
@@ -214,7 +216,7 @@ declare module "node:process" {
|
|
|
214
216
|
readonly ipv6: boolean;
|
|
215
217
|
/**
|
|
216
218
|
* A boolean value that is `true` if the current Node.js build supports
|
|
217
|
-
* [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-
|
|
219
|
+
* [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v26.x/api/modules.md#loading-ecmascript-modules-using-require).
|
|
218
220
|
* @since v22.10.0
|
|
219
221
|
*/
|
|
220
222
|
readonly require_module: boolean;
|
|
@@ -251,12 +253,11 @@ declare module "node:process" {
|
|
|
251
253
|
*/
|
|
252
254
|
readonly tls_sni: boolean;
|
|
253
255
|
/**
|
|
254
|
-
* A value that is `"strip"` by default,
|
|
255
|
-
* `"transform"` if Node.js is run with `--experimental-transform-types`, and `false` if
|
|
256
|
+
* A value that is `"strip"` by default, and `false` if
|
|
256
257
|
* Node.js is run with `--no-strip-types`.
|
|
257
258
|
* @since v22.10.0
|
|
258
259
|
*/
|
|
259
|
-
readonly typescript: "strip" |
|
|
260
|
+
readonly typescript: "strip" | false;
|
|
260
261
|
/**
|
|
261
262
|
* A boolean value that is `true` if the current Node.js build includes support for libuv.
|
|
262
263
|
*
|
|
@@ -729,7 +730,7 @@ declare module "node:process" {
|
|
|
729
730
|
* arguments passed when the Node.js process was launched. The first element will
|
|
730
731
|
* be {@link execPath}. See `process.argv0` if access to the original value
|
|
731
732
|
* of `argv[0]` is needed. The second element will be the path to the JavaScript
|
|
732
|
-
* file being executed. If a [program entry point](https://nodejs.org/docs/latest-
|
|
733
|
+
* file being executed. If a [program entry point](https://nodejs.org/docs/latest-v26.x/api/cli.html#program-entry-point) was provided, the second element
|
|
733
734
|
* will be the absolute path to it. The remaining elements are additional command-line
|
|
734
735
|
* arguments.
|
|
735
736
|
*
|
|
@@ -829,7 +830,7 @@ declare module "node:process" {
|
|
|
829
830
|
*
|
|
830
831
|
* Unlike `process.setUncaughtExceptionCaptureCallback()`, this function allows
|
|
831
832
|
* multiple callbacks to be registered and does not conflict with the
|
|
832
|
-
* [`domain`](https://nodejs.org/docs/latest-
|
|
833
|
+
* [`domain`](https://nodejs.org/docs/latest-v26.x/api/domain.html) module. Callbacks are called in reverse order of registration
|
|
833
834
|
* (most recent first). If a callback returns `true`, subsequent callbacks
|
|
834
835
|
* and the default uncaught exception handling are skipped.
|
|
835
836
|
*
|
|
@@ -893,7 +894,7 @@ declare module "node:process" {
|
|
|
893
894
|
* should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()`
|
|
894
895
|
* unless there are specific reasons such as custom dlopen flags or loading from ES modules.
|
|
895
896
|
*
|
|
896
|
-
* The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-
|
|
897
|
+
* The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v26.x/api/os.html#dlopen-constants)`
|
|
897
898
|
* documentation for details.
|
|
898
899
|
*
|
|
899
900
|
* An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon
|
|
@@ -1444,8 +1445,7 @@ declare module "node:process" {
|
|
|
1444
1445
|
* `process.addUncaughtExceptionCaptureCallback()` instead.
|
|
1445
1446
|
* @since v9.3.0
|
|
1446
1447
|
*/
|
|
1447
|
-
|
|
1448
|
-
setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
|
|
1448
|
+
setUncaughtExceptionCaptureCallback(cb: ((err: unknown) => void) | null): void;
|
|
1449
1449
|
/**
|
|
1450
1450
|
* Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}.
|
|
1451
1451
|
* @since v9.3.0
|
|
@@ -1735,7 +1735,7 @@ declare module "node:process" {
|
|
|
1735
1735
|
constrainedMemory(): number;
|
|
1736
1736
|
/**
|
|
1737
1737
|
* Gets the amount of free memory that is still available to the process (in bytes).
|
|
1738
|
-
* See [`uv_get_available_memory`](https://nodejs.org/docs/latest-
|
|
1738
|
+
* See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v26.x/api/process.html#processavailablememory) for more information.
|
|
1739
1739
|
* @since v20.13.0
|
|
1740
1740
|
*/
|
|
1741
1741
|
availableMemory(): number;
|
|
@@ -2027,7 +2027,7 @@ declare module "node:process" {
|
|
|
2027
2027
|
allowedNodeEnvironmentFlags: ReadonlySet<string>;
|
|
2028
2028
|
/**
|
|
2029
2029
|
* `process.report` is an object whose methods are used to generate diagnostic reports for the current process.
|
|
2030
|
-
* Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-
|
|
2030
|
+
* Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v26.x/api/report.html).
|
|
2031
2031
|
* @since v11.8.0
|
|
2032
2032
|
*/
|
|
2033
2033
|
report: ProcessReport;
|
|
@@ -20,7 +20,7 @@ declare module "node:readline" {
|
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a
|
|
23
|
-
* single `input` [Readable](https://nodejs.org/docs/latest-
|
|
23
|
+
* single `input` [Readable](https://nodejs.org/docs/latest-v26.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/latest-v26.x/api/stream.html#writable-streams) stream.
|
|
24
24
|
* The `output` stream is used to print prompts for user input that arrives on,
|
|
25
25
|
* and is read from, the `input` stream.
|
|
26
26
|
* @since v0.1.104
|
|
@@ -32,7 +32,7 @@ declare module "node:readline" {
|
|
|
32
32
|
* > Instances of the `readline.Interface` class are constructed using the
|
|
33
33
|
* > `readline.createInterface()` method.
|
|
34
34
|
*
|
|
35
|
-
* @see https://nodejs.org/dist/latest-
|
|
35
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/readline.html#class-interfaceconstructor
|
|
36
36
|
*/
|
|
37
37
|
protected constructor(
|
|
38
38
|
input: NodeJS.ReadableStream,
|
|
@@ -46,7 +46,7 @@ declare module "node:readline" {
|
|
|
46
46
|
* > Instances of the `readline.Interface` class are constructed using the
|
|
47
47
|
* > `readline.createInterface()` method.
|
|
48
48
|
*
|
|
49
|
-
* @see https://nodejs.org/dist/latest-
|
|
49
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/readline.html#class-interfaceconstructor
|
|
50
50
|
*/
|
|
51
51
|
protected constructor(options: ReadLineOptions);
|
|
52
52
|
readonly terminal: boolean;
|
|
@@ -221,7 +221,6 @@ declare module "node:readline" {
|
|
|
221
221
|
[Symbol.asyncIterator](): NodeJS.AsyncIterator<string>;
|
|
222
222
|
}
|
|
223
223
|
interface Interface extends InternalEventEmitter<InterfaceEventMap> {}
|
|
224
|
-
type ReadLine = Interface; // type forwarded for backwards compatibility
|
|
225
224
|
type Completer = (line: string) => CompleterResult;
|
|
226
225
|
type AsyncCompleter = (
|
|
227
226
|
line: string,
|
|
@@ -230,11 +229,11 @@ declare module "node:readline" {
|
|
|
230
229
|
type CompleterResult = [string[], string];
|
|
231
230
|
interface ReadLineOptions {
|
|
232
231
|
/**
|
|
233
|
-
* The [`Readable`](https://nodejs.org/docs/latest-
|
|
232
|
+
* The [`Readable`](https://nodejs.org/docs/latest-v26.x/api/stream.html#readable-streams) stream to listen to
|
|
234
233
|
*/
|
|
235
234
|
input: NodeJS.ReadableStream;
|
|
236
235
|
/**
|
|
237
|
-
* The [`Writable`](https://nodejs.org/docs/latest-
|
|
236
|
+
* The [`Writable`](https://nodejs.org/docs/latest-v26.x/api/stream.html#writable-streams) stream to write readline data to.
|
|
238
237
|
*/
|
|
239
238
|
output?: NodeJS.WritableStream | undefined;
|
|
240
239
|
/**
|
|
@@ -279,7 +278,7 @@ declare module "node:readline" {
|
|
|
279
278
|
* `crlfDelay` will be coerced to a number no less than `100`.
|
|
280
279
|
* It can be set to `Infinity`, in which case
|
|
281
280
|
* `\r` followed by `\n` will always be considered a single newline
|
|
282
|
-
* (which may be reasonable for [reading files](https://nodejs.org/docs/latest-
|
|
281
|
+
* (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v26.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
|
|
283
282
|
* @default 100
|
|
284
283
|
*/
|
|
285
284
|
crlfDelay?: number | undefined;
|
|
@@ -467,7 +466,7 @@ declare module "node:readline" {
|
|
|
467
466
|
cols: number;
|
|
468
467
|
}
|
|
469
468
|
/**
|
|
470
|
-
* The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/latest-
|
|
469
|
+
* The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/latest-v26.x/api/tty.html) stream
|
|
471
470
|
* in a specified direction identified by `dir`.
|
|
472
471
|
* @since v0.7.7
|
|
473
472
|
* @param callback Invoked once the operation completes.
|
|
@@ -475,7 +474,7 @@ declare module "node:readline" {
|
|
|
475
474
|
*/
|
|
476
475
|
function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
|
|
477
476
|
/**
|
|
478
|
-
* The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/latest-
|
|
477
|
+
* The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/latest-v26.x/api/tty.html) stream from
|
|
479
478
|
* the current position of the cursor down.
|
|
480
479
|
* @since v0.7.7
|
|
481
480
|
* @param callback Invoked once the operation completes.
|
|
@@ -484,7 +483,7 @@ declare module "node:readline" {
|
|
|
484
483
|
function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
|
|
485
484
|
/**
|
|
486
485
|
* The `readline.cursorTo()` method moves cursor to the specified position in a
|
|
487
|
-
* given [TTY](https://nodejs.org/docs/latest-
|
|
486
|
+
* given [TTY](https://nodejs.org/docs/latest-v26.x/api/tty.html) `stream`.
|
|
488
487
|
* @since v0.7.7
|
|
489
488
|
* @param callback Invoked once the operation completes.
|
|
490
489
|
* @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
|
|
@@ -492,12 +491,14 @@ declare module "node:readline" {
|
|
|
492
491
|
function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
|
|
493
492
|
/**
|
|
494
493
|
* The `readline.moveCursor()` method moves the cursor _relative_ to its current
|
|
495
|
-
* position in a given [TTY](https://nodejs.org/docs/latest-
|
|
494
|
+
* position in a given [TTY](https://nodejs.org/docs/latest-v26.x/api/tty.html) `stream`.
|
|
496
495
|
* @since v0.7.7
|
|
497
496
|
* @param callback Invoked once the operation completes.
|
|
498
497
|
* @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
|
|
499
498
|
*/
|
|
500
499
|
function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
|
|
500
|
+
/** @deprecated This alias will be removed in a future version. Use `import { Interface } from 'node:readline'` instead. */
|
|
501
|
+
type ReadLine = Interface;
|
|
501
502
|
}
|
|
502
503
|
declare module "node:readline" {
|
|
503
504
|
export * as promises from "node:readline/promises";
|
|
@@ -29,7 +29,7 @@ declare module "node:repl" {
|
|
|
29
29
|
* The function to be used when evaluating each given line of input.
|
|
30
30
|
* **Default:** an async wrapper for the JavaScript `eval()` function. An `eval` function can
|
|
31
31
|
* error with `repl.Recoverable` to indicate the input was incomplete and prompt for
|
|
32
|
-
* additional lines. See the [custom evaluation functions](https://nodejs.org/dist/latest-
|
|
32
|
+
* additional lines. See the [custom evaluation functions](https://nodejs.org/dist/latest-v26.x/docs/api/repl.html#custom-evaluation-functions)
|
|
33
33
|
* section for more details.
|
|
34
34
|
*/
|
|
35
35
|
eval?: REPLEval | undefined;
|
|
@@ -62,13 +62,13 @@ declare module "node:repl" {
|
|
|
62
62
|
* The function to invoke to format the output of each command before writing to `output`.
|
|
63
63
|
* @default a wrapper for `util.inspect`
|
|
64
64
|
*
|
|
65
|
-
* @see https://nodejs.org/dist/latest-
|
|
65
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/repl.html#repl_customizing_repl_output
|
|
66
66
|
*/
|
|
67
67
|
writer?: REPLWriter | undefined;
|
|
68
68
|
/**
|
|
69
69
|
* An optional function used for custom Tab auto completion.
|
|
70
70
|
*
|
|
71
|
-
* @see https://nodejs.org/dist/latest-
|
|
71
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/readline.html#readline_use_of_the_completer_function
|
|
72
72
|
*/
|
|
73
73
|
completer?: Completer | AsyncCompleter | undefined;
|
|
74
74
|
/**
|
|
@@ -161,7 +161,7 @@ declare module "node:repl" {
|
|
|
161
161
|
*
|
|
162
162
|
* `REPLServer` cannot be subclassed due to implementation specifics in NodeJS.
|
|
163
163
|
*
|
|
164
|
-
* @see https://nodejs.org/dist/latest-
|
|
164
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/repl.html#repl_class_replserver
|
|
165
165
|
*/
|
|
166
166
|
private constructor();
|
|
167
167
|
/**
|
|
@@ -192,33 +192,33 @@ declare module "node:repl" {
|
|
|
192
192
|
/**
|
|
193
193
|
* A value indicating whether the REPL is currently in "editor mode".
|
|
194
194
|
*
|
|
195
|
-
* @see https://nodejs.org/dist/latest-
|
|
195
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/repl.html#repl_commands_and_special_keys
|
|
196
196
|
*/
|
|
197
197
|
readonly editorMode: boolean;
|
|
198
198
|
/**
|
|
199
199
|
* A value indicating whether the `_` variable has been assigned.
|
|
200
200
|
*
|
|
201
|
-
* @see https://nodejs.org/dist/latest-
|
|
201
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
202
202
|
*/
|
|
203
203
|
readonly underscoreAssigned: boolean;
|
|
204
204
|
/**
|
|
205
205
|
* The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL).
|
|
206
206
|
*
|
|
207
|
-
* @see https://nodejs.org/dist/latest-
|
|
207
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
208
208
|
*/
|
|
209
209
|
readonly last: any;
|
|
210
210
|
/**
|
|
211
211
|
* A value indicating whether the `_error` variable has been assigned.
|
|
212
212
|
*
|
|
213
213
|
* @since v9.8.0
|
|
214
|
-
* @see https://nodejs.org/dist/latest-
|
|
214
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
215
215
|
*/
|
|
216
216
|
readonly underscoreErrAssigned: boolean;
|
|
217
217
|
/**
|
|
218
218
|
* The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL).
|
|
219
219
|
*
|
|
220
220
|
* @since v9.8.0
|
|
221
|
-
* @see https://nodejs.org/dist/latest-
|
|
221
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
222
222
|
*/
|
|
223
223
|
readonly lastError: any;
|
|
224
224
|
/**
|
|
@@ -408,7 +408,7 @@ declare module "node:repl" {
|
|
|
408
408
|
/**
|
|
409
409
|
* Indicates a recoverable error that a `REPLServer` can use to support multi-line input.
|
|
410
410
|
*
|
|
411
|
-
* @see https://nodejs.org/dist/latest-
|
|
411
|
+
* @see https://nodejs.org/dist/latest-v26.x/docs/api/repl.html#repl_recoverable_errors
|
|
412
412
|
*/
|
|
413
413
|
class Recoverable extends SyntaxError {
|
|
414
414
|
err: Error;
|
|
@@ -336,7 +336,7 @@ declare module "node:sqlite" {
|
|
|
336
336
|
* @param options Optional configuration settings for the function.
|
|
337
337
|
* @param fn The JavaScript function to call when the SQLite function is
|
|
338
338
|
* invoked. The return value of this function should be a valid SQLite data type:
|
|
339
|
-
* see [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-
|
|
339
|
+
* see [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v26.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite). The result defaults to
|
|
340
340
|
* `NULL` if the return value is `undefined`.
|
|
341
341
|
*/
|
|
342
342
|
function(
|
|
@@ -30,7 +30,7 @@ declare module "node:stream/promises" {
|
|
|
30
30
|
* rs.resume(); // Drain the stream.
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
|
-
* The `finished` API also provides a [callback version](https://nodejs.org/docs/latest-
|
|
33
|
+
* The `finished` API also provides a [callback version](https://nodejs.org/docs/latest-v26.x/api/stream.html#streamfinishedstream-options-callback).
|
|
34
34
|
*
|
|
35
35
|
* `stream.finished()` leaves dangling event listeners (in particular
|
|
36
36
|
* `'error'`, `'end'`, `'finish'` and `'close'`) after the returned promise is
|
|
@@ -129,7 +129,7 @@ declare module "node:stream/promises" {
|
|
|
129
129
|
* console.log('Pipeline succeeded.');
|
|
130
130
|
* ```
|
|
131
131
|
*
|
|
132
|
-
* The `pipeline` API provides [callback version](https://nodejs.org/docs/latest-
|
|
132
|
+
* The `pipeline` API provides [callback version](https://nodejs.org/docs/latest-v26.x/api/stream.html#streampipelinesource-transforms-destination-callback):
|
|
133
133
|
* @since v15.0.0
|
|
134
134
|
* @returns Fulfills when the pipeline is complete.
|
|
135
135
|
*/
|
|
@@ -184,7 +184,7 @@ declare module "node:stream/web" {
|
|
|
184
184
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
185
185
|
from<R = any>(iterable: Iterable<R> | AsyncIterable<R>): ReadableStream<R>;
|
|
186
186
|
};
|
|
187
|
-
interface ReadableStreamAsyncIterator<T> extends NodeJS.AsyncIterator<T,
|
|
187
|
+
interface ReadableStreamAsyncIterator<T> extends NodeJS.AsyncIterator<T, BuiltinIteratorReturn, unknown> {
|
|
188
188
|
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
|
|
189
189
|
}
|
|
190
190
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
@@ -128,13 +128,13 @@ declare module "node:stream" {
|
|
|
128
128
|
*/
|
|
129
129
|
readonly readableEncoding: BufferEncoding | null;
|
|
130
130
|
/**
|
|
131
|
-
* Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-
|
|
131
|
+
* Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v26.x/api/stream.html#event-end) event is emitted.
|
|
132
132
|
* @since v12.9.0
|
|
133
133
|
*/
|
|
134
134
|
readonly readableEnded: boolean;
|
|
135
135
|
/**
|
|
136
136
|
* This property reflects the current state of a `Readable` stream as described
|
|
137
|
-
* in the [Three states](https://nodejs.org/docs/latest-
|
|
137
|
+
* in the [Three states](https://nodejs.org/docs/latest-v26.x/api/stream.html#three-states) section.
|
|
138
138
|
* @since v9.4.0
|
|
139
139
|
*/
|
|
140
140
|
readableFlowing: boolean | null;
|
|
@@ -478,7 +478,7 @@ declare module "node:stream" {
|
|
|
478
478
|
* This method also allows for an `AbortSignal` to be provided, which will destroy
|
|
479
479
|
* the composed stream when aborted.
|
|
480
480
|
*
|
|
481
|
-
* See [`stream.compose(...streams)`](https://nodejs.org/docs/latest-
|
|
481
|
+
* See [`stream.compose(...streams)`](https://nodejs.org/docs/latest-v26.x/api/stream.html#streamcomposestreams) for more information.
|
|
482
482
|
* @since v19.1.0, v18.13.0
|
|
483
483
|
* @returns a stream composed with the stream `stream`.
|
|
484
484
|
*/
|
|
@@ -1360,7 +1360,7 @@ declare module "node:stream" {
|
|
|
1360
1360
|
* Especially useful in error handling scenarios where a stream is destroyed
|
|
1361
1361
|
* prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`.
|
|
1362
1362
|
*
|
|
1363
|
-
* The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-
|
|
1363
|
+
* The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v26.x/api/stream.html#streamfinishedstream-options).
|
|
1364
1364
|
*
|
|
1365
1365
|
* `stream.finished()` leaves dangling event listeners (in particular `'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been
|
|
1366
1366
|
* invoked. The reason for this is so that unexpected `'error'` events (due to
|
|
@@ -1459,7 +1459,7 @@ declare module "node:stream" {
|
|
|
1459
1459
|
* );
|
|
1460
1460
|
* ```
|
|
1461
1461
|
*
|
|
1462
|
-
* The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-
|
|
1462
|
+
* The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v26.x/api/stream.html#streampipelinesource-transforms-destination-options).
|
|
1463
1463
|
*
|
|
1464
1464
|
* `stream.pipeline()` will call `stream.destroy(err)` on all streams except:
|
|
1465
1465
|
*
|
|
@@ -51,7 +51,7 @@ declare module "node:test/reporters" {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* The `lcov` reporter outputs test coverage when used with the
|
|
54
|
-
* [`--experimental-test-coverage`](https://nodejs.org/docs/latest-
|
|
54
|
+
* [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v26.x/api/cli.html#--experimental-test-coverage) flag.
|
|
55
55
|
* @since v22.0.0
|
|
56
56
|
*/
|
|
57
57
|
const lcov: ReporterConstructorWrapper<typeof LcovReporter>;
|
|
@@ -180,14 +180,14 @@ declare module "node:test" {
|
|
|
180
180
|
/**
|
|
181
181
|
* Specifies the current working directory to be used by the test runner.
|
|
182
182
|
* Serves as the base path for resolving files according to the
|
|
183
|
-
* [test runner execution model](https://nodejs.org/docs/latest-
|
|
183
|
+
* [test runner execution model](https://nodejs.org/docs/latest-v26.x/api/test.html#test-runner-execution-model).
|
|
184
184
|
* @since v23.0.0
|
|
185
185
|
* @default process.cwd()
|
|
186
186
|
*/
|
|
187
187
|
cwd?: string | undefined;
|
|
188
188
|
/**
|
|
189
189
|
* An array containing the list of files to run. If omitted, files are run according to the
|
|
190
|
-
* [test runner execution model](https://nodejs.org/docs/latest-
|
|
190
|
+
* [test runner execution model](https://nodejs.org/docs/latest-v26.x/api/test.html#test-runner-execution-model).
|
|
191
191
|
*/
|
|
192
192
|
files?: readonly string[] | undefined;
|
|
193
193
|
/**
|
|
@@ -200,7 +200,7 @@ declare module "node:test" {
|
|
|
200
200
|
/**
|
|
201
201
|
* An array containing the list of glob patterns to match test files.
|
|
202
202
|
* This option cannot be used together with `files`. If omitted, files are run according to the
|
|
203
|
-
* [test runner execution model](https://nodejs.org/docs/latest-
|
|
203
|
+
* [test runner execution model](https://nodejs.org/docs/latest-v26.x/api/test.html#test-runner-execution-model).
|
|
204
204
|
* @since v22.6.0
|
|
205
205
|
*/
|
|
206
206
|
globPatterns?: readonly string[] | undefined;
|
|
@@ -288,7 +288,7 @@ declare module "node:test" {
|
|
|
288
288
|
*/
|
|
289
289
|
rerunFailuresFilePath?: string | undefined;
|
|
290
290
|
/**
|
|
291
|
-
* enable [code coverage](https://nodejs.org/docs/latest-
|
|
291
|
+
* enable [code coverage](https://nodejs.org/docs/latest-v26.x/api/test.html#collecting-code-coverage) collection.
|
|
292
292
|
* @since v22.10.0
|
|
293
293
|
* @default false
|
|
294
294
|
*/
|
|
@@ -1193,7 +1193,7 @@ declare module "node:test" {
|
|
|
1193
1193
|
* highlighting.
|
|
1194
1194
|
* @since v22.14.0
|
|
1195
1195
|
* @param value A value to serialize to a string. If Node.js was started with
|
|
1196
|
-
* the [`--test-update-snapshots`](https://nodejs.org/docs/latest-
|
|
1196
|
+
* the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v26.x/api/cli.html#--test-update-snapshots)
|
|
1197
1197
|
* flag, the serialized value is written to
|
|
1198
1198
|
* `path`. Otherwise, the serialized value is compared to the contents of the
|
|
1199
1199
|
* existing snapshot file.
|
|
@@ -1216,7 +1216,7 @@ declare module "node:test" {
|
|
|
1216
1216
|
* ```
|
|
1217
1217
|
* @since v22.3.0
|
|
1218
1218
|
* @param value A value to serialize to a string. If Node.js was started with
|
|
1219
|
-
* the [`--test-update-snapshots`](https://nodejs.org/docs/latest-
|
|
1219
|
+
* the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v26.x/api/cli.html#--test-update-snapshots)
|
|
1220
1220
|
* flag, the serialized value is written to
|
|
1221
1221
|
* the snapshot file. Otherwise, the serialized value is compared to the
|
|
1222
1222
|
* corresponding value in the existing snapshot file.
|
|
@@ -1684,10 +1684,10 @@ declare module "node:test" {
|
|
|
1684
1684
|
* This function is used to mock the exports of ECMAScript modules, CommonJS modules, JSON modules, and
|
|
1685
1685
|
* Node.js builtin modules. Any references to the original module prior to mocking are not impacted. In
|
|
1686
1686
|
* order to enable module mocking, Node.js must be started with the
|
|
1687
|
-
* [`--experimental-test-module-mocks`](https://nodejs.org/docs/latest-
|
|
1687
|
+
* [`--experimental-test-module-mocks`](https://nodejs.org/docs/latest-v26.x/api/cli.html#--experimental-test-module-mocks)
|
|
1688
1688
|
* command-line flag.
|
|
1689
1689
|
*
|
|
1690
|
-
* **Note**: [module customization hooks](https://nodejs.org/docs/latest-
|
|
1690
|
+
* **Note**: [module customization hooks](https://nodejs.org/docs/latest-v26.x/api/module.html#customization-hooks) registered via the **synchronous** API effect resolution of
|
|
1691
1691
|
* the `specifier` provided to `mock.module`. Customization hooks registered via the **asynchronous**
|
|
1692
1692
|
* API are currently ignored (because the test runner's loader is synchronous, and node does not
|
|
1693
1693
|
* support multi-chain / cross-chain loading).
|
|
@@ -1099,7 +1099,7 @@ declare module "node:tls" {
|
|
|
1099
1099
|
* the `ciphers` option of `{@link createSecureContext}`.
|
|
1100
1100
|
*
|
|
1101
1101
|
* Not all supported ciphers are enabled by default. See
|
|
1102
|
-
* [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-
|
|
1102
|
+
* [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v26.x/api/tls.html#modifying-the-default-tls-cipher-suite).
|
|
1103
1103
|
*
|
|
1104
1104
|
* Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for
|
|
1105
1105
|
* TLSv1.2 and below.
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// NOTE: These definitions support Node.js and TypeScript 5.
|
|
25
|
+
// NOTE: These definitions support Node.js and TypeScript 5.6.
|
|
26
26
|
|
|
27
27
|
// Reference required TypeScript libraries:
|
|
28
28
|
/// <reference lib="es2020" />
|
|
@@ -31,9 +31,6 @@
|
|
|
31
31
|
// TypeScript library polyfills required for TypeScript <=5.6:
|
|
32
32
|
/// <reference path="./compatibility/float16array.d.ts" />
|
|
33
33
|
|
|
34
|
-
// Iterator definitions required for compatibility with TypeScript <5.6:
|
|
35
|
-
/// <reference path="../compatibility/iterators.d.ts" />
|
|
36
|
-
|
|
37
34
|
// Definitions for Node.js modules specific to TypeScript <=5.6:
|
|
38
35
|
/// <reference path="./globals.typedarray.d.ts" />
|
|
39
36
|
/// <reference path="./buffer.buffer.d.ts" />
|
|
@@ -31,9 +31,6 @@
|
|
|
31
31
|
// TypeScript library polyfills required for TypeScript 5.7:
|
|
32
32
|
/// <reference path="./compatibility/float16array.d.ts" />
|
|
33
33
|
|
|
34
|
-
// Iterator definitions required for compatibility with TypeScript <5.6:
|
|
35
|
-
/// <reference path="../compatibility/iterators.d.ts" />
|
|
36
|
-
|
|
37
34
|
// Definitions for Node.js modules specific to TypeScript 5.7+:
|
|
38
35
|
/// <reference path="../globals.typedarray.d.ts" />
|
|
39
36
|
/// <reference path="../buffer.buffer.d.ts" />
|
|
@@ -65,7 +65,7 @@ declare module "node:url" {
|
|
|
65
65
|
* strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487)
|
|
66
66
|
* and incorrect handling of usernames and passwords. Do not use with untrusted
|
|
67
67
|
* input. CVEs are not issued for `url.parse()` vulnerabilities. Use the
|
|
68
|
-
* [WHATWG URL](https://nodejs.org/docs/latest-
|
|
68
|
+
* [WHATWG URL](https://nodejs.org/docs/latest-v26.x/api/url.html#the-whatwg-url-api) API instead, for example:
|
|
69
69
|
*
|
|
70
70
|
* ```js
|
|
71
71
|
* function getURL(req) {
|
|
@@ -88,7 +88,7 @@ declare module "node:url" {
|
|
|
88
88
|
* @deprecated Use the WHATWG URL API instead.
|
|
89
89
|
* @param urlString The URL string to parse.
|
|
90
90
|
* @param parseQueryString If `true`, the `query` property will always
|
|
91
|
-
* be set to an object returned by the [`querystring`](https://nodejs.org/docs/latest-
|
|
91
|
+
* be set to an object returned by the [`querystring`](https://nodejs.org/docs/latest-v26.x/api/querystring.html) module's `parse()`
|
|
92
92
|
* method. If `false`, the `query` property on the returned URL object will be an
|
|
93
93
|
* unparsed, undecoded string. **Default:** `false`.
|
|
94
94
|
* @param slashesDenoteHost If `true`, the first token after the literal
|
|
@@ -546,7 +546,7 @@ declare module "node:url" {
|
|
|
546
546
|
prototype: URLSearchParams;
|
|
547
547
|
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
548
548
|
};
|
|
549
|
-
interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T,
|
|
549
|
+
interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, BuiltinIteratorReturn, unknown> {
|
|
550
550
|
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
|
551
551
|
}
|
|
552
552
|
// #endregion
|
|
@@ -187,7 +187,7 @@ declare module "node:util/types" {
|
|
|
187
187
|
* ```
|
|
188
188
|
*
|
|
189
189
|
* For further information on `napi_create_external`, refer to
|
|
190
|
-
* [`napi_create_external()`](https://nodejs.org/docs/latest-
|
|
190
|
+
* [`napi_create_external()`](https://nodejs.org/docs/latest-v26.x/api/n-api.html#napi_create_external).
|
|
191
191
|
* @since v10.0.0
|
|
192
192
|
*/
|
|
193
193
|
function isExternal(object: unknown): boolean;
|
|
@@ -139,19 +139,6 @@ declare module "node:util" {
|
|
|
139
139
|
export interface Inspectable {
|
|
140
140
|
[inspect.custom](depth: number, options: InspectContext, inspect: typeof _inspect): any;
|
|
141
141
|
}
|
|
142
|
-
// TODO: Remove these in a future major
|
|
143
|
-
/** @deprecated Use `InspectStyle` instead. */
|
|
144
|
-
export type Style = Exclude<InspectStyle, "name">;
|
|
145
|
-
/** @deprecated Use the `Inspectable` interface instead. */
|
|
146
|
-
export type CustomInspectFunction = (depth: number, options: InspectContext) => any;
|
|
147
|
-
/** @deprecated Use `InspectContext` instead. */
|
|
148
|
-
export interface InspectOptionsStylized extends InspectContext {}
|
|
149
|
-
/** @deprecated Use `InspectColorModifier` instead. */
|
|
150
|
-
export type Modifiers = InspectColorModifier;
|
|
151
|
-
/** @deprecated Use `InspectColorForeground` instead. */
|
|
152
|
-
export type ForegroundColors = InspectColorForeground;
|
|
153
|
-
/** @deprecated Use `InspectColorBackground` instead. */
|
|
154
|
-
export type BackgroundColors = InspectColorBackground;
|
|
155
142
|
export interface CallSiteObject {
|
|
156
143
|
/**
|
|
157
144
|
* Returns the name of the function associated with this call site.
|
|
@@ -340,8 +327,7 @@ declare module "node:util" {
|
|
|
340
327
|
*
|
|
341
328
|
* It is possible to reconstruct the original locations by setting the option `sourceMap` to `true`.
|
|
342
329
|
* If the source map is not available, the original location will be the same as the current location.
|
|
343
|
-
* When the `--enable-source-maps` flag is enabled,
|
|
344
|
-
* `sourceMap` will be true by default.
|
|
330
|
+
* When the `--enable-source-maps` flag is enabled, `sourceMap` will be true by default.
|
|
345
331
|
*
|
|
346
332
|
* ```ts
|
|
347
333
|
* import { getCallSites } from 'node:util';
|
|
@@ -1115,7 +1101,7 @@ declare module "node:util" {
|
|
|
1115
1101
|
* ```
|
|
1116
1102
|
*
|
|
1117
1103
|
* If there is an `original[util.promisify.custom]` property present, `promisify`
|
|
1118
|
-
* will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-
|
|
1104
|
+
* will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-v26.x/api/util.html#custom-promisified-functions).
|
|
1119
1105
|
*
|
|
1120
1106
|
* `promisify()` assumes that `original` is a function taking a callback as its
|
|
1121
1107
|
* final argument in all cases. If `original` is not a function, `promisify()`
|
|
@@ -1260,7 +1246,7 @@ declare module "node:util" {
|
|
|
1260
1246
|
*
|
|
1261
1247
|
* The special format value `none` applies no additional styling to the text.
|
|
1262
1248
|
*
|
|
1263
|
-
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-
|
|
1249
|
+
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v26.x/api/util.html#modifiers).
|
|
1264
1250
|
* @param format A text format or an Array of text formats defined in `util.inspect.colors`.
|
|
1265
1251
|
* @param text The text to to be formatted.
|
|
1266
1252
|
* @since v20.12.0
|
|
@@ -1270,9 +1256,6 @@ declare module "node:util" {
|
|
|
1270
1256
|
text: string,
|
|
1271
1257
|
options?: StyleTextOptions,
|
|
1272
1258
|
): string;
|
|
1273
|
-
/** @deprecated This alias will be removed in a future version. Use the canonical `TextEncoderEncodeIntoResult` instead. */
|
|
1274
|
-
// TODO: remove in future major
|
|
1275
|
-
export interface EncodeIntoResult extends TextEncoderEncodeIntoResult {}
|
|
1276
1259
|
//// parseArgs
|
|
1277
1260
|
/**
|
|
1278
1261
|
* Provides a higher level API for command-line argument parsing than interacting
|
|
@@ -636,7 +636,7 @@ declare module "node:v8" {
|
|
|
636
636
|
function stopCoverage(): void;
|
|
637
637
|
/**
|
|
638
638
|
* 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.
|
|
639
|
-
* `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-
|
|
639
|
+
* `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v26.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information.
|
|
640
640
|
* @since v18.10.0, v16.18.0
|
|
641
641
|
*/
|
|
642
642
|
function setHeapSnapshotNearHeapLimit(limit: number): void;
|