@bemoje/map 1.2.0 → 1.2.1
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/lib/ExtMap.cjs +296 -46
- package/lib/ExtMap.js +280 -29
- package/lib/TimeoutWeakMap.cjs +4 -2
- package/lib/TimeoutWeakMap.js +5 -3
- package/lib/countUniques.cjs +348 -3
- package/lib/countUniques.js +349 -3
- package/lib/entriesArray.cjs +2 -0
- package/lib/entriesArray.js +3 -1
- package/lib/index.cjs +503 -108
- package/lib/index.js +489 -15
- package/lib/isGenericMap.cjs +2 -0
- package/lib/isGenericMap.js +3 -1
- package/lib/keysArray.cjs +2 -0
- package/lib/keysArray.js +3 -1
- package/lib/mapGetOrDefault.cjs +2 -0
- package/lib/mapGetOrDefault.js +3 -1
- package/lib/mapLoad.cjs +2 -0
- package/lib/mapLoad.js +3 -1
- package/lib/mapReverse.cjs +12 -3
- package/lib/mapReverse.js +12 -2
- package/lib/mapUpdate.cjs +2 -0
- package/lib/mapUpdate.js +3 -1
- package/lib/sort.cjs +2 -0
- package/lib/sort.js +3 -1
- package/lib/sortByKeys.cjs +2 -0
- package/lib/sortByKeys.js +3 -1
- package/lib/sortByValues.cjs +2 -0
- package/lib/sortByValues.js +3 -1
- package/lib/toMap.cjs +2 -0
- package/lib/toMap.js +3 -1
- package/lib/valuesArray.cjs +2 -0
- package/lib/valuesArray.js +3 -1
- package/package.json +1 -1
package/lib/sortByValues.cjs
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
5
|
+
|
|
6
|
+
// src/sortByValues.ts
|
|
5
7
|
function sortByValues(ins, compare) {
|
|
6
8
|
const entries = Array.from(ins).sort((a, b) => {
|
|
7
9
|
return compare(a[1], b[1]);
|
package/lib/sortByValues.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
2
3
|
|
|
4
|
+
// src/sortByValues.ts
|
|
3
5
|
function sortByValues(ins, compare) {
|
|
4
6
|
const entries = Array.from(ins).sort((a, b) => {
|
|
5
7
|
return compare(a[1], b[1]);
|
package/lib/toMap.cjs
CHANGED
package/lib/toMap.js
CHANGED
package/lib/valuesArray.cjs
CHANGED
package/lib/valuesArray.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
2
3
|
|
|
4
|
+
// src/valuesArray.ts
|
|
3
5
|
function valuesArray(ins) {
|
|
4
6
|
return Array.from(ins.values());
|
|
5
7
|
}
|