@onivoro/isomorphic-common 0.0.18 → 0.1.0

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.
Files changed (108) hide show
  1. package/index.cjs.js +465 -0
  2. package/package.json +8 -7
  3. package/README.md +0 -11
  4. package/src/index.d.ts +0 -31
  5. package/src/index.js +0 -35
  6. package/src/index.js.map +0 -1
  7. package/src/lib/constants/millis-per-day.constant.d.ts +0 -1
  8. package/src/lib/constants/millis-per-day.constant.js +0 -6
  9. package/src/lib/constants/millis-per-day.constant.js.map +0 -1
  10. package/src/lib/constants/millis-per-hour.constant.d.ts +0 -1
  11. package/src/lib/constants/millis-per-hour.constant.js +0 -6
  12. package/src/lib/constants/millis-per-hour.constant.js.map +0 -1
  13. package/src/lib/constants/millis-per-minute.constant.d.ts +0 -1
  14. package/src/lib/constants/millis-per-minute.constant.js +0 -5
  15. package/src/lib/constants/millis-per-minute.constant.js.map +0 -1
  16. package/src/lib/functions/add-offset.function.d.ts +0 -1
  17. package/src/lib/functions/add-offset.function.js +0 -15
  18. package/src/lib/functions/add-offset.function.js.map +0 -1
  19. package/src/lib/functions/camel-case.function.d.ts +0 -20
  20. package/src/lib/functions/camel-case.function.js +0 -32
  21. package/src/lib/functions/camel-case.function.js.map +0 -1
  22. package/src/lib/functions/convert-object-to-literal.function.d.ts +0 -1
  23. package/src/lib/functions/convert-object-to-literal.function.js +0 -11
  24. package/src/lib/functions/convert-object-to-literal.function.js.map +0 -1
  25. package/src/lib/functions/from-boolean-string.function.d.ts +0 -1
  26. package/src/lib/functions/from-boolean-string.function.js +0 -8
  27. package/src/lib/functions/from-boolean-string.function.js.map +0 -1
  28. package/src/lib/functions/from-calendar-date.function.d.ts +0 -1
  29. package/src/lib/functions/from-calendar-date.function.js +0 -9
  30. package/src/lib/functions/from-calendar-date.function.js.map +0 -1
  31. package/src/lib/functions/from-csv-string.function.d.ts +0 -1
  32. package/src/lib/functions/from-csv-string.function.js +0 -8
  33. package/src/lib/functions/from-csv-string.function.js.map +0 -1
  34. package/src/lib/functions/get-tag.function.d.ts +0 -1
  35. package/src/lib/functions/get-tag.function.js +0 -13
  36. package/src/lib/functions/get-tag.function.js.map +0 -1
  37. package/src/lib/functions/is-symbol.function.d.ts +0 -1
  38. package/src/lib/functions/is-symbol.function.js +0 -12
  39. package/src/lib/functions/is-symbol.function.js.map +0 -1
  40. package/src/lib/functions/kebab-case.function.d.ts +0 -1
  41. package/src/lib/functions/kebab-case.function.js +0 -9
  42. package/src/lib/functions/kebab-case.function.js.map +0 -1
  43. package/src/lib/functions/parse-bool.function.d.ts +0 -1
  44. package/src/lib/functions/parse-bool.function.js +0 -8
  45. package/src/lib/functions/parse-bool.function.js.map +0 -1
  46. package/src/lib/functions/properties-to-array.function.d.ts +0 -1
  47. package/src/lib/functions/properties-to-array.function.js +0 -20
  48. package/src/lib/functions/properties-to-array.function.js.map +0 -1
  49. package/src/lib/functions/sanitize-filename.function.d.ts +0 -1
  50. package/src/lib/functions/sanitize-filename.function.js +0 -12
  51. package/src/lib/functions/sanitize-filename.function.js.map +0 -1
  52. package/src/lib/functions/snake-case.function.d.ts +0 -24
  53. package/src/lib/functions/snake-case.function.js +0 -33
  54. package/src/lib/functions/snake-case.function.js.map +0 -1
  55. package/src/lib/functions/subtract-offset.function.d.ts +0 -1
  56. package/src/lib/functions/subtract-offset.function.js +0 -15
  57. package/src/lib/functions/subtract-offset.function.js.map +0 -1
  58. package/src/lib/functions/to-boolean-string.function.d.ts +0 -1
  59. package/src/lib/functions/to-boolean-string.function.js +0 -8
  60. package/src/lib/functions/to-boolean-string.function.js.map +0 -1
  61. package/src/lib/functions/to-calendar-date.function.d.ts +0 -1
  62. package/src/lib/functions/to-calendar-date.function.js +0 -13
  63. package/src/lib/functions/to-calendar-date.function.js.map +0 -1
  64. package/src/lib/functions/to-csv-string.function.d.ts +0 -1
  65. package/src/lib/functions/to-csv-string.function.js +0 -8
  66. package/src/lib/functions/to-csv-string.function.js.map +0 -1
  67. package/src/lib/functions/to-decimal-base.function.d.ts +0 -1
  68. package/src/lib/functions/to-decimal-base.function.js +0 -23
  69. package/src/lib/functions/to-decimal-base.function.js.map +0 -1
  70. package/src/lib/functions/to-dollars-and-cents.function.d.ts +0 -1
  71. package/src/lib/functions/to-dollars-and-cents.function.js +0 -16
  72. package/src/lib/functions/to-dollars-and-cents.function.js.map +0 -1
  73. package/src/lib/functions/to-locale-date-string.function.d.ts +0 -1
  74. package/src/lib/functions/to-locale-date-string.function.js +0 -9
  75. package/src/lib/functions/to-locale-date-string.function.js.map +0 -1
  76. package/src/lib/functions/to-locale-time-string.function.d.ts +0 -1
  77. package/src/lib/functions/to-locale-time-string.function.js +0 -11
  78. package/src/lib/functions/to-locale-time-string.function.js.map +0 -1
  79. package/src/lib/functions/to-string.function.d.ts +0 -1
  80. package/src/lib/functions/to-string.function.js +0 -27
  81. package/src/lib/functions/to-string.function.js.map +0 -1
  82. package/src/lib/functions/to-unique-array.function.d.ts +0 -1
  83. package/src/lib/functions/to-unique-array.function.js +0 -8
  84. package/src/lib/functions/to-unique-array.function.js.map +0 -1
  85. package/src/lib/functions/to-words.function.d.ts +0 -1
  86. package/src/lib/functions/to-words.function.js +0 -91
  87. package/src/lib/functions/to-words.function.js.map +0 -1
  88. package/src/lib/functions/try-parse-date.function.d.ts +0 -1
  89. package/src/lib/functions/try-parse-date.function.js +0 -18
  90. package/src/lib/functions/try-parse-date.function.js.map +0 -1
  91. package/src/lib/functions/unicode-words.const.d.ts +0 -8
  92. package/src/lib/functions/unicode-words.const.js +0 -70
  93. package/src/lib/functions/unicode-words.const.js.map +0 -1
  94. package/src/lib/functions/upper-first.function.d.ts +0 -1
  95. package/src/lib/functions/upper-first.function.js +0 -14
  96. package/src/lib/functions/upper-first.function.js.map +0 -1
  97. package/src/lib/functions/words.function.d.ts +0 -17
  98. package/src/lib/functions/words.function.js +0 -36
  99. package/src/lib/functions/words.function.js.map +0 -1
  100. package/src/lib/interfaces/axios-wrapped-nest-exception.interface.d.ts +0 -5
  101. package/src/lib/interfaces/axios-wrapped-nest-exception.interface.js +0 -3
  102. package/src/lib/interfaces/axios-wrapped-nest-exception.interface.js.map +0 -1
  103. package/src/lib/interfaces/entity-provider.interface.d.ts +0 -9
  104. package/src/lib/interfaces/entity-provider.interface.js +0 -3
  105. package/src/lib/interfaces/entity-provider.interface.js.map +0 -1
  106. package/src/lib/interfaces/keys-of.type.d.ts +0 -3
  107. package/src/lib/interfaces/keys-of.type.js +0 -3
  108. package/src/lib/interfaces/keys-of.type.js.map +0 -1
@@ -1,91 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toWords = void 0;
4
- const MAX_SAFE_INTEGER = 9007199254740991;
5
- const TEN = 10;
6
- const ONE_HUNDRED = 100;
7
- const ONE_THOUSAND = 1000;
8
- const ONE_MILLION = 1000000;
9
- const ONE_BILLION = 1000000000;
10
- const ONE_TRILLION = 1000000000000;
11
- const ONE_QUADRILLION = 1000000000000000;
12
- const MAX = MAX_SAFE_INTEGER + 1;
13
- const LESS_THAN_TWENTY = [
14
- 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten',
15
- 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'
16
- ];
17
- const TENTHS_LESS_THAN_HUNDRED = [
18
- 'zero', 'ten', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'
19
- ];
20
- function toWords(number) {
21
- let words;
22
- const num = parseInt(number, 10);
23
- if (!isFinite(num)) {
24
- throw new TypeError('Not a finite number: ' + number + ' (' + typeof number + ')');
25
- }
26
- if (!isSafeNumber(num)) {
27
- throw new RangeError('Input is not a safe number, it\'s either too large or too small.');
28
- }
29
- words = generateWords(num);
30
- return words;
31
- }
32
- exports.toWords = toWords;
33
- function generateWords(number, words) {
34
- let remainder, word;
35
- if (number === 0) {
36
- return !words ? 'zero' : words.join(' ').replace(/,$/, '');
37
- }
38
- if (!words) {
39
- words = [];
40
- }
41
- if (number < 0) {
42
- words.push('minus');
43
- number = Math.abs(number);
44
- }
45
- if (number < 20) {
46
- remainder = 0;
47
- word = LESS_THAN_TWENTY[number];
48
- }
49
- else if (number < ONE_HUNDRED) {
50
- remainder = number % TEN;
51
- word = TENTHS_LESS_THAN_HUNDRED[Math.floor(number / TEN)];
52
- if (remainder) {
53
- word += '-' + LESS_THAN_TWENTY[remainder];
54
- remainder = 0;
55
- }
56
- }
57
- else if (number < ONE_THOUSAND) {
58
- remainder = number % ONE_HUNDRED;
59
- word = generateWords(Math.floor(number / ONE_HUNDRED)) + ' hundred';
60
- }
61
- else if (number < ONE_MILLION) {
62
- remainder = number % ONE_THOUSAND;
63
- word = generateWords(Math.floor(number / ONE_THOUSAND)) + ' thousand,';
64
- }
65
- else if (number < ONE_BILLION) {
66
- remainder = number % ONE_MILLION;
67
- word = generateWords(Math.floor(number / ONE_MILLION)) + ' million,';
68
- }
69
- else if (number < ONE_TRILLION) {
70
- remainder = number % ONE_BILLION;
71
- word = generateWords(Math.floor(number / ONE_BILLION)) + ' billion,';
72
- }
73
- else if (number < ONE_QUADRILLION) {
74
- remainder = number % ONE_TRILLION;
75
- word = generateWords(Math.floor(number / ONE_TRILLION)) + ' trillion,';
76
- }
77
- else if (number <= MAX) {
78
- remainder = number % ONE_QUADRILLION;
79
- word = generateWords(Math.floor(number / ONE_QUADRILLION)) +
80
- ' quadrillion,';
81
- }
82
- words.push(word);
83
- return generateWords(remainder, words);
84
- }
85
- function isFinite(value) {
86
- return !(typeof value !== 'number' || value !== value || value === Infinity || value === -Infinity);
87
- }
88
- function isSafeNumber(value) {
89
- return typeof value === 'number' && Math.abs(value) <= MAX_SAFE_INTEGER;
90
- }
91
- //# sourceMappingURL=to-words.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"to-words.function.js","sourceRoot":"","sources":["../../../../../../libs/isomorphic-common/src/lib/functions/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KAAK,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,gBAAgB,CAAC;AAC5E,CAAC"}
@@ -1 +0,0 @@
1
- export declare function tryParseDate(input: string | Date | undefined | null): Date | undefined;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tryParseDate = void 0;
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
- }
17
- exports.tryParseDate = tryParseDate;
18
- //# sourceMappingURL=try-parse-date.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"try-parse-date.function.js","sourceRoot":"","sources":["../../../../../../libs/isomorphic-common/src/lib/functions/try-parse-date.function.ts"],"names":[],"mappings":";;;AAAA,SAAgB,YAAY,CAAC,KAAuC;IAChE,IAAI,CAAC,KAAK,EAAE;QACR,OAAO;KACV;IAED,IAAG,KAAK,YAAY,IAAI,EAAE;QACtB,OAAO,KAAK,CAAC;KAChB;IAED,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IAE7B,IAAK,IAAY,IAAI,cAAc,EAAE;QACjC,OAAO;KACV;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAhBD,oCAgBC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Splits a Unicode `string` into an array of its words.
3
- *
4
- * @private
5
- * @param {string} The string to inspect.
6
- * @returns {Array} Returns the words of `string`.
7
- */
8
- export declare function unicodeWords(string: any): any;
@@ -1,70 +0,0 @@
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 = void 0;
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
- }
69
- exports.unicodeWords = unicodeWords;
70
- //# sourceMappingURL=unicode-words.const.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unicode-words.const.js","sourceRoot":"","sources":["../../../../../../libs/isomorphic-common/src/lib/functions/unicode-words.const.ts"],"names":[],"mappings":";AAAA,gFAAgF;;;AAEhF,iDAAiD;AACjD,MAAM,aAAa,GAAG,iBAAiB,CAAA;AACvC,MAAM,iBAAiB,GAAG,iBAAiB,CAAA;AAC3C,MAAM,qBAAqB,GAAG,iBAAiB,CAAA;AAC/C,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAC7C,MAAM,yBAAyB,GAAG,iBAAiB,CAAA;AACnD,MAAM,2BAA2B,GAAG,iBAAiB,CAAA;AACrD,MAAM,YAAY,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,yBAAyB,GAAG,2BAA2B,CAAA;AAC9I,MAAM,cAAc,GAAG,iBAAiB,CAAA;AACxC,MAAM,YAAY,GAAG,2BAA2B,CAAA;AAChD,MAAM,aAAa,GAAG,sBAAsB,CAAA;AAC5C,MAAM,cAAc,GAAG,8CAA8C,CAAA;AACrE,MAAM,kBAAkB,GAAG,iBAAiB,CAAA;AAC5C,MAAM,YAAY,GAAG,8JAA8J,CAAA;AACnL,MAAM,YAAY,GAAG,2BAA2B,CAAA;AAChD,MAAM,UAAU,GAAG,gBAAgB,CAAA;AACnC,MAAM,YAAY,GAAG,aAAa,GAAG,cAAc,GAAG,kBAAkB,GAAG,YAAY,CAAA;AAEvF,8CAA8C;AAC9C,MAAM,MAAM,GAAG,WAAW,CAAA;AAC1B,MAAM,OAAO,GAAG,IAAI,YAAY,GAAG,CAAA;AACnC,MAAM,OAAO,GAAG,IAAI,YAAY,GAAG,CAAA;AACnC,MAAM,OAAO,GAAG,KAAK,CAAA;AACrB,MAAM,SAAS,GAAG,IAAI,cAAc,GAAG,CAAA;AACvC,MAAM,OAAO,GAAG,IAAI,YAAY,GAAG,CAAA;AACnC,MAAM,MAAM,GAAG,KAAK,aAAa,GAAG,YAAY,GAAG,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,GA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G,CAAC,GAAG;IAClF,GAAG,WAAW,IAAI,eAAe,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG;IACzF,GAAG,OAAO,IAAI,WAAW,IAAI,eAAe,EAAE;IAC9C,GAAG,OAAO,IAAI,eAAe,EAAE;IAC/B,UAAU;IACV,UAAU;IACV,GAAG,OAAO,GAAG;IACb,OAAO;CACR,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAA;AAEjB;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,MAAM;IACjC,OAAO,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AACrC,CAAC;AAFD,oCAEC"}
@@ -1 +0,0 @@
1
- export declare function upperFirst(string: any): any;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.upperFirst = void 0;
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
- }
13
- exports.upperFirst = upperFirst;
14
- //# sourceMappingURL=upper-first.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upper-first.function.js","sourceRoot":"","sources":["../../../../../../libs/isomorphic-common/src/lib/functions/upper-first.function.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CAAC,MAAM;IAC/B,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,MAAM,CAAC;KACf;IAED,OAAO,MAAM;SACV,KAAK,CAAC,EAAE,CAAC;SACT,GAAG,CAAC,CAAC,IAAY,EAAE,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC;SAC5E,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AATD,gCASC"}
@@ -1,17 +0,0 @@
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): any;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- // source https://github.com/lodash/lodash/blob/master/words.js
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.words = void 0;
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
- }
35
- exports.words = words;
36
- //# sourceMappingURL=words.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"words.function.js","sourceRoot":"","sources":["../../../../../../libs/isomorphic-common/src/lib/functions/words.function.ts"],"names":[],"mappings":";AAAA,+DAA+D;;;AAE/D,+DAAqD;AAErD,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAC/C,oEAAoE,CACrE,CAAA;AAED,+DAA+D;AAC/D,MAAM,WAAW,GAAG,2CAA2C,CAAA;AAE/D,SAAS,UAAU,CAAC,MAAM;IACxB,OAAO,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;AAClC,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,KAAK,CAAC,MAAc,EAAE,OAAgB;IACpD,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAA,kCAAY,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;QACjF,OAAO,MAAM,IAAI,EAAE,CAAA;KACpB;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAA;AACpC,CAAC;AAND,sBAMC"}
@@ -1,5 +0,0 @@
1
- export interface IAxiosWrappedNestException {
2
- statusCode: number;
3
- error: string;
4
- message: string;
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=axios-wrapped-nest-exception.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axios-wrapped-nest-exception.interface.js","sourceRoot":"","sources":["../../../../../../libs/isomorphic-common/src/lib/interfaces/axios-wrapped-nest-exception.interface.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=entity-provider.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity-provider.interface.js","sourceRoot":"","sources":["../../../../../../libs/isomorphic-common/src/lib/interfaces/entity-provider.interface.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export type TKeysOf<TKeySource, TValue> = {
2
- [key in keyof TKeySource]: TValue;
3
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=keys-of.type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keys-of.type.js","sourceRoot":"","sources":["../../../../../../libs/isomorphic-common/src/lib/interfaces/keys-of.type.ts"],"names":[],"mappings":""}