@onivoro/isomorphic-common 22.0.4 → 22.0.7
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/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/constants/regexes.constant.d.ts +27 -0
- package/dist/cjs/lib/constants/regexes.constant.js +30 -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/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/constants/regexes.constant.d.ts +27 -0
- package/dist/esm/lib/constants/regexes.constant.js +30 -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/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/constants/regexes.constant.d.ts +27 -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,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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toCalendarDate = toCalendarDate;
|
|
4
|
+
const subtract_offset_function_1 = require("./subtract-offset.function");
|
|
5
|
+
function toCalendarDate(input) {
|
|
6
|
+
const parsed = (0, subtract_offset_function_1.subtractOffset)(input);
|
|
7
|
+
if (!parsed) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
return parsed?.toISOString().split('T')[0];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toCsvString(val?: string[]): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toDecimalBase(n: string | number, base?: number): number;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toDecimalBase = toDecimalBase;
|
|
4
|
+
function toDecimalBase(n, base = 16) {
|
|
5
|
+
const digits = n.toString().split('');
|
|
6
|
+
let answer = 0;
|
|
7
|
+
digits.reverse().forEach(function (d, i) {
|
|
8
|
+
let actualNumber = Number(d);
|
|
9
|
+
if (!actualNumber && actualNumber !== 0) {
|
|
10
|
+
const codeAt = d.charCodeAt(0);
|
|
11
|
+
if (codeAt >= 97) {
|
|
12
|
+
actualNumber = codeAt - 87;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
actualNumber = codeAt - 55;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
answer = answer + actualNumber * Math.pow(base, i);
|
|
19
|
+
});
|
|
20
|
+
return answer;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toDollarsAndCents(input: string | number): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toDollarsAndCents = toDollarsAndCents;
|
|
4
|
+
const remove_alpha_chars_function_1 = require("./remove-alpha-chars.function");
|
|
5
|
+
const to_words_function_1 = require("./to-words.function");
|
|
6
|
+
function toDollarsAndCents(input) {
|
|
7
|
+
const number = (0, remove_alpha_chars_function_1.removeAlphaChars)(input);
|
|
8
|
+
const num = Number(number);
|
|
9
|
+
const decimal = (Math.round((num % 1) * 100)) / 100;
|
|
10
|
+
const int = num - decimal;
|
|
11
|
+
const dollars = `${(0, to_words_function_1.toWords)(int)} dollars`;
|
|
12
|
+
if (!decimal) {
|
|
13
|
+
return dollars;
|
|
14
|
+
}
|
|
15
|
+
return `${dollars} and ${(0, to_words_function_1.toWords)(decimal * 100)} cents`;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toString(value: any): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// https://github.com/lodash/lodash/blob/main/src/toString.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.toString = toString;
|
|
5
|
+
const is_symbol_function_1 = require("./is-symbol.function");
|
|
6
|
+
/** Used as references for various `Number` constants. */
|
|
7
|
+
const INFINITY = 1 / 0;
|
|
8
|
+
function toString(value) {
|
|
9
|
+
if (value == null) {
|
|
10
|
+
return '';
|
|
11
|
+
}
|
|
12
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
13
|
+
if (typeof value === 'string') {
|
|
14
|
+
return value;
|
|
15
|
+
}
|
|
16
|
+
if (Array.isArray(value)) {
|
|
17
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
18
|
+
return `${value.map((other) => (other == null ? other : toString(other)))}`;
|
|
19
|
+
}
|
|
20
|
+
if ((0, is_symbol_function_1.isSymbol)(value)) {
|
|
21
|
+
return value.toString();
|
|
22
|
+
}
|
|
23
|
+
const result = `${value}`;
|
|
24
|
+
return result === '0' && 1 / value === -INFINITY ? '-0' : result;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toUniqueArray<TElement>(elements: TElement[]): TElement[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toWords(input: number | string): string;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toWords = toWords;
|
|
4
|
+
const remove_alpha_chars_function_1 = require("./remove-alpha-chars.function");
|
|
5
|
+
const MAX_SAFE_INTEGER = 9007199254740991;
|
|
6
|
+
const TEN = 10;
|
|
7
|
+
const ONE_HUNDRED = 100;
|
|
8
|
+
const ONE_THOUSAND = 1000;
|
|
9
|
+
const ONE_MILLION = 1000000;
|
|
10
|
+
const ONE_BILLION = 1000000000;
|
|
11
|
+
const ONE_TRILLION = 1000000000000;
|
|
12
|
+
const ONE_QUADRILLION = 1000000000000000;
|
|
13
|
+
const MAX = MAX_SAFE_INTEGER + 1;
|
|
14
|
+
const LESS_THAN_TWENTY = [
|
|
15
|
+
'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten',
|
|
16
|
+
'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'
|
|
17
|
+
];
|
|
18
|
+
const TENTHS_LESS_THAN_HUNDRED = [
|
|
19
|
+
'zero', 'ten', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'
|
|
20
|
+
];
|
|
21
|
+
function toWords(input) {
|
|
22
|
+
let words;
|
|
23
|
+
const number = (0, remove_alpha_chars_function_1.removeAlphaChars)(input) || '0';
|
|
24
|
+
const num = parseInt(number, 10);
|
|
25
|
+
if (!isFinite(num)) {
|
|
26
|
+
throw new TypeError('Not a finite number: ' + number + ' (' + typeof number + ')');
|
|
27
|
+
}
|
|
28
|
+
if (!isSafeNumber(num)) {
|
|
29
|
+
throw new RangeError('Input is not a safe number, it\'s either too large or too small.');
|
|
30
|
+
}
|
|
31
|
+
words = generateWords(num);
|
|
32
|
+
return words;
|
|
33
|
+
}
|
|
34
|
+
function generateWords(number, words) {
|
|
35
|
+
let remainder, word;
|
|
36
|
+
if (number === 0) {
|
|
37
|
+
return !words ? 'zero' : words.join(' ').replace(/,$/, '');
|
|
38
|
+
}
|
|
39
|
+
if (!words) {
|
|
40
|
+
words = [];
|
|
41
|
+
}
|
|
42
|
+
if (number < 0) {
|
|
43
|
+
words.push('minus');
|
|
44
|
+
number = Math.abs(number);
|
|
45
|
+
}
|
|
46
|
+
if (number < 20) {
|
|
47
|
+
remainder = 0;
|
|
48
|
+
word = LESS_THAN_TWENTY[number];
|
|
49
|
+
}
|
|
50
|
+
else if (number < ONE_HUNDRED) {
|
|
51
|
+
remainder = number % TEN;
|
|
52
|
+
word = TENTHS_LESS_THAN_HUNDRED[Math.floor(number / TEN)];
|
|
53
|
+
if (remainder) {
|
|
54
|
+
word += '-' + LESS_THAN_TWENTY[remainder];
|
|
55
|
+
remainder = 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else if (number < ONE_THOUSAND) {
|
|
59
|
+
remainder = number % ONE_HUNDRED;
|
|
60
|
+
word = generateWords(Math.floor(number / ONE_HUNDRED)) + ' hundred';
|
|
61
|
+
}
|
|
62
|
+
else if (number < ONE_MILLION) {
|
|
63
|
+
remainder = number % ONE_THOUSAND;
|
|
64
|
+
word = generateWords(Math.floor(number / ONE_THOUSAND)) + ' thousand,';
|
|
65
|
+
}
|
|
66
|
+
else if (number < ONE_BILLION) {
|
|
67
|
+
remainder = number % ONE_MILLION;
|
|
68
|
+
word = generateWords(Math.floor(number / ONE_MILLION)) + ' million,';
|
|
69
|
+
}
|
|
70
|
+
else if (number < ONE_TRILLION) {
|
|
71
|
+
remainder = number % ONE_BILLION;
|
|
72
|
+
word = generateWords(Math.floor(number / ONE_BILLION)) + ' billion,';
|
|
73
|
+
}
|
|
74
|
+
else if (number < ONE_QUADRILLION) {
|
|
75
|
+
remainder = number % ONE_TRILLION;
|
|
76
|
+
word = generateWords(Math.floor(number / ONE_TRILLION)) + ' trillion,';
|
|
77
|
+
}
|
|
78
|
+
else if (number <= MAX) {
|
|
79
|
+
remainder = number % ONE_QUADRILLION;
|
|
80
|
+
word = generateWords(Math.floor(number / ONE_QUADRILLION)) +
|
|
81
|
+
' quadrillion,';
|
|
82
|
+
}
|
|
83
|
+
words.push(word);
|
|
84
|
+
return generateWords(remainder, words);
|
|
85
|
+
}
|
|
86
|
+
function isFinite(value) {
|
|
87
|
+
return !(typeof value !== 'number' || value !== value || value === Infinity || value === -Infinity);
|
|
88
|
+
}
|
|
89
|
+
function isSafeNumber(value) {
|
|
90
|
+
return typeof value === 'number' && Math.abs(value) <= MAX_SAFE_INTEGER;
|
|
91
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tryJsonParse<T>(parseable: string | null | undefined): T | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tryJsonParse = tryJsonParse;
|
|
4
|
+
function tryJsonParse(parseable) {
|
|
5
|
+
if (typeof parseable === 'undefined') {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
return JSON.parse(parseable);
|
|
10
|
+
}
|
|
11
|
+
catch (_e) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tryJsonStringify<T>(object: T | null | undefined, fmtr?: any, spaces?: number): string | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tryJsonStringify = tryJsonStringify;
|
|
4
|
+
function tryJsonStringify(object, fmtr, spaces) {
|
|
5
|
+
if (typeof object === 'undefined') {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
return JSON.stringify(object, fmtr, spaces);
|
|
10
|
+
}
|
|
11
|
+
catch (_e) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tryParseDate(input: string | Date | undefined | null): Date | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tryParseDate = tryParseDate;
|
|
4
|
+
function tryParseDate(input) {
|
|
5
|
+
if (!input) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
if (input instanceof Date) {
|
|
9
|
+
return input;
|
|
10
|
+
}
|
|
11
|
+
const date = new Date(input);
|
|
12
|
+
if (date == 'Invalid Date') {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
return date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// source https://github.com/lodash/lodash/blob/master/.internal/unicodeWords.js
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.unicodeWords = unicodeWords;
|
|
5
|
+
/** Used to compose unicode character classes. */
|
|
6
|
+
const rsAstralRange = '\\ud800-\\udfff';
|
|
7
|
+
const rsComboMarksRange = '\\u0300-\\u036f';
|
|
8
|
+
const reComboHalfMarksRange = '\\ufe20-\\ufe2f';
|
|
9
|
+
const rsComboSymbolsRange = '\\u20d0-\\u20ff';
|
|
10
|
+
const rsComboMarksExtendedRange = '\\u1ab0-\\u1aff';
|
|
11
|
+
const rsComboMarksSupplementRange = '\\u1dc0-\\u1dff';
|
|
12
|
+
const rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange + rsComboMarksExtendedRange + rsComboMarksSupplementRange;
|
|
13
|
+
const rsDingbatRange = '\\u2700-\\u27bf';
|
|
14
|
+
const rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff';
|
|
15
|
+
const rsMathOpRange = '\\xac\\xb1\\xd7\\xf7';
|
|
16
|
+
const rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf';
|
|
17
|
+
const rsPunctuationRange = '\\u2000-\\u206f';
|
|
18
|
+
const rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000';
|
|
19
|
+
const rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde';
|
|
20
|
+
const rsVarRange = '\\ufe0e\\ufe0f';
|
|
21
|
+
const rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
|
22
|
+
/** Used to compose unicode capture groups. */
|
|
23
|
+
const rsApos = "['\u2019]";
|
|
24
|
+
const rsBreak = `[${rsBreakRange}]`;
|
|
25
|
+
const rsCombo = `[${rsComboRange}]`;
|
|
26
|
+
const rsDigit = '\\d';
|
|
27
|
+
const rsDingbat = `[${rsDingbatRange}]`;
|
|
28
|
+
const rsLower = `[${rsLowerRange}]`;
|
|
29
|
+
const rsMisc = `[^${rsAstralRange}${rsBreakRange + rsDigit + rsDingbatRange + rsLowerRange + rsUpperRange}]`;
|
|
30
|
+
const rsFitz = '\\ud83c[\\udffb-\\udfff]';
|
|
31
|
+
const rsModifier = `(?:${rsCombo}|${rsFitz})`;
|
|
32
|
+
const rsNonAstral = `[^${rsAstralRange}]`;
|
|
33
|
+
const rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}';
|
|
34
|
+
const rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]';
|
|
35
|
+
const rsUpper = `[${rsUpperRange}]`;
|
|
36
|
+
const rsZWJ = '\\u200d';
|
|
37
|
+
/** Used to compose unicode regexes. */
|
|
38
|
+
const rsMiscLower = `(?:${rsLower}|${rsMisc})`;
|
|
39
|
+
const rsMiscUpper = `(?:${rsUpper}|${rsMisc})`;
|
|
40
|
+
const rsOptContrLower = `(?:${rsApos}(?:d|ll|m|re|s|t|ve))?`;
|
|
41
|
+
const rsOptContrUpper = `(?:${rsApos}(?:D|LL|M|RE|S|T|VE))?`;
|
|
42
|
+
const reOptMod = `${rsModifier}?`;
|
|
43
|
+
const rsOptVar = `[${rsVarRange}]?`;
|
|
44
|
+
const rsOptJoin = `(?:${rsZWJ}(?:${[rsNonAstral, rsRegional, rsSurrPair].join('|')})${rsOptVar + reOptMod})*`;
|
|
45
|
+
const rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])';
|
|
46
|
+
const rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])';
|
|
47
|
+
const rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
|
48
|
+
const rsEmoji = `(?:${[rsDingbat, rsRegional, rsSurrPair].join('|')})${rsSeq}`;
|
|
49
|
+
const reUnicodeWords = RegExp([
|
|
50
|
+
`${rsUpper}?${rsLower}+${rsOptContrLower}(?=${[rsBreak, rsUpper, '$'].join('|')})`,
|
|
51
|
+
`${rsMiscUpper}+${rsOptContrUpper}(?=${[rsBreak, rsUpper + rsMiscLower, '$'].join('|')})`,
|
|
52
|
+
`${rsUpper}?${rsMiscLower}+${rsOptContrLower}`,
|
|
53
|
+
`${rsUpper}+${rsOptContrUpper}`,
|
|
54
|
+
rsOrdUpper,
|
|
55
|
+
rsOrdLower,
|
|
56
|
+
`${rsDigit}+`,
|
|
57
|
+
rsEmoji
|
|
58
|
+
].join('|'), 'g');
|
|
59
|
+
/**
|
|
60
|
+
* Splits a Unicode `string` into an array of its words.
|
|
61
|
+
*
|
|
62
|
+
* @private
|
|
63
|
+
* @param {string} The string to inspect.
|
|
64
|
+
* @returns {Array} Returns the words of `string`.
|
|
65
|
+
*/
|
|
66
|
+
function unicodeWords(string) {
|
|
67
|
+
return string.match(reUnicodeWords);
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function upperFirst(string: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.upperFirst = upperFirst;
|
|
4
|
+
function upperFirst(string) {
|
|
5
|
+
if (!string) {
|
|
6
|
+
return string;
|
|
7
|
+
}
|
|
8
|
+
return string
|
|
9
|
+
.split('')
|
|
10
|
+
.map((curr, i) => curr[!i ? 'toUpperCase' : 'toLowerCase']())
|
|
11
|
+
.join('');
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Splits `string` into an array of its words.
|
|
3
|
+
*
|
|
4
|
+
* @since 3.0.0
|
|
5
|
+
* @category String
|
|
6
|
+
* @param {string} [string=''] The string to inspect.
|
|
7
|
+
* @param {RegExp|string} [pattern] The pattern to match words.
|
|
8
|
+
* @returns {Array} Returns the words of `string`.
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* words('fred, barney, & pebbles')
|
|
12
|
+
* // => ['fred', 'barney', 'pebbles']
|
|
13
|
+
*
|
|
14
|
+
* words('fred, barney, & pebbles', /[^, ]+/g)
|
|
15
|
+
* // => ['fred', 'barney', '&', 'pebbles']
|
|
16
|
+
*/
|
|
17
|
+
export declare function words(string: string, pattern?: RegExp): [] | RegExpMatchArray;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// source https://github.com/lodash/lodash/blob/master/words.js
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.words = words;
|
|
5
|
+
const unicode_words_const_1 = require("./unicode-words.const");
|
|
6
|
+
const hasUnicodeWord = RegExp.prototype.test.bind(/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/);
|
|
7
|
+
/** Used to match words composed of alphanumeric characters. */
|
|
8
|
+
const reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
9
|
+
function asciiWords(string) {
|
|
10
|
+
return string.match(reAsciiWord);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Splits `string` into an array of its words.
|
|
14
|
+
*
|
|
15
|
+
* @since 3.0.0
|
|
16
|
+
* @category String
|
|
17
|
+
* @param {string} [string=''] The string to inspect.
|
|
18
|
+
* @param {RegExp|string} [pattern] The pattern to match words.
|
|
19
|
+
* @returns {Array} Returns the words of `string`.
|
|
20
|
+
* @example
|
|
21
|
+
*
|
|
22
|
+
* words('fred, barney, & pebbles')
|
|
23
|
+
* // => ['fred', 'barney', 'pebbles']
|
|
24
|
+
*
|
|
25
|
+
* words('fred, barney, & pebbles', /[^, ]+/g)
|
|
26
|
+
* // => ['fred', 'barney', '&', 'pebbles']
|
|
27
|
+
*/
|
|
28
|
+
function words(string, pattern) {
|
|
29
|
+
if (pattern === undefined) {
|
|
30
|
+
const result = hasUnicodeWord(string) ? (0, unicode_words_const_1.unicodeWords)(string) : asciiWords(string);
|
|
31
|
+
return result || [];
|
|
32
|
+
}
|
|
33
|
+
return string.match(pattern) || [];
|
|
34
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IEntityProvider<TEntity, TFindOneOptions, TFindManyOptions, TFindOptionsWhere, TQueryDeepPartialEntity> {
|
|
2
|
+
getOne: (options: TFindOneOptions) => Promise<TEntity>;
|
|
3
|
+
getMany: (options: TFindManyOptions) => Promise<TEntity[]>;
|
|
4
|
+
postOne: (body: Partial<TEntity>) => Promise<TEntity>;
|
|
5
|
+
postMany: (body: Partial<TEntity[]>) => Promise<TEntity[]>;
|
|
6
|
+
delete: (options: TFindOptionsWhere) => Promise<void>;
|
|
7
|
+
put: (options: TFindOptionsWhere, body: TQueryDeepPartialEntity) => Promise<void>;
|
|
8
|
+
patch: (options: TFindOptionsWhere, body: TQueryDeepPartialEntity) => Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from './lib/constants/millis-per-day.constant';
|
|
2
|
+
export * from './lib/constants/millis-per-hour.constant';
|
|
3
|
+
export * from './lib/constants/millis-per-minute.constant';
|
|
4
|
+
export * from './lib/constants/regexes.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/millis-per-day.constant"), exports);
|
|
18
|
+
__exportStar(require("./lib/constants/millis-per-hour.constant"), exports);
|
|
19
|
+
__exportStar(require("./lib/constants/millis-per-minute.constant"), exports);
|
|
20
|
+
__exportStar(require("./lib/constants/regexes.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 MILLIS_PER_DAY: number;
|