File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff 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 ( / ^ \/ v 2 \/ p a c k a g e \/ ( .+ ) $ / )
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
You can’t perform that action at this time.
0 commit comments