nano-memoize
Advanced tools
Comparing version 1.3.1 to 2.0.0
declare module "nano-memoize" { | ||
interface nanomemoize { | ||
interface nanomemoize | ||
{ | ||
clear(): void; | ||
@@ -12,8 +13,2 @@ } | ||
maxArgs?: number; | ||
/* | ||
* Go ahead and call memoized multi-args functions after a number of milliseconds via a timeout after the | ||
* cached result has been returned, perhaps to ensure that callbacks are invoked, does not cache the timemout result | ||
* e.g. `nanomemoize(function(a,b,cb) { var result = a + b; cb(result); return result; },{maxArgs:2,callTimeout:0});` | ||
*/ | ||
callTimeout: number; | ||
/** | ||
@@ -20,0 +15,0 @@ * Number of milliseconds to cache a result, set to `Infinity` to never create timers or expire |
{ | ||
"name": "nano-memoize", | ||
"version": "v1.3.1", | ||
"version": "v2.0.0", | ||
"description": "Faster than fast, smaller than micro ... a nano speed and nano size memoizer.", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"test": "mocha ./test/index.js" | ||
}, | ||
}, | ||
"repository": { | ||
@@ -38,3 +38,3 @@ "type": "git", | ||
"codacy-coverage": "^2.0.0", | ||
"codeclimate-test-reporter": "^0.2.0", | ||
"codeclimate-test-reporter": "^0.5.1", | ||
"fast-equals": "^1.6.3", | ||
@@ -59,2 +59,2 @@ "fast-memoize": "^2.5.1", | ||
"dependencies": {} | ||
} | ||
} |
@@ -213,2 +213,4 @@ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/30ce201484754fa5b0a6c6046abb842d)](https://www.codacy.com/app/syblackwell/nano-memoize?utm_source=github.com&utm_medium=referral&utm_content=anywhichway/nano-memoize&utm_campaign=Badge_Grade) | ||
2022-12-08 v2.0.0 Removed callTimeout from TypeScript typings since it was not implemented and there are no plans to implement. Bumped version to 2.0.0 since this may break some users. | ||
2022-10-20 v1.3.1 Bumping version for https://github.com/anywhichway/nano-memoize/pull/41 | ||
@@ -215,0 +217,0 @@ |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
292
62666
846