@thi.ng/sorted-map 1.2.20 → 1.2.22
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/package.json +8 -8
- package/sorted-map.js +3 -3
- package/sorted-set.js +1 -1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/sorted-map",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.22",
|
|
4
4
|
"description": "Skiplist-based sorted map & set implementation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.12.
|
|
43
|
-
"@thi.ng/associative": "^7.1.
|
|
44
|
-
"@thi.ng/checks": "^3.
|
|
45
|
-
"@thi.ng/compare": "^2.4.
|
|
46
|
-
"@thi.ng/random": "^4.1.
|
|
47
|
-
"@thi.ng/transducers": "^9.6.
|
|
42
|
+
"@thi.ng/api": "^8.12.10",
|
|
43
|
+
"@thi.ng/associative": "^7.1.22",
|
|
44
|
+
"@thi.ng/checks": "^3.8.0",
|
|
45
|
+
"@thi.ng/compare": "^2.4.36",
|
|
46
|
+
"@thi.ng/random": "^4.1.35",
|
|
47
|
+
"@thi.ng/transducers": "^9.6.19"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"esbuild": "^0.27.0",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
],
|
|
98
98
|
"year": 2018
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "8625a1c6383737a8fdbe7a3f96ea3cbabc957fa6\n"
|
|
101
101
|
}
|
package/sorted-map.js
CHANGED
|
@@ -126,7 +126,7 @@ let SortedMap = class extends Map {
|
|
|
126
126
|
* @param max
|
|
127
127
|
*/
|
|
128
128
|
*keys(key, max = false) {
|
|
129
|
-
for (
|
|
129
|
+
for (const p of this.entries(key, max)) {
|
|
130
130
|
yield p[0];
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -137,7 +137,7 @@ let SortedMap = class extends Map {
|
|
|
137
137
|
* @param max
|
|
138
138
|
*/
|
|
139
139
|
*values(key, max = false) {
|
|
140
|
-
for (
|
|
140
|
+
for (const p of this.entries(key, max)) {
|
|
141
141
|
yield p[1];
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -255,7 +255,7 @@ let SortedMap = class extends Map {
|
|
|
255
255
|
* @param thisArg -
|
|
256
256
|
*/
|
|
257
257
|
forEach(fn, thisArg) {
|
|
258
|
-
for (
|
|
258
|
+
for (const p of this) {
|
|
259
259
|
fn.call(thisArg, p[1], p[0], this);
|
|
260
260
|
}
|
|
261
261
|
}
|