@nuxt/devtools
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
{"id":"2a61a2a5-23bf-4f63-886a-9c38ebc0e065","timestamp":1741162195051} | ||
{"id":"917012c8-846d-4264-bce5-f9be7333c9da","timestamp":1741166454011} |
{ | ||
"name": "@nuxt/devtools", | ||
"configKey": "devtools", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"builder": { | ||
@@ -6,0 +6,0 @@ "@nuxt/module-builder": "0.8.4", |
@@ -143,13 +143,19 @@ import { useAppConfig, useRuntimeConfig } from "#imports"; | ||
const isAvailable = ref(inspectorHasData()); | ||
inspectorEvents.on("disabled", () => { | ||
inspectorState.isVisible = false; | ||
client?.hooks.callHook("host:inspector:close"); | ||
}); | ||
inspectorEvents.on("enabled", () => { | ||
inspectorState.isVisible = true; | ||
}); | ||
inspectorEvents.on("click", async (info) => { | ||
inspectorState.isEnabled = false; | ||
await client.hooks.callHook("host:inspector:click", info.fullpath); | ||
}); | ||
if (!inspectorEvents.events.disabled?.length) { | ||
inspectorEvents.on("disabled", () => { | ||
inspectorState.isVisible = false; | ||
client?.hooks.callHook("host:inspector:close"); | ||
}); | ||
} | ||
if (!inspectorEvents.events.enabled?.length) { | ||
inspectorEvents.on("enabled", () => { | ||
inspectorState.isVisible = true; | ||
}); | ||
} | ||
if (!inspectorEvents.events.click?.length) { | ||
inspectorEvents.on("click", async (info) => { | ||
inspectorState.isEnabled = false; | ||
await client.hooks.callHook("host:inspector:click", info.fullpath); | ||
}); | ||
} | ||
if (!isAvailable.value) { | ||
@@ -156,0 +162,0 @@ inspectorEvents.on("hover", async () => { |
{ | ||
"name": "@nuxt/devtools", | ||
"type": "module", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.", | ||
@@ -65,4 +65,4 @@ "license": "MIT", | ||
"ws": "^8.18.1", | ||
"@nuxt/devtools-kit": "2.2.0", | ||
"@nuxt/devtools-wizard": "2.2.0" | ||
"@nuxt/devtools-kit": "2.2.1", | ||
"@nuxt/devtools-wizard": "2.2.1" | ||
}, | ||
@@ -118,3 +118,3 @@ "devDependencies": { | ||
"vue-virtual-scroller": "^2.0.0-beta.8", | ||
"@nuxt/devtools": "2.2.0" | ||
"@nuxt/devtools": "2.2.1" | ||
}, | ||
@@ -121,0 +121,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
8053498
042241
0.01%+ Added
+ Added
- Removed
- Removed
Updated
Updated