@vitejs/devtools-kit
Advanced tools
+20
-2
@@ -1,2 +0,2 @@ | ||
| import { D as DevToolsRpcServerFunctions, E as DevToolsRpcClientFunctions, u as ConnectionMeta } from "./index-BtaHil_c.js"; | ||
| import { D as DevToolsRpcServerFunctions, E as DevToolsRpcClientFunctions, g as DevToolsDockEntry, u as ConnectionMeta } from "./index-BtaHil_c.js"; | ||
| import { WebSocketRpcClientOptions } from "@vitejs/devtools-rpc/presets/ws/client"; | ||
@@ -12,2 +12,20 @@ import { BirpcOptions, BirpcReturn } from "birpc"; | ||
| } | ||
| interface ImportScriptContext { | ||
| /** | ||
| * The dock entry info of the current dock item | ||
| */ | ||
| dockEntry: DevToolsDockEntry; | ||
| /** | ||
| * The current state of the dock | ||
| */ | ||
| dockState: 'active' | 'inactive'; | ||
| /** | ||
| * Function to hide the panel, if applicable | ||
| */ | ||
| hidePanel: () => void; | ||
| /** | ||
| * The panel element to mount into, if applicable | ||
| */ | ||
| elPanel?: HTMLElement | null; | ||
| } | ||
| declare function getDevToolsRpcClient(options?: DevToolsRpcClientOptions): Promise<{ | ||
@@ -18,2 +36,2 @@ connectionMeta: ConnectionMeta; | ||
| //#endregion | ||
| export { DevToolsRpcClientOptions, getDevToolsRpcClient }; | ||
| export { DevToolsRpcClientOptions, ImportScriptContext, getDevToolsRpcClient }; |
+2
-2
| { | ||
| "name": "@vitejs/devtools-kit", | ||
| "type": "module", | ||
| "version": "0.0.0-alpha.8", | ||
| "version": "0.0.0-alpha.9", | ||
| "description": "Vite DevTools Kit", | ||
@@ -37,3 +37,3 @@ "author": "VoidZero Inc.", | ||
| "birpc": "^2.6.1", | ||
| "@vitejs/devtools-rpc": "0.0.0-alpha.8" | ||
| "@vitejs/devtools-rpc": "0.0.0-alpha.9" | ||
| }, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
12514
3.61%243
8%+ Added
- Removed