@dereekb/util 10.1.28 → 10.1.29
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/fetch/CHANGELOG.md +4 -0
- package/fetch/package.json +1 -1
- package/index.cjs.js +4 -1
- package/index.esm.js +5 -1
- package/package.json +1 -1
- package/src/lib/map/map.key.d.ts +16 -0
- package/test/CHANGELOG.md +4 -0
- package/test/package.json +1 -1
package/fetch/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [10.1.29](https://github.com/dereekb/dbx-components/compare/v10.1.28-dev...v10.1.29) (2024-10-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [10.1.28](https://github.com/dereekb/dbx-components/compare/v10.1.27-dev...v10.1.28) (2024-10-12)
|
|
6
10
|
|
|
7
11
|
|
package/fetch/package.json
CHANGED
package/index.cjs.js
CHANGED
|
@@ -4002,6 +4002,7 @@ function multiValueMapBuilder() {
|
|
|
4002
4002
|
}
|
|
4003
4003
|
useIterableOrValue(value, x => array.push(x));
|
|
4004
4004
|
};
|
|
4005
|
+
const addTuples = (key, value) => add(key, wrapTuples(value));
|
|
4005
4006
|
const builder = {
|
|
4006
4007
|
map: () => map,
|
|
4007
4008
|
entries: () => mapToTuples(map),
|
|
@@ -4010,7 +4011,9 @@ function multiValueMapBuilder() {
|
|
|
4010
4011
|
return map.delete(key);
|
|
4011
4012
|
},
|
|
4012
4013
|
add,
|
|
4013
|
-
addTuples
|
|
4014
|
+
addTuples,
|
|
4015
|
+
addToKeys: (keys, value) => useIterableOrValue(keys, k => add(k, value)),
|
|
4016
|
+
addTuplesToKeys: (keys, value) => useIterableOrValue(keys, k => addTuples(k, value)),
|
|
4014
4017
|
has: key => {
|
|
4015
4018
|
return map.has(key);
|
|
4016
4019
|
},
|
package/index.esm.js
CHANGED
|
@@ -4379,6 +4379,7 @@ function multiValueMapBuilder() {
|
|
|
4379
4379
|
}
|
|
4380
4380
|
useIterableOrValue(value, x => array.push(x));
|
|
4381
4381
|
};
|
|
4382
|
+
const addTuples = (key, value) => add(key, wrapTuples(value));
|
|
4382
4383
|
const builder = {
|
|
4383
4384
|
map: () => map,
|
|
4384
4385
|
entries: () => mapToTuples(map),
|
|
@@ -4387,7 +4388,9 @@ function multiValueMapBuilder() {
|
|
|
4387
4388
|
return map.delete(key);
|
|
4388
4389
|
},
|
|
4389
4390
|
add,
|
|
4390
|
-
addTuples
|
|
4391
|
+
addTuples,
|
|
4392
|
+
addToKeys: (keys, value) => useIterableOrValue(keys, k => add(k, value)),
|
|
4393
|
+
addTuplesToKeys: (keys, value) => useIterableOrValue(keys, k => addTuples(k, value)),
|
|
4391
4394
|
has: key => {
|
|
4392
4395
|
return map.has(key);
|
|
4393
4396
|
},
|
|
@@ -4398,6 +4401,7 @@ function multiValueMapBuilder() {
|
|
|
4398
4401
|
};
|
|
4399
4402
|
return builder;
|
|
4400
4403
|
}
|
|
4404
|
+
|
|
4401
4405
|
/**
|
|
4402
4406
|
* Determines if two maps have the same keys.
|
|
4403
4407
|
*
|
package/package.json
CHANGED
package/src/lib/map/map.key.d.ts
CHANGED
|
@@ -72,6 +72,22 @@ export interface MultiValueMapBuilder<T, K extends PrimativeKey = PrimativeKey>
|
|
|
72
72
|
* @param value
|
|
73
73
|
*/
|
|
74
74
|
add(key: Maybe<K>, value: IterableOrValue<T>): void;
|
|
75
|
+
/**
|
|
76
|
+
* Adds all input values with all the input key pairs to the map. Use for inserting multiple Tuple values.
|
|
77
|
+
*
|
|
78
|
+
* @param keys
|
|
79
|
+
* @param value
|
|
80
|
+
*/
|
|
81
|
+
addTuplesToKeys(keys: Maybe<IterableOrValue<K>>, value: IterableOrValue<T>): void;
|
|
82
|
+
/**
|
|
83
|
+
* Adds the input keys and value pairs to the map.
|
|
84
|
+
*
|
|
85
|
+
* Use the addTuple() function if adding a single tuple value to the array.
|
|
86
|
+
*
|
|
87
|
+
* @param keys
|
|
88
|
+
* @param value
|
|
89
|
+
*/
|
|
90
|
+
addToKeys(keys: Maybe<IterableOrValue<K>>, value: IterableOrValue<T>): void;
|
|
75
91
|
/**
|
|
76
92
|
* Returns true if the map contains the input key.
|
|
77
93
|
*
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [10.1.29](https://github.com/dereekb/dbx-components/compare/v10.1.28-dev...v10.1.29) (2024-10-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [10.1.28](https://github.com/dereekb/dbx-components/compare/v10.1.27-dev...v10.1.28) (2024-10-12)
|
|
6
10
|
|
|
7
11
|
|