Skip to content

Commit a5a166b

Browse files
committed
refactor: Nuxi Module command
1 parent 924c3f4 commit a5a166b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/commands/Devtools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ async function nuxtDevToolsHandler() {
150150
let nuxtVersion = getNuxtVersion();
151151
if (typeof nuxtVersion === 'string') {
152152
isDevtoolsNative = nuxtVersion.startsWith('3.8') ? true : false;
153-
console.log('isDevtoolsNative', isDevtoolsNative);
154-
155153
}
156154

157155
if (!isInstalled && !isDevtoolsNative) {

src/commands/Nuxi/multiStepCommands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const runCommand = pm ? pm.runCommand : 'npx';
88

99

1010
const fetchModules = async () => {
11-
let res = await ofetch('https://nuxt.com/api/modules');
11+
let res = await ofetch('https://api.nuxt.com/modules');
1212
return res.modules;
1313
}
1414

@@ -67,7 +67,7 @@ export const handleModuleCommand = async () => {
6767
};
6868

6969
const items = modules
70-
.filter(module => isNuxtTwo() ? module.tags.includes('2.x') : module.tags.includes('3.x'))
70+
.filter(module => isNuxtTwo() ? module.compatibility.nuxt.includes('2.0.0') : module.compatibility.nuxt.includes('3.0.0'))
7171
.map((module) => {
7272
const item: QuickPickItem = {
7373
label: module.name,

0 commit comments

Comments
 (0)