diff --git a/package.json b/package.json index d0a35a80ab..2d00f349b2 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "type": "module", "version": "3.4.3", "private": true, - "packageManager": "pnpm@11.19.0", + "packageManager": "pnpm@12.11.2", "repository": { "type": "git", "url": "git+https://github.com/nuxt/devtools.git" @@ -30,7 +30,6 @@ "@nuxt/eslint": "catalog:cli", "@nuxt/module-builder": "catalog:buildtools", "@nuxt/schema": "catalog:types", - "@types/markdown-it": "catalog:types", "@types/node": "catalog:types", "@types/which": "catalog:types", "@types/ws": "catalog:types", diff --git a/packages/devtools/client/composables/client-services/markdown.ts b/packages/devtools/client/composables/client-services/markdown.ts index 01144e867c..3df73b2ebd 100644 --- a/packages/devtools/client/composables/client-services/markdown.ts +++ b/packages/devtools/client/composables/client-services/markdown.ts @@ -1,4 +1,4 @@ -import type MarkdownIt from 'markdown-it' +import type { MarkdownIt } from 'markdown-it' import { shallowRef } from 'vue' const md = shallowRef() diff --git a/packages/devtools/client/pages/modules/custom-[name].vue b/packages/devtools/client/pages/modules/custom-[name].vue index 3e29f09f64..9898b23b96 100644 --- a/packages/devtools/client/pages/modules/custom-[name].vue +++ b/packages/devtools/client/pages/modules/custom-[name].vue @@ -21,6 +21,10 @@ const name = computed(() => props.name ?? route.params.name) const tabs = useAllTabs() const tab = computed(() => tabs.value.find(i => i.name === name.value) as ModuleCustomTab | undefined) +async function onAction(idx: number) { + return rpc.customTabAction(await ensureDevAuthToken(), tab.value!.name, idx) +} + onMounted(() => { // if the tab is not found and passed a certain timeout, redirect to the overview page if (!tab.value) { @@ -68,7 +72,7 @@ onMounted(() => { :title="tab.view.title || tab.title" :description="tab.view.description" :actions="tab.view.actions" - @action="async idx => rpc.customTabAction(await ensureDevAuthToken(), tab!.name, idx)" + @action="onAction" />