Skip to content

Commit c768c33

Browse files
chore: delete unused composable
1 parent df5b466 commit c768c33

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

app/composables/useNpmRegistry.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -631,29 +631,6 @@ export function useOrgPackages(orgName: MaybeRefOrGetter<string>) {
631631
return asyncData
632632
}
633633

634-
/**
635-
* Returns a single package as an NpmSearchResult
636-
* Similar to useNpmSearch but for exact package lookups
637-
*/
638-
export function useExactPackage(query: MaybeRefOrGetter<string>) {
639-
const { data: pkg, status, error } = usePackage(query)
640-
const { data: downloads } = usePackageDownloads(query)
641-
642-
const data = computed<NpmSearchResult | undefined>(() => {
643-
if (!pkg.value) {
644-
return undefined
645-
}
646-
647-
return packumentToSearchResult(pkg.value, downloads.value?.downloads)
648-
})
649-
650-
return {
651-
data,
652-
status,
653-
error,
654-
}
655-
}
656-
657634
// ============================================================================
658635
// Package Versions
659636
// ============================================================================

0 commit comments

Comments
 (0)