lru-cache-ext
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -18,7 +18,7 @@ import assert from 'assert'; | ||
if (r === null && this.cacheNull !== true) { | ||
this.del(key); | ||
this.delete(key); | ||
} | ||
return r; | ||
} catch (error) { | ||
this.del(key); | ||
this.delete(key); | ||
throw error; | ||
@@ -37,3 +37,3 @@ } | ||
if (r === null && this.cacheNull !== true) { | ||
this.del(key); | ||
this.delete(key); | ||
} | ||
@@ -40,0 +40,0 @@ return r; |
{ | ||
"name": "lru-cache-ext", | ||
"type": "module", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Thin wrapper around lru-cache with extended functionality.", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
6575