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 5a6ada9 commit 898ff61Copy full SHA for 898ff61
1 file changed
modules/runtime/server/cache.ts
@@ -137,29 +137,6 @@ function getMockForUrl(url: string): MockResult | null {
137
}
138
139
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
-
163
// jsdelivr CDN - return 404 for README files, etc.
164
if (host === 'cdn.jsdelivr.net') {
165
// Return null data which will cause a 404 - README files are optional
0 commit comments