@5app/memoize
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,8 @@ | ||
## [1.0.1](https://github.com/5app/memoize/compare/v1.0.0...v1.0.1) (2020-02-21) | ||
### Bug Fixes | ||
* **jsdoc:** option descriptions ([3ac9481](https://github.com/5app/memoize/commit/3ac9481627e147d2c308257524c26f9d9bfdb78b)) | ||
# 1.0.0 (2020-02-21) | ||
@@ -2,0 +9,0 @@ |
@@ -16,3 +16,6 @@ /** | ||
* @param {object} opts - Options | ||
* @param {number} opts.staleInMs - Number of milliseconds before the item is regarded as stale | ||
* @param {boolean} [opts.useCached=true] - Whether to serve from previous resolved cached responses | ||
* @param {number} [opts.staleInMs=10000] - Number of milliseconds before the item is regarded as stale | ||
* @param {Function} [opts.getKey=JSON.stringify] - Function used to define the key for use | ||
* @param {object} [opts.cache=new Map()] - Caching function uses Map by default | ||
* @returns {Function} The decorated callback function | ||
@@ -19,0 +22,0 @@ */ |
{ | ||
"name": "@5app/memoize", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Memoize decorator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7636
97