lru-cache
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -110,3 +110,9 @@ ;(function () { // closure for web browsers | ||
var hit = lruList[k] | ||
fn.call(thisp, hit.value, hit.key, this) | ||
if (maxAge && (Date.now() - hit.now > maxAge)) { | ||
del(hit) | ||
if (!allowStale) hit = undefined | ||
} | ||
if (hit) { | ||
fn.call(thisp, hit.value, hit.key, this) | ||
} | ||
} | ||
@@ -113,0 +119,0 @@ } |
{ | ||
"name": "lru-cache", | ||
"description": "A cache object that deletes the least-recently-used items.", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"author": "Isaac Z. Schlueter <i@izs.me>", | ||
@@ -6,0 +6,0 @@ "scripts": { |
20549
606