@openclaw/line 2026.10.2 → 2026.10.5-beta.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/dist/.setup/api-BxKwG8cd.mjs +3 -0
- package/dist/.setup/{api-CMU7bG-C.mjs → api-DPd9f0cI.mjs} +2 -2
- package/dist/.setup/{card-command-BrU6u6pm.mjs → card-command-BMLk4YKh.mjs} +15 -24
- package/dist/.setup/{channel-InKuXaRS.mjs → channel-DVuSrT_i.mjs} +161 -227
- package/dist/.setup/channel.runtime-IN_F95BO.mjs +4 -0
- package/dist/.setup/{monitor-Bb3HieCd.mjs → monitor-BY32s5Um.mjs} +68 -83
- package/dist/.setup/monitor.runtime-DKuc2SBe.mjs +2 -0
- package/dist/.setup/outbound.runtime-DLyndDng.mjs +3 -0
- package/dist/.setup/probe.runtime-D2MUF_B_.mjs +2 -0
- package/dist/.setup/{send-DAwROcyQ.mjs → send-g4gFsc9W.mjs} +51 -71
- package/dist/.setup/{send-retry-B9Nor0-J.mjs → send-retry-Dzbkz5wG.mjs} +186 -379
- package/dist/.setup/{setup-surface-1jkHGWg7.mjs → setup-surface-CYd8oqzt.mjs} +1 -1
- package/dist/.setup/{template-messages-DdF9zv_j.mjs → template-messages-CwPsGQjw.mjs} +67 -118
- package/dist/api.js +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/index.js +1 -3
- package/dist/setup-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/exceptions.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/exceptions.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/index.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.factory.generated.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.d.ts +38 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.js +46 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.js +15 -5
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.d.ts +39 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.js +59 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/models.d.ts +5 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/models.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/models.js +5 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/models.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpMessagesRequest.d.ts +5 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpMessagesRequest.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedButton.d.ts +26 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedButton.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedButton.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedButton.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedEmphasizedItem.d.ts +27 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedEmphasizedItem.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedEmphasizedItem.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedEmphasizedItem.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedItem.d.ts +26 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedItem.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedItem.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedItem.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedMessageBody.d.ts +32 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedMessageBody.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedMessageBody.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedMessageBody.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedMessageRequest.d.ts +32 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedMessageRequest.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedMessageRequest.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpTemplatedMessageRequest.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/middleware.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/utils.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/validate-signature.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/version.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
- package/node_modules/@line/bot-sdk/dist/exceptions.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/exceptions.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/http-fetch.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/line-bot-client.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.d.ts +38 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.js +46 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.js +15 -5
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.d.ts +39 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.js +61 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/models.d.ts +5 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/models.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/models.js +5 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/models.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpMessagesRequest.d.ts +5 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpMessagesRequest.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedButton.d.ts +26 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedButton.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedButton.js +13 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedButton.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedEmphasizedItem.d.ts +27 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedEmphasizedItem.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedEmphasizedItem.js +13 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedEmphasizedItem.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedItem.d.ts +26 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedItem.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedItem.js +13 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedItem.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedMessageBody.d.ts +32 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedMessageBody.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedMessageBody.js +13 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedMessageBody.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedMessageRequest.d.ts +32 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedMessageRequest.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedMessageRequest.js +13 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpTemplatedMessageRequest.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/version.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/version.js +1 -1
- package/node_modules/@line/bot-sdk/lib/line-bot-client.generated.ts +68 -0
- package/node_modules/@line/bot-sdk/lib/manage-audience/api/manageAudienceBlobClient.ts +15 -5
- package/node_modules/@line/bot-sdk/lib/messaging-api/.openapi-generator/FILES +5 -0
- package/node_modules/@line/bot-sdk/lib/messaging-api/api/messagingApiClient.ts +89 -0
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/models.ts +5 -0
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/pnpMessagesRequest.ts +5 -0
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/pnpTemplatedButton.ts +26 -0
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/pnpTemplatedEmphasizedItem.ts +27 -0
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/pnpTemplatedItem.ts +26 -0
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/pnpTemplatedMessageBody.ts +33 -0
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/pnpTemplatedMessageRequest.ts +33 -0
- package/node_modules/@line/bot-sdk/lib/version.ts +1 -1
- package/node_modules/@line/bot-sdk/node_modules/@types/node/README.md +2 -2
- package/node_modules/@line/bot-sdk/node_modules/@types/node/async_hooks.d.ts +18 -22
- package/node_modules/@line/bot-sdk/node_modules/@types/node/buffer.buffer.d.ts +10 -5
- package/node_modules/@line/bot-sdk/node_modules/@types/node/buffer.d.ts +7 -0
- package/node_modules/@line/bot-sdk/node_modules/@types/node/child_process.d.ts +5 -1
- package/node_modules/@line/bot-sdk/node_modules/@types/node/crypto.d.ts +114 -47
- package/node_modules/@line/bot-sdk/node_modules/@types/node/dgram.d.ts +119 -4
- package/node_modules/@line/bot-sdk/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@line/bot-sdk/node_modules/@types/node/dns.d.ts +6 -6
- package/node_modules/@line/bot-sdk/node_modules/@types/node/events.d.ts +13 -22
- package/node_modules/@line/bot-sdk/node_modules/@types/node/fs/promises.d.ts +79 -66
- package/node_modules/@line/bot-sdk/node_modules/@types/node/fs.d.ts +153 -90
- package/node_modules/@line/bot-sdk/node_modules/@types/node/http.d.ts +94 -2
- package/node_modules/@line/bot-sdk/node_modules/@types/node/http2.d.ts +65 -18
- package/node_modules/@line/bot-sdk/node_modules/@types/node/inspector.d.ts +47 -1
- package/node_modules/@line/bot-sdk/node_modules/@types/node/inspector.generated.d.ts +167 -0
- package/node_modules/@line/bot-sdk/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@line/bot-sdk/node_modules/@types/node/net.d.ts +139 -15
- package/node_modules/@line/bot-sdk/node_modules/@types/node/os.d.ts +30 -30
- package/node_modules/@line/bot-sdk/node_modules/@types/node/package.json +3 -18
- package/node_modules/@line/bot-sdk/node_modules/@types/node/perf_hooks.d.ts +31 -19
- package/node_modules/@line/bot-sdk/node_modules/@types/node/process.d.ts +42 -43
- package/node_modules/@line/bot-sdk/node_modules/@types/node/sqlite.d.ts +153 -11
- package/node_modules/@line/bot-sdk/node_modules/@types/node/stream/consumers.d.ts +7 -0
- package/node_modules/@line/bot-sdk/node_modules/@types/node/stream/web.d.ts +19 -0
- package/node_modules/@line/bot-sdk/node_modules/@types/node/stream.d.ts +2 -1
- package/node_modules/@line/bot-sdk/node_modules/@types/node/test.d.ts +320 -13
- package/node_modules/@line/bot-sdk/node_modules/@types/node/tls.d.ts +50 -15
- package/node_modules/@line/bot-sdk/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +5 -0
- package/node_modules/@line/bot-sdk/node_modules/@types/node/tty.d.ts +4 -3
- package/node_modules/@line/bot-sdk/node_modules/@types/node/url.d.ts +27 -3
- package/node_modules/@line/bot-sdk/node_modules/@types/node/util.d.ts +42 -2
- package/node_modules/@line/bot-sdk/node_modules/@types/node/v8.d.ts +51 -23
- package/node_modules/@line/bot-sdk/node_modules/@types/node/vm.d.ts +52 -87
- package/node_modules/@line/bot-sdk/node_modules/@types/node/zlib.d.ts +23 -0
- package/node_modules/@line/bot-sdk/node_modules/undici-types/cache-interceptor.d.ts +6 -0
- package/node_modules/@line/bot-sdk/node_modules/undici-types/client.d.ts +15 -0
- package/node_modules/@line/bot-sdk/node_modules/undici-types/connector.d.ts +2 -0
- package/node_modules/@line/bot-sdk/node_modules/undici-types/dispatcher.d.ts +8 -5
- package/node_modules/@line/bot-sdk/node_modules/undici-types/errors.d.ts +17 -1
- package/node_modules/@line/bot-sdk/node_modules/undici-types/index.d.ts +4 -1
- package/node_modules/@line/bot-sdk/node_modules/undici-types/interceptors.d.ts +7 -0
- package/node_modules/@line/bot-sdk/node_modules/undici-types/package.json +1 -1
- package/node_modules/@line/bot-sdk/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/@line/bot-sdk/node_modules/undici-types/webidl.d.ts +6 -0
- package/node_modules/@line/bot-sdk/node_modules/undici-types/websocket.d.ts +2 -0
- package/node_modules/@line/bot-sdk/package.json +10 -9
- package/package.json +5 -5
- package/dist/.setup/api-BBSLQek1.mjs +0 -3
- package/dist/.setup/channel.runtime-BEhASjr_.mjs +0 -4
- package/dist/.setup/monitor.runtime-C6Kgs5BI.mjs +0 -2
- package/dist/.setup/outbound.runtime-BwO_m4n5.mjs +0 -3
- package/dist/.setup/probe.runtime-C6LYzOHu.mjs +0 -2
|
@@ -670,6 +670,7 @@ declare module "perf_hooks" {
|
|
|
670
670
|
namespace constants {
|
|
671
671
|
const NODE_PERFORMANCE_GC_MAJOR: number;
|
|
672
672
|
const NODE_PERFORMANCE_GC_MINOR: number;
|
|
673
|
+
const NODE_PERFORMANCE_GC_MINOR_MARK_SWEEP: number;
|
|
673
674
|
const NODE_PERFORMANCE_GC_INCREMENTAL: number;
|
|
674
675
|
const NODE_PERFORMANCE_GC_WEAKCB: number;
|
|
675
676
|
const NODE_PERFORMANCE_GC_FLAGS_NO: number;
|
|
@@ -683,9 +684,14 @@ declare module "perf_hooks" {
|
|
|
683
684
|
const performance: Performance;
|
|
684
685
|
interface EventLoopMonitorOptions {
|
|
685
686
|
/**
|
|
686
|
-
*
|
|
687
|
-
*
|
|
688
|
-
|
|
687
|
+
* When `true`, samples are taken once per
|
|
688
|
+
* event loop iteration. **Default:** `false`.
|
|
689
|
+
*/
|
|
690
|
+
samplePerIteration?: boolean | undefined;
|
|
691
|
+
/**
|
|
692
|
+
* The sampling rate in milliseconds for interval-based
|
|
693
|
+
* sampling. Must be greater than zero. This option is ignored when
|
|
694
|
+
* `samplePerIteration` is `true`. **Default:** `10`.
|
|
689
695
|
*/
|
|
690
696
|
resolution?: number | undefined;
|
|
691
697
|
}
|
|
@@ -769,21 +775,25 @@ declare module "perf_hooks" {
|
|
|
769
775
|
*/
|
|
770
776
|
readonly stddev: number;
|
|
771
777
|
}
|
|
772
|
-
|
|
778
|
+
/**
|
|
779
|
+
* A `Histogram` that records event loop delay, returned by
|
|
780
|
+
* `perf_hooks.monitorEventLoopDelay()`.
|
|
781
|
+
*/
|
|
782
|
+
interface ELDHistogram extends Histogram {
|
|
773
783
|
/**
|
|
774
|
-
*
|
|
775
|
-
*
|
|
784
|
+
* Disables event loop delay sampling. Returns `true` if sampling was
|
|
785
|
+
* stopped, `false` if it was already stopped.
|
|
776
786
|
* @since v11.10.0
|
|
777
787
|
*/
|
|
778
|
-
|
|
788
|
+
disable(): boolean;
|
|
779
789
|
/**
|
|
780
|
-
*
|
|
781
|
-
*
|
|
790
|
+
* Enables event loop delay sampling. Returns `true` if sampling was
|
|
791
|
+
* started, `false` if it was already started.
|
|
782
792
|
* @since v11.10.0
|
|
783
793
|
*/
|
|
784
|
-
|
|
794
|
+
enable(): boolean;
|
|
785
795
|
/**
|
|
786
|
-
* Disables
|
|
796
|
+
* Disables event loop delay sampling when the histogram is disposed.
|
|
787
797
|
*
|
|
788
798
|
* ```js
|
|
789
799
|
* const { monitorEventLoopDelay } = require('node:perf_hooks');
|
|
@@ -895,14 +905,16 @@ declare module "perf_hooks" {
|
|
|
895
905
|
/**
|
|
896
906
|
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
897
907
|
*
|
|
898
|
-
* Creates
|
|
899
|
-
*
|
|
908
|
+
* Creates a histogram object that samples and reports the event loop delay over
|
|
909
|
+
* time. The delays will be reported in nanoseconds.
|
|
900
910
|
*
|
|
901
|
-
*
|
|
902
|
-
*
|
|
903
|
-
* event loop
|
|
904
|
-
*
|
|
905
|
-
*
|
|
911
|
+
* By default, the histogram is updated by a timer using the configured
|
|
912
|
+
* `resolution`. When `samplePerIteration` is `true`, samples are taken once per
|
|
913
|
+
* event loop iteration using `uv_prepare_t` and `uv_check_t` hooks. In that mode,
|
|
914
|
+
* the histogram does not keep the loop alive or force additional iterations when
|
|
915
|
+
* the application is idle.
|
|
916
|
+
* The two sampling modes produce significantly different results and should not
|
|
917
|
+
* be compared directly.
|
|
906
918
|
*
|
|
907
919
|
* ```js
|
|
908
920
|
* import { monitorEventLoopDelay } from 'node:perf_hooks';
|
|
@@ -920,7 +932,7 @@ declare module "perf_hooks" {
|
|
|
920
932
|
* ```
|
|
921
933
|
* @since v11.10.0
|
|
922
934
|
*/
|
|
923
|
-
function monitorEventLoopDelay(options?: EventLoopMonitorOptions):
|
|
935
|
+
function monitorEventLoopDelay(options?: EventLoopMonitorOptions): ELDHistogram;
|
|
924
936
|
/**
|
|
925
937
|
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
926
938
|
*
|
|
@@ -668,14 +668,14 @@ declare module "process" {
|
|
|
668
668
|
*
|
|
669
669
|
* Results in `process.execArgv`:
|
|
670
670
|
*
|
|
671
|
-
* ```
|
|
671
|
+
* ```json
|
|
672
672
|
* ["--icu-data-dir=./foo", "--require", "./bar.js"]
|
|
673
673
|
* ```
|
|
674
674
|
*
|
|
675
675
|
* And `process.argv`:
|
|
676
676
|
*
|
|
677
|
-
* ```
|
|
678
|
-
* [
|
|
677
|
+
* ```json
|
|
678
|
+
* ["/usr/local/bin/node", "script.js", "--version"]
|
|
679
679
|
* ```
|
|
680
680
|
*
|
|
681
681
|
* Refer to `Worker constructor` for the detailed behavior of worker
|
|
@@ -687,8 +687,8 @@ declare module "process" {
|
|
|
687
687
|
* The `process.execPath` property returns the absolute pathname of the executable
|
|
688
688
|
* that started the Node.js process. Symbolic links, if any, are resolved.
|
|
689
689
|
*
|
|
690
|
-
* ```
|
|
691
|
-
*
|
|
690
|
+
* ```json
|
|
691
|
+
* "/usr/local/bin/node"
|
|
692
692
|
* ```
|
|
693
693
|
* @since v0.1.100
|
|
694
694
|
*/
|
|
@@ -849,18 +849,18 @@ declare module "process" {
|
|
|
849
849
|
*
|
|
850
850
|
* An example of this object looks like:
|
|
851
851
|
*
|
|
852
|
-
* ```
|
|
852
|
+
* ```json
|
|
853
853
|
* {
|
|
854
|
-
* TERM:
|
|
855
|
-
* SHELL:
|
|
856
|
-
* USER:
|
|
857
|
-
* PATH:
|
|
858
|
-
* PWD:
|
|
859
|
-
* EDITOR:
|
|
860
|
-
* SHLVL:
|
|
861
|
-
* HOME:
|
|
862
|
-
* LOGNAME:
|
|
863
|
-
* _:
|
|
854
|
+
* "TERM": "xterm-256color",
|
|
855
|
+
* "SHELL": "/usr/local/bin/bash",
|
|
856
|
+
* "USER": "maciej",
|
|
857
|
+
* "PATH": "~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin",
|
|
858
|
+
* "PWD": "/Users/maciej",
|
|
859
|
+
* "EDITOR": "vim",
|
|
860
|
+
* "SHLVL": "1",
|
|
861
|
+
* "HOME": "/Users/maciej",
|
|
862
|
+
* "LOGNAME": "maciej",
|
|
863
|
+
* "_": "/usr/local/bin/node"
|
|
864
864
|
* }
|
|
865
865
|
* ```
|
|
866
866
|
*
|
|
@@ -1389,29 +1389,28 @@ declare module "process" {
|
|
|
1389
1389
|
*
|
|
1390
1390
|
* An example of the possible output looks like:
|
|
1391
1391
|
*
|
|
1392
|
-
* ```
|
|
1392
|
+
* ```json
|
|
1393
1393
|
* {
|
|
1394
|
-
* target_defaults:
|
|
1395
|
-
* { cflags: [],
|
|
1396
|
-
* default_configuration:
|
|
1397
|
-
* defines: [],
|
|
1398
|
-
* include_dirs: [],
|
|
1399
|
-
* libraries: [] },
|
|
1400
|
-
* variables:
|
|
1394
|
+
* "target_defaults":
|
|
1395
|
+
* { "cflags": [],
|
|
1396
|
+
* "default_configuration": "Release",
|
|
1397
|
+
* "defines": [],
|
|
1398
|
+
* "include_dirs": [],
|
|
1399
|
+
* "libraries": [] },
|
|
1400
|
+
* "variables":
|
|
1401
1401
|
* {
|
|
1402
|
-
* host_arch:
|
|
1403
|
-
* napi_build_version: 5,
|
|
1404
|
-
* node_install_npm:
|
|
1405
|
-
* node_prefix:
|
|
1406
|
-
* node_shared_cares:
|
|
1407
|
-
* node_shared_http_parser:
|
|
1408
|
-
* node_shared_libuv:
|
|
1409
|
-
* node_shared_zlib:
|
|
1410
|
-
* node_use_openssl:
|
|
1411
|
-
* node_shared_openssl:
|
|
1412
|
-
*
|
|
1413
|
-
*
|
|
1414
|
-
* v8_use_snapshot: 1
|
|
1402
|
+
* "host_arch": "x64",
|
|
1403
|
+
* "napi_build_version": 5,
|
|
1404
|
+
* "node_install_npm": "true",
|
|
1405
|
+
* "node_prefix": "",
|
|
1406
|
+
* "node_shared_cares": "false",
|
|
1407
|
+
* "node_shared_http_parser": "false",
|
|
1408
|
+
* "node_shared_libuv": "false",
|
|
1409
|
+
* "node_shared_zlib": "false",
|
|
1410
|
+
* "node_use_openssl": "true",
|
|
1411
|
+
* "node_shared_openssl": "false",
|
|
1412
|
+
* "target_arch": "x64",
|
|
1413
|
+
* "v8_use_snapshot": 1
|
|
1415
1414
|
* }
|
|
1416
1415
|
* }
|
|
1417
1416
|
* ```
|
|
@@ -1725,13 +1724,13 @@ declare module "process" {
|
|
|
1725
1724
|
*
|
|
1726
1725
|
* `process.release` contains the following properties:
|
|
1727
1726
|
*
|
|
1728
|
-
* ```
|
|
1727
|
+
* ```json
|
|
1729
1728
|
* {
|
|
1730
|
-
* name:
|
|
1731
|
-
* lts:
|
|
1732
|
-
* sourceUrl:
|
|
1733
|
-
* headersUrl:
|
|
1734
|
-
* libUrl:
|
|
1729
|
+
* "name": "node",
|
|
1730
|
+
* "lts": "Hydrogen",
|
|
1731
|
+
* "sourceUrl": "https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz",
|
|
1732
|
+
* "headersUrl": "https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz",
|
|
1733
|
+
* "libUrl": "https://nodejs.org/download/release/v18.12.0/win-x64/node.lib"
|
|
1735
1734
|
* }
|
|
1736
1735
|
* ```
|
|
1737
1736
|
*
|
|
@@ -126,6 +126,29 @@ declare module "node:sqlite" {
|
|
|
126
126
|
* @default true
|
|
127
127
|
*/
|
|
128
128
|
defensive?: boolean | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Configuration for various SQLite limits. These limits
|
|
131
|
+
* can be used to prevent excessive resource consumption when handling
|
|
132
|
+
* potentially malicious input. See [Run-Time Limits](https://www.sqlite.org/c3ref/c_limit_attached.html) and [Limit Constants](https://www.sqlite.org/c3ref/limit.html)
|
|
133
|
+
* in the SQLite documentation for details. Default values are determined by
|
|
134
|
+
* SQLite's compile-time defaults and may vary depending on how SQLite was
|
|
135
|
+
* built. The following properties are supported:
|
|
136
|
+
* @since v24.15.0
|
|
137
|
+
*/
|
|
138
|
+
limits?: NodeJS.PartialOptions<DatabaseLimits> | undefined;
|
|
139
|
+
}
|
|
140
|
+
interface DatabaseLimits {
|
|
141
|
+
length: number;
|
|
142
|
+
sqlLength: number;
|
|
143
|
+
column: number;
|
|
144
|
+
exprDepth: number;
|
|
145
|
+
compoundSelect: number;
|
|
146
|
+
vdbeOp: number;
|
|
147
|
+
functionArg: number;
|
|
148
|
+
attach: number;
|
|
149
|
+
likePatternLength: number;
|
|
150
|
+
variableNumber: number;
|
|
151
|
+
triggerDepth: number;
|
|
129
152
|
}
|
|
130
153
|
interface CreateSessionOptions {
|
|
131
154
|
/**
|
|
@@ -143,8 +166,12 @@ declare module "node:sqlite" {
|
|
|
143
166
|
}
|
|
144
167
|
interface ApplyChangesetOptions {
|
|
145
168
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
169
|
+
* for each table affected by at least
|
|
170
|
+
* one change in the changeset, the `filter` callback is invoked with the
|
|
171
|
+
* table name as the first argument. If the return value is falsy, then no
|
|
172
|
+
* attempt is made to apply any changes to the table.
|
|
173
|
+
* Otherwise, if the return value is truthy or no `filter` callback is provided,
|
|
174
|
+
* all changes related to the table are attempted.
|
|
148
175
|
* @since v22.12.0
|
|
149
176
|
*/
|
|
150
177
|
filter?: ((tableName: string) => boolean) | undefined;
|
|
@@ -174,6 +201,13 @@ declare module "node:sqlite" {
|
|
|
174
201
|
*/
|
|
175
202
|
onConflict?: ((conflictType: number) => number) | undefined;
|
|
176
203
|
}
|
|
204
|
+
interface DeserializeOptions {
|
|
205
|
+
/**
|
|
206
|
+
* Name of the database to deserialize into.
|
|
207
|
+
* @default 'main'
|
|
208
|
+
*/
|
|
209
|
+
dbName?: string | undefined;
|
|
210
|
+
}
|
|
177
211
|
interface FunctionOptions {
|
|
178
212
|
/**
|
|
179
213
|
* If `true`, the [`SQLITE_DETERMINISTIC`](https://www.sqlite.org/c3ref/c_deterministic.html) flag is
|
|
@@ -228,6 +262,28 @@ declare module "node:sqlite" {
|
|
|
228
262
|
*/
|
|
229
263
|
inverse?: ((accumulator: T, ...args: SQLOutputValue[]) => T) | undefined;
|
|
230
264
|
}
|
|
265
|
+
interface PrepareOptions {
|
|
266
|
+
/**
|
|
267
|
+
* If `true`, integer fields are read as `BigInt`s.
|
|
268
|
+
* @since v24.14.0
|
|
269
|
+
*/
|
|
270
|
+
readBigInts?: boolean | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* If `true`, results are returned as arrays.
|
|
273
|
+
* @since v24.14.0
|
|
274
|
+
*/
|
|
275
|
+
returnArrays?: boolean | undefined;
|
|
276
|
+
/**
|
|
277
|
+
* If `true`, allows binding named parameters without the prefix character.
|
|
278
|
+
* @since v24.14.0
|
|
279
|
+
*/
|
|
280
|
+
allowBareNamedParameters?: boolean | undefined;
|
|
281
|
+
/**
|
|
282
|
+
* If `true`, unknown named parameters are ignored.
|
|
283
|
+
* @since v24.14.0
|
|
284
|
+
*/
|
|
285
|
+
allowUnknownNamedParameters?: boolean | undefined;
|
|
286
|
+
}
|
|
231
287
|
/**
|
|
232
288
|
* This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
|
|
233
289
|
* exposed by this class execute synchronously.
|
|
@@ -285,10 +341,23 @@ declare module "node:sqlite" {
|
|
|
285
341
|
* Loads a shared library into the database connection. This method is a wrapper
|
|
286
342
|
* around [`sqlite3_load_extension()`](https://www.sqlite.org/c3ref/load_extension.html). It is required to enable the
|
|
287
343
|
* `allowExtension` option when constructing the `DatabaseSync` instance.
|
|
344
|
+
*
|
|
345
|
+
* ```js
|
|
346
|
+
* import { DatabaseSync } from 'node:sqlite';
|
|
347
|
+
* const database = new DatabaseSync(':memory:', { allowExtension: true });
|
|
348
|
+
*
|
|
349
|
+
* // Load using the entry point derived from the filename.
|
|
350
|
+
* database.loadExtension('./decimal.dylib');
|
|
351
|
+
*
|
|
352
|
+
* // Override the entry point when the derived name does not match.
|
|
353
|
+
* database.loadExtension('./base64.dylib', 'sqlite3_base64_init');
|
|
288
354
|
* @since v22.13.0
|
|
289
355
|
* @param path The path to the shared library to load.
|
|
356
|
+
* @param entryPoint The name of the extension's entry-point function. When
|
|
357
|
+
* omitted, SQLite derives the entry point from the shared library's filename;
|
|
358
|
+
* pass this argument explicitly when the derived name does not match.
|
|
290
359
|
*/
|
|
291
|
-
loadExtension(path: string): void;
|
|
360
|
+
loadExtension(path: string, entryPoint?: string): void;
|
|
292
361
|
/**
|
|
293
362
|
* Enables or disables the `loadExtension` SQL function, and the `loadExtension()`
|
|
294
363
|
* method. When `allowExtension` is `false` when constructing, you cannot enable
|
|
@@ -330,18 +399,17 @@ declare module "node:sqlite" {
|
|
|
330
399
|
* @since v22.13.0
|
|
331
400
|
* @param name The name of the SQLite function to create.
|
|
332
401
|
* @param options Optional configuration settings for the function.
|
|
333
|
-
* @param
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
* The result defaults to `NULL` if the return value is `undefined`.
|
|
402
|
+
* @param fn The JavaScript function to call when the SQLite function is
|
|
403
|
+
* invoked. The return value of this function should be a valid SQLite data type:
|
|
404
|
+
* see [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v24.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite). The result defaults to
|
|
405
|
+
* `NULL` if the return value is `undefined`.
|
|
338
406
|
*/
|
|
339
407
|
function(
|
|
340
408
|
name: string,
|
|
341
409
|
options: FunctionOptions,
|
|
342
|
-
|
|
410
|
+
fn: (...args: SQLOutputValue[]) => SQLInputValue,
|
|
343
411
|
): void;
|
|
344
|
-
function(name: string,
|
|
412
|
+
function(name: string, fn: (...args: SQLOutputValue[]) => SQLInputValue): void;
|
|
345
413
|
/**
|
|
346
414
|
* Sets an authorizer callback that SQLite will invoke whenever it attempts to
|
|
347
415
|
* access data or modify the database schema through prepared statements.
|
|
@@ -411,20 +479,94 @@ declare module "node:sqlite" {
|
|
|
411
479
|
* @since v24.0.0
|
|
412
480
|
*/
|
|
413
481
|
readonly isTransaction: boolean;
|
|
482
|
+
/**
|
|
483
|
+
* An object for getting and setting SQLite database limits at runtime.
|
|
484
|
+
* Each property corresponds to an SQLite limit and can be read or written.
|
|
485
|
+
*
|
|
486
|
+
* ```js
|
|
487
|
+
* const db = new DatabaseSync(':memory:');
|
|
488
|
+
*
|
|
489
|
+
* // Read current limit
|
|
490
|
+
* console.log(db.limits.length);
|
|
491
|
+
*
|
|
492
|
+
* // Set a new limit
|
|
493
|
+
* db.limits.sqlLength = 100000;
|
|
494
|
+
*
|
|
495
|
+
* // Reset a limit to its compile-time maximum
|
|
496
|
+
* db.limits.sqlLength = Infinity;
|
|
497
|
+
* ```
|
|
498
|
+
*
|
|
499
|
+
* Available properties: `length`, `sqlLength`, `column`, `exprDepth`,
|
|
500
|
+
* `compoundSelect`, `vdbeOp`, `functionArg`, `attach`, `likePatternLength`,
|
|
501
|
+
* `variableNumber`, `triggerDepth`.
|
|
502
|
+
*
|
|
503
|
+
* Setting a property to `Infinity` resets the limit to its compile-time maximum value.
|
|
504
|
+
* @since v24.15.0
|
|
505
|
+
*/
|
|
506
|
+
readonly limits: DatabaseLimits;
|
|
414
507
|
/**
|
|
415
508
|
* Opens the database specified in the `path` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via
|
|
416
509
|
* the constructor. An exception is thrown if the database is already open.
|
|
417
510
|
* @since v22.5.0
|
|
418
511
|
*/
|
|
419
512
|
open(): void;
|
|
513
|
+
/**
|
|
514
|
+
* Serializes the database into a binary representation, returned as a
|
|
515
|
+
* `Uint8Array`. This is useful for saving, cloning, or transferring an in-memory
|
|
516
|
+
* database. This method is a wrapper around [`sqlite3_serialize()`](https://sqlite.org/c3ref/serialize.html).
|
|
517
|
+
*
|
|
518
|
+
* ```js
|
|
519
|
+
* import { DatabaseSync } from 'node:sqlite';
|
|
520
|
+
*
|
|
521
|
+
* const db = new DatabaseSync(':memory:');
|
|
522
|
+
* db.exec('CREATE TABLE t(key INTEGER PRIMARY KEY, value TEXT)');
|
|
523
|
+
* db.exec("INSERT INTO t VALUES (1, 'hello')");
|
|
524
|
+
* const buffer = db.serialize();
|
|
525
|
+
* console.log(buffer.length); // Prints the byte length of the database
|
|
526
|
+
* ```
|
|
527
|
+
* @since v24.16.0
|
|
528
|
+
* @param dbName Name of the database to serialize. This can be `'main'`
|
|
529
|
+
* (the default primary database) or any other database that has been added with
|
|
530
|
+
* [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html). **Default:** `'main'`.
|
|
531
|
+
* @returns A binary representation of the database.
|
|
532
|
+
*/
|
|
533
|
+
serialize(dbName?: string): NodeJS.NonSharedUint8Array;
|
|
534
|
+
/**
|
|
535
|
+
* Loads a serialized database into this connection, replacing the current
|
|
536
|
+
* database. The deserialized database is writable. Existing prepared statements
|
|
537
|
+
* are finalized before deserialization is attempted, even if the operation
|
|
538
|
+
* subsequently fails. This method is a wrapper around
|
|
539
|
+
* [`sqlite3_deserialize()`](https://sqlite.org/c3ref/deserialize.html).
|
|
540
|
+
*
|
|
541
|
+
* ```js
|
|
542
|
+
* import { DatabaseSync } from 'node:sqlite';
|
|
543
|
+
*
|
|
544
|
+
* const original = new DatabaseSync(':memory:');
|
|
545
|
+
* original.exec('CREATE TABLE t(key INTEGER PRIMARY KEY, value TEXT)');
|
|
546
|
+
* original.exec("INSERT INTO t VALUES (1, 'hello')");
|
|
547
|
+
* const buffer = original.serialize();
|
|
548
|
+
* original.close();
|
|
549
|
+
*
|
|
550
|
+
* const clone = new DatabaseSync(':memory:');
|
|
551
|
+
* clone.deserialize(buffer);
|
|
552
|
+
* console.log(clone.prepare('SELECT value FROM t').get());
|
|
553
|
+
* // Prints: { value: 'hello' }
|
|
554
|
+
* ```
|
|
555
|
+
* @since v24.16.0
|
|
556
|
+
* @param buffer A binary representation of a database, such as the
|
|
557
|
+
* output of `database.serialize()`.
|
|
558
|
+
* @param options Optional configuration for the deserialization.
|
|
559
|
+
*/
|
|
560
|
+
deserialize(buffer: Uint8Array, options?: DeserializeOptions): void;
|
|
420
561
|
/**
|
|
421
562
|
* Compiles a SQL statement into a [prepared statement](https://www.sqlite.org/c3ref/stmt.html). This method is a wrapper
|
|
422
563
|
* around [`sqlite3_prepare_v2()`](https://www.sqlite.org/c3ref/prepare.html).
|
|
423
564
|
* @since v22.5.0
|
|
424
565
|
* @param sql A SQL string to compile to a prepared statement.
|
|
566
|
+
* @param options Optional configuration for the prepared statement.
|
|
425
567
|
* @return The prepared statement.
|
|
426
568
|
*/
|
|
427
|
-
prepare(sql: string): StatementSync;
|
|
569
|
+
prepare(sql: string, options?: PrepareOptions): StatementSync;
|
|
428
570
|
/**
|
|
429
571
|
* Creates a new {@link SQLTagStore}, which is a Least Recently Used (LRU) cache
|
|
430
572
|
* for storing prepared statements. This allows for the efficient reuse of
|
|
@@ -21,6 +21,13 @@ declare module "stream/consumers" {
|
|
|
21
21
|
* @returns Fulfills with a `Buffer` containing the full contents of the stream.
|
|
22
22
|
*/
|
|
23
23
|
function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NonSharedBuffer>;
|
|
24
|
+
/**
|
|
25
|
+
* @since v24.14.0
|
|
26
|
+
* @returns Fulfills with a `Uint8Array` containing the full contents of the stream.
|
|
27
|
+
*/
|
|
28
|
+
function bytes(
|
|
29
|
+
stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>,
|
|
30
|
+
): Promise<NodeJS.NonSharedUint8Array>;
|
|
24
31
|
/**
|
|
25
32
|
* @since v16.7.0
|
|
26
33
|
* @returns Fulfills with the contents of the stream parsed as a
|
|
@@ -259,6 +259,25 @@ declare module "stream/web" {
|
|
|
259
259
|
prototype: ReadableStreamDefaultController;
|
|
260
260
|
new(): ReadableStreamDefaultController;
|
|
261
261
|
};
|
|
262
|
+
/**
|
|
263
|
+
* Runs the WHATWG `ReadableStreamTee` abstract operation on `stream`.
|
|
264
|
+
*
|
|
265
|
+
* This differs from `readableStream.tee()` only when `cloneForBranch2` is
|
|
266
|
+
* `true`. The `tee()` method always passes `false`, while other web platform
|
|
267
|
+
* specifications, such as Fetch body cloning, pass `true` so that the second
|
|
268
|
+
* branch receives cloned chunks and consumption of one branch cannot mutate chunks
|
|
269
|
+
* seen by the other.
|
|
270
|
+
* @since v24.19.0
|
|
271
|
+
* @experimental
|
|
272
|
+
* @param cloneForBranch2 When `true`, chunks enqueued into the second
|
|
273
|
+
* branch are cloned from chunks enqueued into the first branch. **Default:**
|
|
274
|
+
* `false`.
|
|
275
|
+
* @returns Two `ReadableStream` branches.
|
|
276
|
+
*/
|
|
277
|
+
function ReadableStreamTee<R>(
|
|
278
|
+
stream: ReadableStream<R>,
|
|
279
|
+
cloneForBranch2?: boolean,
|
|
280
|
+
): [ReadableStream<R>, ReadableStream<R>];
|
|
262
281
|
interface Transformer<I = any, O = any> {
|
|
263
282
|
flush?: TransformerFlushCallback<O>;
|
|
264
283
|
readableType?: undefined;
|
|
@@ -89,6 +89,7 @@ declare module "stream" {
|
|
|
89
89
|
streamReadable: Readable,
|
|
90
90
|
options?: {
|
|
91
91
|
strategy?: streamWeb.QueuingStrategy | undefined;
|
|
92
|
+
type?: "bytes" | undefined;
|
|
92
93
|
},
|
|
93
94
|
): streamWeb.ReadableStream;
|
|
94
95
|
/**
|
|
@@ -1122,7 +1123,7 @@ declare module "stream" {
|
|
|
1122
1123
|
* A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`.
|
|
1123
1124
|
* @since v17.0.0
|
|
1124
1125
|
*/
|
|
1125
|
-
static toWeb(streamDuplex: Duplex): {
|
|
1126
|
+
static toWeb(streamDuplex: Duplex, options?: { readableType?: "bytes" | undefined }): {
|
|
1126
1127
|
readable: streamWeb.ReadableStream;
|
|
1127
1128
|
writable: streamWeb.WritableStream;
|
|
1128
1129
|
};
|