Skip to content

Commit 898ff61

Browse files
authored
resolve git conflict
1 parent 5a6ada9 commit 898ff61

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

modules/runtime/server/cache.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -137,29 +137,6 @@ function getMockForUrl(url: string): MockResult | null {
137137
}
138138
}
139139

140-
// npms.io API - return mock package score data
141-
if (host === 'api.npms.io') {
142-
const packageMatch = decodeURIComponent(pathname).match(/^\/v2\/package\/(.+)$/)
143-
if (packageMatch?.[1]) {
144-
return {
145-
data: {
146-
analyzedAt: new Date().toISOString(),
147-
collected: {
148-
metadata: { name: packageMatch[1] },
149-
},
150-
score: {
151-
final: 0.75,
152-
detail: {
153-
quality: 0.8,
154-
popularity: 0.7,
155-
maintenance: 0.75,
156-
},
157-
},
158-
},
159-
}
160-
}
161-
}
162-
163140
// jsdelivr CDN - return 404 for README files, etc.
164141
if (host === 'cdn.jsdelivr.net') {
165142
// Return null data which will cause a 404 - README files are optional

0 commit comments

Comments
 (0)