@onivoro/isomorphic-common 22.0.4 → 22.0.5
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/dist/cjs/index.d.ts +43 -0
- package/dist/cjs/index.js +59 -0
- package/dist/cjs/lib/constants/decimal-regex.constant.d.ts +1 -0
- package/dist/cjs/lib/constants/decimal-regex.constant.js +4 -0
- package/dist/cjs/lib/constants/millis-per-day.constant.d.ts +1 -0
- package/dist/cjs/lib/constants/millis-per-day.constant.js +5 -0
- package/dist/cjs/lib/constants/millis-per-hour.constant.d.ts +1 -0
- package/dist/cjs/lib/constants/millis-per-hour.constant.js +5 -0
- package/dist/cjs/lib/constants/millis-per-minute.constant.d.ts +1 -0
- package/dist/cjs/lib/constants/millis-per-minute.constant.js +4 -0
- package/dist/cjs/lib/functions/add-offset.function.d.ts +1 -0
- package/dist/cjs/lib/functions/add-offset.function.js +13 -0
- package/dist/cjs/lib/functions/camel-case.function.d.ts +20 -0
- package/dist/cjs/lib/functions/camel-case.function.js +31 -0
- package/dist/cjs/lib/functions/convert-object-to-literal.function.d.ts +1 -0
- package/dist/cjs/lib/functions/convert-object-to-literal.function.js +9 -0
- package/dist/cjs/lib/functions/format-usd.function.d.ts +1 -0
- package/dist/cjs/lib/functions/format-usd.function.js +7 -0
- package/dist/cjs/lib/functions/from-boolean-string.function.d.ts +1 -0
- package/dist/cjs/lib/functions/from-boolean-string.function.js +6 -0
- package/dist/cjs/lib/functions/from-calendar-date.function.d.ts +1 -0
- package/dist/cjs/lib/functions/from-calendar-date.function.js +7 -0
- package/dist/cjs/lib/functions/from-csv-string.function.d.ts +1 -0
- package/dist/cjs/lib/functions/from-csv-string.function.js +6 -0
- package/dist/cjs/lib/functions/get-date-range-for-month.function.d.ts +4 -0
- package/dist/cjs/lib/functions/get-date-range-for-month.function.js +9 -0
- package/dist/cjs/lib/functions/get-tag.function.d.ts +1 -0
- package/dist/cjs/lib/functions/get-tag.function.js +11 -0
- package/dist/cjs/lib/functions/is-symbol.function.d.ts +1 -0
- package/dist/cjs/lib/functions/is-symbol.function.js +10 -0
- package/dist/cjs/lib/functions/is-valid-date.function.d.ts +1 -0
- package/dist/cjs/lib/functions/is-valid-date.function.js +7 -0
- package/dist/cjs/lib/functions/kebab-case.function.d.ts +1 -0
- package/dist/cjs/lib/functions/kebab-case.function.js +7 -0
- package/dist/cjs/lib/functions/map-enum-to-array-of-values.function.d.ts +1 -0
- package/dist/cjs/lib/functions/map-enum-to-array-of-values.function.js +6 -0
- package/dist/cjs/lib/functions/map-enum-to-lookup-array.function.d.ts +2 -0
- package/dist/cjs/lib/functions/map-enum-to-lookup-array.function.js +7 -0
- package/dist/cjs/lib/functions/map-enum-to-options.function.d.ts +4 -0
- package/dist/cjs/lib/functions/map-enum-to-options.function.js +9 -0
- package/dist/cjs/lib/functions/money.function.d.ts +1 -0
- package/dist/cjs/lib/functions/money.function.js +19 -0
- package/dist/cjs/lib/functions/parse-bool.function.d.ts +1 -0
- package/dist/cjs/lib/functions/parse-bool.function.js +6 -0
- package/dist/cjs/lib/functions/properties-to-array.function.d.ts +1 -0
- package/dist/cjs/lib/functions/properties-to-array.function.js +18 -0
- package/dist/cjs/lib/functions/remove-alpha-chars.function.d.ts +1 -0
- package/dist/cjs/lib/functions/remove-alpha-chars.function.js +10 -0
- package/dist/cjs/lib/functions/remove-element-at-index.function.d.ts +1 -0
- package/dist/cjs/lib/functions/remove-element-at-index.function.js +12 -0
- package/dist/cjs/lib/functions/round.function.d.ts +1 -0
- package/dist/cjs/lib/functions/round.function.js +7 -0
- package/dist/cjs/lib/functions/sanitize-filename.function.d.ts +1 -0
- package/dist/cjs/lib/functions/sanitize-filename.function.js +10 -0
- package/dist/cjs/lib/functions/sleep.function.d.ts +1 -0
- package/dist/cjs/lib/functions/sleep.function.js +6 -0
- package/dist/cjs/lib/functions/snake-case.function.d.ts +24 -0
- package/dist/cjs/lib/functions/snake-case.function.js +31 -0
- package/dist/cjs/lib/functions/subtract-offset.function.d.ts +1 -0
- package/dist/cjs/lib/functions/subtract-offset.function.js +13 -0
- package/dist/cjs/lib/functions/to-boolean-string.function.d.ts +1 -0
- package/dist/cjs/lib/functions/to-boolean-string.function.js +6 -0
- package/dist/cjs/lib/functions/to-calendar-date.function.d.ts +1 -0
- package/dist/cjs/lib/functions/to-calendar-date.function.js +11 -0
- package/dist/cjs/lib/functions/to-csv-string.function.d.ts +1 -0
- package/dist/cjs/lib/functions/to-csv-string.function.js +6 -0
- package/dist/cjs/lib/functions/to-decimal-base.function.d.ts +1 -0
- package/dist/cjs/lib/functions/to-decimal-base.function.js +21 -0
- package/dist/cjs/lib/functions/to-dollars-and-cents.function.d.ts +1 -0
- package/dist/cjs/lib/functions/to-dollars-and-cents.function.js +16 -0
- package/dist/cjs/lib/functions/to-string.function.d.ts +1 -0
- package/dist/cjs/lib/functions/to-string.function.js +25 -0
- package/dist/cjs/lib/functions/to-unique-array.function.d.ts +1 -0
- package/dist/cjs/lib/functions/to-unique-array.function.js +6 -0
- package/dist/cjs/lib/functions/to-words.function.d.ts +1 -0
- package/dist/cjs/lib/functions/to-words.function.js +91 -0
- package/dist/cjs/lib/functions/try-json-parse.d.ts +1 -0
- package/dist/cjs/lib/functions/try-json-parse.js +14 -0
- package/dist/cjs/lib/functions/try-json-stringify.d.ts +1 -0
- package/dist/cjs/lib/functions/try-json-stringify.js +14 -0
- package/dist/cjs/lib/functions/try-parse-date.function.d.ts +1 -0
- package/dist/cjs/lib/functions/try-parse-date.function.js +16 -0
- package/dist/cjs/lib/functions/unicode-words.const.d.ts +8 -0
- package/dist/cjs/lib/functions/unicode-words.const.js +68 -0
- package/dist/cjs/lib/functions/upper-first.function.d.ts +1 -0
- package/dist/cjs/lib/functions/upper-first.function.js +12 -0
- package/dist/cjs/lib/functions/words.function.d.ts +17 -0
- package/dist/cjs/lib/functions/words.function.js +34 -0
- package/dist/cjs/lib/interfaces/axios-wrapped-nest-exception.interface.d.ts +5 -0
- package/dist/cjs/lib/interfaces/axios-wrapped-nest-exception.interface.js +2 -0
- package/dist/cjs/lib/interfaces/entity-provider.interface.d.ts +9 -0
- package/dist/cjs/lib/interfaces/entity-provider.interface.js +2 -0
- package/dist/cjs/lib/interfaces/keys-of.type.d.ts +3 -0
- package/dist/cjs/lib/interfaces/keys-of.type.js +2 -0
- package/dist/cjs/lib/interfaces/lookup.interface.d.ts +4 -0
- package/dist/cjs/lib/interfaces/lookup.interface.js +2 -0
- package/dist/esm/index.d.ts +43 -0
- package/dist/esm/index.js +59 -0
- package/dist/esm/lib/constants/decimal-regex.constant.d.ts +1 -0
- package/dist/esm/lib/constants/decimal-regex.constant.js +4 -0
- package/dist/esm/lib/constants/millis-per-day.constant.d.ts +1 -0
- package/dist/esm/lib/constants/millis-per-day.constant.js +5 -0
- package/dist/esm/lib/constants/millis-per-hour.constant.d.ts +1 -0
- package/dist/esm/lib/constants/millis-per-hour.constant.js +5 -0
- package/dist/esm/lib/constants/millis-per-minute.constant.d.ts +1 -0
- package/dist/esm/lib/constants/millis-per-minute.constant.js +4 -0
- package/dist/esm/lib/functions/add-offset.function.d.ts +1 -0
- package/dist/esm/lib/functions/add-offset.function.js +13 -0
- package/dist/esm/lib/functions/camel-case.function.d.ts +20 -0
- package/dist/esm/lib/functions/camel-case.function.js +31 -0
- package/dist/esm/lib/functions/convert-object-to-literal.function.d.ts +1 -0
- package/dist/esm/lib/functions/convert-object-to-literal.function.js +9 -0
- package/dist/esm/lib/functions/format-usd.function.d.ts +1 -0
- package/dist/esm/lib/functions/format-usd.function.js +7 -0
- package/dist/esm/lib/functions/from-boolean-string.function.d.ts +1 -0
- package/dist/esm/lib/functions/from-boolean-string.function.js +6 -0
- package/dist/esm/lib/functions/from-calendar-date.function.d.ts +1 -0
- package/dist/esm/lib/functions/from-calendar-date.function.js +7 -0
- package/dist/esm/lib/functions/from-csv-string.function.d.ts +1 -0
- package/dist/esm/lib/functions/from-csv-string.function.js +6 -0
- package/dist/esm/lib/functions/get-date-range-for-month.function.d.ts +4 -0
- package/dist/esm/lib/functions/get-date-range-for-month.function.js +9 -0
- package/dist/esm/lib/functions/get-tag.function.d.ts +1 -0
- package/dist/esm/lib/functions/get-tag.function.js +11 -0
- package/dist/esm/lib/functions/is-symbol.function.d.ts +1 -0
- package/dist/esm/lib/functions/is-symbol.function.js +10 -0
- package/dist/esm/lib/functions/is-valid-date.function.d.ts +1 -0
- package/dist/esm/lib/functions/is-valid-date.function.js +7 -0
- package/dist/esm/lib/functions/kebab-case.function.d.ts +1 -0
- package/dist/esm/lib/functions/kebab-case.function.js +7 -0
- package/dist/esm/lib/functions/map-enum-to-array-of-values.function.d.ts +1 -0
- package/dist/esm/lib/functions/map-enum-to-array-of-values.function.js +6 -0
- package/dist/esm/lib/functions/map-enum-to-lookup-array.function.d.ts +2 -0
- package/dist/esm/lib/functions/map-enum-to-lookup-array.function.js +7 -0
- package/dist/esm/lib/functions/map-enum-to-options.function.d.ts +4 -0
- package/dist/esm/lib/functions/map-enum-to-options.function.js +9 -0
- package/dist/esm/lib/functions/money.function.d.ts +1 -0
- package/dist/esm/lib/functions/money.function.js +19 -0
- package/dist/esm/lib/functions/parse-bool.function.d.ts +1 -0
- package/dist/esm/lib/functions/parse-bool.function.js +6 -0
- package/dist/esm/lib/functions/properties-to-array.function.d.ts +1 -0
- package/dist/esm/lib/functions/properties-to-array.function.js +18 -0
- package/dist/esm/lib/functions/remove-alpha-chars.function.d.ts +1 -0
- package/dist/esm/lib/functions/remove-alpha-chars.function.js +10 -0
- package/dist/esm/lib/functions/remove-element-at-index.function.d.ts +1 -0
- package/dist/esm/lib/functions/remove-element-at-index.function.js +12 -0
- package/dist/esm/lib/functions/round.function.d.ts +1 -0
- package/dist/esm/lib/functions/round.function.js +7 -0
- package/dist/esm/lib/functions/sanitize-filename.function.d.ts +1 -0
- package/dist/esm/lib/functions/sanitize-filename.function.js +10 -0
- package/dist/esm/lib/functions/sleep.function.d.ts +1 -0
- package/dist/esm/lib/functions/sleep.function.js +6 -0
- package/dist/esm/lib/functions/snake-case.function.d.ts +24 -0
- package/dist/esm/lib/functions/snake-case.function.js +31 -0
- package/dist/esm/lib/functions/subtract-offset.function.d.ts +1 -0
- package/dist/esm/lib/functions/subtract-offset.function.js +13 -0
- package/dist/esm/lib/functions/to-boolean-string.function.d.ts +1 -0
- package/dist/esm/lib/functions/to-boolean-string.function.js +6 -0
- package/dist/esm/lib/functions/to-calendar-date.function.d.ts +1 -0
- package/dist/esm/lib/functions/to-calendar-date.function.js +11 -0
- package/dist/esm/lib/functions/to-csv-string.function.d.ts +1 -0
- package/dist/esm/lib/functions/to-csv-string.function.js +6 -0
- package/dist/esm/lib/functions/to-decimal-base.function.d.ts +1 -0
- package/dist/esm/lib/functions/to-decimal-base.function.js +21 -0
- package/dist/esm/lib/functions/to-dollars-and-cents.function.d.ts +1 -0
- package/dist/esm/lib/functions/to-dollars-and-cents.function.js +16 -0
- package/dist/esm/lib/functions/to-string.function.d.ts +1 -0
- package/dist/esm/lib/functions/to-string.function.js +25 -0
- package/dist/esm/lib/functions/to-unique-array.function.d.ts +1 -0
- package/dist/esm/lib/functions/to-unique-array.function.js +6 -0
- package/dist/esm/lib/functions/to-words.function.d.ts +1 -0
- package/dist/esm/lib/functions/to-words.function.js +91 -0
- package/dist/esm/lib/functions/try-json-parse.d.ts +1 -0
- package/dist/esm/lib/functions/try-json-parse.js +14 -0
- package/dist/esm/lib/functions/try-json-stringify.d.ts +1 -0
- package/dist/esm/lib/functions/try-json-stringify.js +14 -0
- package/dist/esm/lib/functions/try-parse-date.function.d.ts +1 -0
- package/dist/esm/lib/functions/try-parse-date.function.js +16 -0
- package/dist/esm/lib/functions/unicode-words.const.d.ts +8 -0
- package/dist/esm/lib/functions/unicode-words.const.js +68 -0
- package/dist/esm/lib/functions/upper-first.function.d.ts +1 -0
- package/dist/esm/lib/functions/upper-first.function.js +12 -0
- package/dist/esm/lib/functions/words.function.d.ts +17 -0
- package/dist/esm/lib/functions/words.function.js +34 -0
- package/dist/esm/lib/interfaces/axios-wrapped-nest-exception.interface.d.ts +5 -0
- package/dist/esm/lib/interfaces/axios-wrapped-nest-exception.interface.js +2 -0
- package/dist/esm/lib/interfaces/entity-provider.interface.d.ts +9 -0
- package/dist/esm/lib/interfaces/entity-provider.interface.js +2 -0
- package/dist/esm/lib/interfaces/keys-of.type.d.ts +3 -0
- package/dist/esm/lib/interfaces/keys-of.type.js +2 -0
- package/dist/esm/lib/interfaces/lookup.interface.d.ts +4 -0
- package/dist/esm/lib/interfaces/lookup.interface.js +2 -0
- package/dist/types/index.d.ts +43 -0
- package/dist/types/lib/constants/decimal-regex.constant.d.ts +1 -0
- package/dist/types/lib/constants/millis-per-day.constant.d.ts +1 -0
- package/dist/types/lib/constants/millis-per-hour.constant.d.ts +1 -0
- package/dist/types/lib/constants/millis-per-minute.constant.d.ts +1 -0
- package/dist/types/lib/functions/add-offset.function.d.ts +1 -0
- package/dist/types/lib/functions/camel-case.function.d.ts +20 -0
- package/dist/types/lib/functions/convert-object-to-literal.function.d.ts +1 -0
- package/dist/types/lib/functions/format-usd.function.d.ts +1 -0
- package/dist/types/lib/functions/from-boolean-string.function.d.ts +1 -0
- package/dist/types/lib/functions/from-calendar-date.function.d.ts +1 -0
- package/dist/types/lib/functions/from-csv-string.function.d.ts +1 -0
- package/dist/types/lib/functions/get-date-range-for-month.function.d.ts +4 -0
- package/dist/types/lib/functions/get-tag.function.d.ts +1 -0
- package/dist/types/lib/functions/is-symbol.function.d.ts +1 -0
- package/dist/types/lib/functions/is-valid-date.function.d.ts +1 -0
- package/dist/types/lib/functions/kebab-case.function.d.ts +1 -0
- package/dist/types/lib/functions/map-enum-to-array-of-values.function.d.ts +1 -0
- package/dist/types/lib/functions/map-enum-to-lookup-array.function.d.ts +2 -0
- package/dist/types/lib/functions/map-enum-to-options.function.d.ts +4 -0
- package/dist/types/lib/functions/money.function.d.ts +1 -0
- package/dist/types/lib/functions/parse-bool.function.d.ts +1 -0
- package/dist/types/lib/functions/properties-to-array.function.d.ts +1 -0
- package/dist/types/lib/functions/remove-alpha-chars.function.d.ts +1 -0
- package/dist/types/lib/functions/remove-element-at-index.function.d.ts +1 -0
- package/dist/types/lib/functions/round.function.d.ts +1 -0
- package/dist/types/lib/functions/sanitize-filename.function.d.ts +1 -0
- package/dist/types/lib/functions/sleep.function.d.ts +1 -0
- package/dist/types/lib/functions/snake-case.function.d.ts +24 -0
- package/dist/types/lib/functions/subtract-offset.function.d.ts +1 -0
- package/dist/types/lib/functions/to-boolean-string.function.d.ts +1 -0
- package/dist/types/lib/functions/to-calendar-date.function.d.ts +1 -0
- package/dist/types/lib/functions/to-csv-string.function.d.ts +1 -0
- package/dist/types/lib/functions/to-decimal-base.function.d.ts +1 -0
- package/dist/types/lib/functions/to-dollars-and-cents.function.d.ts +1 -0
- package/dist/types/lib/functions/to-string.function.d.ts +1 -0
- package/dist/types/lib/functions/to-unique-array.function.d.ts +1 -0
- package/dist/types/lib/functions/to-words.function.d.ts +1 -0
- package/dist/types/lib/functions/try-json-parse.d.ts +1 -0
- package/dist/types/lib/functions/try-json-stringify.d.ts +1 -0
- package/dist/types/lib/functions/try-parse-date.function.d.ts +1 -0
- package/dist/types/lib/functions/unicode-words.const.d.ts +8 -0
- package/dist/types/lib/functions/upper-first.function.d.ts +1 -0
- package/dist/types/lib/functions/words.function.d.ts +17 -0
- package/dist/types/lib/interfaces/axios-wrapped-nest-exception.interface.d.ts +5 -0
- package/dist/types/lib/interfaces/entity-provider.interface.d.ts +9 -0
- package/dist/types/lib/interfaces/keys-of.type.d.ts +3 -0
- package/dist/types/lib/interfaces/lookup.interface.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from './lib/constants/decimal-regex.constant';
|
|
2
|
+
export * from './lib/constants/millis-per-day.constant';
|
|
3
|
+
export * from './lib/constants/millis-per-hour.constant';
|
|
4
|
+
export * from './lib/constants/millis-per-minute.constant';
|
|
5
|
+
export * from './lib/functions/add-offset.function';
|
|
6
|
+
export * from './lib/functions/camel-case.function';
|
|
7
|
+
export * from './lib/functions/convert-object-to-literal.function';
|
|
8
|
+
export * from './lib/functions/format-usd.function';
|
|
9
|
+
export * from './lib/functions/from-boolean-string.function';
|
|
10
|
+
export * from './lib/functions/from-calendar-date.function';
|
|
11
|
+
export * from './lib/functions/from-csv-string.function';
|
|
12
|
+
export * from './lib/functions/get-date-range-for-month.function';
|
|
13
|
+
export * from './lib/functions/is-symbol.function';
|
|
14
|
+
export * from './lib/functions/is-valid-date.function';
|
|
15
|
+
export * from './lib/functions/kebab-case.function';
|
|
16
|
+
export * from './lib/functions/map-enum-to-array-of-values.function';
|
|
17
|
+
export * from './lib/functions/map-enum-to-lookup-array.function';
|
|
18
|
+
export * from './lib/functions/map-enum-to-options.function';
|
|
19
|
+
export * from './lib/functions/money.function';
|
|
20
|
+
export * from './lib/functions/parse-bool.function';
|
|
21
|
+
export * from './lib/functions/properties-to-array.function';
|
|
22
|
+
export * from './lib/functions/remove-alpha-chars.function';
|
|
23
|
+
export * from './lib/functions/remove-element-at-index.function';
|
|
24
|
+
export * from './lib/functions/round.function';
|
|
25
|
+
export * from './lib/functions/sleep.function';
|
|
26
|
+
export * from './lib/functions/sanitize-filename.function';
|
|
27
|
+
export * from './lib/functions/snake-case.function';
|
|
28
|
+
export * from './lib/functions/subtract-offset.function';
|
|
29
|
+
export * from './lib/functions/to-boolean-string.function';
|
|
30
|
+
export * from './lib/functions/to-calendar-date.function';
|
|
31
|
+
export * from './lib/functions/to-csv-string.function';
|
|
32
|
+
export * from './lib/functions/to-decimal-base.function';
|
|
33
|
+
export * from './lib/functions/to-dollars-and-cents.function';
|
|
34
|
+
export * from './lib/functions/to-unique-array.function';
|
|
35
|
+
export * from './lib/functions/to-words.function';
|
|
36
|
+
export * from './lib/functions/try-parse-date.function';
|
|
37
|
+
export * from './lib/functions/unicode-words.const';
|
|
38
|
+
export * from './lib/functions/upper-first.function';
|
|
39
|
+
export * from './lib/functions/words.function';
|
|
40
|
+
export * from './lib/interfaces/axios-wrapped-nest-exception.interface';
|
|
41
|
+
export * from './lib/interfaces/entity-provider.interface';
|
|
42
|
+
export * from './lib/interfaces/keys-of.type';
|
|
43
|
+
export * from './lib/interfaces/lookup.interface';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./lib/constants/decimal-regex.constant"), exports);
|
|
18
|
+
__exportStar(require("./lib/constants/millis-per-day.constant"), exports);
|
|
19
|
+
__exportStar(require("./lib/constants/millis-per-hour.constant"), exports);
|
|
20
|
+
__exportStar(require("./lib/constants/millis-per-minute.constant"), exports);
|
|
21
|
+
__exportStar(require("./lib/functions/add-offset.function"), exports);
|
|
22
|
+
__exportStar(require("./lib/functions/camel-case.function"), exports);
|
|
23
|
+
__exportStar(require("./lib/functions/convert-object-to-literal.function"), exports);
|
|
24
|
+
__exportStar(require("./lib/functions/format-usd.function"), exports);
|
|
25
|
+
__exportStar(require("./lib/functions/from-boolean-string.function"), exports);
|
|
26
|
+
__exportStar(require("./lib/functions/from-calendar-date.function"), exports);
|
|
27
|
+
__exportStar(require("./lib/functions/from-csv-string.function"), exports);
|
|
28
|
+
__exportStar(require("./lib/functions/get-date-range-for-month.function"), exports);
|
|
29
|
+
__exportStar(require("./lib/functions/is-symbol.function"), exports);
|
|
30
|
+
__exportStar(require("./lib/functions/is-valid-date.function"), exports);
|
|
31
|
+
__exportStar(require("./lib/functions/kebab-case.function"), exports);
|
|
32
|
+
__exportStar(require("./lib/functions/map-enum-to-array-of-values.function"), exports);
|
|
33
|
+
__exportStar(require("./lib/functions/map-enum-to-lookup-array.function"), exports);
|
|
34
|
+
__exportStar(require("./lib/functions/map-enum-to-options.function"), exports);
|
|
35
|
+
__exportStar(require("./lib/functions/money.function"), exports);
|
|
36
|
+
__exportStar(require("./lib/functions/parse-bool.function"), exports);
|
|
37
|
+
__exportStar(require("./lib/functions/properties-to-array.function"), exports);
|
|
38
|
+
__exportStar(require("./lib/functions/remove-alpha-chars.function"), exports);
|
|
39
|
+
__exportStar(require("./lib/functions/remove-element-at-index.function"), exports);
|
|
40
|
+
__exportStar(require("./lib/functions/round.function"), exports);
|
|
41
|
+
__exportStar(require("./lib/functions/sleep.function"), exports);
|
|
42
|
+
__exportStar(require("./lib/functions/sanitize-filename.function"), exports);
|
|
43
|
+
__exportStar(require("./lib/functions/snake-case.function"), exports);
|
|
44
|
+
__exportStar(require("./lib/functions/subtract-offset.function"), exports);
|
|
45
|
+
__exportStar(require("./lib/functions/to-boolean-string.function"), exports);
|
|
46
|
+
__exportStar(require("./lib/functions/to-calendar-date.function"), exports);
|
|
47
|
+
__exportStar(require("./lib/functions/to-csv-string.function"), exports);
|
|
48
|
+
__exportStar(require("./lib/functions/to-decimal-base.function"), exports);
|
|
49
|
+
__exportStar(require("./lib/functions/to-dollars-and-cents.function"), exports);
|
|
50
|
+
__exportStar(require("./lib/functions/to-unique-array.function"), exports);
|
|
51
|
+
__exportStar(require("./lib/functions/to-words.function"), exports);
|
|
52
|
+
__exportStar(require("./lib/functions/try-parse-date.function"), exports);
|
|
53
|
+
__exportStar(require("./lib/functions/unicode-words.const"), exports);
|
|
54
|
+
__exportStar(require("./lib/functions/upper-first.function"), exports);
|
|
55
|
+
__exportStar(require("./lib/functions/words.function"), exports);
|
|
56
|
+
__exportStar(require("./lib/interfaces/axios-wrapped-nest-exception.interface"), exports);
|
|
57
|
+
__exportStar(require("./lib/interfaces/entity-provider.interface"), exports);
|
|
58
|
+
__exportStar(require("./lib/interfaces/keys-of.type"), exports);
|
|
59
|
+
__exportStar(require("./lib/interfaces/lookup.interface"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const decimalRegex: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MILLIS_PER_DAY: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MILLIS_PER_HOUR: number;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MILLIS_PER_HOUR = void 0;
|
|
4
|
+
const millis_per_minute_constant_1 = require("./millis-per-minute.constant");
|
|
5
|
+
exports.MILLIS_PER_HOUR = millis_per_minute_constant_1.MILLIS_PER_MINUTE * 60;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MILLIS_PER_MINUTE: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function addOffset(input: string | Date | undefined | null): Date | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addOffset = addOffset;
|
|
4
|
+
const millis_per_minute_constant_1 = require("../constants/millis-per-minute.constant");
|
|
5
|
+
const try_parse_date_function_1 = require("./try-parse-date.function");
|
|
6
|
+
function addOffset(input) {
|
|
7
|
+
const parsed = (0, try_parse_date_function_1.tryParseDate)(input);
|
|
8
|
+
if (!parsed) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const offset = (parsed).getTimezoneOffset();
|
|
12
|
+
return new Date(parsed.valueOf() + offset * millis_per_minute_constant_1.MILLIS_PER_MINUTE);
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
|
3
|
+
*
|
|
4
|
+
* @since 3.0.0
|
|
5
|
+
* @category String
|
|
6
|
+
* @param {string} [string=''] The string to convert.
|
|
7
|
+
* @returns {string} Returns the camel cased string.
|
|
8
|
+
* @see lowerCase, kebabCase, snakeCase, startCase, upperCase, upperFirst
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* camelCase('Foo Bar')
|
|
12
|
+
* // => 'fooBar'
|
|
13
|
+
*
|
|
14
|
+
* camelCase('--foo-bar--')
|
|
15
|
+
* // => 'fooBar'
|
|
16
|
+
*
|
|
17
|
+
* camelCase('__FOO_BAR__')
|
|
18
|
+
* // => 'fooBar'
|
|
19
|
+
*/
|
|
20
|
+
export declare const camelCase: (string: string) => string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// https://github.com/lodash/lodash/blob/main/src/camelCase.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.camelCase = void 0;
|
|
5
|
+
const to_string_function_1 = require("./to-string.function");
|
|
6
|
+
const upper_first_function_1 = require("./upper-first.function");
|
|
7
|
+
const words_function_1 = require("./words.function");
|
|
8
|
+
/**
|
|
9
|
+
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
|
10
|
+
*
|
|
11
|
+
* @since 3.0.0
|
|
12
|
+
* @category String
|
|
13
|
+
* @param {string} [string=''] The string to convert.
|
|
14
|
+
* @returns {string} Returns the camel cased string.
|
|
15
|
+
* @see lowerCase, kebabCase, snakeCase, startCase, upperCase, upperFirst
|
|
16
|
+
* @example
|
|
17
|
+
*
|
|
18
|
+
* camelCase('Foo Bar')
|
|
19
|
+
* // => 'fooBar'
|
|
20
|
+
*
|
|
21
|
+
* camelCase('--foo-bar--')
|
|
22
|
+
* // => 'fooBar'
|
|
23
|
+
*
|
|
24
|
+
* camelCase('__FOO_BAR__')
|
|
25
|
+
* // => 'fooBar'
|
|
26
|
+
*/
|
|
27
|
+
const camelCase = (string) => (0, words_function_1.words)((0, to_string_function_1.toString)(string).replace(/['\u2019]/g, '')).reduce((result, word, index) => {
|
|
28
|
+
word = word.toLowerCase();
|
|
29
|
+
return result + (index ? (0, upper_first_function_1.upperFirst)(word) : word);
|
|
30
|
+
}, '');
|
|
31
|
+
exports.camelCase = camelCase;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function convertObjectToLiteral(literalFn: (k: string, v: any) => string, delimiter: string, keyValuePairs: Record<string, any>): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertObjectToLiteral = convertObjectToLiteral;
|
|
4
|
+
function convertObjectToLiteral(literalFn, delimiter, keyValuePairs) {
|
|
5
|
+
return Object.entries(keyValuePairs)
|
|
6
|
+
.filter(([, v]) => !!v || v === 0 || v === false)
|
|
7
|
+
.map(([k, v]) => literalFn(k, v?.toString?.()))
|
|
8
|
+
.join(delimiter);
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatUsd(rawAmount?: number | string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatUsd = formatUsd;
|
|
4
|
+
function formatUsd(rawAmount) {
|
|
5
|
+
const amount = Number(rawAmount) || 0;
|
|
6
|
+
return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(amount);
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fromBooleanString(value?: string): value is "true";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fromCalendarDate(input: string | Date | undefined | null): Date | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fromCalendarDate = fromCalendarDate;
|
|
4
|
+
const add_offset_function_1 = require("./add-offset.function");
|
|
5
|
+
function fromCalendarDate(input) {
|
|
6
|
+
return (0, add_offset_function_1.addOffset)(input) || null;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fromCsvString(value?: string): string[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDateRangeForMonth = getDateRangeForMonth;
|
|
4
|
+
const millis_per_day_constant_1 = require("../constants/millis-per-day.constant");
|
|
5
|
+
function getDateRangeForMonth(year, month) {
|
|
6
|
+
const startDate = new Date(+Date.UTC(year, month + -1, 0) + millis_per_day_constant_1.MILLIS_PER_DAY);
|
|
7
|
+
const endDate = new Date(+Date.UTC(year, month + 0, 0) + millis_per_day_constant_1.MILLIS_PER_DAY);
|
|
8
|
+
return { startDate, endDate };
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getTag(value: any): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// https://github.com/lodash/lodash/blob/main/src/.internal/getTag.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getTag = getTag;
|
|
5
|
+
const toString = Object.prototype.toString;
|
|
6
|
+
function getTag(value) {
|
|
7
|
+
if (value == null) {
|
|
8
|
+
return value === undefined ? '[object Undefined]' : '[object Null]';
|
|
9
|
+
}
|
|
10
|
+
return toString.call(value);
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isSymbol(value: any): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// https://github.com/lodash/lodash/blob/main/src/isSymbol.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.isSymbol = isSymbol;
|
|
5
|
+
const get_tag_function_1 = require("./get-tag.function");
|
|
6
|
+
function isSymbol(value) {
|
|
7
|
+
const type = typeof value;
|
|
8
|
+
return (type === 'symbol' ||
|
|
9
|
+
(type === 'object' && value != null && (0, get_tag_function_1.getTag)(value) === '[object Symbol]'));
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isValidDate(dateString: string | Date): Date | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isValidDate = isValidDate;
|
|
4
|
+
function isValidDate(dateString) {
|
|
5
|
+
const date = new Date(dateString);
|
|
6
|
+
return (date instanceof Date && !isNaN(date.getTime())) ? date : undefined;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function kebabCase(string: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.kebabCase = kebabCase;
|
|
4
|
+
const snake_case_function_1 = require("./snake-case.function");
|
|
5
|
+
function kebabCase(string) {
|
|
6
|
+
return (0, snake_case_function_1.snakeCase)(string).replace(/_/g, '-');
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function mapEnumToArrayOfValues(enumeration: any): any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapEnumToLookupArray = mapEnumToLookupArray;
|
|
4
|
+
function mapEnumToLookupArray(enumeration) {
|
|
5
|
+
return Object.entries(enumeration)
|
|
6
|
+
.map(([key, value]) => ({ value, display: key.replace(/_/g, ' ') }));
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapEnumToOptions = mapEnumToOptions;
|
|
4
|
+
function mapEnumToOptions(enumeration, includeBlank = true) {
|
|
5
|
+
const enumArray = Object.entries(enumeration).map(([key, value]) => ({ value, display: key.replace(/_/g, ' ') }));
|
|
6
|
+
return includeBlank
|
|
7
|
+
? [{ display: '', value: '' }, ...enumArray]
|
|
8
|
+
: enumArray;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function money(rawValue: number | string): string | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.money = money;
|
|
4
|
+
const remove_alpha_chars_function_1 = require("./remove-alpha-chars.function");
|
|
5
|
+
function money(rawValue) {
|
|
6
|
+
if (!rawValue) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const scrubbed = (0, remove_alpha_chars_function_1.removeAlphaChars)(rawValue);
|
|
10
|
+
const amount = Number(scrubbed);
|
|
11
|
+
if (!amount && amount !== 0) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const formatter = new Intl.NumberFormat('en-US', {
|
|
15
|
+
style: 'currency',
|
|
16
|
+
currency: 'USD'
|
|
17
|
+
});
|
|
18
|
+
return formatter.format(Number(amount));
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseBool(asc: string | boolean | null | undefined): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function propertiesToArray(obj: Record<string, any>): any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// credit https://stackoverflow.com/questions/15690706/recursively-looping-through-an-object-to-build-a-property-list/53620876#53620876
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.propertiesToArray = propertiesToArray;
|
|
5
|
+
function propertiesToArray(obj) {
|
|
6
|
+
const isObject = (val) => val && typeof val === 'object' && !Array.isArray(val);
|
|
7
|
+
const addDelimiter = (a, b) => a ? `${a}.${b}` : b;
|
|
8
|
+
const paths = (obj = {}, head = '') => {
|
|
9
|
+
return Object.entries(obj)
|
|
10
|
+
.reduce((product, [key, value]) => {
|
|
11
|
+
let fullPath = addDelimiter(head, key);
|
|
12
|
+
return isObject(value) ?
|
|
13
|
+
product.concat(paths(value, fullPath))
|
|
14
|
+
: product.concat(fullPath);
|
|
15
|
+
}, []);
|
|
16
|
+
};
|
|
17
|
+
return paths(obj);
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function removeAlphaChars(input?: string | number): string | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeAlphaChars = removeAlphaChars;
|
|
4
|
+
const decimal_regex_constant_1 = require("../constants/decimal-regex.constant");
|
|
5
|
+
function removeAlphaChars(input) {
|
|
6
|
+
if (!input) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
return input.toString().match(decimal_regex_constant_1.decimalRegex)?.join?.('');
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function removeElementAtIndex<T>(array: T[], indexToRemove: number): T[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeElementAtIndex = removeElementAtIndex;
|
|
4
|
+
function removeElementAtIndex(array, indexToRemove) {
|
|
5
|
+
const newArray = [];
|
|
6
|
+
(array || []).forEach((element, index) => {
|
|
7
|
+
if (index !== indexToRemove) {
|
|
8
|
+
newArray.push(element);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
return newArray;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function round(numberToRound: number, scalingFactor: number): number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.round = round;
|
|
4
|
+
function round(numberToRound, scalingFactor) {
|
|
5
|
+
const scaledServingDose = numberToRound * scalingFactor;
|
|
6
|
+
return Math.round(scaledServingDose) / scalingFactor;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sanitizeFilename(filename: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable no-control-regex */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.sanitizeFilename = sanitizeFilename;
|
|
5
|
+
const _ = '_';
|
|
6
|
+
const asciiReplacementRegX = /\/|\?|:|\\|{|\^|'|\}|%|`|]|>|\[|~|<|#|\||"|!|\*/g;
|
|
7
|
+
const unicodeReplacementRegX = /[^\u0000-\u007F]/g;
|
|
8
|
+
function sanitizeFilename(filename) {
|
|
9
|
+
return filename.replace(unicodeReplacementRegX, _).replace(asciiReplacementRegX, _).replace(/_+/g, _).trim();
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sleep(milliseconds?: number): Promise<unknown>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts `string` to
|
|
3
|
+
* [snake case](https://en.wikipedia.org/wiki/Snake_case).
|
|
4
|
+
*
|
|
5
|
+
* @since 3.0.0
|
|
6
|
+
* @category String
|
|
7
|
+
* @param {string} [string=''] The string to convert.
|
|
8
|
+
* @returns {string} Returns the snake cased string.
|
|
9
|
+
* @see camelCase, lowerCase, kebabCase, startCase, upperCase, upperFirst
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* snakeCase('Foo Bar')
|
|
13
|
+
* // => 'foo_bar'
|
|
14
|
+
*
|
|
15
|
+
* snakeCase('fooBar')
|
|
16
|
+
* // => 'foo_bar'
|
|
17
|
+
*
|
|
18
|
+
* snakeCase('--FOO-BAR--')
|
|
19
|
+
* // => 'foo_bar'
|
|
20
|
+
*
|
|
21
|
+
* snakeCase('foo2bar')
|
|
22
|
+
* // => 'foo_2_bar'
|
|
23
|
+
*/
|
|
24
|
+
export declare function snakeCase(string: string): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// source https://github.com/lodash/lodash/blob/master/snakeCase.js
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.snakeCase = snakeCase;
|
|
5
|
+
const words_function_1 = require("./words.function");
|
|
6
|
+
/**
|
|
7
|
+
* Converts `string` to
|
|
8
|
+
* [snake case](https://en.wikipedia.org/wiki/Snake_case).
|
|
9
|
+
*
|
|
10
|
+
* @since 3.0.0
|
|
11
|
+
* @category String
|
|
12
|
+
* @param {string} [string=''] The string to convert.
|
|
13
|
+
* @returns {string} Returns the snake cased string.
|
|
14
|
+
* @see camelCase, lowerCase, kebabCase, startCase, upperCase, upperFirst
|
|
15
|
+
* @example
|
|
16
|
+
*
|
|
17
|
+
* snakeCase('Foo Bar')
|
|
18
|
+
* // => 'foo_bar'
|
|
19
|
+
*
|
|
20
|
+
* snakeCase('fooBar')
|
|
21
|
+
* // => 'foo_bar'
|
|
22
|
+
*
|
|
23
|
+
* snakeCase('--FOO-BAR--')
|
|
24
|
+
* // => 'foo_bar'
|
|
25
|
+
*
|
|
26
|
+
* snakeCase('foo2bar')
|
|
27
|
+
* // => 'foo_2_bar'
|
|
28
|
+
*/
|
|
29
|
+
function snakeCase(string) {
|
|
30
|
+
return ((0, words_function_1.words)(string.replace(/['\u2019]/g, '')).reduce((result, word, index) => (result + (index ? '_' : '') + word.toLowerCase()), ''));
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function subtractOffset(input: string | Date | undefined | null): Date | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subtractOffset = subtractOffset;
|
|
4
|
+
const millis_per_minute_constant_1 = require("../constants/millis-per-minute.constant");
|
|
5
|
+
const try_parse_date_function_1 = require("./try-parse-date.function");
|
|
6
|
+
function subtractOffset(input) {
|
|
7
|
+
const parsed = (0, try_parse_date_function_1.tryParseDate)(input);
|
|
8
|
+
if (!parsed) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const offset = (parsed).getTimezoneOffset();
|
|
12
|
+
return new Date(parsed.valueOf() - offset * millis_per_minute_constant_1.MILLIS_PER_MINUTE);
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toBooleanString(val?: boolean): "true" | "false";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toCalendarDate(input: string | Date | undefined | null): string | undefined;
|