@vitejs/devtools
Advanced tools
+24
-1
@@ -0,1 +1,2 @@ | ||
| import { StartOptions } from "./cli-commands.js"; | ||
| import { Plugin, ResolvedConfig, ViteDevServer } from "vite"; | ||
@@ -11,2 +12,24 @@ import { SharedStatePatch } from "@vitejs/devtools-kit/utils/shared-state"; | ||
| //#region src/node/config.d.ts | ||
| interface DevToolsConfig extends Partial<StartOptions> { | ||
| enabled: boolean; | ||
| /** | ||
| * Disable client authentication. | ||
| * | ||
| * Beware that if you disable client authentication, | ||
| * any browsers can connect to the devtools and access to your server and filesystem. | ||
| * (including other devices, if you open server `host` option to LAN or WAN) | ||
| * | ||
| * @default true | ||
| */ | ||
| clientAuth?: boolean; | ||
| } | ||
| interface ResolvedDevToolsConfig { | ||
| config: Omit<DevToolsConfig, 'enabled'> & { | ||
| host: string; | ||
| }; | ||
| enabled: boolean; | ||
| } | ||
| declare function normalizeDevToolsConfig(config: DevToolsConfig | boolean | undefined, host: string): ResolvedDevToolsConfig; | ||
| //#endregion | ||
| //#region src/node/context.d.ts | ||
@@ -226,2 +249,2 @@ declare function createDevToolsContext(viteConfig: ResolvedConfig, viteServer?: ViteDevServer): Promise<DevToolsNodeContext>; | ||
| //#endregion | ||
| export { DevTools, createDevToolsContext, createDevToolsMiddleware }; | ||
| export { DevTools, DevToolsConfig, ResolvedDevToolsConfig, createDevToolsContext, createDevToolsMiddleware, normalizeDevToolsConfig }; |
+20
-1
| import { a as createDevToolsContext, n as createDevToolsMiddleware, t as DevTools } from "./plugins-BbzqUdpu.js"; | ||
| export { DevTools, createDevToolsContext, createDevToolsMiddleware }; | ||
| //#region src/node/utils.ts | ||
| function isObject(value) { | ||
| return Object.prototype.toString.call(value) === "[object Object]"; | ||
| } | ||
| //#endregion | ||
| //#region src/node/config.ts | ||
| function normalizeDevToolsConfig(config, host) { | ||
| return { | ||
| enabled: config === true || !!(config && config.enabled), | ||
| config: { | ||
| ...isObject(config) ? config : {}, | ||
| clientAuth: isObject(config) ? config.clientAuth ?? true : true, | ||
| host: isObject(config) ? config.host ?? host : host | ||
| } | ||
| }; | ||
| } | ||
| //#endregion | ||
| export { DevTools, createDevToolsContext, createDevToolsMiddleware, normalizeDevToolsConfig }; |
+5
-5
| { | ||
| "name": "@vitejs/devtools", | ||
| "type": "module", | ||
| "version": "0.0.0-alpha.29", | ||
| "version": "0.0.0-alpha.30", | ||
| "description": "Vite DevTools", | ||
@@ -56,5 +56,5 @@ "author": "VoidZero Inc.", | ||
| "ws": "^8.19.0", | ||
| "@vitejs/devtools-kit": "0.0.0-alpha.29", | ||
| "@vitejs/devtools-rpc": "0.0.0-alpha.29", | ||
| "@vitejs/devtools-rolldown": "0.0.0-alpha.29" | ||
| "@vitejs/devtools-kit": "0.0.0-alpha.30", | ||
| "@vitejs/devtools-rolldown": "0.0.0-alpha.30", | ||
| "@vitejs/devtools-rpc": "0.0.0-alpha.30" | ||
| }, | ||
@@ -75,3 +75,3 @@ "devDependencies": { | ||
| "vue-tsc": "^3.2.4", | ||
| "@vitejs/devtools-rolldown": "0.0.0-alpha.29" | ||
| "@vitejs/devtools-rolldown": "0.0.0-alpha.30" | ||
| }, | ||
@@ -78,0 +78,0 @@ "scripts": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1676704
0.08%28721
0.14%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed