File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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// ============================================================================
You can’t perform that action at this time.
0 commit comments