diff --git a/src/__tests__/__snapshots__/config.test.js.snap b/src/__tests__/__snapshots__/config.test.js.snap index b9a999068..b5a978d66 100644 --- a/src/__tests__/__snapshots__/config.test.js.snap +++ b/src/__tests__/__snapshots__/config.test.js.snap @@ -176,7 +176,7 @@ Object { "type": "synonym", }, ], - "jsDelivrHitsEndpoint": "https://data.jsdelivr.com/v1/stats/packages/month/all", + "jsDelivrHitsEndpoint": "https://data.jsdelivr.com/v1/stats/packages/npm/month/all", "maxObjSize": 450000, "npmDownloadsEndpoint": "https://api.npmjs.org/downloads", "npmRegistryEndpoint": "https://replicate.npmjs.com/registry", diff --git a/src/config.js b/src/config.js index 532d9f0d2..2e3eeb67d 100644 --- a/src/config.js +++ b/src/config.js @@ -6,7 +6,8 @@ const defaultConfig = { npmRegistryEndpoint: 'https://replicate.npmjs.com/registry', npmDownloadsEndpoint: 'https://api.npmjs.org/downloads', npmRootEndpoint: 'https://registry.npmjs.org', - jsDelivrHitsEndpoint: 'https://data.jsdelivr.com/v1/stats/packages/month/all', + jsDelivrHitsEndpoint: + 'https://data.jsdelivr.com/v1/stats/packages/npm/month/all', unpkgRoot: 'https://unpkg.com', maxObjSize: 450000, popularDownloadsRatio: 0.005,