@psnext/slingcli 2.4.20260516-1 → 2.4.20260520-2
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/README.md +8 -5
- package/bin/sling.js +73 -10
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +5 -5
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +10 -10
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +10 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +9 -9
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -1
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +201 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +62 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +156 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +16 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +80 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +11 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +10 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/constants.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts +18 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +18 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/constants.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +14 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenExpiry.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/validateTokenKey.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +69 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +15 -0
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +129 -24
- package/node_modules/@mariozechner/clipboard-darwin-arm64/README.md +3 -0
- package/node_modules/@mariozechner/clipboard-darwin-arm64/clipboard.darwin-arm64.node +0 -0
- package/node_modules/@mariozechner/{clipboard-linux-x64-gnu → clipboard-darwin-arm64}/package.json +5 -8
- package/node_modules/@mariozechner/clipboard-darwin-universal/README.md +3 -0
- package/node_modules/@mariozechner/clipboard-darwin-universal/clipboard.darwin-universal.node +0 -0
- package/node_modules/@mariozechner/clipboard-darwin-universal/package.json +19 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/async_hooks.d.ts +108 -0
- package/node_modules/@types/node/crypto.d.ts +14 -3
- package/node_modules/@types/node/fs/promises.d.ts +126 -0
- package/node_modules/@types/node/fs.d.ts +4 -2
- package/node_modules/@types/node/index.d.ts +2 -0
- package/node_modules/@types/node/inspector.generated.d.ts +5 -0
- package/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/process.d.ts +25 -1
- package/node_modules/@types/node/quic.d.ts +2 -2
- package/node_modules/@types/node/repl.d.ts +15 -0
- package/node_modules/@types/node/stream/iter.d.ts +301 -0
- package/node_modules/@types/node/test.d.ts +38 -12
- package/node_modules/@types/node/ts5.6/index.d.ts +2 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +2 -0
- package/node_modules/@types/node/vm.d.ts +5 -4
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +81 -41
- package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.js +81 -41
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.js +81 -41
- package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.js +81 -41
- package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.js +81 -41
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/node/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.js +81 -41
- package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/perf.js.map +1 -1
- package/node_modules/lru-cache/package.json +8 -8
- package/node_modules/protobufjs/README.md +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.js +8 -6
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +8 -6
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/index.d.ts +2 -1
- package/node_modules/protobufjs/package.json +2 -2
- package/node_modules/protobufjs/src/converter.js +5 -3
- package/node_modules/protobufjs/src/type.js +1 -1
- package/package.json +2 -2
- package/slingshot/index.js +345 -339
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/README.md +0 -3
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/clipboard.linux-x64-gnu.node +0 -0
|
@@ -380,7 +380,8 @@ declare module "node:fs" {
|
|
|
380
380
|
"ready": [];
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
383
|
-
* Instances of `fs.ReadStream`
|
|
383
|
+
* Instances of `fs.ReadStream` cannot be constructed directly. They are created and
|
|
384
|
+
* returned using the `fs.createReadStream()` function.
|
|
384
385
|
* @since v0.1.93
|
|
385
386
|
*/
|
|
386
387
|
class ReadStream extends stream.Readable {
|
|
@@ -643,7 +644,8 @@ declare module "node:fs" {
|
|
|
643
644
|
"ready": [];
|
|
644
645
|
}
|
|
645
646
|
/**
|
|
646
|
-
* Instances of `fs.WriteStream`
|
|
647
|
+
* Instances of `fs.WriteStream` cannot be constructed directly. They are created and
|
|
648
|
+
* returned using the `fs.createWriteStream()` function.
|
|
647
649
|
* @since v0.1.93
|
|
648
650
|
*/
|
|
649
651
|
class WriteStream extends stream.Writable {
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
/// <reference path="sqlite.d.ts" />
|
|
96
96
|
/// <reference path="stream.d.ts" />
|
|
97
97
|
/// <reference path="stream/consumers.d.ts" />
|
|
98
|
+
/// <reference path="stream/iter.d.ts" />
|
|
98
99
|
/// <reference path="stream/promises.d.ts" />
|
|
99
100
|
/// <reference path="stream/web.d.ts" />
|
|
100
101
|
/// <reference path="string_decoder.d.ts" />
|
|
@@ -113,3 +114,4 @@
|
|
|
113
114
|
/// <reference path="wasi.d.ts" />
|
|
114
115
|
/// <reference path="worker_threads.d.ts" />
|
|
115
116
|
/// <reference path="zlib.d.ts" />
|
|
117
|
+
/// <reference path="zlib/iter.d.ts" />
|
|
@@ -2035,6 +2035,9 @@ declare module "node:inspector" {
|
|
|
2035
2035
|
autoAttach: boolean;
|
|
2036
2036
|
waitForDebuggerOnStart: boolean;
|
|
2037
2037
|
}
|
|
2038
|
+
interface GetTargetsReturnType {
|
|
2039
|
+
targetInfos: TargetInfo[];
|
|
2040
|
+
}
|
|
2038
2041
|
interface TargetCreatedEventDataType {
|
|
2039
2042
|
targetInfo: TargetInfo;
|
|
2040
2043
|
}
|
|
@@ -2506,6 +2509,7 @@ declare module "node:inspector" {
|
|
|
2506
2509
|
*/
|
|
2507
2510
|
post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
|
|
2508
2511
|
post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void;
|
|
2512
|
+
post(method: "Target.getTargets", callback?: (err: Error | null, params: Target.GetTargetsReturnType) => void): void;
|
|
2509
2513
|
post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType, callback?: (err: Error | null) => void): void;
|
|
2510
2514
|
post(method: "Target.setAutoAttach", callback?: (err: Error | null) => void): void;
|
|
2511
2515
|
post(method: "DOMStorage.clear", params?: DOMStorage.ClearParameterType, callback?: (err: Error | null) => void): void;
|
|
@@ -3642,6 +3646,7 @@ declare module "node:inspector/promises" {
|
|
|
3642
3646
|
* Detached from the worker with given sessionId.
|
|
3643
3647
|
*/
|
|
3644
3648
|
post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType): Promise<void>;
|
|
3649
|
+
post(method: "Target.getTargets"): Promise<Target.GetTargetsReturnType>;
|
|
3645
3650
|
post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType): Promise<void>;
|
|
3646
3651
|
post(method: "DOMStorage.clear", params?: DOMStorage.ClearParameterType): Promise<void>;
|
|
3647
3652
|
/**
|
|
@@ -218,6 +218,7 @@ declare module "node:module" {
|
|
|
218
218
|
* This feature requires `--allow-worker` if used with the
|
|
219
219
|
* [Permission Model](https://nodejs.org/docs/latest-v25.x/api/permissions.html#permission-model).
|
|
220
220
|
* @since v20.6.0, v18.19.0
|
|
221
|
+
* @deprecated Use `module.registerHooks()` instead.
|
|
221
222
|
* @param specifier Customization hooks to be registered; this should be
|
|
222
223
|
* the same string that would be passed to `import()`, except that if it is
|
|
223
224
|
* relative, it is resolved relative to `parentURL`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.9.1",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -150,6 +150,6 @@
|
|
|
150
150
|
"undici-types": ">=7.24.0 <7.24.7"
|
|
151
151
|
},
|
|
152
152
|
"peerDependencies": {},
|
|
153
|
-
"typesPublisherContentHash": "
|
|
153
|
+
"typesPublisherContentHash": "2546f5f588e15fc9aa202a3005dab2859d006fd48a8448107741e5ce184e9098",
|
|
154
154
|
"typeScriptVersion": "5.3"
|
|
155
155
|
}
|
|
@@ -822,6 +822,28 @@ declare module "node:process" {
|
|
|
822
822
|
* @since v0.7.0
|
|
823
823
|
*/
|
|
824
824
|
abort(): never;
|
|
825
|
+
/**
|
|
826
|
+
* The `process.addUncaughtExceptionCaptureCallback()` function adds a callback
|
|
827
|
+
* that will be invoked when an uncaught exception occurs, receiving the exception
|
|
828
|
+
* value as its first argument.
|
|
829
|
+
*
|
|
830
|
+
* Unlike `process.setUncaughtExceptionCaptureCallback()`, this function allows
|
|
831
|
+
* multiple callbacks to be registered and does not conflict with the
|
|
832
|
+
* [`domain`](https://nodejs.org/docs/latest-v25.x/api/domain.html) module. Callbacks are called in reverse order of registration
|
|
833
|
+
* (most recent first). If a callback returns `true`, subsequent callbacks
|
|
834
|
+
* and the default uncaught exception handling are skipped.
|
|
835
|
+
*
|
|
836
|
+
* ```js
|
|
837
|
+
* import process from 'node:process';
|
|
838
|
+
*
|
|
839
|
+
* process.addUncaughtExceptionCaptureCallback((err) => {
|
|
840
|
+
* console.error('Caught exception:', err.message);
|
|
841
|
+
* return true; // Indicates exception was handled
|
|
842
|
+
* });
|
|
843
|
+
* ```
|
|
844
|
+
* @since v25.9.0
|
|
845
|
+
*/
|
|
846
|
+
addUncaughtExceptionCaptureCallback(fn: (err: unknown) => boolean): void;
|
|
825
847
|
/**
|
|
826
848
|
* The `process.chdir()` method changes the current working directory of the
|
|
827
849
|
* Node.js process or throws an exception if doing so fails (for instance, if
|
|
@@ -1418,9 +1440,11 @@ declare module "node:process" {
|
|
|
1418
1440
|
* method with a non-`null` argument while another capture function is set will
|
|
1419
1441
|
* throw an error.
|
|
1420
1442
|
*
|
|
1421
|
-
*
|
|
1443
|
+
* To register multiple callbacks that can coexist, use
|
|
1444
|
+
* `process.addUncaughtExceptionCaptureCallback()` instead.
|
|
1422
1445
|
* @since v9.3.0
|
|
1423
1446
|
*/
|
|
1447
|
+
// TODO: callback parameter should be `unknown`
|
|
1424
1448
|
setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
|
|
1425
1449
|
/**
|
|
1426
1450
|
* Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}.
|
|
@@ -179,7 +179,7 @@ declare module "node:quic" {
|
|
|
179
179
|
* The TLS crypto keys to use for sessions.
|
|
180
180
|
* @since v23.8.0
|
|
181
181
|
*/
|
|
182
|
-
keys?: KeyObject |
|
|
182
|
+
keys?: KeyObject | readonly KeyObject[] | undefined;
|
|
183
183
|
/**
|
|
184
184
|
* Specifies the maximum UDP packet payload size.
|
|
185
185
|
* @since v23.8.0
|
|
@@ -653,7 +653,7 @@ declare module "node:quic" {
|
|
|
653
653
|
/**
|
|
654
654
|
* Sends an unreliable datagram to the remote peer, returning the datagram ID.
|
|
655
655
|
* If the datagram payload is specified as an `ArrayBufferView`, then ownership of
|
|
656
|
-
* that view will be
|
|
656
|
+
* that view will be transferred to the underlying stream.
|
|
657
657
|
* @since v23.8.0
|
|
658
658
|
*/
|
|
659
659
|
sendDatagram(datagram: string | NodeJS.ArrayBufferView): bigint;
|
|
@@ -86,6 +86,21 @@ declare module "node:repl" {
|
|
|
86
86
|
* @default false
|
|
87
87
|
*/
|
|
88
88
|
breakEvalOnSigint?: boolean | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* This function customizes error handling in the REPL.
|
|
91
|
+
* It receives the thrown exception as its first argument and must return one
|
|
92
|
+
* of the following values synchronously:
|
|
93
|
+
* * `'print'` to print the error to the output stream (default behavior).
|
|
94
|
+
* * `'ignore'` to skip all remaining error handling.
|
|
95
|
+
* * `'unhandled'` to treat the exception as fully unhandled. In this case,
|
|
96
|
+
* the error will be passed to process-wide exception handlers, such as
|
|
97
|
+
* the `'uncaughtException'` event.
|
|
98
|
+
* The `'unhandled'` value may or may not be desirable in situations
|
|
99
|
+
* where the `REPLServer` instance has been closed, depending on the particular
|
|
100
|
+
* use case.
|
|
101
|
+
* @since v25.9.0
|
|
102
|
+
*/
|
|
103
|
+
handleError?: ((err: unknown) => "print" | "ignore" | "unhandled") | undefined;
|
|
89
104
|
}
|
|
90
105
|
type REPLEval = (
|
|
91
106
|
this: REPLServer,
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
declare module "node:stream/iter" {
|
|
2
|
+
// Symbols and custom typedefs
|
|
3
|
+
const broadcastProtocol: unique symbol;
|
|
4
|
+
const drainableProtocol: unique symbol;
|
|
5
|
+
const shareProtocol: unique symbol;
|
|
6
|
+
const shareSyncProtocol: unique symbol;
|
|
7
|
+
const toAsyncStreamable: unique symbol;
|
|
8
|
+
const toStreamable: unique symbol;
|
|
9
|
+
type Source =
|
|
10
|
+
| string
|
|
11
|
+
| ArrayBufferLike
|
|
12
|
+
| ArrayBufferView
|
|
13
|
+
| Iterable<SyncSource>
|
|
14
|
+
| AsyncIterable<Source>
|
|
15
|
+
| Streamable
|
|
16
|
+
| AsyncStreamable;
|
|
17
|
+
type SyncSource = string | ArrayBufferLike | ArrayBufferView | Iterable<SyncSource> | Streamable;
|
|
18
|
+
type Transform = StatelessTransformFn | StatefulTransform;
|
|
19
|
+
type SyncTransform = SyncStatelessTransformFn | SyncStatefulTransform;
|
|
20
|
+
type TransformResult =
|
|
21
|
+
| string
|
|
22
|
+
| ArrayBufferLike
|
|
23
|
+
| ArrayBufferView
|
|
24
|
+
| Iterable<SyncTransformResult>
|
|
25
|
+
| AsyncIterable<TransformResult>;
|
|
26
|
+
type SyncTransformResult = string | ArrayBufferLike | ArrayBufferView | Iterable<SyncTransformResult>;
|
|
27
|
+
interface AsyncStreamable {
|
|
28
|
+
[toAsyncStreamable](): Source;
|
|
29
|
+
}
|
|
30
|
+
interface Broadcastable {
|
|
31
|
+
[broadcastProtocol](options: BroadcastOptions): Broadcast;
|
|
32
|
+
}
|
|
33
|
+
interface Drainable {
|
|
34
|
+
[drainableProtocol](): Promise<boolean> | null;
|
|
35
|
+
}
|
|
36
|
+
interface Shareable {
|
|
37
|
+
[shareProtocol](options: ShareOptions): Share;
|
|
38
|
+
}
|
|
39
|
+
interface Streamable {
|
|
40
|
+
[toStreamable](): SyncSource;
|
|
41
|
+
}
|
|
42
|
+
interface SyncShareable {
|
|
43
|
+
[shareSyncProtocol](options: ShareSyncOptions): SyncShare;
|
|
44
|
+
}
|
|
45
|
+
// IDL dictionaries, enums, typedefs
|
|
46
|
+
type BackpressurePolicy = "strict" | "block" | "drop-oldest" | "drop-newest";
|
|
47
|
+
type ByteReadableStream = AsyncIterable<Uint8Array[]>;
|
|
48
|
+
type SyncByteReadableStream = Iterable<Uint8Array[]>;
|
|
49
|
+
interface WriteOptions {
|
|
50
|
+
signal?: AbortSignal;
|
|
51
|
+
}
|
|
52
|
+
interface PushStreamOptions {
|
|
53
|
+
highWaterMark?: number;
|
|
54
|
+
backpressure?: BackpressurePolicy;
|
|
55
|
+
signal?: AbortSignal;
|
|
56
|
+
}
|
|
57
|
+
interface PullOptions {
|
|
58
|
+
signal?: AbortSignal;
|
|
59
|
+
}
|
|
60
|
+
interface PipeToOptions {
|
|
61
|
+
signal?: AbortSignal;
|
|
62
|
+
preventClose?: boolean;
|
|
63
|
+
preventFail?: boolean;
|
|
64
|
+
}
|
|
65
|
+
interface PipeToSyncOptions {
|
|
66
|
+
preventClose?: boolean;
|
|
67
|
+
preventFail?: boolean;
|
|
68
|
+
}
|
|
69
|
+
interface ConsumeOptions {
|
|
70
|
+
signal?: AbortSignal;
|
|
71
|
+
limit?: number;
|
|
72
|
+
}
|
|
73
|
+
interface ConsumeSyncOptions {
|
|
74
|
+
limit?: number;
|
|
75
|
+
}
|
|
76
|
+
interface TextConsumeOptions extends ConsumeOptions {
|
|
77
|
+
encoding?: string;
|
|
78
|
+
}
|
|
79
|
+
interface TextConsumeSyncOptions extends ConsumeSyncOptions {
|
|
80
|
+
encoding?: string;
|
|
81
|
+
}
|
|
82
|
+
interface MergeOptions {
|
|
83
|
+
signal?: AbortSignal;
|
|
84
|
+
}
|
|
85
|
+
interface BroadcastOptions {
|
|
86
|
+
highWaterMark?: number;
|
|
87
|
+
backpressure?: BackpressurePolicy;
|
|
88
|
+
signal?: AbortSignal;
|
|
89
|
+
}
|
|
90
|
+
interface ShareOptions {
|
|
91
|
+
highWaterMark?: number;
|
|
92
|
+
backpressure?: BackpressurePolicy;
|
|
93
|
+
signal?: AbortSignal;
|
|
94
|
+
}
|
|
95
|
+
interface ShareSyncOptions {
|
|
96
|
+
highWaterMark?: number;
|
|
97
|
+
backpressure?: BackpressurePolicy;
|
|
98
|
+
}
|
|
99
|
+
interface DuplexDirectionOptions {
|
|
100
|
+
highWaterMark?: number;
|
|
101
|
+
backpressure?: BackpressurePolicy;
|
|
102
|
+
}
|
|
103
|
+
interface DuplexOptions {
|
|
104
|
+
highWaterMark?: number;
|
|
105
|
+
backpressure?: BackpressurePolicy;
|
|
106
|
+
a?: DuplexDirectionOptions;
|
|
107
|
+
b?: DuplexDirectionOptions;
|
|
108
|
+
signal?: AbortSignal;
|
|
109
|
+
}
|
|
110
|
+
interface TransformCallbackOptions {
|
|
111
|
+
signal: AbortSignal;
|
|
112
|
+
}
|
|
113
|
+
interface StatelessTransformFn {
|
|
114
|
+
(
|
|
115
|
+
chunks: Uint8Array[] | null,
|
|
116
|
+
options: TransformCallbackOptions,
|
|
117
|
+
): Promise<TransformResult | null> | TransformResult | null;
|
|
118
|
+
}
|
|
119
|
+
interface SyncStatelessTransformFn {
|
|
120
|
+
(chunks: Uint8Array[] | null): SyncTransformResult | null;
|
|
121
|
+
}
|
|
122
|
+
interface StatefulTransform {
|
|
123
|
+
transform(
|
|
124
|
+
source: AsyncIterable<Uint8Array[] | null>,
|
|
125
|
+
options: TransformCallbackOptions,
|
|
126
|
+
): AsyncIterable<TransformResult>;
|
|
127
|
+
}
|
|
128
|
+
interface SyncStatefulTransform {
|
|
129
|
+
transform(source: Iterable<Uint8Array[] | null>): Iterable<SyncTransformResult>;
|
|
130
|
+
}
|
|
131
|
+
// IDL interfaces
|
|
132
|
+
interface PushWriter extends Writer, Drainable {}
|
|
133
|
+
interface PushStreamResult {
|
|
134
|
+
writer: PushWriter;
|
|
135
|
+
readable: ByteReadableStream;
|
|
136
|
+
}
|
|
137
|
+
interface BroadcastWriter extends Writer, Drainable {}
|
|
138
|
+
interface BroadcastResult {
|
|
139
|
+
writer: BroadcastWriter;
|
|
140
|
+
broadcast: Broadcast;
|
|
141
|
+
}
|
|
142
|
+
interface Writer extends Disposable, AsyncDisposable {
|
|
143
|
+
readonly desiredSize: number | null;
|
|
144
|
+
write(chunk: Uint8Array | string, options?: WriteOptions): Promise<void>;
|
|
145
|
+
writev(chunks: Array<Uint8Array | string>, options?: WriteOptions): Promise<void>;
|
|
146
|
+
writeSync(chunk: Uint8Array | string): boolean;
|
|
147
|
+
writevSync(chunks: Array<Uint8Array | string>): boolean;
|
|
148
|
+
end(options?: WriteOptions): Promise<number>;
|
|
149
|
+
endSync(): number;
|
|
150
|
+
fail(reason?: any): void;
|
|
151
|
+
}
|
|
152
|
+
interface PartialWriter extends Partial<Writer> {
|
|
153
|
+
write(chunk: Uint8Array | string, options?: WriteOptions): Promise<void>;
|
|
154
|
+
}
|
|
155
|
+
interface SyncWriter extends Disposable {
|
|
156
|
+
readonly desiredSize: number | null;
|
|
157
|
+
writeSync(chunk: Uint8Array | string): number;
|
|
158
|
+
writevSync(chunks: Array<Uint8Array | string>): number;
|
|
159
|
+
endSync(): number;
|
|
160
|
+
fail(reason?: any): void;
|
|
161
|
+
}
|
|
162
|
+
interface PartialSyncWriter extends Partial<SyncWriter> {
|
|
163
|
+
writeSync(chunk: Uint8Array | string): number;
|
|
164
|
+
}
|
|
165
|
+
interface Broadcast extends Disposable {
|
|
166
|
+
readonly consumerCount: number;
|
|
167
|
+
readonly bufferSize: number;
|
|
168
|
+
push(...args: any[]): ByteReadableStream;
|
|
169
|
+
cancel(reason?: any): void;
|
|
170
|
+
}
|
|
171
|
+
interface Share extends Disposable {
|
|
172
|
+
readonly consumerCount: number;
|
|
173
|
+
readonly bufferSize: number;
|
|
174
|
+
pull(...args: any[]): ByteReadableStream;
|
|
175
|
+
cancel(reason?: any): void;
|
|
176
|
+
}
|
|
177
|
+
interface SyncShare extends Disposable {
|
|
178
|
+
readonly consumerCount: number;
|
|
179
|
+
readonly bufferSize: number;
|
|
180
|
+
pull(...args: any): SyncByteReadableStream;
|
|
181
|
+
cancel(reason?: any): void;
|
|
182
|
+
}
|
|
183
|
+
interface DuplexChannel extends AsyncDisposable {
|
|
184
|
+
readonly writer: Writer;
|
|
185
|
+
readonly readable: ByteReadableStream;
|
|
186
|
+
close(): Promise<void>;
|
|
187
|
+
}
|
|
188
|
+
// Push stream creation
|
|
189
|
+
function push(...transforms: Transform[]): PushStreamResult;
|
|
190
|
+
function push(...args: [...transforms: Transform[], options: PushStreamOptions]): PushStreamResult;
|
|
191
|
+
// Stream factories
|
|
192
|
+
function from(input: Source): ByteReadableStream;
|
|
193
|
+
function fromSync(input: SyncSource): SyncByteReadableStream;
|
|
194
|
+
// Pull pipelines
|
|
195
|
+
function pull(source: Source, ...transforms: Transform[]): ByteReadableStream;
|
|
196
|
+
function pull(
|
|
197
|
+
source: Source,
|
|
198
|
+
...args: [...transforms: Transform[], options: PullOptions]
|
|
199
|
+
): ByteReadableStream;
|
|
200
|
+
function pullSync(source: SyncSource, ...transforms: SyncTransform[]): SyncByteReadableStream;
|
|
201
|
+
// Pipe operations
|
|
202
|
+
function pipeTo(source: Source, writer: PartialWriter, options?: PipeToOptions): Promise<number>;
|
|
203
|
+
function pipeTo(source: Source, ...args: [...transforms: Transform[], writer: PartialWriter]): Promise<number>;
|
|
204
|
+
function pipeTo(
|
|
205
|
+
source: Source,
|
|
206
|
+
...args: [...transforms: Transform[], writer: PartialWriter, options: PipeToOptions]
|
|
207
|
+
): Promise<number>;
|
|
208
|
+
function pipeToSync(source: SyncSource, writer: PartialSyncWriter, options?: PipeToSyncOptions): number;
|
|
209
|
+
function pipeToSync(
|
|
210
|
+
source: SyncSource,
|
|
211
|
+
...args: [...transforms: SyncTransform[], writer: PartialSyncWriter]
|
|
212
|
+
): number;
|
|
213
|
+
function pipeToSync(
|
|
214
|
+
source: SyncSource,
|
|
215
|
+
...args: [...transforms: SyncTransform[], writer: PartialSyncWriter, options: PipeToSyncOptions]
|
|
216
|
+
): number;
|
|
217
|
+
// Consumers
|
|
218
|
+
function bytes(source: Source, options?: ConsumeOptions): Promise<Uint8Array>;
|
|
219
|
+
function bytesSync(source: SyncSource, options?: ConsumeSyncOptions): Uint8Array;
|
|
220
|
+
function text(source: Source, options?: TextConsumeOptions): Promise<string>;
|
|
221
|
+
function textSync(source: SyncSource, options?: TextConsumeSyncOptions): string;
|
|
222
|
+
function arrayBuffer(source: Source, options?: ConsumeOptions): Promise<ArrayBuffer>;
|
|
223
|
+
function arrayBufferSync(source: SyncSource, options?: ConsumeSyncOptions): ArrayBuffer;
|
|
224
|
+
function array(source: Source, options?: ConsumeOptions): Promise<Uint8Array[]>;
|
|
225
|
+
function arraySync(source: SyncSource, options?: ConsumeSyncOptions): Uint8Array[];
|
|
226
|
+
// Utilities
|
|
227
|
+
function tap(callback: StatelessTransformFn): StatelessTransformFn;
|
|
228
|
+
function tapSync(callback: SyncStatelessTransformFn): SyncStatelessTransformFn;
|
|
229
|
+
function merge(...sources: Source[]): ByteReadableStream;
|
|
230
|
+
function merge(...args: [...sources: Source[], options: MergeOptions]): ByteReadableStream;
|
|
231
|
+
function ondrain(drainable: any): Promise<boolean> | null;
|
|
232
|
+
// Multi-consumer
|
|
233
|
+
function broadcast(options?: BroadcastOptions): BroadcastResult;
|
|
234
|
+
function share(source: Source, options?: ShareOptions): Share;
|
|
235
|
+
function shareSync(source: SyncSource, options?: ShareSyncOptions): SyncShare;
|
|
236
|
+
// Duplex
|
|
237
|
+
function duplex(options?: DuplexOptions): [DuplexChannel, DuplexChannel];
|
|
238
|
+
// Node.js-specific extensions
|
|
239
|
+
namespace Broadcast {
|
|
240
|
+
/**
|
|
241
|
+
* Create a `Broadcast` from an existing source. The source is consumed
|
|
242
|
+
* automatically and pushed to all subscribers.
|
|
243
|
+
* @since v25.9.0
|
|
244
|
+
* @param options Same as `broadcast()`.
|
|
245
|
+
*/
|
|
246
|
+
function from(
|
|
247
|
+
input: ByteReadableStream | SyncByteReadableStream | Broadcastable,
|
|
248
|
+
options?: BroadcastOptions,
|
|
249
|
+
): BroadcastResult;
|
|
250
|
+
}
|
|
251
|
+
namespace Share {
|
|
252
|
+
/**
|
|
253
|
+
* Create a `Share` from an existing source.
|
|
254
|
+
* @since v25.9.0
|
|
255
|
+
* @param options Same as `share()`.
|
|
256
|
+
*/
|
|
257
|
+
function from(input: ByteReadableStream | SyncByteReadableStream | Shareable, options?: ShareOptions): Share;
|
|
258
|
+
}
|
|
259
|
+
namespace SyncShare {
|
|
260
|
+
/**
|
|
261
|
+
* @since v25.9.0
|
|
262
|
+
*/
|
|
263
|
+
function from(input: SyncByteReadableStream | SyncShareable, options?: ShareSyncOptions): SyncShare;
|
|
264
|
+
}
|
|
265
|
+
namespace Stream {
|
|
266
|
+
export {
|
|
267
|
+
array,
|
|
268
|
+
arrayBuffer,
|
|
269
|
+
arrayBufferSync,
|
|
270
|
+
arraySync,
|
|
271
|
+
broadcast,
|
|
272
|
+
broadcastProtocol,
|
|
273
|
+
bytes,
|
|
274
|
+
bytesSync,
|
|
275
|
+
drainableProtocol,
|
|
276
|
+
duplex,
|
|
277
|
+
from,
|
|
278
|
+
fromSync,
|
|
279
|
+
merge,
|
|
280
|
+
ondrain,
|
|
281
|
+
pipeTo,
|
|
282
|
+
pipeToSync,
|
|
283
|
+
pull,
|
|
284
|
+
pullSync,
|
|
285
|
+
push,
|
|
286
|
+
share,
|
|
287
|
+
shareProtocol,
|
|
288
|
+
shareSync,
|
|
289
|
+
shareSyncProtocol,
|
|
290
|
+
tap,
|
|
291
|
+
tapSync,
|
|
292
|
+
text,
|
|
293
|
+
textSync,
|
|
294
|
+
toAsyncStreamable,
|
|
295
|
+
toStreamable,
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
declare module "stream/iter" {
|
|
300
|
+
export * from "node:stream/iter";
|
|
301
|
+
}
|
|
@@ -1479,19 +1479,40 @@ declare module "node:test" {
|
|
|
1479
1479
|
*/
|
|
1480
1480
|
cache?: boolean | undefined;
|
|
1481
1481
|
/**
|
|
1482
|
-
*
|
|
1483
|
-
*
|
|
1484
|
-
*
|
|
1485
|
-
*
|
|
1486
|
-
* If
|
|
1482
|
+
* Optional mocked exports. The `default` property, if
|
|
1483
|
+
* provided, is used as the mocked module's default export. All other own
|
|
1484
|
+
* enumerable properties are used as named exports.
|
|
1485
|
+
* **This option cannot be used with `defaultExport` or `namedExports`.**
|
|
1486
|
+
* * If the mock is a CommonJS or builtin module, `exports.default` is used as
|
|
1487
|
+
* the value of `module.exports`.
|
|
1488
|
+
* * If `exports.default` is not provided for a CommonJS or builtin mock,
|
|
1489
|
+
* `module.exports` defaults to an empty object.
|
|
1490
|
+
* * If named exports are provided with a non-object default export, the mock
|
|
1491
|
+
* throws an exception when used as a CommonJS or builtin module.
|
|
1492
|
+
*/
|
|
1493
|
+
exports?: object | undefined;
|
|
1494
|
+
/**
|
|
1495
|
+
* An optional value used as the mocked module's default
|
|
1496
|
+
* export. If this value is not provided, ESM mocks do not include a default
|
|
1497
|
+
* export. If the mock is a CommonJS or builtin module, this setting is used as
|
|
1498
|
+
* the value of `module.exports`. If this value is not provided, CJS and builtin
|
|
1499
|
+
* mocks use an empty object as the value of `module.exports`.
|
|
1500
|
+
* **This option cannot be used with `options.exports`.**
|
|
1501
|
+
* This option is deprecated and will be removed in a later version.
|
|
1502
|
+
* Prefer `options.exports.default`.
|
|
1503
|
+
* @deprecated
|
|
1487
1504
|
*/
|
|
1488
1505
|
defaultExport?: any;
|
|
1489
1506
|
/**
|
|
1490
|
-
* An object whose keys and values are used to
|
|
1491
|
-
*
|
|
1492
|
-
*
|
|
1493
|
-
*
|
|
1494
|
-
*
|
|
1507
|
+
* An optional object whose keys and values are used to
|
|
1508
|
+
* create the named exports of the mock module. If the mock is a CommonJS or
|
|
1509
|
+
* builtin module, these values are copied onto `module.exports`. Therefore, if a
|
|
1510
|
+
* mock is created with both named exports and a non-object default export, the
|
|
1511
|
+
* mock will throw an exception when used as a CJS or builtin module.
|
|
1512
|
+
* **This option cannot be used with `options.exports`.**
|
|
1513
|
+
* This option is deprecated and will be removed in a later version.
|
|
1514
|
+
* Prefer `options.exports`.
|
|
1515
|
+
* @deprecated
|
|
1495
1516
|
*/
|
|
1496
1517
|
namedExports?: object | undefined;
|
|
1497
1518
|
}
|
|
@@ -1666,14 +1687,19 @@ declare module "node:test" {
|
|
|
1666
1687
|
* [`--experimental-test-module-mocks`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--experimental-test-module-mocks)
|
|
1667
1688
|
* command-line flag.
|
|
1668
1689
|
*
|
|
1690
|
+
* **Note**: [module customization hooks](https://nodejs.org/docs/latest-v25.x/api/module.html#customization-hooks) registered via the **synchronous** API effect resolution of
|
|
1691
|
+
* the `specifier` provided to `mock.module`. Customization hooks registered via the **asynchronous**
|
|
1692
|
+
* API are currently ignored (because the test runner's loader is synchronous, and node does not
|
|
1693
|
+
* support multi-chain / cross-chain loading).
|
|
1694
|
+
*
|
|
1669
1695
|
* The following example demonstrates how a mock is created for a module.
|
|
1670
1696
|
*
|
|
1671
1697
|
* ```js
|
|
1672
1698
|
* test('mocks a builtin module in both module systems', async (t) => {
|
|
1673
|
-
* // Create a mock of 'node:readline' with a named export named '
|
|
1699
|
+
* // Create a mock of 'node:readline' with a named export named 'foo', which
|
|
1674
1700
|
* // does not exist in the original 'node:readline' module.
|
|
1675
1701
|
* const mock = t.mock.module('node:readline', {
|
|
1676
|
-
*
|
|
1702
|
+
* exports: { foo: () => 42 },
|
|
1677
1703
|
* });
|
|
1678
1704
|
*
|
|
1679
1705
|
* let esmImpl = await import('node:readline');
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
/// <reference path="../sqlite.d.ts" />
|
|
98
98
|
/// <reference path="../stream.d.ts" />
|
|
99
99
|
/// <reference path="../stream/consumers.d.ts" />
|
|
100
|
+
/// <reference path="../stream/iter.d.ts" />
|
|
100
101
|
/// <reference path="../stream/promises.d.ts" />
|
|
101
102
|
/// <reference path="../stream/web.d.ts" />
|
|
102
103
|
/// <reference path="../string_decoder.d.ts" />
|
|
@@ -115,3 +116,4 @@
|
|
|
115
116
|
/// <reference path="../wasi.d.ts" />
|
|
116
117
|
/// <reference path="../worker_threads.d.ts" />
|
|
117
118
|
/// <reference path="../zlib.d.ts" />
|
|
119
|
+
/// <reference path="../zlib/iter.d.ts" />
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
/// <reference path="../sqlite.d.ts" />
|
|
98
98
|
/// <reference path="../stream.d.ts" />
|
|
99
99
|
/// <reference path="../stream/consumers.d.ts" />
|
|
100
|
+
/// <reference path="../stream/iter.d.ts" />
|
|
100
101
|
/// <reference path="../stream/promises.d.ts" />
|
|
101
102
|
/// <reference path="../stream/web.d.ts" />
|
|
102
103
|
/// <reference path="../string_decoder.d.ts" />
|
|
@@ -115,3 +116,4 @@
|
|
|
115
116
|
/// <reference path="../wasi.d.ts" />
|
|
116
117
|
/// <reference path="../worker_threads.d.ts" />
|
|
117
118
|
/// <reference path="../zlib.d.ts" />
|
|
119
|
+
/// <reference path="../zlib/iter.d.ts" />
|
|
@@ -232,11 +232,12 @@ declare module "node:vm" {
|
|
|
232
232
|
*
|
|
233
233
|
* 1. Creates a new context.
|
|
234
234
|
* 2. If `contextObject` is an object, contextifies it with the new context.
|
|
235
|
-
* If
|
|
235
|
+
* If `contextObject` is undefined, creates a new object and contextifies it.
|
|
236
236
|
* If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
|
|
237
|
-
* 3.
|
|
238
|
-
*
|
|
239
|
-
*
|
|
237
|
+
* 3. Compiles the code as a `vm.Script`
|
|
238
|
+
* 4. Runs the compiled code within the created context. The code does not have access to the scope in
|
|
239
|
+
* which this method is called.
|
|
240
|
+
* 5. Returns the result.
|
|
240
241
|
*
|
|
241
242
|
* The following example compiles code that sets a global variable, then executes
|
|
242
243
|
* the code multiple times in different contexts. The globals are set on and
|