@vitejs/devtools 0.1.11 → 0.1.13
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/{DockStandalone-CX4RwLuJ.js → DockStandalone-kfuGuU1K.js} +128 -21
- package/dist/{LogItem-Ca0SsU39.js → LogItem-DOamSzjc.js} +1 -1
- package/dist/{ViewBuiltinLogs-B_CLlali.js → ViewBuiltinLogs-BW-Z3LV1.js} +35 -25
- package/dist/{ViewBuiltinTerminals-ZrMObMte.js → ViewBuiltinTerminals-D_aHYGk9.js} +1 -1
- package/dist/{ViewJsonRender-Cc5BPfnv.js → ViewJsonRender-BlN5HDyU.js} +1 -1
- package/dist/{build-static-BX4XcGdI.js → build-static-SRf6Mx0K.js} +1 -1
- package/dist/cli-commands.js +8 -5
- package/dist/client/inject.js +3 -3
- package/dist/client/standalone/assets/DockIcon-Bn9P0BA3.js +1 -0
- package/dist/client/standalone/assets/DockStandalone-BNVMXM6t.js +3 -0
- package/dist/client/standalone/assets/DockStandalone-GABFNqKk.js +1 -0
- package/dist/client/standalone/assets/{LogItem-BnVhub2j.js → LogItem-B2zhdfw_.js} +1 -1
- package/dist/client/standalone/assets/ViewBuiltinLogs-Bv93zOX9.js +1 -0
- package/dist/client/standalone/assets/{ViewBuiltinTerminals-DqaYBA6Q.js → ViewBuiltinTerminals-DPB8d-Q0.js} +4 -4
- package/dist/client/standalone/assets/{ViewJsonRender-De5eeIha.js → ViewJsonRender-CSnziLMr.js} +1 -1
- package/dist/client/standalone/assets/dist-DIiIv9-S.js +5 -0
- package/dist/client/standalone/assets/index-C05Px9az.css +1 -0
- package/dist/client/standalone/assets/index-C9nheAgG.js +1 -0
- package/dist/client/standalone/assets/runtime-core.esm-bundler-Dfaj58fA.js +1 -0
- package/dist/client/standalone/index.html +8 -6
- package/dist/client/webcomponents.js +3 -3
- package/dist/{context-BWju7fup.js → context-WJ5shSfy.js} +564 -506
- package/dist/{dist-CCdqIez-.js → dist-DD29zy1v.js} +390 -5
- package/dist/index.d.ts +90 -87
- package/dist/index.js +3 -3
- package/dist/{plugins-DxggNo2I.js → plugins-D8NH18dj.js} +4 -3
- package/dist/{popup-DgYOsFy3.js → popup-D4DzCx7h.js} +1 -1
- package/dist/{server-DSh-GQIq.js → server-CE1QMUPY.js} +4 -4
- package/dist/server-Cz5aS6Hb.js +2 -0
- package/dist/{server-ZWEvQMOm.js → server-kLW_T-bo.js} +3 -3
- package/dist/{standalone-CBP9wm6I.js → standalone-eqACht_F.js} +2 -2
- package/package.json +17 -14
- package/dist/client/standalone/assets/DockStandalone-BvXvOkmY.js +0 -1
- package/dist/client/standalone/assets/ViewBuiltinLogs-rU-E-8qT.js +0 -1
- package/dist/client/standalone/assets/dist-CAaP5Isp.js +0 -1
- package/dist/client/standalone/assets/index-2_yFTdkG.js +0 -3
- package/dist/client/standalone/assets/index-DtZFMvER.css +0 -1
- package/dist/client/standalone/assets/runtime-core.esm-bundler-Bvz2jy0O.js +0 -1
- package/dist/server-BQ4s1VXj.js +0 -2
- /package/dist/client/standalone/assets/{iconify-C-CPDXMf.js → iconify-DTCjcGxu.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as InternalAnonymousAuthStorage, t as DevToolsInternalContext } from "./context-internal-Ys7Zu3q3.js";
|
|
2
2
|
import { SharedStatePatch } from "@vitejs/devtools-kit/utils/shared-state";
|
|
3
|
-
import * as _vitejs_devtools_rpc0 from "@vitejs/devtools-rpc";
|
|
3
|
+
import * as _$_vitejs_devtools_rpc0 from "@vitejs/devtools-rpc";
|
|
4
4
|
import { RpcFunctionsCollectorBase } from "@vitejs/devtools-rpc";
|
|
5
|
-
import * as _vitejs_devtools_kit0 from "@vitejs/devtools-kit";
|
|
5
|
+
import * as _$_vitejs_devtools_kit0 from "@vitejs/devtools-kit";
|
|
6
6
|
import { DevToolsDockEntry, DevToolsDocksUserSettings, DevToolsLogEntry, DevToolsNodeContext, DevToolsServerCommandEntry, DevToolsTerminalSessionStreamChunkEvent, RpcDefinitionsToFunctions } from "@vitejs/devtools-kit";
|
|
7
|
-
import * as h3 from "h3";
|
|
7
|
+
import * as _$h3 from "h3";
|
|
8
8
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
9
9
|
import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
|
|
10
|
-
import * as birpc from "birpc";
|
|
10
|
+
import * as _$birpc from "birpc";
|
|
11
11
|
|
|
12
12
|
//#region src/node/context.d.ts
|
|
13
13
|
declare function createDevToolsContext(viteConfig: ResolvedConfig, viteServer?: ViteDevServer): Promise<DevToolsNodeContext>;
|
|
@@ -37,128 +37,128 @@ declare const builtinRpcDeclarations: readonly [{
|
|
|
37
37
|
cacheable?: boolean;
|
|
38
38
|
args?: undefined;
|
|
39
39
|
returns?: undefined;
|
|
40
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>>) | undefined;
|
|
40
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>>) | undefined;
|
|
41
41
|
handler?: ((path: string) => Promise<void>) | undefined;
|
|
42
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[path: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
43
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>> | undefined;
|
|
44
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>> | undefined;
|
|
42
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[path: string], Promise<void>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
43
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>> | undefined;
|
|
44
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>> | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
name: "vite:core:open-in-finder";
|
|
47
47
|
type?: "action" | undefined;
|
|
48
48
|
cacheable?: boolean;
|
|
49
49
|
args?: undefined;
|
|
50
50
|
returns?: undefined;
|
|
51
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>>) | undefined;
|
|
51
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>>) | undefined;
|
|
52
52
|
handler?: ((path: string) => Promise<void>) | undefined;
|
|
53
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[path: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
54
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>> | undefined;
|
|
55
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>> | undefined;
|
|
53
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[path: string], Promise<void>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
54
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>> | undefined;
|
|
55
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>> | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
name: "vite:anonymous:auth";
|
|
58
58
|
type?: "action" | undefined;
|
|
59
59
|
cacheable?: boolean;
|
|
60
60
|
args?: undefined;
|
|
61
61
|
returns?: undefined;
|
|
62
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>>>) | undefined;
|
|
62
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>>>) | undefined;
|
|
63
63
|
handler?: ((query: DevToolsAuthInput) => Promise<DevToolsAuthReturn>) | undefined;
|
|
64
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
65
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>> | undefined;
|
|
66
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>>> | undefined;
|
|
64
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
65
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>> | undefined;
|
|
66
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>>> | undefined;
|
|
67
67
|
}, {
|
|
68
68
|
name: "devtoolskit:internal:commands:execute";
|
|
69
69
|
type?: "action" | undefined;
|
|
70
70
|
cacheable?: boolean;
|
|
71
71
|
args?: undefined;
|
|
72
72
|
returns?: undefined;
|
|
73
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, ...args: any[]], Promise<unknown>>>) | undefined;
|
|
73
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, ...args: any[]], Promise<unknown>>>) | undefined;
|
|
74
74
|
handler?: ((id: string, ...args: any[]) => Promise<unknown>) | undefined;
|
|
75
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[id: string, ...args: any[]], Promise<unknown>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
76
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, ...args: any[]], Promise<unknown>> | undefined;
|
|
77
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, ...args: any[]], Promise<unknown>>> | undefined;
|
|
75
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[id: string, ...args: any[]], Promise<unknown>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
76
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, ...args: any[]], Promise<unknown>> | undefined;
|
|
77
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, ...args: any[]], Promise<unknown>>> | undefined;
|
|
78
78
|
}, {
|
|
79
79
|
name: "devtoolskit:internal:commands:list";
|
|
80
80
|
type?: "static" | undefined;
|
|
81
81
|
cacheable?: boolean;
|
|
82
82
|
args?: undefined;
|
|
83
83
|
returns?: undefined;
|
|
84
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<DevToolsServerCommandEntry[]>>>) | undefined;
|
|
84
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<DevToolsServerCommandEntry[]>>>) | undefined;
|
|
85
85
|
handler?: (() => Promise<DevToolsServerCommandEntry[]>) | undefined;
|
|
86
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[], Promise<DevToolsServerCommandEntry[]>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
87
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<DevToolsServerCommandEntry[]>> | undefined;
|
|
88
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<DevToolsServerCommandEntry[]>>> | undefined;
|
|
86
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[], Promise<DevToolsServerCommandEntry[]>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
87
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<DevToolsServerCommandEntry[]>> | undefined;
|
|
88
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<DevToolsServerCommandEntry[]>>> | undefined;
|
|
89
89
|
}, {
|
|
90
90
|
name: "devtoolskit:internal:docks:on-launch";
|
|
91
91
|
type?: "action" | undefined;
|
|
92
92
|
cacheable?: boolean;
|
|
93
93
|
args?: undefined;
|
|
94
94
|
returns?: undefined;
|
|
95
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>>>) | undefined;
|
|
95
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>>>) | undefined;
|
|
96
96
|
handler?: ((entryId: string) => Promise<void>) | undefined;
|
|
97
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[entryId: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
98
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>> | undefined;
|
|
99
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>>> | undefined;
|
|
97
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[entryId: string], Promise<void>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
98
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>> | undefined;
|
|
99
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>>> | undefined;
|
|
100
100
|
}, {
|
|
101
101
|
name: "devtoolskit:internal:logs:add";
|
|
102
102
|
type?: "action" | undefined;
|
|
103
103
|
cacheable?: boolean;
|
|
104
104
|
args?: undefined;
|
|
105
105
|
returns?: undefined;
|
|
106
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[input: _vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_vitejs_devtools_kit0.DevToolsLogEntry>>>) | undefined;
|
|
107
|
-
handler?: ((input: _vitejs_devtools_kit0.DevToolsLogEntryInput) => Promise<_vitejs_devtools_kit0.DevToolsLogEntry>) | undefined;
|
|
108
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[input: _vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_vitejs_devtools_kit0.DevToolsLogEntry>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
109
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[input: _vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_vitejs_devtools_kit0.DevToolsLogEntry>> | undefined;
|
|
110
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[input: _vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_vitejs_devtools_kit0.DevToolsLogEntry>>> | undefined;
|
|
106
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[input: _$_vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_$_vitejs_devtools_kit0.DevToolsLogEntry>>>) | undefined;
|
|
107
|
+
handler?: ((input: _$_vitejs_devtools_kit0.DevToolsLogEntryInput) => Promise<_$_vitejs_devtools_kit0.DevToolsLogEntry>) | undefined;
|
|
108
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[input: _$_vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_$_vitejs_devtools_kit0.DevToolsLogEntry>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
109
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[input: _$_vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_$_vitejs_devtools_kit0.DevToolsLogEntry>> | undefined;
|
|
110
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[input: _$_vitejs_devtools_kit0.DevToolsLogEntryInput], Promise<_$_vitejs_devtools_kit0.DevToolsLogEntry>>> | undefined;
|
|
111
111
|
}, {
|
|
112
112
|
name: "devtoolskit:internal:logs:clear";
|
|
113
113
|
type?: "action" | undefined;
|
|
114
114
|
cacheable?: boolean;
|
|
115
115
|
args?: undefined;
|
|
116
116
|
returns?: undefined;
|
|
117
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<void>>>) | undefined;
|
|
117
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<void>>>) | undefined;
|
|
118
118
|
handler?: (() => Promise<void>) | undefined;
|
|
119
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
120
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<void>> | undefined;
|
|
121
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<void>>> | undefined;
|
|
119
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[], Promise<void>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
120
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<void>> | undefined;
|
|
121
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<void>>> | undefined;
|
|
122
122
|
}, {
|
|
123
123
|
name: "devtoolskit:internal:logs:list";
|
|
124
124
|
type?: "static" | undefined;
|
|
125
125
|
cacheable?: boolean;
|
|
126
126
|
args?: undefined;
|
|
127
127
|
returns?: undefined;
|
|
128
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[since?: number | undefined], Promise<LogsListResult>>>) | undefined;
|
|
128
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[since?: number | undefined], Promise<LogsListResult>>>) | undefined;
|
|
129
129
|
handler?: ((since?: number | undefined) => Promise<LogsListResult>) | undefined;
|
|
130
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[since?: number | undefined], Promise<LogsListResult>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
131
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[since?: number | undefined], Promise<LogsListResult>> | undefined;
|
|
132
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[since?: number | undefined], Promise<LogsListResult>>> | undefined;
|
|
130
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[since?: number | undefined], Promise<LogsListResult>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
131
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[since?: number | undefined], Promise<LogsListResult>> | undefined;
|
|
132
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[since?: number | undefined], Promise<LogsListResult>>> | undefined;
|
|
133
133
|
}, {
|
|
134
134
|
name: "devtoolskit:internal:logs:remove";
|
|
135
135
|
type?: "action" | undefined;
|
|
136
136
|
cacheable?: boolean;
|
|
137
137
|
args?: undefined;
|
|
138
138
|
returns?: undefined;
|
|
139
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<void>>>) | undefined;
|
|
139
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<void>>>) | undefined;
|
|
140
140
|
handler?: ((id: string) => Promise<void>) | undefined;
|
|
141
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[id: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
142
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<void>> | undefined;
|
|
143
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<void>>> | undefined;
|
|
141
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[id: string], Promise<void>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
142
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<void>> | undefined;
|
|
143
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<void>>> | undefined;
|
|
144
144
|
}, {
|
|
145
145
|
name: "devtoolskit:internal:logs:update";
|
|
146
146
|
type?: "action" | undefined;
|
|
147
147
|
cacheable?: boolean;
|
|
148
148
|
args?: undefined;
|
|
149
149
|
returns?: undefined;
|
|
150
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, patch: Partial<_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_vitejs_devtools_kit0.DevToolsLogEntry | null>>>) | undefined;
|
|
151
|
-
handler?: ((id: string, patch: Partial<_vitejs_devtools_kit0.DevToolsLogEntryInput>) => Promise<_vitejs_devtools_kit0.DevToolsLogEntry | null>) | undefined;
|
|
152
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[id: string, patch: Partial<_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_vitejs_devtools_kit0.DevToolsLogEntry | null>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
153
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, patch: Partial<_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_vitejs_devtools_kit0.DevToolsLogEntry | null>> | undefined;
|
|
154
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, patch: Partial<_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_vitejs_devtools_kit0.DevToolsLogEntry | null>>> | undefined;
|
|
150
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, patch: Partial<_$_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_$_vitejs_devtools_kit0.DevToolsLogEntry | null>>>) | undefined;
|
|
151
|
+
handler?: ((id: string, patch: Partial<_$_vitejs_devtools_kit0.DevToolsLogEntryInput>) => Promise<_$_vitejs_devtools_kit0.DevToolsLogEntry | null>) | undefined;
|
|
152
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[id: string, patch: Partial<_$_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_$_vitejs_devtools_kit0.DevToolsLogEntry | null>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
153
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, patch: Partial<_$_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_$_vitejs_devtools_kit0.DevToolsLogEntry | null>> | undefined;
|
|
154
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string, patch: Partial<_$_vitejs_devtools_kit0.DevToolsLogEntryInput>], Promise<_$_vitejs_devtools_kit0.DevToolsLogEntry | null>>> | undefined;
|
|
155
155
|
}, {
|
|
156
156
|
name: "devtoolskit:internal:rpc:server:list";
|
|
157
157
|
type?: "static" | undefined;
|
|
158
158
|
cacheable?: boolean;
|
|
159
159
|
args?: undefined;
|
|
160
160
|
returns?: undefined;
|
|
161
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
161
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
162
162
|
[k: string]: {
|
|
163
163
|
type: any;
|
|
164
164
|
};
|
|
@@ -168,17 +168,17 @@ declare const builtinRpcDeclarations: readonly [{
|
|
|
168
168
|
type: any;
|
|
169
169
|
};
|
|
170
170
|
}>) | undefined;
|
|
171
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[], Promise<{
|
|
171
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[], Promise<{
|
|
172
172
|
[k: string]: {
|
|
173
173
|
type: any;
|
|
174
174
|
};
|
|
175
|
-
}>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
176
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
175
|
+
}>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
176
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
177
177
|
[k: string]: {
|
|
178
178
|
type: any;
|
|
179
179
|
};
|
|
180
180
|
}>> | undefined;
|
|
181
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
181
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
182
182
|
[k: string]: {
|
|
183
183
|
type: any;
|
|
184
184
|
};
|
|
@@ -189,62 +189,62 @@ declare const builtinRpcDeclarations: readonly [{
|
|
|
189
189
|
cacheable?: boolean;
|
|
190
190
|
args?: undefined;
|
|
191
191
|
returns?: undefined;
|
|
192
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[string], Promise<any>>>) | undefined;
|
|
192
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[string], Promise<any>>>) | undefined;
|
|
193
193
|
handler?: ((args_0: string) => Promise<any>) | undefined;
|
|
194
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[string], Promise<any>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
195
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[string], Promise<any>> | undefined;
|
|
196
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[string], Promise<any>>> | undefined;
|
|
194
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[string], Promise<any>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
195
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[string], Promise<any>> | undefined;
|
|
196
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[string], Promise<any>>> | undefined;
|
|
197
197
|
}, {
|
|
198
198
|
name: "devtoolskit:internal:rpc:server-state:patch";
|
|
199
199
|
type?: "query" | undefined;
|
|
200
200
|
cacheable?: boolean;
|
|
201
201
|
args?: undefined;
|
|
202
202
|
returns?: undefined;
|
|
203
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>>>) | undefined;
|
|
203
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>>>) | undefined;
|
|
204
204
|
handler?: ((key: string, patches: SharedStatePatch[], syncId: string) => Promise<void>) | undefined;
|
|
205
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
206
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>> | undefined;
|
|
207
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>>> | undefined;
|
|
205
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
206
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>> | undefined;
|
|
207
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>>> | undefined;
|
|
208
208
|
}, {
|
|
209
209
|
name: "devtoolskit:internal:rpc:server-state:set";
|
|
210
210
|
type?: "query" | undefined;
|
|
211
211
|
cacheable?: boolean;
|
|
212
212
|
args?: undefined;
|
|
213
213
|
returns?: undefined;
|
|
214
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>>>) | undefined;
|
|
214
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>>>) | undefined;
|
|
215
215
|
handler?: ((key: string, value: any, syncId: string) => Promise<void>) | undefined;
|
|
216
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[key: string, value: any, syncId: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
217
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>> | undefined;
|
|
218
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>>> | undefined;
|
|
216
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[key: string, value: any, syncId: string], Promise<void>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
217
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>> | undefined;
|
|
218
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>>> | undefined;
|
|
219
219
|
}, {
|
|
220
220
|
name: "devtoolskit:internal:rpc:server-state:subscribe";
|
|
221
221
|
type?: "event" | undefined;
|
|
222
222
|
cacheable?: boolean;
|
|
223
223
|
args?: undefined;
|
|
224
224
|
returns?: undefined;
|
|
225
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>>>) | undefined;
|
|
225
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>>>) | undefined;
|
|
226
226
|
handler?: ((key: string) => Promise<void>) | undefined;
|
|
227
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[key: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
228
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>> | undefined;
|
|
229
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>>> | undefined;
|
|
227
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[key: string], Promise<void>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
228
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>> | undefined;
|
|
229
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>>> | undefined;
|
|
230
230
|
}, {
|
|
231
231
|
name: "devtoolskit:internal:terminals:list";
|
|
232
232
|
type?: "static" | undefined;
|
|
233
233
|
cacheable?: boolean;
|
|
234
234
|
args?: undefined;
|
|
235
235
|
returns?: undefined;
|
|
236
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>>>) | undefined;
|
|
237
|
-
handler?: (() => Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>) | undefined;
|
|
238
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
239
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>> | undefined;
|
|
240
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>>> | undefined;
|
|
236
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_$_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>>>) | undefined;
|
|
237
|
+
handler?: (() => Promise<_$_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>) | undefined;
|
|
238
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[], Promise<_$_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
239
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_$_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>> | undefined;
|
|
240
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_$_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>>> | undefined;
|
|
241
241
|
}, {
|
|
242
242
|
name: "devtoolskit:internal:terminals:read";
|
|
243
243
|
type?: "query" | undefined;
|
|
244
244
|
cacheable?: boolean;
|
|
245
245
|
args?: undefined;
|
|
246
246
|
returns?: undefined;
|
|
247
|
-
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
247
|
+
setup?: ((context: _$_vitejs_devtools_kit0.DevToolsNodeContext) => _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
248
248
|
buffer: string[];
|
|
249
249
|
ts: number;
|
|
250
250
|
}>>>) | undefined;
|
|
@@ -252,15 +252,15 @@ declare const builtinRpcDeclarations: readonly [{
|
|
|
252
252
|
buffer: string[];
|
|
253
253
|
ts: number;
|
|
254
254
|
}>) | undefined;
|
|
255
|
-
dump?: _vitejs_devtools_rpc0.RpcDump<[id: string], Promise<{
|
|
255
|
+
dump?: _$_vitejs_devtools_rpc0.RpcDump<[id: string], Promise<{
|
|
256
256
|
buffer: string[];
|
|
257
257
|
ts: number;
|
|
258
|
-
}>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
259
|
-
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
258
|
+
}>, _$_vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
259
|
+
__resolved?: _$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
260
260
|
buffer: string[];
|
|
261
261
|
ts: number;
|
|
262
262
|
}>> | undefined;
|
|
263
|
-
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
263
|
+
__promise?: _$_vitejs_devtools_rpc0.Thenable<_$_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
264
264
|
buffer: string[];
|
|
265
265
|
ts: number;
|
|
266
266
|
}>>> | undefined;
|
|
@@ -313,18 +313,21 @@ declare function DevTools(options?: DevToolsOptions): Promise<Plugin[]>;
|
|
|
313
313
|
//#region src/node/ws.d.ts
|
|
314
314
|
interface CreateWsServerOptions {
|
|
315
315
|
cwd: string;
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
websocket: {
|
|
317
|
+
port?: number;
|
|
318
|
+
host: string;
|
|
319
|
+
https?: DevToolsNodeContext['viteConfig']['server']['https'] | false;
|
|
320
|
+
};
|
|
318
321
|
base?: string;
|
|
319
322
|
context: DevToolsNodeContext;
|
|
320
323
|
}
|
|
321
324
|
//#endregion
|
|
322
325
|
//#region src/node/server.d.ts
|
|
323
326
|
declare function createDevToolsMiddleware(options: CreateWsServerOptions): Promise<{
|
|
324
|
-
h3: h3.App;
|
|
325
|
-
rpc: birpc.BirpcGroup<_vitejs_devtools_kit0.DevToolsRpcClientFunctions, _vitejs_devtools_kit0.DevToolsRpcServerFunctions, false>;
|
|
326
|
-
middleware: h3.NodeListener;
|
|
327
|
-
getConnectionMeta: () => Promise<_vitejs_devtools_kit0.ConnectionMeta>;
|
|
327
|
+
h3: _$h3.App;
|
|
328
|
+
rpc: _$birpc.BirpcGroup<_$_vitejs_devtools_kit0.DevToolsRpcClientFunctions, _$_vitejs_devtools_kit0.DevToolsRpcServerFunctions, false>;
|
|
329
|
+
middleware: _$h3.NodeListener;
|
|
330
|
+
getConnectionMeta: () => Promise<_$_vitejs_devtools_kit0.ConnectionMeta>;
|
|
328
331
|
}>;
|
|
329
332
|
//#endregion
|
|
330
333
|
export { DevTools, type DevToolsInternalContext, type InternalAnonymousAuthStorage, createDevToolsContext, createDevToolsMiddleware };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createDevToolsContext } from "./context-
|
|
2
|
-
import { t as DevTools } from "./plugins-
|
|
3
|
-
import { t as createDevToolsMiddleware } from "./server-
|
|
1
|
+
import { n as createDevToolsContext } from "./context-WJ5shSfy.js";
|
|
2
|
+
import { t as DevTools } from "./plugins-D8NH18dj.js";
|
|
3
|
+
import { t as createDevToolsMiddleware } from "./server-CE1QMUPY.js";
|
|
4
4
|
export { DevTools, createDevToolsContext, createDevToolsMiddleware };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ansis_default } from "./constants-DfEeYo9W.js";
|
|
2
2
|
import { dirDist } from "./dirs.js";
|
|
3
|
-
import { t as DevToolsServer } from "./server-
|
|
3
|
+
import { t as DevToolsServer } from "./server-kLW_T-bo.js";
|
|
4
4
|
import { join, normalize, resolve } from "pathe";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
//#region src/node/plugins/build.ts
|
|
@@ -14,13 +14,13 @@ function DevToolsBuild(options = {}) {
|
|
|
14
14
|
resolvedConfig = config;
|
|
15
15
|
},
|
|
16
16
|
async buildStart() {
|
|
17
|
-
const { createDevToolsContext } = await import("./context-
|
|
17
|
+
const { createDevToolsContext } = await import("./context-WJ5shSfy.js").then((n) => n.t);
|
|
18
18
|
context = await createDevToolsContext(resolvedConfig);
|
|
19
19
|
},
|
|
20
20
|
async closeBundle() {
|
|
21
21
|
console.log(ansis_default.cyan`${"⬢"} Building static Vite DevTools...`);
|
|
22
22
|
const outDir = options.outDir ? resolve(resolvedConfig.root, options.outDir) : resolve(resolvedConfig.root, resolvedConfig.build.outDir);
|
|
23
|
-
const { buildStaticDevTools } = await import("./build-static-
|
|
23
|
+
const { buildStaticDevTools } = await import("./build-static-SRf6Mx0K.js");
|
|
24
24
|
await buildStaticDevTools({
|
|
25
25
|
context,
|
|
26
26
|
outDir,
|
|
@@ -35,6 +35,7 @@ function DevToolsInjection() {
|
|
|
35
35
|
return {
|
|
36
36
|
name: "vite:devtools:injection",
|
|
37
37
|
enforce: "post",
|
|
38
|
+
apply: "serve",
|
|
38
39
|
transformIndexHtml() {
|
|
39
40
|
return [{
|
|
40
41
|
tag: "script",
|
|
@@ -229,7 +229,7 @@ let detachColorModeSync;
|
|
|
229
229
|
let popupDockElement;
|
|
230
230
|
let popupContext;
|
|
231
231
|
let loadDockStandalone = async () => {
|
|
232
|
-
return await import("./DockStandalone-
|
|
232
|
+
return await import("./DockStandalone-kfuGuU1K.js").then((n) => n.n).then((m) => m.DockStandalone);
|
|
233
233
|
};
|
|
234
234
|
popupEvents.on("popup:open-requested", (context) => {
|
|
235
235
|
openDockPopup(context);
|
|
@@ -16,9 +16,9 @@ const debugInvoked = createDebug("vite:devtools:rpc:invoked");
|
|
|
16
16
|
const ANONYMOUS_SCOPE = "vite:anonymous:";
|
|
17
17
|
async function createWsServer(options) {
|
|
18
18
|
const rpcHost = options.context.rpc;
|
|
19
|
-
const host = options.
|
|
20
|
-
const https = options.context.viteConfig.server.https;
|
|
21
|
-
const port = options.
|
|
19
|
+
const host = options.websocket.host;
|
|
20
|
+
const https = options.websocket.https === false ? void 0 : options.websocket.https ?? options.context.viteConfig.server.https;
|
|
21
|
+
const port = options.websocket.port ?? await getPort({
|
|
22
22
|
port: 7812,
|
|
23
23
|
host,
|
|
24
24
|
random: true
|
|
@@ -38,7 +38,7 @@ async function createWsServer(options) {
|
|
|
38
38
|
else if (authToken && contextInternal.storage.auth.value().trusted[authToken]) {
|
|
39
39
|
meta.isTrusted = true;
|
|
40
40
|
meta.clientAuthToken = authToken;
|
|
41
|
-
} else if (authToken && (
|
|
41
|
+
} else if (authToken && (context.viteConfig.devtools?.config?.clientAuthTokens ?? []).includes(authToken)) {
|
|
42
42
|
meta.isTrusted = true;
|
|
43
43
|
meta.clientAuthToken = authToken;
|
|
44
44
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as createDevToolsContext } from "./context-
|
|
2
|
-
import { t as createDevToolsMiddleware } from "./server-
|
|
1
|
+
import { n as createDevToolsContext } from "./context-WJ5shSfy.js";
|
|
2
|
+
import { t as createDevToolsMiddleware } from "./server-CE1QMUPY.js";
|
|
3
3
|
import { DEVTOOLS_DOCK_IMPORTS_VIRTUAL_ID, DEVTOOLS_MOUNT_PATH } from "@vitejs/devtools-kit/constants";
|
|
4
4
|
//#region src/node/plugins/server.ts
|
|
5
5
|
/**
|
|
@@ -30,7 +30,7 @@ function DevToolsServer() {
|
|
|
30
30
|
const host = viteDevServer.config.server.host === true ? "0.0.0.0" : viteDevServer.config.server.host || "localhost";
|
|
31
31
|
const { middleware } = await createDevToolsMiddleware({
|
|
32
32
|
cwd: viteDevServer.config.root,
|
|
33
|
-
|
|
33
|
+
websocket: { host },
|
|
34
34
|
context
|
|
35
35
|
});
|
|
36
36
|
viteDevServer.middlewares.use(DEVTOOLS_MOUNT_PATH, middleware);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as createDevToolsContext } from "./context-
|
|
2
|
-
import { t as DevTools } from "./plugins-
|
|
1
|
+
import { n as createDevToolsContext } from "./context-WJ5shSfy.js";
|
|
2
|
+
import { t as DevTools } from "./plugins-D8NH18dj.js";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
//#region src/node/standalone.ts
|
|
5
5
|
async function startStandaloneDevTools(options = {}) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.13",
|
|
5
5
|
"description": "Vite DevTools",
|
|
6
6
|
"author": "VoidZero Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"birpc": "^4.0.0",
|
|
46
46
|
"cac": "^7.0.0",
|
|
47
|
-
"h3": "^1.15.
|
|
47
|
+
"h3": "^1.15.11",
|
|
48
48
|
"immer": "^11.1.4",
|
|
49
49
|
"launch-editor": "^2.13.2",
|
|
50
50
|
"mlly": "^1.8.2",
|
|
@@ -54,32 +54,32 @@
|
|
|
54
54
|
"perfect-debounce": "^2.1.0",
|
|
55
55
|
"sirv": "^3.0.2",
|
|
56
56
|
"tinyexec": "^1.0.4",
|
|
57
|
-
"vue": "^3.5.
|
|
57
|
+
"vue": "^3.5.31",
|
|
58
58
|
"ws": "^8.20.0",
|
|
59
|
-
"@vitejs/devtools-kit": "0.1.
|
|
60
|
-
"@vitejs/devtools-rolldown": "0.1.
|
|
61
|
-
"@vitejs/devtools-rpc": "0.1.
|
|
59
|
+
"@vitejs/devtools-kit": "0.1.13",
|
|
60
|
+
"@vitejs/devtools-rolldown": "0.1.13",
|
|
61
|
+
"@vitejs/devtools-rpc": "0.1.13"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@clack/prompts": "^1.
|
|
64
|
+
"@clack/prompts": "^1.2.0",
|
|
65
65
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
66
66
|
"@xterm/addon-fit": "^0.11.0",
|
|
67
67
|
"@xterm/xterm": "^6.0.0",
|
|
68
68
|
"dompurify": "^3.3.3",
|
|
69
69
|
"fuse.js": "^7.1.0",
|
|
70
70
|
"human-id": "^4.1.3",
|
|
71
|
-
"tsdown": "^0.21.
|
|
72
|
-
"typescript": "^
|
|
71
|
+
"tsdown": "^0.21.7",
|
|
72
|
+
"typescript": "^6.0.2",
|
|
73
73
|
"unplugin-vue": "^7.1.1",
|
|
74
|
-
"vite": "^8.0.
|
|
75
|
-
"vue": "^3.5.
|
|
74
|
+
"vite": "^8.0.3",
|
|
75
|
+
"vue": "^3.5.31",
|
|
76
76
|
"vue-router": "^5.0.4",
|
|
77
77
|
"vue-tsc": "^3.2.6",
|
|
78
|
-
"@vitejs/devtools-rolldown": "0.1.
|
|
78
|
+
"@vitejs/devtools-rolldown": "0.1.13"
|
|
79
79
|
},
|
|
80
80
|
"inlinedDependencies": {
|
|
81
|
-
"@clack/core": "1.
|
|
82
|
-
"@clack/prompts": "1.
|
|
81
|
+
"@clack/core": "1.2.0",
|
|
82
|
+
"@clack/prompts": "1.2.0",
|
|
83
83
|
"@json-render/core": "0.13.0",
|
|
84
84
|
"@json-render/vue": "0.13.0",
|
|
85
85
|
"@vueuse/core": "14.2.1",
|
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
"@xterm/xterm": "6.0.0",
|
|
89
89
|
"ansis": "4.2.0",
|
|
90
90
|
"dompurify": "3.3.3",
|
|
91
|
+
"fast-string-truncated-width": "1.2.1",
|
|
92
|
+
"fast-string-width": "1.1.0",
|
|
93
|
+
"fast-wrap-ansi": "0.1.6",
|
|
91
94
|
"fuse.js": "7.1.0",
|
|
92
95
|
"get-port-please": "3.2.0",
|
|
93
96
|
"sisteransi": "1.0.5",
|