Skip to content
Snippets Groups Projects
Commit 9b3f4b90 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(npm): remove temporary cache-blocking code for scoped

npmjs has fixed/lowered the cache expiry time now
parent b34bba4b
No related branches found
No related tags found
No related merge requests found
...@@ -165,11 +165,8 @@ async function getDependency(name, retries = 5) { ...@@ -165,11 +165,8 @@ async function getDependency(name, retries = 5) {
// Retrieve from API if not cached // Retrieve from API if not cached
try { 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, { const raw = await got(pkgUrl, {
cache: useCache ? map : undefined, cache: process.env.RENOVATE_SKIP_CACHE ? undefined : map,
json: true, json: true,
retries: 5, retries: 5,
headers, headers,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment