Skip to content

Commit 8232384

Browse files
fix: return search response
1 parent b7db8e0 commit 8232384

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

app/composables/useNpmRegistry.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,12 @@ export function useNpmSearch(
365365
total: 1,
366366
}
367367

368-
return { ...pkg, isStale }
368+
return {
369+
objects: [result],
370+
total: 1,
371+
isStale,
372+
time: new Date().toISOString(),
373+
}
369374
} catch {
370375
// If exact lookup also fails, throw original error
371376
throw error

0 commit comments

Comments
 (0)