nhb-toolbox 4.12.30 → 4.12.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -21
- package/dist/cjs/form/convert.js +33 -15
- package/dist/cjs/index.js +9 -6
- package/dist/cjs/number/constants.js +17 -1
- package/dist/cjs/number/convert.js +36 -0
- package/dist/cjs/object/sanitize.js +16 -7
- package/dist/dts/array/basics.d.ts.map +1 -1
- package/dist/dts/colors/convert.d.ts.map +1 -1
- package/dist/dts/colors/helpers.d.ts.map +1 -1
- package/dist/dts/colors/random.d.ts.map +1 -1
- package/dist/dts/colors/utils.d.ts.map +1 -1
- package/dist/dts/date/plugins/businessPlugin.d.ts.map +1 -1
- package/dist/dts/date/plugins/dayPartPlugin.d.ts.map +1 -1
- package/dist/dts/date/plugins/fromNowPlugin.d.ts.map +1 -1
- package/dist/dts/date/plugins/palindromePlugin.d.ts.map +1 -1
- package/dist/dts/date/plugins/relativeTimePlugin.d.ts.map +1 -1
- package/dist/dts/date/plugins/seasonPlugin.d.ts.map +1 -1
- package/dist/dts/date/plugins/timeZonePlugin.d.ts.map +1 -1
- package/dist/dts/date/plugins/zodiacPlugin.d.ts.map +1 -1
- package/dist/dts/dom/query.d.ts.map +1 -1
- package/dist/dts/dom/storage.d.ts.map +1 -1
- package/dist/dts/form/convert.d.ts.map +1 -1
- package/dist/dts/guards/non-primitives.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/number/basics.d.ts.map +1 -1
- package/dist/dts/number/constants.d.ts +2 -0
- package/dist/dts/number/constants.d.ts.map +1 -1
- package/dist/dts/number/convert.d.ts +12 -0
- package/dist/dts/number/convert.d.ts.map +1 -1
- package/dist/dts/number/guards.d.ts.map +1 -1
- package/dist/dts/number/helpers.d.ts.map +1 -1
- package/dist/dts/number/prime.d.ts.map +1 -1
- package/dist/dts/number/utilities.d.ts.map +1 -1
- package/dist/dts/object/basics.d.ts.map +1 -1
- package/dist/dts/object/objectify.d.ts.map +1 -1
- package/dist/dts/object/sanitize.d.ts.map +1 -1
- package/dist/dts/object/types.d.ts +6 -6
- package/dist/dts/object/types.d.ts.map +1 -1
- package/dist/dts/string/basics.d.ts.map +1 -1
- package/dist/dts/string/convert.d.ts.map +1 -1
- package/dist/dts/string/guards.d.ts.map +1 -1
- package/dist/dts/string/utilities.d.ts.map +1 -1
- package/dist/dts/types/index.d.ts +1 -1
- package/dist/dts/types/index.d.ts.map +1 -1
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/esm/form/convert.js +33 -15
- package/dist/esm/index.js +1 -1
- package/dist/esm/number/constants.js +16 -0
- package/dist/esm/number/convert.js +36 -1
- package/dist/esm/object/sanitize.js +16 -7
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- markdownlint-disable-file MD024 -->
|
|
4
4
|
|
|
5
|
-
All notable changes to
|
|
5
|
+
All notable changes to the package will be documented here.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [4.12.32] - 2025-06-11
|
|
10
|
+
|
|
11
|
+
- **Fixed** a bug in `sanitizeData` and `createFormData` where key selections did not allow to choose keys with null/undefined value(s).
|
|
12
|
+
- **Fixed** a bug in `createFormData` where values of nested object(s) incorrectly converted to lowercase. Process `date-like object(s)` more efficiently in both utilities.
|
|
13
|
+
|
|
14
|
+
## [4.12.31] - 2025-06-10
|
|
15
|
+
|
|
16
|
+
- **Added** new utility to convert number or numeric string to ordinal word.
|
|
17
|
+
- **Updated** JSDoc for some types.
|
|
18
|
+
- **Upgraded** TypeScript version to `5.8.3` and other dev-dependencies.
|
|
19
|
+
|
|
9
20
|
## [4.12.28-30] - 2025-06-06
|
|
10
21
|
|
|
11
22
|
- **Resolved** a compile-time `not-assignable` error that occurred when optional properties were present in parameters of `sanitizeData`, `createFormData`, and other utility functions.
|
|
@@ -13,37 +24,37 @@ All notable changes to this package will be documented in this file.
|
|
|
13
24
|
|
|
14
25
|
## [4.12.27] - 2025-06-02
|
|
15
26
|
|
|
16
|
-
- Updated [README](README.md).
|
|
17
|
-
- Added new utility types, can be imported from `'nhb-toolbox/utils/types'`.
|
|
27
|
+
- **Updated** [README](README.md).
|
|
28
|
+
- **Added** new utility types, can be imported from `'nhb-toolbox/utils/types'`.
|
|
18
29
|
|
|
19
30
|
## [4.12.25-26] - 2025-06-02
|
|
20
31
|
|
|
21
|
-
- Updated JSDoc for some `Chronos` methods and exposed `INTERNALS` Symbol
|
|
32
|
+
- **Updated** JSDoc for some `Chronos` methods and exposed `INTERNALS` Symbol
|
|
22
33
|
|
|
23
34
|
## [4.12.24] - 2025-06-01
|
|
24
35
|
|
|
25
36
|
### 🕧 Updates for Chronos
|
|
26
37
|
|
|
27
|
-
- Reduced bloat by moving
|
|
28
|
-
- Changed plugin import paths as `import { somePlugin } from nhb-toolbox/plugins/somePlugin` format so the users can assume the path easily.
|
|
29
|
-
- Updated parameter type for `isBusinessHour` method: instead of multiple parameters can accept one options object now.
|
|
38
|
+
- **Reduced** bloat by moving _rarely used_ `Chronos` methods to plugin system.
|
|
39
|
+
- **Changed** plugin import paths as `import { somePlugin } from nhb-toolbox/plugins/somePlugin` format so the users can assume the path easily.
|
|
40
|
+
- **Updated** parameter type for `isBusinessHour` method: instead of multiple parameters can accept one options object now.
|
|
30
41
|
|
|
31
42
|
## [4.12.23] - 2025-06-01
|
|
32
43
|
|
|
33
44
|
### 🕧 Updates for Chronos
|
|
34
45
|
|
|
35
46
|
- All plugin imports now use statement like `import { somePlugin } from 'nhb-toolbox/plugins/plugin-path';`
|
|
36
|
-
- Updated `getZodiacSign` method: includes 2 presets `western` and `vedic` with aliases `tropical` and `sidereal`.
|
|
37
|
-
- Fixed issues in `getZodiacSign` method which previously could not parse some date/month range.
|
|
47
|
+
- **Updated** `getZodiacSign` method: includes 2 presets `western` and `vedic` with aliases `tropical` and `sidereal`.
|
|
48
|
+
- **Fixed** issues in `getZodiacSign` method which previously could not parse some date/month range.
|
|
38
49
|
|
|
39
50
|
## [4.12.21-beta.2] - 2025-05-31
|
|
40
51
|
|
|
41
|
-
- Updated `types.mjs` script for updating the exports fields for plugins in `package.json`.
|
|
52
|
+
- **Updated** `types.mjs` script for updating the exports fields for plugins in `package.json`.
|
|
42
53
|
|
|
43
54
|
## [4.12.21-beta.1] - 2025-05-31
|
|
44
55
|
|
|
45
|
-
- Updated `getZodiacSign` method: includes 2 presets `western` and `vedic`.
|
|
46
|
-
- Fixed issues in `getZodiacSign` method.
|
|
56
|
+
- **Updated** `getZodiacSign` method: includes 2 presets `western` and `vedic`.
|
|
57
|
+
- **Fixed** issues in `getZodiacSign` method.
|
|
47
58
|
- Experimenting with exporting each Chronos plugin as separate module from the respective locations.
|
|
48
59
|
|
|
49
60
|
## [4.12.20] - 2025-05-31
|
|
@@ -54,42 +65,42 @@ All notable changes to this package will be documented in this file.
|
|
|
54
65
|
|
|
55
66
|
## [4.12.13-beta.1] - 2025-05-31
|
|
56
67
|
|
|
57
|
-
- Created more plugins for resource heavy methods of `Chronos`.
|
|
68
|
+
- **Created** more plugins for resource heavy methods of `Chronos`.
|
|
58
69
|
|
|
59
70
|
## [4.12.13-alpha.2] - 2025-05-30
|
|
60
71
|
|
|
61
|
-
- Solved experimental plugin export/import issues.
|
|
72
|
+
- **Solved** experimental plugin export/import issues.
|
|
62
73
|
|
|
63
74
|
## [4.12.13-alpha.1] - 2025-05-30
|
|
64
75
|
|
|
65
76
|
### 🕧 Experimenting with Plugin System for Chronos
|
|
66
77
|
|
|
67
|
-
- Introduced plugin injection in `Chronos` class. Started with `season` method. Will make convert more methods if this is successful after publishing.
|
|
78
|
+
- **Introduced** plugin injection in `Chronos` class. Started with `season` method. Will make convert more methods if this is successful after publishing.
|
|
68
79
|
|
|
69
80
|
## [4.12.12] - 2025-05-30
|
|
70
81
|
|
|
71
82
|
### 🕧 Updates in Chronos
|
|
72
83
|
|
|
73
|
-
- Added new method `season` to get the name of the season for current Chronos instance. It has configurable options.
|
|
84
|
+
- **Added** new method `season` to get the name of the season for current Chronos instance. It has configurable options.
|
|
74
85
|
- All `Chronos` methods that use `#format` method internally now accepts escape tokens and new token `ZZ` is introduced to include timezone offset (or Z for UTC time) in the formatted date string.
|
|
75
|
-
- Updated some type names such as `Hours` ➡️ `ClockHour`, `Minutes` ➡️ `ClockMinute`, `Time` ➡️ `ClockTIme` etc. But the core definitions remain the same.
|
|
86
|
+
- **Updated** some type names such as `Hours` ➡️ `ClockHour`, `Minutes` ➡️ `ClockMinute`, `Time` ➡️ `ClockTIme` etc. But the core definitions remain the same.
|
|
76
87
|
|
|
77
88
|
## [4.12.10] - 2025-05-30
|
|
78
89
|
|
|
79
90
|
### 🕧 New Chronos Methods
|
|
80
91
|
|
|
81
|
-
- Added 2 new instance methods in `Chronos`, `day` and `monthName` to get day and month names respectively.
|
|
92
|
+
- **Added** 2 new instance methods in `Chronos`, `day` and `monthName` to get day and month names respectively.
|
|
82
93
|
|
|
83
94
|
### ℹ️ [README](README.md)
|
|
84
95
|
|
|
85
|
-
- Added `Signature Utilities` section in `README.md`
|
|
96
|
+
- **Added** `Signature Utilities` section in `README.md`
|
|
86
97
|
|
|
87
98
|
## [4.12.8] - 2025-05-29
|
|
88
99
|
|
|
89
100
|
### Types
|
|
90
101
|
|
|
91
|
-
- Added new types `Enumerate` and `NumberRange` to generate number literals like `0 | 1 | 2 | ... | 998`.
|
|
92
|
-
- Implemented both types in few cases where a return type is number and limited to a range, especially in color and number related functions and `Color` & `Chronos` classes.
|
|
102
|
+
- **Added** new types `Enumerate` and `NumberRange` to generate number literals like `0 | 1 | 2 | ... | 998`.
|
|
103
|
+
- **Implemented** both types in few cases where a return type is number and limited to a range, especially in color and number related functions and `Color` & `Chronos` classes.
|
|
93
104
|
|
|
94
105
|
### Method Changed in Chronos
|
|
95
106
|
|
package/dist/cjs/form/convert.js
CHANGED
|
@@ -70,26 +70,40 @@ const createControlledFormData = (data, configs) => {
|
|
|
70
70
|
if (configs?.ignoreKeys?.includes(fullKey)) {
|
|
71
71
|
return acc;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
// * 1. It's required OR
|
|
76
|
-
// * 2. It's not null/undefined AND not empty string/object/array
|
|
77
|
-
const shouldKeep = isRequiredKey(fullKey) ||
|
|
78
|
-
isNotNullish ||
|
|
73
|
+
const shouldKeep = (value != null && value !== '') ||
|
|
74
|
+
isRequiredKey(fullKey) ||
|
|
79
75
|
(0, primitives_1.isNonEmptyString)(value) ||
|
|
80
76
|
(0, non_primitives_1.isValidArray)(value) ||
|
|
81
77
|
(0, non_primitives_1.isNotEmptyObject)(value);
|
|
82
78
|
if (shouldKeep) {
|
|
83
79
|
if ((0, non_primitives_1.isNotEmptyObject)(value)) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
if ((0, guards_1.isDateLike)(value)) {
|
|
81
|
+
acc[transformedKey] = value;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
// * Recursively clean nested objects
|
|
85
|
+
const cleaned = _cleanObject(value, fullKey);
|
|
86
|
+
if (isRequiredKey(fullKey) ||
|
|
87
|
+
(0, non_primitives_1.isNotEmptyObject)(cleaned)) {
|
|
88
|
+
acc[transformedKey] = cleaned;
|
|
89
|
+
}
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
else {
|
|
91
93
|
if (typeof value === 'string') {
|
|
92
|
-
|
|
94
|
+
if ((0, primitives_1.isNonEmptyString)(value)) {
|
|
95
|
+
let cleanString = value;
|
|
96
|
+
if (configs?.trimStrings) {
|
|
97
|
+
cleanString = cleanString?.trim();
|
|
98
|
+
}
|
|
99
|
+
if (shouldLowercaseValue(fullKey)) {
|
|
100
|
+
cleanString = cleanString?.toLowerCase();
|
|
101
|
+
}
|
|
102
|
+
acc[transformedKey] = cleanString;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
acc[transformedKey] = value;
|
|
106
|
+
}
|
|
93
107
|
}
|
|
94
108
|
else if (Array.isArray(value)) {
|
|
95
109
|
if (isRequiredKey(fullKey) || (0, non_primitives_1.isValidArray)(value)) {
|
|
@@ -187,7 +201,6 @@ const createControlledFormData = (data, configs) => {
|
|
|
187
201
|
formData.append(transformedKey, value?.toLowerCase());
|
|
188
202
|
}
|
|
189
203
|
else {
|
|
190
|
-
// ! CONFUSED UNGA-BUNGA
|
|
191
204
|
formData.append(transformedKey, value);
|
|
192
205
|
}
|
|
193
206
|
}
|
|
@@ -203,7 +216,7 @@ const createControlledFormData = (data, configs) => {
|
|
|
203
216
|
return;
|
|
204
217
|
}
|
|
205
218
|
// * Trim string values if trimStrings is enabled
|
|
206
|
-
if (configs?.trimStrings &&
|
|
219
|
+
if (configs?.trimStrings && (0, primitives_1.isNonEmptyString)(value)) {
|
|
207
220
|
value = value?.trim();
|
|
208
221
|
}
|
|
209
222
|
// * Check if this key is preserved as dot-notation
|
|
@@ -211,8 +224,13 @@ const createControlledFormData = (data, configs) => {
|
|
|
211
224
|
_addToFormData(fullKey, value);
|
|
212
225
|
}
|
|
213
226
|
else if ((0, non_primitives_1.isNotEmptyObject)(value) && !shouldStringify(fullKey)) {
|
|
214
|
-
|
|
215
|
-
|
|
227
|
+
if ((0, guards_1.isDateLike)(value)) {
|
|
228
|
+
_addToFormData(key, JSON.parse(JSON.stringify(value)));
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
// * Process nested objects
|
|
232
|
+
_processObject(value, key);
|
|
233
|
+
}
|
|
216
234
|
}
|
|
217
235
|
else if ((0, guards_2.isFileOrBlob)(value)) {
|
|
218
236
|
_addToFormData(key, value);
|
package/dist/cjs/index.js
CHANGED
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.Unit = exports.Currency = exports.sumOfNumbers = exports.sumNumbers = exports.sumDigits = exports.roundToDecimal = exports.roundNumber = exports.reverseNumber = exports.getSumOfNumbers = exports.getRandomNumber = exports.getRandomInt = exports.getAverageOfNumbers = exports.getAverage = exports.convertToFixed = exports.convertToDecimal = exports.calculateLCM = exports.calculateLCD = exports.calculateHCF = exports.calculateGCD = exports.calculateAverage = exports.wordCount = exports.parseNumbersFromText = exports.levenshteinDistance = exports.getLevenshteinDistance = exports.extractNumbersFromString = exports.extractNumbers = exports.countWordsInString = exports.countWords = exports.slugifyString = exports.reverseString = exports.replaceAllInString = exports.normalizeString = exports.maskString = exports.formatWithPlural = exports.formatUnitWithPlural = exports.formatNumberWithPluralUnit = exports.extractURLs = exports.extractEmails = exports.convertStringCase = exports.isSnakeCase = exports.isPascalCase = exports.isPalindrome = exports.isKebabCase = exports.isEmojiOnly = exports.isCamelCase = exports.generateAnagrams = exports.truncateString = exports.trimString = exports.generateRandomID = exports.capitalizeString = void 0;
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.isValidURL = exports.isValidEmail = exports.isUUID = exports.isURL = exports.isPhoneNumber = void 0;
|
|
19
|
+
exports.numberToOrdinal = exports.getRandomFloat = exports.getRandomDecimal = exports.getOrdinalNumber = exports.getOrdinal = exports.formatCurrency = exports.convertToOrdinal = exports.convertNumberToOrdinal = exports.convertNumberToCurrency = exports.clampNumber = exports.cardinalToOrdinal = exports.isPrimeNumber = exports.isPrime = exports.getPrimeNumbers = exports.findPrimeNumbers = exports.toRomanNumeral = exports.toRoman = exports.numericToRoman = exports.numberToWordsOrdinal = exports.numberToWords = exports.numberToRoman = exports.integerToRoman = exports.convertToRomanNumerals = exports.convertNumberToWordsOrdinal = exports.convertNumberToWords = exports.cardinalWordsToOrdinal = exports.isPerfectSquare = exports.isParOfFibonacciSeries = exports.isParOfFibonacci = exports.isOddNumber = exports.isOdd = exports.isNumberInvalid = exports.isMultiple = exports.isInvalidNumber = exports.isFibonacci = exports.isEvenNumber = exports.isEven = exports.areNumbersInvalid = exports.areInvalidNumbers = exports.getNthFibonacci = exports.getMemoizedFibonacciSeries = exports.getMemoizedFibonacci = exports.getFibonacciSeriesMemo = exports.getFibonacciSeries = exports.getFibonacciNumbers = exports.getFibonacci = exports.generateFibonacci = exports.fibonacciGenerator = exports.calculatePercentage = exports.UnitConverter = void 0;
|
|
20
|
+
exports.formatUTCOffset = exports.extractTotalMinutesFromTime = exports.extractTimeStringFromUTC = exports.extractTimeFromUTC = exports.extractMinutesFromUTC = exports.extractHourMinute = exports.convertMinutesToUTCOffset = exports.chronusts = exports.chronusjs = exports.chronus = exports.chronosts = exports.chronosjs = exports.chronos = exports.INTERNALS = exports.Chronus = exports.Chronos = exports.isValidUTCOffSet = exports.isValidUTC = exports.isValidTimeString = exports.isValidTime = exports.isLeapYear = exports.isDateLike = exports.greet = exports.getGreeting = exports.generateGreeting = exports.extractSolidColorValues = exports.extractAlphaColorValues = exports.Colour = exports.Color = exports.convertRgbToRgba = exports.convertRgbToHsl = exports.convertRgbToHex = exports.convertRgbaToHsla = exports.convertRgbaToHex8 = exports.convertHslToRgb = exports.convertHslToHex = exports.convertHslaToRgba = exports.convertHslaToHex8 = exports.convertHexToRgb = exports.convertHexToHsl = exports.convertHex8ToRgba = exports.convertHex8ToHsla = exports.convertColorCode = exports.generateRandomHSLColor = exports.generateRandomColorInHexRGB = exports.getColorForInitial = exports.getNumbersInRange = exports.roundToNearestInterval = exports.roundToNearest = exports.roundNumberToNearestInterval = void 0;
|
|
21
|
+
exports.extractUpdatedAndNewFields = exports.extractNewFields = exports.countObjectFields = exports.cloneObject = exports.isValidFormData = exports.isOriginFileObj = exports.isFileUpload = exports.isFileOrBlob = exports.isFileList = exports.isFileArray = exports.isCustomFileArray = exports.isCustomFile = exports.serializeForm = exports.parseFormData = exports.createFormData = exports.createControlledFormData = exports.convertIntoFormData = exports.naturalSortForString = exports.naturalSort = exports.compareSorter = exports.compareNaturally = exports.splitArray = exports.rotateArray = exports.removeDuplicatesFromArray = exports.removeDuplicates = exports.moveArrayElement = exports.getMissingElements = exports.getDuplicatesFromArray = exports.getDuplicates = exports.findMissingElements = exports.extractMissingElements = exports.extractDuplicatesFromArray = exports.extractDuplicates = exports.createOptionsArray = exports.sortAnArray = exports.Finder = exports.shuffleArray = exports.isValidEmptyArray = exports.isInvalidOrEmptyArray = exports.getLastArrayElement = exports.flattenArray = exports.filterArrayOfObjects = exports.minutesToUTCOffset = exports.getTotalMinutesFromUTC = exports.getTotalMinutesFromTime = exports.getTotalMinutes = exports.getTimeStringFromUTC = exports.getMinutesFromUTC = exports.getCurrentTime = exports.getCurrentDateTime = void 0;
|
|
22
|
+
exports.isBigInt = exports.Paginator = exports.throttleAction = exports.parsePrimitivesDeep = exports.parseJsonDeep = exports.parseJSON = exports.isDeepEqual = exports.getStaticMethodsCount = exports.getStaticMethodNames = exports.getInstanceMethodsCount = exports.getInstanceMethodNames = exports.getClassDetails = exports.deepParsePrimitives = exports.debounceAction = exports.countStaticMethods = exports.countInstanceMethods = exports.convertArrayToString = exports.saveToSessionStorage = exports.saveToLocalStorage = exports.removeFromSessionStorage = exports.removeFromLocalStorage = exports.getFromSessionStorage = exports.getFromLocalStorage = exports.toggleFullScreen = exports.smoothScrollTo = exports.copyToClipboard = exports.updateQueryParam = exports.queryStringToObject = exports.parseQueryString = exports.getQueryStringAsObject = exports.getQueryParams = exports.generateQueryParams = exports.formatQueryParams = exports.createQueryParams = exports.remapObjectFields = exports.remapFields = exports.pickObjectFieldsByCondition = exports.pickObjectFields = exports.pickFieldsByCondition = exports.pickFields = exports.convertObjectValues = exports.sanitizeData = exports.parseStringifiedObjectValues = exports.parseObjectValues = exports.parseJsonToObject = exports.mergeObjects = exports.mergeAndFlattenObjects = exports.flattenObjectKeyValue = exports.flattenObjectDotNotation = exports.extractUpdatedFields = void 0;
|
|
23
|
+
exports.isNode = exports.isIPAddress = exports.isExpectedNodeENV = exports.isEnvironment = exports.isEmailArray = exports.isEmail = exports.isDateString = exports.isBrowser = exports.isBase64 = exports.isValidSet = exports.isValidObject = exports.isValidMap = exports.isValidJSON = exports.isValidArray = exports.isSet = exports.isReturningPromise = exports.isRegularExpression = exports.isRegExp = exports.isPromise = exports.isObjectWithKeys = exports.isObjectEmpty = exports.isObject = exports.isNotEmptyObject = exports.isMethodDescriptor = exports.isMethod = exports.isMap = exports.isJSONObject = exports.isJSON = exports.isFunction = exports.isError = exports.isEmptyObjectGuard = exports.isEmptyObject = exports.isDate = exports.isArrayWithLength = exports.isArrayOfType = exports.isArray = exports.doesReturnPromise = exports.isUndefined = exports.isTruthy = exports.isSymbol = exports.isString = exports.isPrimitive = exports.isPositiveInteger = exports.isNumber = exports.isNull = exports.isNormalPrimitive = exports.isNonEmptyString = exports.isInteger = exports.isFalsy = exports.isBoolean = void 0;
|
|
24
|
+
exports.isValidURL = exports.isValidEmail = exports.isUUID = exports.isURL = exports.isPhoneNumber = exports.isNumericString = exports.isNodeEnvironment = exports.isNodeENV = void 0;
|
|
25
25
|
// ! String Utilities
|
|
26
26
|
var basics_1 = require("./string/basics");
|
|
27
27
|
Object.defineProperty(exports, "capitalizeString", { enumerable: true, get: function () { return basics_1.capitalizeString; } });
|
|
@@ -110,11 +110,14 @@ Object.defineProperty(exports, "isParOfFibonacci", { enumerable: true, get: func
|
|
|
110
110
|
Object.defineProperty(exports, "isParOfFibonacciSeries", { enumerable: true, get: function () { return guards_2.isFibonacci; } });
|
|
111
111
|
Object.defineProperty(exports, "isPerfectSquare", { enumerable: true, get: function () { return guards_2.isPerfectSquare; } });
|
|
112
112
|
var convert_2 = require("./number/convert");
|
|
113
|
+
Object.defineProperty(exports, "cardinalWordsToOrdinal", { enumerable: true, get: function () { return convert_2.numberToWordsOrdinal; } });
|
|
113
114
|
Object.defineProperty(exports, "convertNumberToWords", { enumerable: true, get: function () { return convert_2.numberToWords; } });
|
|
115
|
+
Object.defineProperty(exports, "convertNumberToWordsOrdinal", { enumerable: true, get: function () { return convert_2.numberToWordsOrdinal; } });
|
|
114
116
|
Object.defineProperty(exports, "convertToRomanNumerals", { enumerable: true, get: function () { return convert_2.convertToRomanNumerals; } });
|
|
115
117
|
Object.defineProperty(exports, "integerToRoman", { enumerable: true, get: function () { return convert_2.convertToRomanNumerals; } });
|
|
116
118
|
Object.defineProperty(exports, "numberToRoman", { enumerable: true, get: function () { return convert_2.convertToRomanNumerals; } });
|
|
117
119
|
Object.defineProperty(exports, "numberToWords", { enumerable: true, get: function () { return convert_2.numberToWords; } });
|
|
120
|
+
Object.defineProperty(exports, "numberToWordsOrdinal", { enumerable: true, get: function () { return convert_2.numberToWordsOrdinal; } });
|
|
118
121
|
Object.defineProperty(exports, "numericToRoman", { enumerable: true, get: function () { return convert_2.convertToRomanNumerals; } });
|
|
119
122
|
Object.defineProperty(exports, "toRoman", { enumerable: true, get: function () { return convert_2.convertToRomanNumerals; } });
|
|
120
123
|
Object.defineProperty(exports, "toRomanNumeral", { enumerable: true, get: function () { return convert_2.convertToRomanNumerals; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PREFIX_MULTIPLIERS = exports.UNITS = exports.SUPPORTED_CURRENCIES = exports.CURRENCY_LOCALES = exports.LOCALE_CODES = exports.CURRENCY_CODES = exports.THOUSANDS = exports.TENS = exports.TEENS = exports.ONES = void 0;
|
|
3
|
+
exports.PREFIX_MULTIPLIERS = exports.UNITS = exports.SUPPORTED_CURRENCIES = exports.CURRENCY_LOCALES = exports.LOCALE_CODES = exports.CURRENCY_CODES = exports.ORDINAL_UNDER_TEEN = exports.THOUSANDS = exports.TENS = exports.TEENS = exports.ONES = void 0;
|
|
4
4
|
exports.ONES = Object.freeze([
|
|
5
5
|
'',
|
|
6
6
|
'one',
|
|
@@ -48,6 +48,22 @@ exports.THOUSANDS = Object.freeze([
|
|
|
48
48
|
// ! Needs to modify later, below supports up to 10 sextillion! It's a bug!
|
|
49
49
|
// 'sextillion',
|
|
50
50
|
]);
|
|
51
|
+
/** Ordinal number in words against the corresponding cardinal variant */
|
|
52
|
+
exports.ORDINAL_UNDER_TEEN = Object.freeze({
|
|
53
|
+
zero: 'zeroth',
|
|
54
|
+
one: 'first',
|
|
55
|
+
two: 'second',
|
|
56
|
+
three: 'third',
|
|
57
|
+
four: 'fourth',
|
|
58
|
+
five: 'fifth',
|
|
59
|
+
six: 'sixth',
|
|
60
|
+
seven: 'seventh',
|
|
61
|
+
eight: 'eighth',
|
|
62
|
+
nine: 'ninth',
|
|
63
|
+
ten: 'tenth',
|
|
64
|
+
eleven: 'eleventh',
|
|
65
|
+
twelve: 'twelfth',
|
|
66
|
+
});
|
|
51
67
|
/** List of ISO 4217 currency codes */
|
|
52
68
|
exports.CURRENCY_CODES = Object.freeze([
|
|
53
69
|
'AED',
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.convertToRomanNumerals = void 0;
|
|
4
4
|
exports.numberToWords = numberToWords;
|
|
5
|
+
exports.numberToWordsOrdinal = numberToWordsOrdinal;
|
|
6
|
+
const primitives_1 = require("../guards/primitives");
|
|
7
|
+
const specials_1 = require("../guards/specials");
|
|
5
8
|
const constants_1 = require("./constants");
|
|
6
9
|
const helpers_1 = require("./helpers");
|
|
7
10
|
/**
|
|
@@ -73,3 +76,36 @@ const convertToRomanNumerals = (num) => {
|
|
|
73
76
|
return result;
|
|
74
77
|
};
|
|
75
78
|
exports.convertToRomanNumerals = convertToRomanNumerals;
|
|
79
|
+
/**
|
|
80
|
+
* * Converts a number, numeric string, or cardinal word string into its ordinal word representation.
|
|
81
|
+
*
|
|
82
|
+
* @param number - A number (e.g. `42`), numeric string (e.g. `"42"`), or cardinal word (e.g. `"forty-two"`).
|
|
83
|
+
* @returns The ordinal word form (always in lowercase) of the input.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* numberToWordsOrdinal(1); // "first"
|
|
87
|
+
* numberToWordsOrdinal("23"); // "twenty-third"
|
|
88
|
+
* numberToWordsOrdinal("twenty-three"); // "twenty-third"
|
|
89
|
+
*/
|
|
90
|
+
function numberToWordsOrdinal(number) {
|
|
91
|
+
const TEEN_OR_HUNDRED = /(teen|hundred|thousand|(m|b|tr|quadr)illion)$/;
|
|
92
|
+
const UNDER_TEEN = /(zero|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve)$/;
|
|
93
|
+
const _fixUnderTeen = (cardinal) => {
|
|
94
|
+
return constants_1.ORDINAL_UNDER_TEEN[cardinal];
|
|
95
|
+
};
|
|
96
|
+
const wordNumber = (0, specials_1.isNumericString)(number) || (0, primitives_1.isNumber)(number) ?
|
|
97
|
+
numberToWords(number)
|
|
98
|
+
: number?.toLowerCase();
|
|
99
|
+
if (TEEN_OR_HUNDRED.test(wordNumber)) {
|
|
100
|
+
return wordNumber + 'th';
|
|
101
|
+
}
|
|
102
|
+
else if (/y$/.test(wordNumber)) {
|
|
103
|
+
return wordNumber.replace(/y$/, 'ieth');
|
|
104
|
+
}
|
|
105
|
+
else if (UNDER_TEEN.test(wordNumber)) {
|
|
106
|
+
return wordNumber.replace(UNDER_TEEN, _fixUnderTeen);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
return wordNumber;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sanitizeData = sanitizeData;
|
|
4
4
|
exports.parseObjectValues = parseObjectValues;
|
|
5
|
+
const guards_1 = require("../date/guards");
|
|
5
6
|
const non_primitives_1 = require("../guards/non-primitives");
|
|
6
7
|
const primitives_1 = require("../guards/primitives");
|
|
7
8
|
const basics_1 = require("../string/basics");
|
|
@@ -92,14 +93,22 @@ function sanitizeData(input, options, _return) {
|
|
|
92
93
|
// Trim string values if enabled
|
|
93
94
|
acc[key] = (0, basics_1.trimString)(value);
|
|
94
95
|
}
|
|
96
|
+
else if ((0, guards_1.isDateLike)(value)) {
|
|
97
|
+
acc[key] = value;
|
|
98
|
+
}
|
|
95
99
|
else if (value && (0, non_primitives_1.isObject)(value)) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
(
|
|
102
|
-
|
|
100
|
+
if ((0, guards_1.isDateLike)(value)) {
|
|
101
|
+
acc[key] = value;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
// Recursively process nested objects
|
|
105
|
+
const processedValue = _processObject(value, fullKeyPath);
|
|
106
|
+
// Add the property conditionally if it's not an empty object
|
|
107
|
+
if (!ignoreEmpty ||
|
|
108
|
+
isRequiredKey(fullKeyPath) ||
|
|
109
|
+
(0, non_primitives_1.isNotEmptyObject)(processedValue)) {
|
|
110
|
+
acc[key] = processedValue;
|
|
111
|
+
}
|
|
103
112
|
}
|
|
104
113
|
}
|
|
105
114
|
else if (value && Array.isArray(value)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../../src/array/basics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../../src/array/basics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,KAAG,SAAS,CAAC,CAAC,CAAC,EAO5D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,aAAa,EAC3D,OAAO,CAAC,EAAE,EACV,YAAY,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,OAAO,GAAE,KACnE,CAAC,EAeH,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,OAWnD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,KAAG,CAAC,EAW7C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,KAAG,CAAC,GAAG,SAEvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/colors/convert.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAGX,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,MAAM,SAAS,CAAC;AAGjB;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/colors/convert.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAGX,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,MAAM,SAAS,CAAC;AAGjB;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,GAyBjE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,M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,kDAAkD;AAClD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,4CAA4C;AAC5C,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAElD;AAED,8DAA8D;AAC9D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../../src/colors/random.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAQ9C;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../../src/colors/random.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAQ9C;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,YAAW,MAAW,KAAG,GAqB/D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GACvC,YAAW,MAAW,KACpB;IACF,GAAG,EAAE,IAAI,CAAC;IACV,GAAG,EAAE,GAAG,CAAC;CAGT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/colors/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE9E;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/colors/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,IAA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|
1
|
+
{"version":3,"file":"businessPlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/businessPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAG7D,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;;;;;;;;;;;WAcG;QACH,SAAS,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QACvE;;;;;;;;;;;;WAYG;QACH,SAAS,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QACvE;;;;;;;;;;;;;;;;;WAiBG;QACH,cAAc,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC;QAEvD;;;WAGG;QACH,cAAc,IAAI,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;QAExC;;;;WAIG;QACH,eAAe,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC;KAC1D;CACD;AAED,oDAAoD;AACpD,eAAO,MAAM,cAAc,GAAI,cAAc,WAAW,KAAG,IA4E1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dayPartPlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/dayPartPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGvD,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgCG;QACH,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC;KACvD;CACD;AAED,+CAA+C;AAC/C,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"dayPartPlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/dayPartPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGvD,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgCG;QACH,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC;KACvD;CACD;AAED,+CAA+C;AAC/C,eAAO,MAAM,aAAa,GAAI,cAAc,WAAW,KAAG,IA8BzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fromNowPlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/fromNowPlugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGvD,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;;;;WAOG;QACH,OAAO,CACN,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE,aAAa,CAAC,EACvC,gBAAgB,EAAE,OAAO,EACzB,IAAI,CAAC,EAAE,YAAY,GACjB,MAAM,CAAC;KACV;CACD;AAED,0CAA0C;AAC1C,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"fromNowPlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/fromNowPlugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGvD,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;;;;WAOG;QACH,OAAO,CACN,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE,aAAa,CAAC,EACvC,gBAAgB,EAAE,OAAO,EACzB,IAAI,CAAC,EAAE,YAAY,GACjB,MAAM,CAAC;KACV;CACD;AAED,0CAA0C;AAC1C,eAAO,MAAM,aAAa,GAAI,cAAc,WAAW,KAAG,IA6GzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palindromePlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/palindromePlugin.ts"],"names":[],"mappings":"AAGA,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;;;;;;;;;;;;;;;;;;;;;;WAyBG;QACH,gBAAgB,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC;KAC9C;CACD;AAED,mDAAmD;AACnD,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"palindromePlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/palindromePlugin.ts"],"names":[],"mappings":"AAGA,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;;;;;;;;;;;;;;;;;;;;;;WAyBG;QACH,gBAAgB,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC;KAC9C;CACD;AAED,mDAAmD;AACnD,eAAO,MAAM,gB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W,KAAG,IA2J9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seasonPlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/seasonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;WAIG;QACH,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;KACxC;CACD;AAED,yCAAyC;AACzC,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"seasonPlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/seasonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;WAIG;QACH,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;KACxC;CACD;AAED,yCAAyC;AACzC,eAAO,MAAM,YAAY,GAAI,cAAc,WAAW,KAAG,IAsCxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeZonePlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/timeZonePlugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGpD,KAAK,kBAAkB,GAAG,OAAO,YAAY,EAAE,OAAO,CAAC;AACvD,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;;WAKG;QACH,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,kBAAkB,CAAC;KACzD;CACD;AAED,2CAA2C;AAC3C,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"timeZonePlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/timeZonePlugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGpD,KAAK,kBAAkB,GAAG,OAAO,YAAY,EAAE,OAAO,CAAC;AACvD,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;;WAKG;QACH,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,kBAAkB,CAAC;KACzD;CACD;AAED,2CAA2C;AAC3C,eAAO,MAAM,cAAc,GAAI,cAAc,WAAW,KAAG,IAgC1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zodiacPlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/zodiacPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG1D,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;WAIG;QACH,aAAa,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC;KACnD;CACD;AAED,gDAAgD;AAChD,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"zodiacPlugin.d.ts","sourceRoot":"","sources":["../../../../src/date/plugins/zodiacPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG1D,KAAK,WAAW,GAAG,cAAc,YAAY,EAAE,OAAO,CAAC;AAEvD,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAU,OAAO;QAChB;;;;WAIG;QACH,aAAa,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC;KACnD;CACD;AAED,gDAAgD;AAChD,eAAO,MAAM,YAAY,GAAI,cAAc,WAAW,KAAG,IA4BxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/dom/query.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,WAAW,
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/dom/query.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,WAAW,EACxD,SAAQ,CAAW,KACjB,WAkCF,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEvD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAI1D;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,GAC5B,OAAO,MAAM,EACb,yBAAsB,KACpB,YAqBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/dom/storage.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/dom/storage.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,EAAE,KAAK,MAAM,KAAG,CAAC,GAAG,IAMxD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAE,KAAK,MAAM,EAAE,OAAO,CAAC,KAAG,IAE7D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,KAAK,MAAM,KAAG,IAEpD,CAAC;AAIF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,EAAE,KAAK,MAAM,KAAG,CAAC,GAAG,IAM1D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,EAAE,KAAK,MAAM,EAAE,OAAO,CAAC,KAAG,IAE/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,KAAK,MAAM,KAAG,IAEtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/form/convert.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEX,aAAa,EAEb,MAAM,iBAAiB,CAAC;AASzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,aAAa,
|
|
1
|
+
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/form/convert.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEX,aAAa,EAEb,MAAM,iBAAiB,CAAC;AASzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;;;GAOG;AACH,eAAO,MA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KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,CAEpD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC9B,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,IAAI,CAAC,GACrC,KAAK,IAAI,CAAC,EAAE,CAEd;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAEnE;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,GAAG,CAAC,CAAC,CAAC,CAExD;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAE9D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAExD;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAEtD;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAStD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,aAAa,CAAC,CAAC,CAAC,CAEzE"}
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export { Unit, Unit as UnitConverter } from './number/Unit';
|
|
|
24
24
|
export { calculatePercentage } from './number/percent';
|
|
25
25
|
export { fibonacciGenerator, fibonacciGenerator as generateFibonacci, getFibonacciSeries as getFibonacci, getFibonacciSeries as getFibonacciNumbers, getFibonacciSeries, getFibonacciSeriesMemo, getFibonacciSeriesMemo as getMemoizedFibonacci, getFibonacciSeriesMemo as getMemoizedFibonacciSeries, getNthFibonacci, } from './number/fibonacci';
|
|
26
26
|
export { areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, isEven, isEven as isEvenNumber, isFibonacci, areInvalidNumbers as isInvalidNumber, isMultiple, areInvalidNumbers as isNumberInvalid, isOdd, isOdd as isOddNumber, isFibonacci as isParOfFibonacci, isFibonacci as isParOfFibonacciSeries, isPerfectSquare, } from './number/guards';
|
|
27
|
-
export { numberToWords as convertNumberToWords, convertToRomanNumerals, convertToRomanNumerals as integerToRoman, convertToRomanNumerals as numberToRoman, numberToWords, convertToRomanNumerals as numericToRoman, convertToRomanNumerals as toRoman, convertToRomanNumerals as toRomanNumeral, } from './number/convert';
|
|
27
|
+
export { numberToWordsOrdinal as cardinalWordsToOrdinal, numberToWords as convertNumberToWords, numberToWordsOrdinal as convertNumberToWordsOrdinal, convertToRomanNumerals, convertToRomanNumerals as integerToRoman, convertToRomanNumerals as numberToRoman, numberToWords, numberToWordsOrdinal, convertToRomanNumerals as numericToRoman, convertToRomanNumerals as toRoman, convertToRomanNumerals as toRomanNumeral, } from './number/convert';
|
|
28
28
|
export { findPrimeNumbers, findPrimeNumbers as getPrimeNumbers, isPrime, isPrime as isPrimeNumber, } from './number/prime';
|
|
29
29
|
export { getOrdinal as cardinalToOrdinal, clampNumber, formatCurrency as convertNumberToCurrency, getOrdinal as convertNumberToOrdinal, getOrdinal as convertToOrdinal, formatCurrency, getOrdinal, getOrdinal as getOrdinalNumber, getRandomFloat as getRandomDecimal, getRandomFloat, getOrdinal as numberToOrdinal, roundToNearest as roundNumberToNearestInterval, roundToNearest, roundToNearest as roundToNearestInterval, } from './number/utilities';
|
|
30
30
|
export { getNumbersInRange } from './number/range';
|
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;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G7B,OAAO,EACN,kBAAkB,IAAI,iBAAiB,EACvC,OAAO,EACP,aAAa,EACb,YAAY,IAAI,iBAAiB,EACjC,MAAM,EACN,aAAa,EACb,aAAa,IAAI,kBAAkB,EACnC,OAAO,EACP,UAAU,EACV,MAAM,EACN,MAAM,IAAI,YAAY,EACtB,KAAK,EACL,kBAAkB,IAAI,QAAQ,EAC9B,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,aAAa,IAAI,aAAa,EAC9B,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,QAAQ,IAAI,mBAAmB,EAC/B,kBAAkB,EAClB,KAAK,EACL,YAAY,EACZ,MAAM,IAAI,WAAW,EACrB,KAAK,IAAI,UAAU,EACnB,gBAAgB,IAAI,aAAa,EACjC,KAAK,IAAI,UAAU,GACnB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACN,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,aAAa,EACb,aAAa,IAAI,iBAAiB,EAClC,WAAW,EACX,MAAM,EACN,aAAa,IAAI,SAAS,EAC1B,aAAa,IAAI,iBAAiB,EAClC,eAAe,EACf,aAAa,EACb,KAAK,EACL,MAAM,EACN,OAAO,IAAI,YAAY,EACvB,KAAK,IAAI,UAAU,GACnB,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../../src/number/basics.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EACX,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,MAAM,SAAS,CAAC;AAEjB;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../../src/number/basics.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EACX,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,MAAM,SAAS,CAAC;AAEjB;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,mBAAmB,KAAG,MA+C/D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,EACrE,OAAO,OAAO,EACd,UAAU,cAAc,CAAC,CAAC,CAAC,KACzB,gBAAgB,CAAC,CAAC,CAQpB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,SAAS,OAAO,EAAE,KAAG,MAYpD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,SAAS,OAAO,EAAE,KAAG,MAYpD,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAK9C;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAIxD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAOlD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAaxD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,SAAI,GAAG,MAAM,CAMhE"}
|
|
@@ -2,6 +2,8 @@ export declare const ONES: readonly ["", "one", "two", "three", "four", "five",
|
|
|
2
2
|
export declare const TEENS: readonly ["ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"];
|
|
3
3
|
export declare const TENS: readonly ["", "ten", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"];
|
|
4
4
|
export declare const THOUSANDS: readonly ["", "thousand", "million", "billion", "trillion", "quadrillion", "quintillion"];
|
|
5
|
+
/** Ordinal number in words against the corresponding cardinal variant */
|
|
6
|
+
export declare const ORDINAL_UNDER_TEEN: Readonly<Record<string, string>>;
|
|
5
7
|
/** List of ISO 4217 currency codes */
|
|
6
8
|
export declare const CURRENCY_CODES: readonly ["AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", "CAD", "CDF", "CHF", "CLP", "CNY", "COP", "CRC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "FOK", "GBP", "GEL", "GGP", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "IMP", "INR", "IQD", "IRR", "ISK", "JEP", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KID", "KMF", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRU", "MUR", "MVR", "MWK", "MXN", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLE", "SOS", "SRD", "SSP", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TVD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW", "ZWL"];
|
|
7
9
|
/** List of all supported BCP 47 locales */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/number/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,uFAWN,CAAC;AAEZ,eAAO,MAAM,KAAK,yHAWP,CAAC;AAEZ,eAAO,MAAM,IAAI,oGAWN,CAAC;AAEZ,eAAO,MAAM,SAAS,2FAUX,CAAC;AAEZ,sCAAsC;AACtC,eAAO,MAAM,cAAc,2mCAiKhB,CAAC;AAEZ,2CAA2C;AAC3C,eAAO,MAAM,YAAY,mnCA8Hd,CAAC;AAEZ,8CAA8C;AAC9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiKlB,CAAC;AAEZ,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,oOAgCtB,CAAC;AAEZ,mDAAmD;AACnD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDP,CAAC;AAEZ,+CAA+C;AAC/C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;EAuBpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/number/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,uFAWN,CAAC;AAEZ,eAAO,MAAM,KAAK,yHAWP,CAAC;AAEZ,eAAO,MAAM,IAAI,oGAWN,CAAC;AAEZ,eAAO,MAAM,SAAS,2FAUX,CAAC;AAEZ,yEAAyE;AACzE,eAAO,MAAM,kBAAkB,kCAcH,CAAC;AAE7B,sCAAsC;AACtC,eAAO,MAAM,cAAc,2mCAiKhB,CAAC;AAEZ,2CAA2C;AAC3C,eAAO,MAAM,YAAY,mnCA8Hd,CAAC;AAEZ,8CAA8C;AAC9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiKlB,CAAC;AAEZ,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,oOAgCtB,CAAC;AAEZ,mDAAmD;AACnD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDP,CAAC;AAEZ,+CAA+C;AAC/C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;EAuBpB,CAAC"}
|
|
@@ -15,4 +15,16 @@ export declare function numberToWords(num: Numeric): string;
|
|
|
15
15
|
* @example convertToRomanNumerals(29) → "XXIX"
|
|
16
16
|
*/
|
|
17
17
|
export declare const convertToRomanNumerals: (num: Numeric) => string;
|
|
18
|
+
/**
|
|
19
|
+
* * Converts a number, numeric string, or cardinal word string into its ordinal word representation.
|
|
20
|
+
*
|
|
21
|
+
* @param number - A number (e.g. `42`), numeric string (e.g. `"42"`), or cardinal word (e.g. `"forty-two"`).
|
|
22
|
+
* @returns The ordinal word form (always in lowercase) of the input.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* numberToWordsOrdinal(1); // "first"
|
|
26
|
+
* numberToWordsOrdinal("23"); // "twenty-third"
|
|
27
|
+
* numberToWordsOrdinal("twenty-three"); // "twenty-third"
|
|
28
|
+
*/
|
|
29
|
+
export declare function numberToWordsOrdinal(number: Numeric | string): string;
|
|
18
30
|
//# sourceMappingURL=convert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/number/convert.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/number/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAI9C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAoClD;AAED;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI,KAAK,OAAO,KAAG,MA8BrD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,UAuB5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../src/number/guards.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../src/number/guards.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,MAAM,KAAG,OAEtC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,KAAG,OAErC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,EAAE,YAAY,MAAM,KAAG,OAE9D,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAIhD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAE/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/number/helpers.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/number/helpers.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAC3B,OAAO,MAAM,EAAE,EACf,YAAY,MAAM,KAChB,MAAM,EAGR,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAoB7E;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,MAYvD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,MAKvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prime.d.ts","sourceRoot":"","sources":["../../../src/number/prime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"prime.d.ts","sourceRoot":"","sources":["../../../src/number/prime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,KAAG,OAUxC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,cAAS,EAAE,YAAU,KAAG,MAAM,EAY9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../src/number/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../src/number/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,OAAO,EAAE,iBAAY,KAAG,MAE7D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GAC1B,OAAO,OAAO,EACd,WAAU,YAAoB,EAC9B,SAAS,UAAU,KACjB,MAQF,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GACvB,OAAO,MAAM,EACb,KAAK,MAAM,EACX,KAAK,MAAM,KACT,MAEF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,KAAK,OAAO,EAAE,KAAK,OAAO,KAAG,MAE3D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,OAAO,EAAE,oBAAiB,KAAG,MAiB5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../../src/object/basics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,aAAa,
|
|
1
|
+
{"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../../src/object/basics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,aAAa,EAAE,KAAK,CAAC,KAAG,CAE7D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,aAAa,EAAE,KAAK,CAAC,KAAG,MAInE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectify.d.ts","sourceRoot":"","sources":["../../../src/object/objectify.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAO,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,aAAa,
|
|
1
|
+
{"version":3,"file":"objectify.d.ts","sourceRoot":"","sources":["../../../src/object/objectify.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAO,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,aAAa,EAAE,GAAG,SAAS,CAAC,EAAE,KAAG,CAuCvE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,aAAa,EAC7D,GAAG,SAAS,CAAC,EAAE,KACb,aAyBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,aAAa,EAC5D,QAAQ,CAAC,KACP,CAmBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,aAAa,EAC/D,QAAQ,CAAC,KACP,aAkCF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,aAAa,EAC3D,YAAY,CAAC,EACb,eAAe,cAAc,CAAC,CAAC,CAAC,KAC9B,cAAc,CAAC,CAAC,CAwBlB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC5B,CAAC,SAAS,aAAa,EACvB,CAAC,SAAS,aAAa,EAEvB,YAAY,CAAC,EACb,eAAe,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,KAClD,cAAc,CAAC,CAAC,CAyBlB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACtC,CAAC,SAAS,aAAa,EACvB,CAAC,SAAS,aAAa,EAEvB,YAAY,CAAC,EACb,eAAe,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,KAClD,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAwBtC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,aAAa,GAAG,aAAa,EACxE,OAAO,MAAM,EACb,yBAAsB,KACpB,CAYF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../../src/object/sanitize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../../src/object/sanitize.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,GAAG,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EAAkB,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE9E;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAExD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC3B,CAAC,SAAS,aAAa,EACvB,CAAC,SAAS,iBAAiB,GAAG,UAAU,EAExC,MAAM,EAAE,CAAC,EACT,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,EAC5B,OAAO,CAAC,EAAE,CAAC,GACT,CAAC,SAAS,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAE/C;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC3B,CAAC,SAAS,aAAa,EACvB,CAAC,SAAS,iBAAiB,GAAG,UAAU,EAExC,KAAK,EAAE,CAAC,EAAE,EACV,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,EAC5B,OAAO,CAAC,EAAE,CAAC,GACT,CAAC,SAAS,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;AAiMnD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,aAAa,EACxD,MAAM,EAAE,CAAC,EACT,WAAW,UAAO,GAChB;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,GAAG;CAAE,CA0CzB"}
|
|
@@ -19,27 +19,27 @@ export type QueryObject = {
|
|
|
19
19
|
export type GenericObjectPrimitive = Record<string, string | number | boolean>;
|
|
20
20
|
/** - Dot-notation keys for nested objects with unknown value (including optional properties) */
|
|
21
21
|
export type DotNotationKeyStrict<T> = T extends AdvancedTypes ? never : T extends StrictObject ? {
|
|
22
|
-
[K in keyof T & string]:
|
|
22
|
+
[K in keyof T & string]: T[K] extends Function ? never : T[K] extends StrictObject ? `${K}` | `${K}.${DotNotationKey<T[K]>}` : `${K}`;
|
|
23
23
|
}[keyof T & string] : never;
|
|
24
24
|
/** - Dot-notation keys for nested objects with `any` value (including optional properties) */
|
|
25
25
|
export type DotNotationKey<T> = T extends AdvancedTypes ? never : T extends GenericObject ? {
|
|
26
|
-
[K in keyof T & string]:
|
|
26
|
+
[K in keyof T & string]: T[K] extends Function ? never : T[K] extends GenericObject ? `${K}` | `${K}.${DotNotationKey<T[K]>}` : `${K}`;
|
|
27
27
|
}[keyof T & string] : never;
|
|
28
28
|
/** - Object keys where the value is an array (including optional properties) */
|
|
29
29
|
export type KeyForArray<T> = T extends GenericObject ? {
|
|
30
|
-
[K in keyof T & string]:
|
|
30
|
+
[K in keyof T & string]: T[K] extends Function ? never : T[K] extends Array<unknown> ? K : never;
|
|
31
31
|
}[keyof T & string] : never;
|
|
32
32
|
/** - Object keys where the value is a non-array/non-advanced type object (including optional properties) */
|
|
33
33
|
export type KeyForObject<T> = T extends AdvancedTypes ? never : T extends GenericObject ? {
|
|
34
|
-
[K in keyof T & string]:
|
|
34
|
+
[K in keyof T & string]: T[K] extends Function ? never : T[K] extends GenericObject ? T[K] extends AdvancedTypes ? never : K : never;
|
|
35
35
|
}[keyof T & string] : never;
|
|
36
36
|
/** - Extract only keys with string values from an object, including nested dot-notation keys. */
|
|
37
37
|
export type NestedKeyString<T> = T extends AdvancedTypes ? never : T extends GenericObject ? {
|
|
38
|
-
[K in keyof T & string]:
|
|
38
|
+
[K in keyof T & string]: T[K] extends Function ? never : T[K] extends string ? K : T[K] extends GenericObject ? `${K}.${NestedKeyString<T[K]>}` : never;
|
|
39
39
|
}[keyof T & string] : never;
|
|
40
40
|
/** - Extract only primitive keys from an object, including nested dot-notation keys. */
|
|
41
41
|
export type NestedPrimitiveKey<T> = T extends AdvancedTypes ? never : T extends GenericObject ? {
|
|
42
|
-
[K in keyof T & string]:
|
|
42
|
+
[K in keyof T & string]: T[K] extends Function ? never : T[K] extends NormalPrimitive ? K : T[K] extends GenericObject ? `${K}.${NestedPrimitiveKey<T[K]>}` : never;
|
|
43
43
|
}[keyof T & string] : never;
|
|
44
44
|
/** - Options for `sanitizeData` utility. */
|
|
45
45
|
export interface SanitizeOptions<T> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/object/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAErE,4CAA4C;AAC5C,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEnD,4CAA4C;AAC5C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEhD;;;GAGG;A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
{"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../../src/string/basics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,iBAAiB,GACzB,MAAM,CAwCR;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../../src/string/basics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,iBAAiB,GACzB,MAAM,CAwCR;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,EAAE,WAAW,MAAM,KAAG,MAUlE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,eAAe,KAAG,MAmC5D,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;AAElD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/string/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,CAwF5E;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/string/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,CAwF5E;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,GAC9B,OAAO,MAAM,EACb,MAAM,MAAM,GAAG,MAAM,EACrB,SAAS,MAAM,KACb,MAYF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,SAAS,CAAC,MAAM,CAK7D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,EAAE,UAAU,WAAW,KAAG,MAcjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAI7C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAEjD;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,UAAU,UAAO,GACf,MAAM,CAKR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../src/string/guards.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../src/string/guards.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,OAG5C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../src/string/utilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../src/string/utilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,OAAO,MAAM,KAAG,MAAM,EAE9D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,MAqB7D,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/C"}
|
|
@@ -60,7 +60,7 @@ export type ObjectWithMethods = {
|
|
|
60
60
|
} extends infer O ? {
|
|
61
61
|
[K in keyof O]: O[K];
|
|
62
62
|
} : never;
|
|
63
|
-
/** Advanced
|
|
63
|
+
/** Advanced types to exclude from counting as object key */
|
|
64
64
|
export type AdvancedTypes = Array<unknown> | File | FileList | Chronos | Color | Blob | Date | RegExp | WeakMap<WeakKey, unknown> | WeakSet<WeakKey> | Map<unknown, unknown> | Set<unknown> | Function | GenericFn | VoidFunction | AsyncFunction<unknown> | Promise<unknown> | Error | EvalError | RangeError | ReferenceError | SyntaxError | TypeError | URIError | bigint | symbol;
|
|
65
65
|
/** Helper to detect if a type has methods */
|
|
66
66
|
export type HasMethods<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,6CAA6C;AAC7C,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC;AAEtB,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,KAAK,KAAK,CAAC,CAAC,IAAI;IAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC;AAEjC,6BAA6B;AAC7B,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AAEzC,2CAA2C;AAC3C,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,OAAO,CAAC;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC,CAAC;AAElE,2CAA2C;AAC3C,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;AAE3C,2GAA2G;AAC3G,MAAM,MAAM,SAAS,GAClB,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,IAAI,GACJ,SAAS,CAAC;AAEb,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3E,2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AA6C;AAC7C,MAAM,MAAM,UAAU,CAAC,CAAC,IACvB;KACE,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,GAAG,IAAI,GAAG,KAAK;CACpD,CAAC,MAAM,CAAC,CAAC,SAAS,KAAK,GACvB,KAAK,GACJ,IAAI,CAAC;AAER,iEAAiE;AACjE,MAAM,WAAW,YAAY;IAC5B,+EAA+E;IAC/E,aAAa,EAAE,MAAM,EAAE,CAAC;IAExB,+EAA+E;IAC/E,WAAW,EAAE,MAAM,EAAE,CAAC;IAEtB,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAElB,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAEhB,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;CACd;AAED,gDAAgD;AAChD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,YAAY,EACZ,MAAM,gBAAgB,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,YAAY,EACZ,MAAM,gBAAgB,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,KAAG,OA6B3C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,EACrC,OAAO,CAAC,EAAE,EACV,YAAW,MAAY,KACrB,MAKF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,YAAY,EACpD,QAAQ,EAAE,CAAC,EACX,KAAK,SAAM,GACT,SAAS,CAAC,CAAC,CAAC,CAYd;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,YAAY,EACpD,QAAQ,EAAE,CAAC,EACX,KAAK,SAAM,GACT,WAAW,CAAC,CAAC,CAAC,CAWhB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,EAAE,CAcjE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,EAAE,CAQ/D;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,CAE3D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,WAAW,GAAG,YAAY,CAW9D;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,GAAG,OAAO,EACpC,OAAO,MAAM,EACb,yBAAsB,KACpB,CAQF,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,CAAC,CAoClE"}
|
package/dist/esm/form/convert.js
CHANGED
|
@@ -67,26 +67,40 @@ export const createControlledFormData = (data, configs) => {
|
|
|
67
67
|
if (configs?.ignoreKeys?.includes(fullKey)) {
|
|
68
68
|
return acc;
|
|
69
69
|
}
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
// * 1. It's required OR
|
|
73
|
-
// * 2. It's not null/undefined AND not empty string/object/array
|
|
74
|
-
const shouldKeep = isRequiredKey(fullKey) ||
|
|
75
|
-
isNotNullish ||
|
|
70
|
+
const shouldKeep = (value != null && value !== '') ||
|
|
71
|
+
isRequiredKey(fullKey) ||
|
|
76
72
|
isNonEmptyString(value) ||
|
|
77
73
|
isValidArray(value) ||
|
|
78
74
|
isNotEmptyObject(value);
|
|
79
75
|
if (shouldKeep) {
|
|
80
76
|
if (isNotEmptyObject(value)) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
if (isDateLike(value)) {
|
|
78
|
+
acc[transformedKey] = value;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
// * Recursively clean nested objects
|
|
82
|
+
const cleaned = _cleanObject(value, fullKey);
|
|
83
|
+
if (isRequiredKey(fullKey) ||
|
|
84
|
+
isNotEmptyObject(cleaned)) {
|
|
85
|
+
acc[transformedKey] = cleaned;
|
|
86
|
+
}
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
else {
|
|
88
90
|
if (typeof value === 'string') {
|
|
89
|
-
|
|
91
|
+
if (isNonEmptyString(value)) {
|
|
92
|
+
let cleanString = value;
|
|
93
|
+
if (configs?.trimStrings) {
|
|
94
|
+
cleanString = cleanString?.trim();
|
|
95
|
+
}
|
|
96
|
+
if (shouldLowercaseValue(fullKey)) {
|
|
97
|
+
cleanString = cleanString?.toLowerCase();
|
|
98
|
+
}
|
|
99
|
+
acc[transformedKey] = cleanString;
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
acc[transformedKey] = value;
|
|
103
|
+
}
|
|
90
104
|
}
|
|
91
105
|
else if (Array.isArray(value)) {
|
|
92
106
|
if (isRequiredKey(fullKey) || isValidArray(value)) {
|
|
@@ -184,7 +198,6 @@ export const createControlledFormData = (data, configs) => {
|
|
|
184
198
|
formData.append(transformedKey, value?.toLowerCase());
|
|
185
199
|
}
|
|
186
200
|
else {
|
|
187
|
-
// ! CONFUSED UNGA-BUNGA
|
|
188
201
|
formData.append(transformedKey, value);
|
|
189
202
|
}
|
|
190
203
|
}
|
|
@@ -200,7 +213,7 @@ export const createControlledFormData = (data, configs) => {
|
|
|
200
213
|
return;
|
|
201
214
|
}
|
|
202
215
|
// * Trim string values if trimStrings is enabled
|
|
203
|
-
if (configs?.trimStrings &&
|
|
216
|
+
if (configs?.trimStrings && isNonEmptyString(value)) {
|
|
204
217
|
value = value?.trim();
|
|
205
218
|
}
|
|
206
219
|
// * Check if this key is preserved as dot-notation
|
|
@@ -208,8 +221,13 @@ export const createControlledFormData = (data, configs) => {
|
|
|
208
221
|
_addToFormData(fullKey, value);
|
|
209
222
|
}
|
|
210
223
|
else if (isNotEmptyObject(value) && !shouldStringify(fullKey)) {
|
|
211
|
-
|
|
212
|
-
|
|
224
|
+
if (isDateLike(value)) {
|
|
225
|
+
_addToFormData(key, JSON.parse(JSON.stringify(value)));
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
// * Process nested objects
|
|
229
|
+
_processObject(value, key);
|
|
230
|
+
}
|
|
213
231
|
}
|
|
214
232
|
else if (isFileOrBlob(value)) {
|
|
215
233
|
_addToFormData(key, value);
|
package/dist/esm/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export { Unit, Unit as UnitConverter } from './number/Unit.js';
|
|
|
26
26
|
export { calculatePercentage } from './number/percent.js';
|
|
27
27
|
export { fibonacciGenerator, fibonacciGenerator as generateFibonacci, getFibonacciSeries as getFibonacci, getFibonacciSeries as getFibonacciNumbers, getFibonacciSeries, getFibonacciSeriesMemo, getFibonacciSeriesMemo as getMemoizedFibonacci, getFibonacciSeriesMemo as getMemoizedFibonacciSeries, getNthFibonacci, } from './number/fibonacci.js';
|
|
28
28
|
export { areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, isEven, isEven as isEvenNumber, isFibonacci, areInvalidNumbers as isInvalidNumber, isMultiple, areInvalidNumbers as isNumberInvalid, isOdd, isOdd as isOddNumber, isFibonacci as isParOfFibonacci, isFibonacci as isParOfFibonacciSeries, isPerfectSquare, } from './number/guards.js';
|
|
29
|
-
export { numberToWords as convertNumberToWords, convertToRomanNumerals, convertToRomanNumerals as integerToRoman, convertToRomanNumerals as numberToRoman, numberToWords, convertToRomanNumerals as numericToRoman, convertToRomanNumerals as toRoman, convertToRomanNumerals as toRomanNumeral, } from './number/convert.js';
|
|
29
|
+
export { numberToWordsOrdinal as cardinalWordsToOrdinal, numberToWords as convertNumberToWords, numberToWordsOrdinal as convertNumberToWordsOrdinal, convertToRomanNumerals, convertToRomanNumerals as integerToRoman, convertToRomanNumerals as numberToRoman, numberToWords, numberToWordsOrdinal, convertToRomanNumerals as numericToRoman, convertToRomanNumerals as toRoman, convertToRomanNumerals as toRomanNumeral, } from './number/convert.js';
|
|
30
30
|
export { findPrimeNumbers, findPrimeNumbers as getPrimeNumbers, isPrime, isPrime as isPrimeNumber, } from './number/prime.js';
|
|
31
31
|
export { getOrdinal as cardinalToOrdinal, clampNumber, formatCurrency as convertNumberToCurrency, getOrdinal as convertNumberToOrdinal, getOrdinal as convertToOrdinal, formatCurrency, getOrdinal, getOrdinal as getOrdinalNumber, getRandomFloat as getRandomDecimal, getRandomFloat, getOrdinal as numberToOrdinal, roundToNearest as roundNumberToNearestInterval, roundToNearest, roundToNearest as roundToNearestInterval, } from './number/utilities.js';
|
|
32
32
|
export { getNumbersInRange } from './number/range.js';
|
|
@@ -45,6 +45,22 @@ export const THOUSANDS = /* @__PURE__ */ Object.freeze([
|
|
|
45
45
|
// ! Needs to modify later, below supports up to 10 sextillion! It's a bug!
|
|
46
46
|
// 'sextillion',
|
|
47
47
|
]);
|
|
48
|
+
/** Ordinal number in words against the corresponding cardinal variant */
|
|
49
|
+
export const ORDINAL_UNDER_TEEN = /* @__PURE__ */ Object.freeze({
|
|
50
|
+
zero: 'zeroth',
|
|
51
|
+
one: 'first',
|
|
52
|
+
two: 'second',
|
|
53
|
+
three: 'third',
|
|
54
|
+
four: 'fourth',
|
|
55
|
+
five: 'fifth',
|
|
56
|
+
six: 'sixth',
|
|
57
|
+
seven: 'seventh',
|
|
58
|
+
eight: 'eighth',
|
|
59
|
+
nine: 'ninth',
|
|
60
|
+
ten: 'tenth',
|
|
61
|
+
eleven: 'eleventh',
|
|
62
|
+
twelve: 'twelfth',
|
|
63
|
+
});
|
|
48
64
|
/** List of ISO 4217 currency codes */
|
|
49
65
|
export const CURRENCY_CODES = /* @__PURE__ */ Object.freeze([
|
|
50
66
|
'AED',
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isNumber } from '../guards/primitives.js';
|
|
2
|
+
import { isNumericString } from '../guards/specials.js';
|
|
3
|
+
import { ORDINAL_UNDER_TEEN, THOUSANDS } from './constants.js';
|
|
2
4
|
import { _convertLessThanThousand } from './helpers.js';
|
|
3
5
|
/**
|
|
4
6
|
* * Converts a numeric value into its corresponding English word representation.
|
|
@@ -68,3 +70,36 @@ export const convertToRomanNumerals = (num) => {
|
|
|
68
70
|
}
|
|
69
71
|
return result;
|
|
70
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* * Converts a number, numeric string, or cardinal word string into its ordinal word representation.
|
|
75
|
+
*
|
|
76
|
+
* @param number - A number (e.g. `42`), numeric string (e.g. `"42"`), or cardinal word (e.g. `"forty-two"`).
|
|
77
|
+
* @returns The ordinal word form (always in lowercase) of the input.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* numberToWordsOrdinal(1); // "first"
|
|
81
|
+
* numberToWordsOrdinal("23"); // "twenty-third"
|
|
82
|
+
* numberToWordsOrdinal("twenty-three"); // "twenty-third"
|
|
83
|
+
*/
|
|
84
|
+
export function numberToWordsOrdinal(number) {
|
|
85
|
+
const TEEN_OR_HUNDRED = /(teen|hundred|thousand|(m|b|tr|quadr)illion)$/;
|
|
86
|
+
const UNDER_TEEN = /(zero|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve)$/;
|
|
87
|
+
const _fixUnderTeen = (cardinal) => {
|
|
88
|
+
return ORDINAL_UNDER_TEEN[cardinal];
|
|
89
|
+
};
|
|
90
|
+
const wordNumber = isNumericString(number) || isNumber(number) ?
|
|
91
|
+
numberToWords(number)
|
|
92
|
+
: number?.toLowerCase();
|
|
93
|
+
if (TEEN_OR_HUNDRED.test(wordNumber)) {
|
|
94
|
+
return wordNumber + 'th';
|
|
95
|
+
}
|
|
96
|
+
else if (/y$/.test(wordNumber)) {
|
|
97
|
+
return wordNumber.replace(/y$/, 'ieth');
|
|
98
|
+
}
|
|
99
|
+
else if (UNDER_TEEN.test(wordNumber)) {
|
|
100
|
+
return wordNumber.replace(UNDER_TEEN, _fixUnderTeen);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return wordNumber;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isDateLike } from '../date/guards.js';
|
|
1
2
|
import { isArrayOfType, isNotEmptyObject, isObject, } from '../guards/non-primitives.js';
|
|
2
3
|
import { isString } from '../guards/primitives.js';
|
|
3
4
|
import { trimString } from '../string/basics.js';
|
|
@@ -88,14 +89,22 @@ export function sanitizeData(input, options, _return) {
|
|
|
88
89
|
// Trim string values if enabled
|
|
89
90
|
acc[key] = trimString(value);
|
|
90
91
|
}
|
|
92
|
+
else if (isDateLike(value)) {
|
|
93
|
+
acc[key] = value;
|
|
94
|
+
}
|
|
91
95
|
else if (value && isObject(value)) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
if (isDateLike(value)) {
|
|
97
|
+
acc[key] = value;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
// Recursively process nested objects
|
|
101
|
+
const processedValue = _processObject(value, fullKeyPath);
|
|
102
|
+
// Add the property conditionally if it's not an empty object
|
|
103
|
+
if (!ignoreEmpty ||
|
|
104
|
+
isRequiredKey(fullKeyPath) ||
|
|
105
|
+
isNotEmptyObject(processedValue)) {
|
|
106
|
+
acc[key] = processedValue;
|
|
107
|
+
}
|
|
99
108
|
}
|
|
100
109
|
}
|
|
101
110
|
else if (value && Array.isArray(value)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nhb-toolbox",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.32",
|
|
4
4
|
"description": "A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -38,27 +38,27 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@eslint/js": "^9.
|
|
41
|
+
"@eslint/js": "^9.28.0",
|
|
42
42
|
"@types/jest": "^29.5.14",
|
|
43
|
-
"@types/node": "^22.
|
|
43
|
+
"@types/node": "^22.15.30",
|
|
44
44
|
"@types/semver": "^7.7.0",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
46
|
-
"@typescript-eslint/parser": "^8.
|
|
47
|
-
"chalk": "4.1
|
|
48
|
-
"eslint": "^9.
|
|
49
|
-
"eslint-config-prettier": "^10.
|
|
50
|
-
"eslint-plugin-prettier": "^5.
|
|
51
|
-
"execa": "^9.
|
|
52
|
-
"globals": "^
|
|
53
|
-
"globby": "^14.0
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.33.1",
|
|
46
|
+
"@typescript-eslint/parser": "^8.33.1",
|
|
47
|
+
"chalk": "5.4.1",
|
|
48
|
+
"eslint": "^9.28.0",
|
|
49
|
+
"eslint-config-prettier": "^10.1.5",
|
|
50
|
+
"eslint-plugin-prettier": "^5.4.1",
|
|
51
|
+
"execa": "^9.6.0",
|
|
52
|
+
"globals": "^16.2.0",
|
|
53
|
+
"globby": "^14.1.0",
|
|
54
54
|
"jest": "^29.7.0",
|
|
55
|
-
"prettier": "^3.
|
|
55
|
+
"prettier": "^3.5.3",
|
|
56
56
|
"progress-estimator": "^0.3.1",
|
|
57
57
|
"rimraf": "^6.0.1",
|
|
58
58
|
"semver": "^7.7.2",
|
|
59
|
-
"ts-jest": "^29.
|
|
60
|
-
"typescript": "^5.
|
|
61
|
-
"typescript-eslint": "^8.
|
|
59
|
+
"ts-jest": "^29.3.4",
|
|
60
|
+
"typescript": "^5.8.3",
|
|
61
|
+
"typescript-eslint": "^8.33.1"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"toolbox",
|