Skip to content

Commit 9eb1f74

Browse files
committed
fix: skip searching packages with undefined dist tags
1 parent ad493c0 commit 9eb1f74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/composables/useNpmRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ export function useOrgPackages(orgName: MaybeRefOrGetter<string>) {
382382
const packuments = await Promise.all(batch.map(name => fetchMinimalPackument(name)))
383383

384384
for (const pkg of packuments) {
385-
if (pkg) {
385+
if (pkg && pkg['dist-tags']) {
386386
results.push(packumentToSearchResult(pkg))
387387
}
388388
}

0 commit comments

Comments
 (0)