lru-cache
Advanced tools
Comparing version 7.13.0 to 7.13.1
@@ -691,3 +691,5 @@ const perf = | ||
if (index !== undefined && (allowStale || !this.isStale(index))) { | ||
return this.valList[index] | ||
const v = this.valList[index] | ||
// either stale and allowed, or forcing a refresh of non-stale value | ||
return this.isBackgroundFetch(v) ? v.__staleWhileFetching : v | ||
} | ||
@@ -694,0 +696,0 @@ } |
{ | ||
"name": "lru-cache", | ||
"description": "A cache object that deletes the least-recently-used items.", | ||
"version": "7.13.0", | ||
"version": "7.13.1", | ||
"author": "Isaac Z. Schlueter <i@izs.me>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
73878
1457
134
0
1
0
7