nano-memoize
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "nano-memoize", | ||
"version": "v1.0.5", | ||
"version": "v1.0.6", | ||
"description": "Faster than fast, smaller than micro ... a nano speed and nano size memoizer.", | ||
@@ -5,0 +5,0 @@ "engines": {}, |
@@ -167,3 +167,3 @@ [![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) | ||
```javascript | ||
const memoized = micromemoize(sum(a,b) => a + b); | ||
const memoized = nanonmemoize(sum(a,b) => a + b); | ||
memoized(1,2); // 3 | ||
@@ -173,3 +173,3 @@ memoized(1,2); // pulled from cache | ||
`memoized(function,options) returns function` | ||
`nanonmemoize(function,options) returns function` | ||
@@ -193,4 +193,8 @@ The shape of options is: | ||
To clear the cache you can call `.clear()` on the function returned my `nanomemoize`. | ||
# Release History (reverse chronological order) | ||
2019-03-20 v1.0.6 Updated documentation. | ||
2019-03-11 v1.0.5 Now supports setting `maxAge` to Infinity and no timers will be created to expire caches. | ||
@@ -197,0 +201,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
51344
228