🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@nuxt/devtools

Package Overview
Dependencies
Maintainers
0
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxt/devtools - npm Package Compare versions

Comparing version

to
2.2.0

dist/chunks/vue-tracer.mjs

2

dist/client/_nuxt/builds/latest.json

@@ -1,1 +0,1 @@

{"id":"b7da869e-e0a9-4d4c-a2f3-5ddb290c30d3","timestamp":1741018020769}
{"id":"2a61a2a5-23bf-4f63-886a-9c38ebc0e065","timestamp":1741162195051}
import * as _nuxt_schema from '@nuxt/schema';
import './shared/devtools.2e078e30.js';
import './shared/devtools.427ec2e8.js';
import { ModuleOptions } from '@nuxt/devtools-kit/types';
export { ModuleOptions } from '@nuxt/devtools-kit/types';
import 'vite-plugin-vue-inspector';

@@ -7,0 +6,0 @@ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;

{
"name": "@nuxt/devtools",
"configKey": "devtools",
"version": "2.1.3",
"version": "2.2.0",
"builder": {

@@ -6,0 +6,0 @@ "@nuxt/module-builder": "0.8.4",

@@ -5,3 +5,4 @@ import { useAppConfig, useRuntimeConfig } from "#imports";

import { debounce } from "perfect-debounce";
import { computed, createApp, h, markRaw, ref, shallowReactive, shallowRef, watch } from "vue";
import { events as inspectorEvents, hasData as inspectorHasData, state as inspectorState } from "vite-plugin-vue-tracer/client/overlay";
import { computed, createApp, h, markRaw, ref, shallowReactive, shallowRef, toRef, watch } from "vue";
import { initTimelineMetrics } from "../../function-metrics-helpers.js";

@@ -18,3 +19,2 @@ import Main from "./Main.vue";

}) {
const isInspecting = ref(false);
const colorMode = useClientColorMode();

@@ -143,43 +143,32 @@ const timeline = initTimelineMetrics();

}
function getInspector() {
return window.__NUXT_INSPECTOR__ || window.__VUE_INSPECTOR__;
}
function enableComponentInspector() {
getInspector()?.enable();
isInspecting.value = true;
}
function disableComponentInspector() {
if (!getInspector()?.enabled)
return;
getInspector()?.disable();
client?.hooks.callHook("host:inspector:close");
isInspecting.value = false;
}
function getInspectorInstance() {
const componentInspector = getInspector();
if (componentInspector) {
componentInspector.openInEditor = async (url) => {
disableComponentInspector();
await client.hooks.callHook("host:inspector:click", url);
};
componentInspector.onUpdated = () => {
client.hooks.callHook("host:inspector:update", {
...componentInspector.linkParams,
...componentInspector.position
});
};
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 (!isAvailable.value) {
inspectorEvents.on("hover", async () => {
isAvailable.value = inspectorHasData();
});
}
return markRaw({
isEnabled: isInspecting,
enable: enableComponentInspector,
disable: disableComponentInspector,
isAvailable,
isEnabled: toRef(inspectorState, "isEnabled"),
enable: () => {
inspectorState.isEnabled = true;
},
disable: () => {
inspectorState.isEnabled = false;
},
toggle: () => {
if (!state.value.open)
client.devtools.open();
if (getInspector()?.enabled)
disableComponentInspector();
else
enableComponentInspector();
},
instance: componentInspector
inspectorState.isEnabled = !inspectorState.isEnabled;
}
});

@@ -186,0 +175,0 @@ }

@@ -1,5 +0,4 @@

import './shared/devtools.2e078e30.js';
import './shared/devtools.427ec2e8.js';
import { ModuleStaticInfo } from '@nuxt/devtools-kit/types';
export * from '@nuxt/devtools-kit/types';
import 'vite-plugin-vue-inspector';

@@ -6,0 +5,0 @@ interface SocialPreviewResolved {

{
"name": "@nuxt/devtools",
"type": "module",
"version": "2.1.3",
"version": "2.2.0",
"description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",

@@ -49,9 +49,9 @@ "license": "MIT",

"launch-editor": "^2.10.0",
"local-pkg": "^1.1.0",
"local-pkg": "^1.1.1",
"magicast": "^0.3.5",
"nypm": "^0.6.0",
"ohash": "^2.0.9",
"ohash": "^2.0.11",
"pathe": "^2.0.3",
"perfect-debounce": "^1.0.0",
"pkg-types": "^2.0.1",
"pkg-types": "^2.1.0",
"semver": "^7.7.1",

@@ -63,7 +63,7 @@ "simple-git": "^3.27.0",

"vite-plugin-inspect": "^11.0.0",
"vite-plugin-vue-inspector": "^5.3.1",
"vite-plugin-vue-tracer": "^0.1.0",
"which": "^5.0.0",
"ws": "^8.18.1",
"@nuxt/devtools-kit": "2.1.3",
"@nuxt/devtools-wizard": "2.1.3"
"@nuxt/devtools-kit": "2.2.0",
"@nuxt/devtools-wizard": "2.2.0"
},

@@ -91,10 +91,10 @@ "devDependencies": {

"@vue/devtools-applet": "^7.7.2",
"@vueuse/nuxt": "^12.7.0",
"@vueuse/nuxt": "^12.8.0",
"@xterm/addon-fit": "^0.10.0",
"@xterm/xterm": "^5.5.0",
"cronstrue": "^2.55.0",
"cronstrue": "^2.56.0",
"esno": "^4.8.0",
"floating-vue": "^5.2.2",
"fuse.js": "^7.1.0",
"json-editor-vue": "^0.18.0",
"json-editor-vue": "^0.18.1",
"markdown-it": "^14.1.0",

@@ -104,3 +104,3 @@ "markdown-it-link-attributes": "^4.0.1",

"nanoid": "^5.1.2",
"nitropack": "^2.10.4",
"nitropack": "^2.11.0",
"nuxt": "^3.15.4",

@@ -121,3 +121,3 @@ "ofetch": "^1.4.1",

"vue-virtual-scroller": "^2.0.0-beta.8",
"@nuxt/devtools": "2.1.3"
"@nuxt/devtools": "2.2.0"
},

@@ -124,0 +124,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

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