@vitejs/devtools 0.0.0-alpha.26 → 0.0.0-alpha.28
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/{DockIcon-guXN-Dg1.js → DockIcon-BfVdt_M0.js} +28 -30
- package/dist/{ViewBuiltinLogs-CSFcoXHM.js → ViewBuiltinLogs-C8wFxIxg.js} +2 -2
- package/dist/{ViewBuiltinTerminals-Cojpb-fR.js → ViewBuiltinTerminals-CrBOq_Ni.js} +609 -613
- package/dist/cli-commands.js +65 -2
- package/dist/cli.js +2 -2
- package/dist/client/inject.js +3 -3
- package/dist/client/standalone/assets/ViewBuiltinLogs-CYvdMq-7.js +1 -0
- package/dist/client/standalone/assets/{ViewBuiltinTerminals-C2zjH4Eh.js → ViewBuiltinTerminals-B9l9XmES.js} +3 -3
- package/dist/client/standalone/assets/index-DWC0UjCz.js +2 -0
- package/dist/client/standalone/assets/index-DzhHPm4X.css +1 -0
- package/dist/client/standalone/index.html +2 -2
- package/dist/client/webcomponents.d.ts +1447 -2
- package/dist/client/webcomponents.js +38 -56
- package/dist/dirs.js +7 -1
- package/dist/{dist-DMSdRXqd.js → dist-BpFPAu5f.js} +5 -6
- package/dist/{docks-DMCIffwx.js → docks-CYaKLVhQ.js} +1 -1
- package/dist/index.d.ts +168 -17
- package/dist/index.js +1 -1
- package/dist/plugins-BbzqUdpu.js +3038 -0
- package/dist/standalone-DVh1a9tu.js +34 -0
- package/dist/{vue.runtime.esm-bundler-fEVOOaBD.js → vue.runtime.esm-bundler-DL0i8o0W.js} +199 -189
- package/package.json +14 -15
- package/dist/cli-commands-DTrA5QU8.js +0 -97
- package/dist/client/standalone/assets/ViewBuiltinLogs-C4iyfEw1.js +0 -1
- package/dist/client/standalone/assets/index-BlqhxxEb.js +0 -2
- package/dist/client/standalone/assets/index-DR7GNsjy.css +0 -1
- package/dist/dirs-C0s1Ghvy.js +0 -9
- package/dist/index-DqO60P8I.d.ts +0 -576
- package/dist/plugins-CJzaRd9B.js +0 -2373
- /package/dist/{export-helper-Dw-qygE5.js → export-helper-DjM8b2QE.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as toRef$1, F as onScopeDispose, H as toValue, L as readonly, M as customRef, N as getCurrentScope, O as watch, R as ref, S as onMounted, U as unref, _ as getCurrentInstance, b as inject, k as watchEffect, s as computed, x as nextTick, y as hasInjectionContext, z as shallowRef } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { B as toRef$1, F as onScopeDispose, H as toValue, L as readonly, M as customRef, N as getCurrentScope, O as watch, R as ref, S as onMounted, U as unref, _ as getCurrentInstance, b as inject, k as watchEffect, s as computed, x as nextTick, y as hasInjectionContext, z as shallowRef } from "./vue.runtime.esm-bundler-DL0i8o0W.js";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@14.
|
|
3
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.2.0_vue@3.5.27_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
|
|
4
4
|
/**
|
|
5
5
|
* Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
|
|
6
6
|
*
|
|
@@ -180,6 +180,7 @@ function watchWithFilter(source, cb, options = {}) {
|
|
|
180
180
|
const { eventFilter = bypassFilter, ...watchOptions } = options;
|
|
181
181
|
return watch(source, createFilterWrapper(eventFilter, cb), watchOptions);
|
|
182
182
|
}
|
|
183
|
+
/** @deprecated Use Vue's built-in `watch` instead. This function will be removed in future version. */
|
|
183
184
|
function watchPausable(source, cb, options = {}) {
|
|
184
185
|
const { eventFilter: filter, initialState = "active", ...watchOptions } = options;
|
|
185
186
|
const { eventFilter, pause, resume, isActive } = pausableFilter(filter, { initialState });
|
|
@@ -193,8 +194,6 @@ function watchPausable(source, cb, options = {}) {
|
|
|
193
194
|
isActive
|
|
194
195
|
};
|
|
195
196
|
}
|
|
196
|
-
/** @deprecated use `watchPausable` instead */
|
|
197
|
-
const pausableWatch = watchPausable;
|
|
198
197
|
/**
|
|
199
198
|
* Call onMounted() if it's inside a component lifecycle, if not, just call the function
|
|
200
199
|
*
|
|
@@ -227,7 +226,7 @@ function watchImmediate(source, cb, options) {
|
|
|
227
226
|
}
|
|
228
227
|
|
|
229
228
|
//#endregion
|
|
230
|
-
//#region ../../node_modules/.pnpm/@vueuse+core@14.
|
|
229
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.2.0_vue@3.5.27_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
|
|
231
230
|
const defaultWindow = isClient ? window : void 0;
|
|
232
231
|
const defaultDocument = isClient ? window.document : void 0;
|
|
233
232
|
const defaultNavigator = isClient ? window.navigator : void 0;
|
|
@@ -539,7 +538,7 @@ function useStorage(key, defaults$1, storage, options = {}) {
|
|
|
539
538
|
const rawInit = toValue(defaults$1);
|
|
540
539
|
const type = guessSerializerType(rawInit);
|
|
541
540
|
const serializer = (_options$serializer = options.serializer) !== null && _options$serializer !== void 0 ? _options$serializer : StorageSerializers[type];
|
|
542
|
-
const { pause: pauseWatch, resume: resumeWatch } =
|
|
541
|
+
const { pause: pauseWatch, resume: resumeWatch } = watchPausable(data, (newValue) => write(newValue), {
|
|
543
542
|
flush,
|
|
544
543
|
deep,
|
|
545
544
|
eventFilter
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as reactive, O as watch, P as markRaw, z as shallowRef } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { I as reactive, O as watch, P as markRaw, z as shallowRef } from "./vue.runtime.esm-bundler-DL0i8o0W.js";
|
|
2
2
|
import { createEventEmitter } from "@vitejs/devtools-kit/utils/events";
|
|
3
3
|
|
|
4
4
|
//#region src/client/webcomponents/constants.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { a as RpcDefinitionsToFunctions, c as DevToolsNodeContext, d as DevToolsRpcClientFunctions, f as DevToolsRpcServerFunctions, h as DevToolsDockEntry, l as DevToolsTerminalSessionBase, m as SharedStatePatch, o as DevToolsDocksUserSettings, s as ConnectionMeta, u as DevToolsTerminalSessionStreamChunkEvent } from "./index-DqO60P8I.js";
|
|
2
1
|
import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { SharedStatePatch } from "@vitejs/devtools-kit/utils/shared-state";
|
|
3
|
+
import * as _vitejs_devtools_rpc0 from "@vitejs/devtools-rpc";
|
|
4
|
+
import { RpcFunctionsCollectorBase } from "@vitejs/devtools-rpc";
|
|
5
|
+
import * as _vitejs_devtools_kit0 from "@vitejs/devtools-kit";
|
|
6
|
+
import { DevToolsDockEntry, DevToolsDocksUserSettings, DevToolsNodeContext, DevToolsTerminalSessionStreamChunkEvent, RpcDefinitionsToFunctions } from "@vitejs/devtools-kit";
|
|
7
|
+
import * as h3 from "h3";
|
|
6
8
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7
|
-
import * as
|
|
9
|
+
import * as birpc from "birpc";
|
|
8
10
|
|
|
9
11
|
//#region src/node/context.d.ts
|
|
10
12
|
declare function createDevToolsContext(viteConfig: ResolvedConfig, viteServer?: ViteDevServer): Promise<DevToolsNodeContext>;
|
|
@@ -20,14 +22,163 @@ interface DevToolsAuthReturn {
|
|
|
20
22
|
}
|
|
21
23
|
//#endregion
|
|
22
24
|
//#region src/node/rpc/index.d.ts
|
|
23
|
-
declare const builtinRpcDeclarations: readonly [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
declare const builtinRpcDeclarations: readonly [{
|
|
26
|
+
name: "vite:core:open-in-editor";
|
|
27
|
+
type?: "action" | undefined;
|
|
28
|
+
cacheable?: boolean;
|
|
29
|
+
args?: undefined;
|
|
30
|
+
returns?: undefined;
|
|
31
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>>) | undefined;
|
|
32
|
+
handler?: ((path: string) => Promise<void>) | undefined;
|
|
33
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[path: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
34
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>> | undefined;
|
|
35
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>> | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
name: "vite:core:open-in-finder";
|
|
38
|
+
type?: "action" | undefined;
|
|
39
|
+
cacheable?: boolean;
|
|
40
|
+
args?: undefined;
|
|
41
|
+
returns?: undefined;
|
|
42
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>>) | undefined;
|
|
43
|
+
handler?: ((path: string) => Promise<void>) | undefined;
|
|
44
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[path: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
45
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>> | undefined;
|
|
46
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[path: string], Promise<void>>> | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
name: "vite:anonymous:auth";
|
|
49
|
+
type?: "action" | undefined;
|
|
50
|
+
cacheable?: boolean;
|
|
51
|
+
args?: undefined;
|
|
52
|
+
returns?: undefined;
|
|
53
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>>>) | undefined;
|
|
54
|
+
handler?: ((query: DevToolsAuthInput) => Promise<DevToolsAuthReturn>) | undefined;
|
|
55
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
56
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>> | undefined;
|
|
57
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[query: DevToolsAuthInput], Promise<DevToolsAuthReturn>>> | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
name: "devtoolskit:internal:docks:on-launch";
|
|
60
|
+
type?: "action" | undefined;
|
|
61
|
+
cacheable?: boolean;
|
|
62
|
+
args?: undefined;
|
|
63
|
+
returns?: undefined;
|
|
64
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>>>) | undefined;
|
|
65
|
+
handler?: ((entryId: string) => Promise<void>) | undefined;
|
|
66
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[entryId: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
67
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>> | undefined;
|
|
68
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[entryId: string], Promise<void>>> | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
name: "devtoolskit:internal:rpc:server:list";
|
|
71
|
+
type?: "static" | undefined;
|
|
72
|
+
cacheable?: boolean;
|
|
73
|
+
args?: undefined;
|
|
74
|
+
returns?: undefined;
|
|
75
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
76
|
+
[k: string]: {
|
|
77
|
+
type: any;
|
|
78
|
+
};
|
|
79
|
+
}>>>) | undefined;
|
|
80
|
+
handler?: (() => Promise<{
|
|
81
|
+
[k: string]: {
|
|
82
|
+
type: any;
|
|
83
|
+
};
|
|
84
|
+
}>) | undefined;
|
|
85
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[], Promise<{
|
|
86
|
+
[k: string]: {
|
|
87
|
+
type: any;
|
|
88
|
+
};
|
|
89
|
+
}>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
90
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
91
|
+
[k: string]: {
|
|
92
|
+
type: any;
|
|
93
|
+
};
|
|
94
|
+
}>> | undefined;
|
|
95
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<{
|
|
96
|
+
[k: string]: {
|
|
97
|
+
type: any;
|
|
98
|
+
};
|
|
99
|
+
}>>> | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
name: "devtoolskit:internal:rpc:server-state:get";
|
|
102
|
+
type?: "query" | undefined;
|
|
103
|
+
cacheable?: boolean;
|
|
104
|
+
args?: undefined;
|
|
105
|
+
returns?: undefined;
|
|
106
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<any>>>) | undefined;
|
|
107
|
+
handler?: ((key: string) => Promise<any>) | undefined;
|
|
108
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[key: string], Promise<any>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
109
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<any>> | undefined;
|
|
110
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<any>>> | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
name: "devtoolskit:internal:rpc:server-state:patch";
|
|
113
|
+
type?: "query" | undefined;
|
|
114
|
+
cacheable?: boolean;
|
|
115
|
+
args?: undefined;
|
|
116
|
+
returns?: undefined;
|
|
117
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>>>) | undefined;
|
|
118
|
+
handler?: ((key: string, patches: SharedStatePatch[], syncId: string) => Promise<void>) | undefined;
|
|
119
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
120
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>> | undefined;
|
|
121
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, patches: SharedStatePatch[], syncId: string], Promise<void>>> | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
name: "devtoolskit:internal:rpc:server-state:set";
|
|
124
|
+
type?: "query" | undefined;
|
|
125
|
+
cacheable?: boolean;
|
|
126
|
+
args?: undefined;
|
|
127
|
+
returns?: undefined;
|
|
128
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>>>) | undefined;
|
|
129
|
+
handler?: ((key: string, value: any, syncId: string) => Promise<void>) | undefined;
|
|
130
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[key: string, value: any, syncId: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
131
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>> | undefined;
|
|
132
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string, value: any, syncId: string], Promise<void>>> | undefined;
|
|
133
|
+
}, {
|
|
134
|
+
name: "devtoolskit:internal:rpc:server-state:subscribe";
|
|
135
|
+
type?: "event" | undefined;
|
|
136
|
+
cacheable?: boolean;
|
|
137
|
+
args?: undefined;
|
|
138
|
+
returns?: undefined;
|
|
139
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>>>) | undefined;
|
|
140
|
+
handler?: ((key: string) => Promise<void>) | undefined;
|
|
141
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[key: string], Promise<void>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
142
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>> | undefined;
|
|
143
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[key: string], Promise<void>>> | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
name: "devtoolskit:internal:terminals:list";
|
|
146
|
+
type?: "static" | undefined;
|
|
147
|
+
cacheable?: boolean;
|
|
148
|
+
args?: undefined;
|
|
149
|
+
returns?: undefined;
|
|
150
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>>>) | undefined;
|
|
151
|
+
handler?: (() => Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>) | undefined;
|
|
152
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
153
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>> | undefined;
|
|
154
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[], Promise<_vitejs_devtools_kit0.DevToolsTerminalSessionBase[]>>> | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
name: "devtoolskit:internal:terminals:read";
|
|
157
|
+
type?: "query" | undefined;
|
|
158
|
+
cacheable?: boolean;
|
|
159
|
+
args?: undefined;
|
|
160
|
+
returns?: undefined;
|
|
161
|
+
setup?: ((context: _vitejs_devtools_kit0.DevToolsNodeContext) => _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
162
|
+
buffer: string[];
|
|
163
|
+
ts: number;
|
|
164
|
+
}>>>) | undefined;
|
|
165
|
+
handler?: ((id: string) => Promise<{
|
|
166
|
+
buffer: string[];
|
|
167
|
+
ts: number;
|
|
168
|
+
}>) | undefined;
|
|
169
|
+
dump?: _vitejs_devtools_rpc0.RpcDump<[id: string], Promise<{
|
|
170
|
+
buffer: string[];
|
|
171
|
+
ts: number;
|
|
172
|
+
}>, _vitejs_devtools_kit0.DevToolsNodeContext> | undefined;
|
|
173
|
+
__resolved?: _vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
174
|
+
buffer: string[];
|
|
175
|
+
ts: number;
|
|
176
|
+
}>> | undefined;
|
|
177
|
+
__promise?: _vitejs_devtools_rpc0.Thenable<_vitejs_devtools_rpc0.RpcFunctionSetupResult<[id: string], Promise<{
|
|
178
|
+
buffer: string[];
|
|
179
|
+
ts: number;
|
|
180
|
+
}>>> | undefined;
|
|
181
|
+
}];
|
|
31
182
|
type BuiltinServerFunctions = RpcDefinitionsToFunctions<typeof builtinRpcDeclarations>;
|
|
32
183
|
declare module '@vitejs/devtools-kit' {
|
|
33
184
|
interface DevToolsRpcServerFunctions extends BuiltinServerFunctions {}
|
|
@@ -65,10 +216,10 @@ interface CreateWsServerOptions {
|
|
|
65
216
|
//#endregion
|
|
66
217
|
//#region src/node/server.d.ts
|
|
67
218
|
declare function createDevToolsMiddleware(options: CreateWsServerOptions): Promise<{
|
|
68
|
-
h3:
|
|
69
|
-
rpc:
|
|
70
|
-
middleware:
|
|
71
|
-
getConnectionMeta: () => Promise<ConnectionMeta>;
|
|
219
|
+
h3: h3.App;
|
|
220
|
+
rpc: birpc.BirpcGroup<_vitejs_devtools_kit0.DevToolsRpcClientFunctions, _vitejs_devtools_kit0.DevToolsRpcServerFunctions, false>;
|
|
221
|
+
middleware: h3.NodeListener;
|
|
222
|
+
getConnectionMeta: () => Promise<_vitejs_devtools_kit0.ConnectionMeta>;
|
|
72
223
|
}>;
|
|
73
224
|
//#endregion
|
|
74
225
|
export { DevTools, createDevToolsContext, createDevToolsMiddleware };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as createDevToolsContext, n as createDevToolsMiddleware, t as DevTools } from "./plugins-
|
|
1
|
+
import { a as createDevToolsContext, n as createDevToolsMiddleware, t as DevTools } from "./plugins-BbzqUdpu.js";
|
|
2
2
|
|
|
3
3
|
export { DevTools, createDevToolsContext, createDevToolsMiddleware };
|