@thi.ng/memoize 3.1.1 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/do-once.d.ts +2 -2
- package/do-once.js +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/do-once.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import type { MapLike } from "./api.js";
|
|
|
4
4
|
* Similar to {@link memoize1}, however optimized for side effects only, i.e.
|
|
5
5
|
* functions which DO NOT return any result.
|
|
6
6
|
*
|
|
7
|
-
* @param fn
|
|
8
|
-
* @param cache
|
|
7
|
+
* @param fn -
|
|
8
|
+
* @param cache -
|
|
9
9
|
*/
|
|
10
10
|
export declare const doOnce: <T>(fn: Fn<T, void>, cache?: MapLike<T, boolean> | undefined) => (x: T) => void;
|
|
11
11
|
//# sourceMappingURL=do-once.d.ts.map
|
package/do-once.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Similar to {@link memoize1}, however optimized for side effects only, i.e.
|
|
3
3
|
* functions which DO NOT return any result.
|
|
4
4
|
*
|
|
5
|
-
* @param fn
|
|
6
|
-
* @param cache
|
|
5
|
+
* @param fn -
|
|
6
|
+
* @param cache -
|
|
7
7
|
*/
|
|
8
8
|
export const doOnce = (fn, cache) => {
|
|
9
9
|
!cache && (cache = new Map());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/memoize",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "Function memoization with configurable caching",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
37
|
+
"@thi.ng/api": "^8.3.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@microsoft/api-extractor": "^7.
|
|
41
|
-
"@thi.ng/testament": "^0.2.
|
|
40
|
+
"@microsoft/api-extractor": "^7.19.4",
|
|
41
|
+
"@thi.ng/testament": "^0.2.4",
|
|
42
42
|
"rimraf": "^3.0.2",
|
|
43
43
|
"tools": "^0.0.1",
|
|
44
|
-
"typedoc": "^0.22.
|
|
45
|
-
"typescript": "^4.
|
|
44
|
+
"typedoc": "^0.22.13",
|
|
45
|
+
"typescript": "^4.6.2"
|
|
46
46
|
},
|
|
47
47
|
"keywords": [
|
|
48
48
|
"cache",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
],
|
|
90
90
|
"year": 2018
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
|
|
93
93
|
}
|