@dereekb/util 10.0.13 → 10.0.14
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 +3 -3
- package/index.esm.js +3 -3
- package/package.json +1 -1
- package/src/lib/function/function.d.ts +3 -1
- package/src/lib/value/map.d.ts +1 -1
- 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.0.14](https://github.com/dereekb/dbx-components/compare/v10.0.13-dev...v10.0.14) (2024-01-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [10.0.13](https://github.com/dereekb/dbx-components/compare/v10.0.12-dev...v10.0.13) (2024-01-29)
|
|
6
10
|
|
|
7
11
|
|
package/fetch/package.json
CHANGED
package/index.cjs.js
CHANGED
|
@@ -10541,12 +10541,12 @@ function defaultForwardFunctionFactory(defaultFn) {
|
|
|
10541
10541
|
/**
|
|
10542
10542
|
* A function that returns the input value.
|
|
10543
10543
|
*
|
|
10544
|
+
* Is an alias of the mapIdentityFunction, so it will return true when passed to isMapIdentityFunction().
|
|
10545
|
+
*
|
|
10544
10546
|
* @param input
|
|
10545
10547
|
* @returns
|
|
10546
10548
|
*/
|
|
10547
|
-
|
|
10548
|
-
return input;
|
|
10549
|
-
}
|
|
10549
|
+
const passThrough = MAP_IDENTITY;
|
|
10550
10550
|
|
|
10551
10551
|
/**
|
|
10552
10552
|
* Builds an array from intersection of the input object and input keys that correspond to values that should be part of the result.
|
package/index.esm.js
CHANGED
|
@@ -13169,12 +13169,12 @@ function defaultForwardFunctionFactory(defaultFn) {
|
|
|
13169
13169
|
/**
|
|
13170
13170
|
* A function that returns the input value.
|
|
13171
13171
|
*
|
|
13172
|
+
* Is an alias of the mapIdentityFunction, so it will return true when passed to isMapIdentityFunction().
|
|
13173
|
+
*
|
|
13172
13174
|
* @param input
|
|
13173
13175
|
* @returns
|
|
13174
13176
|
*/
|
|
13175
|
-
|
|
13176
|
-
return input;
|
|
13177
|
-
}
|
|
13177
|
+
const passThrough = MAP_IDENTITY;
|
|
13178
13178
|
|
|
13179
13179
|
/**
|
|
13180
13180
|
* Object used as a map of keys that will intersect with input keys.
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A function that returns the input value.
|
|
3
3
|
*
|
|
4
|
+
* Is an alias of the mapIdentityFunction, so it will return true when passed to isMapIdentityFunction().
|
|
5
|
+
*
|
|
4
6
|
* @param input
|
|
5
7
|
* @returns
|
|
6
8
|
*/
|
|
7
|
-
export declare
|
|
9
|
+
export declare const passThrough: <T>(input: T) => T;
|
package/src/lib/value/map.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export type ApplyMapFunction<I, O> = (input: I, target?: Maybe<Partial<O>>) => O
|
|
|
39
39
|
*/
|
|
40
40
|
export type ApplyMapFunctionWithOptions<I, O, C> = (input: I, target?: Maybe<Partial<O>>, options?: Maybe<C>) => O;
|
|
41
41
|
export declare function mapArrayFunction<I, O>(mapFunction: MapFunction<I, O>): MapArrayFunction<MapFunction<I, O>>;
|
|
42
|
-
export declare const MAP_IDENTITY: (input:
|
|
42
|
+
export declare const MAP_IDENTITY: <T>(input: T) => T;
|
|
43
43
|
export declare function mapIdentityFunction<T>(): MapFunction<T, T>;
|
|
44
44
|
export declare function isMapIdentityFunction(fn: unknown): fn is typeof MAP_IDENTITY;
|
|
45
45
|
export type MapFunctionOutputPair<O, I = unknown> = {
|
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.0.14](https://github.com/dereekb/dbx-components/compare/v10.0.13-dev...v10.0.14) (2024-01-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [10.0.13](https://github.com/dereekb/dbx-components/compare/v10.0.12-dev...v10.0.13) (2024-01-29)
|
|
6
10
|
|
|
7
11
|
|