@thi.ng/cache 2.2.13 → 2.2.14
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/lru.js +1 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
package/lru.js
CHANGED
|
@@ -111,8 +111,7 @@ class LRUCache {
|
|
|
111
111
|
const { release, maxsize, maxlen } = this.opts;
|
|
112
112
|
while (this._size > maxsize || this.length >= maxlen) {
|
|
113
113
|
const e = this.items.drop();
|
|
114
|
-
if (!e)
|
|
115
|
-
return false;
|
|
114
|
+
if (!e) return false;
|
|
116
115
|
this.map.delete(e.k);
|
|
117
116
|
release?.(e.k, e.v);
|
|
118
117
|
this._size -= e.s;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/cache",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.14",
|
|
4
4
|
"description": "In-memory cache implementations with ES6 Map-like API and different eviction strategies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.11.
|
|
40
|
-
"@thi.ng/dcons": "^3.2.
|
|
41
|
-
"@thi.ng/transducers": "^9.0.
|
|
39
|
+
"@thi.ng/api": "^8.11.2",
|
|
40
|
+
"@thi.ng/dcons": "^3.2.113",
|
|
41
|
+
"@thi.ng/transducers": "^9.0.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "^7.43.
|
|
45
|
-
"esbuild": "^0.
|
|
46
|
-
"typedoc": "^0.25.
|
|
47
|
-
"typescript": "^5.4.
|
|
44
|
+
"@microsoft/api-extractor": "^7.43.2",
|
|
45
|
+
"esbuild": "^0.21.1",
|
|
46
|
+
"typedoc": "^0.25.13",
|
|
47
|
+
"typescript": "^5.4.5"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"acceleration",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
],
|
|
91
91
|
"year": 2018
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
|
|
94
94
|
}
|