From 9b3f4b90e1617ff92506e9b33c35f11489e3fede Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 22 Aug 2018 09:49:18 +0200 Subject: [PATCH] fix(npm): remove temporary cache-blocking code for scoped npmjs has fixed/lowered the cache expiry time now --- lib/datasource/npm.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/datasource/npm.js b/lib/datasource/npm.js index e18dcc74a2..317d90f4cc 100644 --- a/lib/datasource/npm.js +++ b/lib/datasource/npm.js @@ -165,11 +165,8 @@ async function getDependency(name, retries = 5) { // Retrieve from API if not cached try { - // TODO: cache scoped packages once npmjs cache time is fixed for scoped packages - // Ref: https://npm.community/t/scoped-packages-have-latest-version-disappear-temporarily-soon-after-publish/633/7 - const useCache = !(process.env.RENOVATE_SKIP_CACHE || name.startsWith('@')); const raw = await got(pkgUrl, { - cache: useCache ? map : undefined, + cache: process.env.RENOVATE_SKIP_CACHE ? undefined : map, json: true, retries: 5, headers, -- GitLab