@dereekb/util 8.12.10 → 8.12.13

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,18 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [8.12.13](https://github.com/dereekb/dbx-components/compare/v8.12.12-dev...v8.12.13) (2022-07-16)
6
+
7
+
8
+
9
+ ## [8.12.12](https://github.com/dereekb/dbx-components/compare/v8.12.11-dev...v8.12.12) (2022-07-15)
10
+
11
+
12
+
13
+ ## [8.12.11](https://github.com/dereekb/dbx-components/compare/v8.12.10-dev...v8.12.11) (2022-07-14)
14
+
15
+
16
+
5
17
  ## [8.12.10](https://github.com/dereekb/dbx-components/compare/v8.12.9-dev...v8.12.10) (2022-07-13)
6
18
 
7
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "8.12.10",
3
+ "version": "8.12.13",
4
4
  "type": "commonjs",
5
5
  "exports": {
6
6
  ".": {
@@ -32,6 +32,8 @@ export declare type DateOrDateString = Date | ISO8601DateString;
32
32
  /**
33
33
  * A full date string Formatted as ISO8601.
34
34
  *
35
+ * Year, Month, Date
36
+ *
35
37
  * I.E. 1921-06-23
36
38
  */
37
39
  export declare type ISO8601DayString = string;
@@ -49,6 +51,7 @@ export declare type Minutes = number;
49
51
  export declare type Hours = number;
50
52
  export declare type Days = number;
51
53
  export declare const MINUTES_IN_DAY = 1440;
54
+ export declare const MINUTES_IN_HOUR = 60;
52
55
  export declare const MS_IN_MINUTE: number;
53
56
  export declare const MS_IN_HOUR: number;
54
57
  export declare const MS_IN_DAY: number;
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MS_IN_DAY = exports.MS_IN_HOUR = exports.MS_IN_MINUTE = exports.MINUTES_IN_DAY = exports.isConsideredUtcTimezoneString = exports.UTC_TIMEZONE_STRING = void 0;
3
+ exports.MS_IN_DAY = exports.MS_IN_HOUR = exports.MS_IN_MINUTE = exports.MINUTES_IN_HOUR = exports.MINUTES_IN_DAY = exports.isConsideredUtcTimezoneString = exports.UTC_TIMEZONE_STRING = void 0;
4
4
  exports.UTC_TIMEZONE_STRING = 'UTC';
5
5
  function isConsideredUtcTimezoneString(timezone) {
6
6
  return timezone == null || timezone === exports.UTC_TIMEZONE_STRING;
7
7
  }
8
8
  exports.isConsideredUtcTimezoneString = isConsideredUtcTimezoneString;
9
9
  exports.MINUTES_IN_DAY = 1440;
10
+ exports.MINUTES_IN_HOUR = 60;
10
11
  exports.MS_IN_MINUTE = 1000 * 60;
11
12
  exports.MS_IN_HOUR = exports.MS_IN_MINUTE * 60;
12
13
  exports.MS_IN_DAY = exports.MS_IN_HOUR * 24;
@@ -1 +1 @@
1
- {"version":3,"file":"date.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/date/date.ts"],"names":[],"mappings":";;;AAmBa,QAAA,mBAAmB,GAAG,KAAK,CAAC;AAazC,SAAgB,6BAA6B,CAAC,QAA+B;IAC3E,OAAO,QAAQ,IAAI,IAAI,IAAI,QAAQ,KAAK,2BAAmB,CAAC;AAC9D,CAAC;AAFD,sEAEC;AA8BY,QAAA,cAAc,GAAG,IAAI,CAAC;AACtB,QAAA,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;AACzB,QAAA,UAAU,GAAG,oBAAY,GAAG,EAAE,CAAC;AAC/B,QAAA,SAAS,GAAG,kBAAU,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"date.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/date/date.ts"],"names":[],"mappings":";;;AAmBa,QAAA,mBAAmB,GAAG,KAAK,CAAC;AAazC,SAAgB,6BAA6B,CAAC,QAA+B;IAC3E,OAAO,QAAQ,IAAI,IAAI,IAAI,QAAQ,KAAK,2BAAmB,CAAC;AAC9D,CAAC;AAFD,sEAEC;AAgCY,QAAA,cAAc,GAAG,IAAI,CAAC;AACtB,QAAA,eAAe,GAAG,EAAE,CAAC;AACrB,QAAA,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;AACzB,QAAA,UAAU,GAAG,oBAAY,GAAG,EAAE,CAAC;AAC/B,QAAA,SAAS,GAAG,kBAAU,GAAG,EAAE,CAAC"}
package/src/lib/type.d.ts CHANGED
@@ -56,7 +56,11 @@ export declare type RemoveIndex<T> = {
56
56
  */
57
57
  export declare type KnownKeys<T> = keyof RemoveIndex<T>;
58
58
  /**
59
- * Makes the input key(s) partially required.
59
+ * Makes the input key(s) required.
60
+ */
61
+ export declare type RequiredOnKeys<T, K> = K extends keyof T ? Omit<T, K> & Required<Pick<T, K>> : T;
62
+ /**
63
+ * Makes the input key(s) partials.
60
64
  */
61
65
  export declare type PartialOnKeys<T, K> = K extends keyof T ? Omit<T, K> & Partial<Pick<T, K>> : T;
62
66
  /**
package/test/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [8.12.13](https://github.com/dereekb/dbx-components/compare/v8.12.12-dev...v8.12.13) (2022-07-16)
6
+
7
+
8
+
9
+ ## [8.12.12](https://github.com/dereekb/dbx-components/compare/v8.12.11-dev...v8.12.12) (2022-07-15)
10
+
11
+
12
+
13
+ ## [8.12.11](https://github.com/dereekb/dbx-components/compare/v8.12.10-dev...v8.12.11) (2022-07-14)
14
+
15
+
16
+
5
17
  ## [8.12.10](https://github.com/dereekb/dbx-components/compare/v8.12.9-dev...v8.12.10) (2022-07-13)
6
18
 
7
19
 
package/test/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "8.12.10",
3
+ "version": "8.12.13",
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": "8.12.10",
9
+ "@dereekb/util": "8.12.13",
10
10
  "make-error": "^1.3.0",
11
11
  "ts-essentials": "^9.1.2",
12
12
  "extra-set": "^2.2.11",