lru-cache-ext
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -15,3 +15,3 @@ import assert from 'assert'; | ||
if (!this.has(key)) { | ||
this.set(key, valueFn(args)); | ||
this.set(key, valueFn(...args)); | ||
} | ||
@@ -33,3 +33,3 @@ try { | ||
if (!this.has(key)) { | ||
const r = valueFn(args); | ||
const r = valueFn(...args); | ||
assert(!(r instanceof Promise), 'Use memoize() instead'); | ||
@@ -36,0 +36,0 @@ this.set(key, r); |
{ | ||
"name": "lru-cache-ext", | ||
"type": "module", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Thin wrapper around lru-cache with extended functionality.", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6659
1167