You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Suppose our cache.json is at latest revision. It contains lot of versions which is not available in local cache.
37
-
Then, Remove the versions which is not in local cache from the list. Otherwise npm will always choose higher versions whcih is not available in our cache */
38
-
/* TODO: If this feature causing problem, We can make this behaviour optional via some commandline-arguments/Env-variables */
39
-
if(cachedVersions.indexOf(v)==-1){
40
-
deletedata.versions[v];
41
-
return;
42
+
43
+
if(cacheJsonFileData.length&&config.STRICT){
44
+
/* Suppose our cache.json is at latest revision. It contains lot of versions which is not available in local cache.
45
+
Then, Remove the versions which is not in local cache from the list. Otherwise npm will always choose higher versions whcih is not available in our cache */
0 commit comments