@isaacs/ttlcache
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -92,3 +92,3 @@ // Type definitions for ttlcache 1.0.0 | ||
declare namespace TTLCache { | ||
type DisposeReason = 'evict' | 'set' | 'delete' | ||
type DisposeReason = 'evict' | 'set' | 'delete' | 'stale' | ||
@@ -95,0 +95,0 @@ type Disposer<K, V> = ( |
@@ -6,2 +6,3 @@ // A simple TTL cache with max capacity option, ms resolution, | ||
/* istanbul ignore next */ | ||
const perf = | ||
@@ -13,2 +14,3 @@ typeof performance === 'object' && | ||
: Date | ||
const now = () => perf.now() | ||
@@ -15,0 +17,0 @@ const isPosInt = n => n && n === Math.floor(n) && n > 0 && isFinite(n) |
{ | ||
"name": "@isaacs/ttlcache", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "index.js", |
21884
418