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 3526acf commit e891e26Copy full SHA for e891e26
app/composables/usePackageComparison.ts
@@ -140,7 +140,9 @@ export function usePackageComparison(packageNames: MaybeRefOrGetter<string[]>) {
140
$fetch<VulnerabilityTreeResult>(
141
`/api/registry/vulnerabilities/${encodePackageName(name)}`,
142
).catch(() => null),
143
- $fetch<PackageLikes>(`/api/social/likes/${name}`).catch(() => null),
+ $fetch<PackageLikes>(`/api/social/likes/${encodePackageName(name)}`).catch(
144
+ () => null,
145
+ ),
146
])
147
const versionData = pkgData.versions[latestVersion]
148
const packageSize = versionData?.dist?.unpackedSize
0 commit comments