@thi.ng/cache 2.3.57 → 2.3.59
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/README.md +1 -1
- package/lru.js +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 211 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
package/lru.js
CHANGED
|
@@ -31,13 +31,13 @@ class LRUCache {
|
|
|
31
31
|
return this.entries();
|
|
32
32
|
}
|
|
33
33
|
*entries() {
|
|
34
|
-
for (
|
|
34
|
+
for (const e of this.items) yield [e.k, e];
|
|
35
35
|
}
|
|
36
36
|
*keys() {
|
|
37
|
-
for (
|
|
37
|
+
for (const e of this.items) yield e.k;
|
|
38
38
|
}
|
|
39
39
|
*values() {
|
|
40
|
-
for (
|
|
40
|
+
for (const e of this.items) yield e.v;
|
|
41
41
|
}
|
|
42
42
|
copy() {
|
|
43
43
|
const c = this.empty();
|
|
@@ -85,7 +85,7 @@ class LRUCache {
|
|
|
85
85
|
return value;
|
|
86
86
|
}
|
|
87
87
|
into(pairs) {
|
|
88
|
-
for (
|
|
88
|
+
for (const p of pairs) {
|
|
89
89
|
this.set(p[0], p[1]);
|
|
90
90
|
}
|
|
91
91
|
return this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/cache",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.59",
|
|
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",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.12.
|
|
43
|
-
"@thi.ng/dcons": "^3.2.
|
|
42
|
+
"@thi.ng/api": "^8.12.10",
|
|
43
|
+
"@thi.ng/dcons": "^3.2.178"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"esbuild": "^0.27.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
],
|
|
92
92
|
"year": 2018
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
|
|
95
95
|
}
|