@dereekb/util 10.1.26 → 10.1.28
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 +8 -0
- package/fetch/package.json +1 -1
- package/index.cjs.js +3 -3
- package/index.esm.js +3 -3
- package/package.json +1 -1
- package/src/lib/set/set.d.ts +3 -3
- package/test/CHANGELOG.md +8 -0
- package/test/package.json +1 -1
package/fetch/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [10.1.28](https://github.com/dereekb/dbx-components/compare/v10.1.27-dev...v10.1.28) (2024-10-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [10.1.27](https://github.com/dereekb/dbx-components/compare/v10.1.26-dev...v10.1.27) (2024-09-26)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [10.1.26](https://github.com/dereekb/dbx-components/compare/v10.1.25-dev...v10.1.26) (2024-09-12)
|
|
6
14
|
|
|
7
15
|
|
package/fetch/package.json
CHANGED
package/index.cjs.js
CHANGED
|
@@ -2260,7 +2260,7 @@ function asSet(values) {
|
|
|
2260
2260
|
return set;
|
|
2261
2261
|
}
|
|
2262
2262
|
function copySetAndDo(set, fn) {
|
|
2263
|
-
const newSet = new Set(set);
|
|
2263
|
+
const newSet = new Set(set !== null && set !== void 0 ? set : undefined);
|
|
2264
2264
|
fn(newSet);
|
|
2265
2265
|
return newSet;
|
|
2266
2266
|
}
|
|
@@ -7406,8 +7406,8 @@ function assignValuesToPOJOFunction(input = exports.KeyValueTypleValueFilter.UND
|
|
|
7406
7406
|
target[key] = value;
|
|
7407
7407
|
}
|
|
7408
7408
|
});
|
|
7409
|
-
const fn = (inputTarget, obj,
|
|
7410
|
-
const target =
|
|
7409
|
+
const fn = (inputTarget, obj, returnCopy = copy) => {
|
|
7410
|
+
const target = returnCopy ? Object.assign({}, inputTarget) : inputTarget;
|
|
7411
7411
|
assignEachValueToTarget(obj, target);
|
|
7412
7412
|
return target;
|
|
7413
7413
|
};
|
package/index.esm.js
CHANGED
|
@@ -2329,7 +2329,7 @@ function asSet(values) {
|
|
|
2329
2329
|
return set;
|
|
2330
2330
|
}
|
|
2331
2331
|
function copySetAndDo(set, fn) {
|
|
2332
|
-
const newSet = new Set(set);
|
|
2332
|
+
const newSet = new Set(set != null ? set : undefined);
|
|
2333
2333
|
fn(newSet);
|
|
2334
2334
|
return newSet;
|
|
2335
2335
|
}
|
|
@@ -8496,8 +8496,8 @@ function assignValuesToPOJOFunction(input = KeyValueTypleValueFilter.UNDEFINED)
|
|
|
8496
8496
|
target[key] = value;
|
|
8497
8497
|
}
|
|
8498
8498
|
});
|
|
8499
|
-
const fn = (inputTarget, obj,
|
|
8500
|
-
const target =
|
|
8499
|
+
const fn = (inputTarget, obj, returnCopy = copy) => {
|
|
8500
|
+
const target = returnCopy ? Object.assign({}, inputTarget) : inputTarget;
|
|
8501
8501
|
assignEachValueToTarget(obj, target);
|
|
8502
8502
|
return target;
|
|
8503
8503
|
};
|
package/package.json
CHANGED
package/src/lib/set/set.d.ts
CHANGED
|
@@ -6,12 +6,12 @@ import { type DecisionFunction } from '../value/decision';
|
|
|
6
6
|
import { type MapFunction } from '../value/map';
|
|
7
7
|
export type AllOrNoneSelection = 'all' | 'none';
|
|
8
8
|
export declare function asSet<T>(values: IterableOrValue<T>): Set<T>;
|
|
9
|
-
export declare function copySetAndDo<T>(set: Set<T
|
|
10
|
-
export declare function addToSetCopy<T>(set: Set<T
|
|
9
|
+
export declare function copySetAndDo<T>(set: Maybe<Set<T>>, fn: (set: Set<T>) => void): Set<T>;
|
|
10
|
+
export declare function addToSetCopy<T>(set: Maybe<Set<T>>, values: Maybe<IterableOrValue<T>>): Set<T>;
|
|
11
11
|
export declare function addToSet<T>(set: Set<T>, values: Maybe<IterableOrValue<T>>): void;
|
|
12
12
|
export declare function toggleInSetCopy<T>(set: Set<T>, values: Maybe<IterableOrValue<T>>): Set<T>;
|
|
13
13
|
export declare function toggleInSet<T>(set: Set<T>, values: Maybe<IterableOrValue<T>>): void;
|
|
14
|
-
export declare function removeFromSetCopy<T>(set: Set<T
|
|
14
|
+
export declare function removeFromSetCopy<T>(set: Maybe<Set<T>>, values: Maybe<IterableOrValue<T>>): Set<T>;
|
|
15
15
|
export declare function removeFromSet<T>(set: Set<T>, values: Maybe<IterableOrValue<T>>): void;
|
|
16
16
|
export declare function hasSameValues<T>(a: Maybe<Iterable<T>>, b: Maybe<Iterable<T>>): boolean;
|
|
17
17
|
export declare function hasDifferentValues<T>(a: Maybe<Iterable<T>>, b: Maybe<Iterable<T>>): boolean;
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [10.1.28](https://github.com/dereekb/dbx-components/compare/v10.1.27-dev...v10.1.28) (2024-10-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [10.1.27](https://github.com/dereekb/dbx-components/compare/v10.1.26-dev...v10.1.27) (2024-09-26)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [10.1.26](https://github.com/dereekb/dbx-components/compare/v10.1.25-dev...v10.1.26) (2024-09-12)
|
|
6
14
|
|
|
7
15
|
|