diff --git a/src/utils.ts b/src/utils.ts index 3f9cb7e..234f952 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -70,13 +70,13 @@ export async function searchPlugin(pluginNames: string[]): Promise try { const json = JSON.parse(result.content) - if (finedNames.includes(json.name)) { - continue - } + json.forEach((plugin: Record) => { + if (finedNames.includes(plugin.name)) { + return + } - finedNames.push(json.name) + finedNames.push(plugin.name) - json.forEach((plugin: Record) => { plugins.push({ name: plugin.name, version: plugin.version,