@dereekb/util 9.7.5 → 9.7.6

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/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
+ ## [9.7.6](https://github.com/dereekb/dbx-components/compare/v9.7.5-dev...v9.7.6) (2022-09-12)
6
+
7
+
8
+
5
9
  ## [9.7.5](https://github.com/dereekb/dbx-components/compare/v9.7.4-dev...v9.7.5) (2022-09-10)
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "9.7.5",
3
+ "version": "9.7.6",
4
4
  "type": "commonjs",
5
5
  "exports": {
6
6
  ".": {
@@ -2,7 +2,7 @@ import { FactoryWithRequiredInput, PrimativeKey } from '@dereekb/util';
2
2
  /**
3
3
  * Map object of PrimativeKey dencoder values, keyed by the encoded value.
4
4
  */
5
- export declare type PrimativeKeyDencoderMap<D extends PrimativeKey, E extends PrimativeKey> = {
5
+ export declare type PrimativeKeyDencoderValueMap<D extends PrimativeKey, E extends PrimativeKey> = {
6
6
  [key in E]: D;
7
7
  };
8
8
  export declare type PrimativeKeyDencoderTuple<D extends PrimativeKey, E extends PrimativeKey> = [E, D];
@@ -10,8 +10,8 @@ export declare type PrimativeKeyDencoderTupleArray<D extends PrimativeKey, E ext
10
10
  /**
11
11
  * PrimativeKeyDencoder values. No key or value should be repeated.
12
12
  */
13
- export declare type PrimativeKeyDencoderValues<D extends PrimativeKey, E extends PrimativeKey> = PrimativeKeyDencoderTupleArray<D, E> | PrimativeKeyDencoderMap<D, E>;
14
- export declare type PrimativeKeyDeconderMap<D extends PrimativeKey, E extends PrimativeKey> = Map<D | E, E | D> & {
13
+ export declare type PrimativeKeyDencoderValues<D extends PrimativeKey, E extends PrimativeKey> = PrimativeKeyDencoderTupleArray<D, E> | PrimativeKeyDencoderValueMap<D, E>;
14
+ export declare type PrimativeKeyDencoderMap<D extends PrimativeKey, E extends PrimativeKey> = Map<D | E, E | D> & {
15
15
  readonly _tuples: PrimativeKeyDencoderTupleArray<D, E>;
16
16
  };
17
17
  /**
@@ -21,7 +21,7 @@ export declare type PrimativeKeyDeconderMap<D extends PrimativeKey, E extends Pr
21
21
  *
22
22
  * @param values
23
23
  */
24
- export declare function primativeKeyDencoderMap<D extends PrimativeKey, E extends PrimativeKey>(values: PrimativeKeyDencoderValues<D, E>): PrimativeKeyDeconderMap<D, E>;
24
+ export declare function primativeKeyDencoderMap<D extends PrimativeKey, E extends PrimativeKey>(values: PrimativeKeyDencoderValues<D, E>): PrimativeKeyDencoderMap<D, E>;
25
25
  export interface PrimativeKeyDencoderConfig<D extends PrimativeKey, E extends PrimativeKey> {
26
26
  readonly values: PrimativeKeyDencoderValues<D, E>;
27
27
  readonly defaultValue?: FactoryWithRequiredInput<D | E, D | E>;
@@ -32,7 +32,7 @@ export interface PrimativeKeyDencoderConfig<D extends PrimativeKey, E extends Pr
32
32
  * If a single value is input that produces a nullish value, an error is thrown.
33
33
  */
34
34
  export declare type PrimativeKeyDencoderFunction<D extends PrimativeKey, E extends PrimativeKey> = ((encodedValue: E) => D) & ((decodedValue: D) => E) & ((encodedValues: E[]) => D[]) & ((decodedValues: D[]) => E[]) & {
35
- readonly _map: PrimativeKeyDeconderMap<D, E>;
35
+ readonly _map: PrimativeKeyDencoderMap<D, E>;
36
36
  };
37
37
  export declare const PRIMATIVE_KEY_DENCODER_VALUE: (input: unknown) => null;
38
38
  /**
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
+ ## [9.7.6](https://github.com/dereekb/dbx-components/compare/v9.7.5-dev...v9.7.6) (2022-09-12)
6
+
7
+
8
+
5
9
  ## [9.7.5](https://github.com/dereekb/dbx-components/compare/v9.7.4-dev...v9.7.5) (2022-09-10)
6
10
 
7
11
 
package/test/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "9.7.5",
3
+ "version": "9.7.6",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
7
7
  "dependencies": {},
8
8
  "peerDependencies": {
9
- "@dereekb/util": "9.7.5",
9
+ "@dereekb/util": "9.7.6",
10
10
  "lodash.isequal": "^4.5.0",
11
11
  "make-error": "^1.3.0",
12
12
  "ts-essentials": "^9.1.2",