We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d79e03 commit 6a70902Copy full SHA for 6a70902
1 file changed
app/composables/npm/useReplacementDependencies.ts
@@ -1,9 +1,12 @@
1
import type { ModuleReplacement } from 'module-replacements'
2
+import { parseDepValue } from '~/utils/npm/outdated-dependencies'
3
4
async function fetchReplacements(
5
deps: Record<string, string>,
6
): Promise<Record<string, ModuleReplacement>> {
- const names = Object.keys(deps)
7
+ const names = [...new Set(
8
+ Object.entries(deps).map(([key, value]) => parseDepValue(value).name ?? key),
9
+ )]
10
11
const results = await Promise.all(
12
names.map(async name => {
0 commit comments