toolbox-x 2.0.13 → 2.2.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.
- package/dist/{Color-B2SgCGbm.d.mts → Color-CInCJvH7.d.mts} +98 -14
- package/dist/{Color-asKZqwDF.d.cts → Color-CVRcGmWe.d.cts} +98 -14
- package/dist/{Stylog-CRNMQ_uV.d.cts → Stylog-00MmV27Z.d.cts} +1 -1
- package/dist/{Stylog-Cvzo5z86.d.mts → Stylog-Bi1f4CR9.d.mts} +1 -1
- package/dist/{array-D8VGEDBI.d.mts → array-CbAKXvhH.d.mts} +3 -1
- package/dist/{array-ChT6TxQ7.d.cts → array-EVkwcL_k.d.cts} +3 -1
- package/dist/{basics-Dald7J6c.mjs → basics-20lm69yy.mjs} +5 -98
- package/dist/{basics-Bb5ovcvz.cjs → basics-byj0VH1c.cjs} +5 -140
- package/dist/colors.cjs +130 -24
- package/dist/colors.d.cts +2 -2
- package/dist/colors.d.mts +2 -2
- package/dist/colors.mjs +130 -24
- package/dist/constants.cjs +14 -14
- package/dist/constants.mjs +1 -1
- package/dist/{convert-Cqy2Llek.cjs → convert-BjKz_hhr.cjs} +6 -2
- package/dist/{convert-lXdkXPJR.mjs → convert-DRZXcjcS.mjs} +6 -2
- package/dist/date.cjs +6 -6
- package/dist/date.mjs +4 -4
- package/dist/dom.cjs +12 -11
- package/dist/dom.d.cts +2 -2
- package/dist/dom.d.mts +2 -2
- package/dist/dom.mjs +7 -6
- package/dist/{form-CHFqlgPr.d.cts → form-DA-YShnM.d.cts} +3 -2
- package/dist/{form-crhNgN40.d.mts → form-DIYoIS0E.d.mts} +3 -2
- package/dist/{guards-D8Iz6EEy.cjs → guards-BSwFQX1M.cjs} +3 -3
- package/dist/{guards-DziDBD0p.mjs → guards-CNG9gnvL.mjs} +1 -1
- package/dist/guards-CqbVT4L5.cjs +156 -0
- package/dist/{guards-DGN95D2h.cjs → guards-CrfVwk0-.cjs} +1 -1
- package/dist/guards-DKGBsd6x.mjs +115 -0
- package/dist/{guards-D1et4U32.mjs → guards-Dc9MB9on.mjs} +3 -3
- package/dist/guards.cjs +37 -36
- package/dist/guards.d.cts +2 -2
- package/dist/guards.d.mts +2 -2
- package/dist/guards.mjs +5 -4
- package/dist/hash.cjs +8 -8
- package/dist/hash.mjs +8 -8
- package/dist/{index-C9x0f9jU.d.mts → index-BbBnKdBb.d.mts} +1 -1
- package/dist/{index-BgomIbws.d.cts → index-D00Uqm9S.d.cts} +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +4 -5
- package/dist/index.d.mts +4 -5
- package/dist/index.mjs +12 -12
- package/dist/{parse-DUJ0YThn.mjs → parse-TuFyLeVH.mjs} +3 -3
- package/dist/{parse-CbVVRoFY.cjs → parse-jh637S25.cjs} +4 -4
- package/dist/pluralizer.cjs +1 -1
- package/dist/pluralizer.mjs +1 -1
- package/dist/{query-B4Lrr5Vt.mjs → query-BomnyWh3.mjs} +5 -5
- package/dist/{query-BUBCpo-q.cjs → query-sWSi-d7u.cjs} +10 -10
- package/dist/{specials-dkYP1Nh2.cjs → specials-DU8u108m.cjs} +1 -1
- package/dist/{specials-Hq5Ncd6y.mjs → specials-krf7zsqI.mjs} +1 -1
- package/dist/stylog.cjs +3 -3
- package/dist/stylog.d.cts +2 -2
- package/dist/stylog.d.mts +2 -2
- package/dist/stylog.mjs +3 -3
- package/dist/types/array.d.cts +2 -2
- package/dist/types/array.d.mts +2 -2
- package/dist/types/colors.d.cts +1 -1
- package/dist/types/colors.d.mts +1 -1
- package/dist/types/form.d.cts +1 -1
- package/dist/types/form.d.mts +1 -1
- package/dist/types/stylog.d.cts +1 -1
- package/dist/types/stylog.d.mts +1 -1
- package/dist/{utilities-DPscNbS1.mjs → utilities-BSv8VbnM.mjs} +1 -1
- package/dist/{utilities-CWV1GPGY.cjs → utilities-BVpk3LKy.cjs} +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_primitives = require('./primitives-CBGICrDR.cjs');
|
|
19
19
|
const require_case = require('./case-Bd7QLHYw.cjs');
|
|
20
|
+
const require_specials = require('./specials-DU8u108m.cjs');
|
|
20
21
|
const require_constants = require('./constants-B3nc8psr.cjs');
|
|
22
|
+
const require_utilities = require('./utilities-BVpk3LKy.cjs');
|
|
21
23
|
const require_countries = require('./countries-C0x58zVg.cjs');
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const require_guards = require('./guards-D8Iz6EEy.cjs');
|
|
26
|
-
const require_query = require('./query-BUBCpo-q.cjs');
|
|
24
|
+
const require_basics = require('./basics-byj0VH1c.cjs');
|
|
25
|
+
const require_guards = require('./guards-BSwFQX1M.cjs');
|
|
26
|
+
const require_query = require('./query-sWSi-d7u.cjs');
|
|
27
27
|
|
|
28
28
|
//#region src/string/anagram.ts
|
|
29
29
|
/** `WeakMap` to cache user provided dictionary array */
|
|
@@ -598,7 +598,7 @@ function getAverage(...numbers) {
|
|
|
598
598
|
* roundNumber(1234.56, 1); // 1234.6
|
|
599
599
|
*/
|
|
600
600
|
function roundNumber(number, roundTo = 2) {
|
|
601
|
-
const factor =
|
|
601
|
+
const factor = 10 ** roundTo;
|
|
602
602
|
const num = require_primitives.isNumber(number) ? number : Number(number);
|
|
603
603
|
return Math.round(num * factor) / factor;
|
|
604
604
|
}
|
|
@@ -1120,7 +1120,7 @@ function calculatePercentage(options) {
|
|
|
1120
1120
|
* @returns The rounded number.
|
|
1121
1121
|
*/
|
|
1122
1122
|
const _roundNumber = (num) => {
|
|
1123
|
-
const factor =
|
|
1123
|
+
const factor = 10 ** roundTo;
|
|
1124
1124
|
return Math.round(num * factor) / factor;
|
|
1125
1125
|
};
|
|
1126
1126
|
switch (options?.mode) {
|
|
@@ -1247,7 +1247,7 @@ function getNthFibonacci(index) {
|
|
|
1247
1247
|
*/
|
|
1248
1248
|
function numberToWords(num) {
|
|
1249
1249
|
let number = Math.trunc(Number(num));
|
|
1250
|
-
if (!Number.isFinite(number) || isNaN(number)) return "Invalid Number!";
|
|
1250
|
+
if (!Number.isFinite(number) || Number.isNaN(number)) return "Invalid Number!";
|
|
1251
1251
|
const isNegative = number < 0;
|
|
1252
1252
|
if (number === 0) return "zero";
|
|
1253
1253
|
number = Math.abs(number);
|
|
@@ -1352,7 +1352,7 @@ function numberToWordsOrdinal(number) {
|
|
|
1352
1352
|
return require_constants.ORDINAL_UNDER_TEEN[cardinal];
|
|
1353
1353
|
};
|
|
1354
1354
|
const wordNumber = require_specials.isNumericString(number) || require_primitives.isNumber(number) ? numberToWords(number) : number?.trim()?.toLowerCase();
|
|
1355
|
-
if (TEEN_OR_HUNDRED.test(wordNumber)) return wordNumber
|
|
1355
|
+
if (TEEN_OR_HUNDRED.test(wordNumber)) return `${wordNumber}th`;
|
|
1356
1356
|
else if (/y$/.test(wordNumber)) return wordNumber.replace(/y$/, "ieth");
|
|
1357
1357
|
else if (UNDER_TEEN.test(wordNumber)) return wordNumber.replace(UNDER_TEEN, _fixUnderTeen);
|
|
1358
1358
|
else return wordNumber;
|
|
@@ -1373,7 +1373,7 @@ function numberToWordsOrdinal(number) {
|
|
|
1373
1373
|
* @returns Numeric value of the word or NaN if cannot parse
|
|
1374
1374
|
*
|
|
1375
1375
|
* @remarks
|
|
1376
|
-
* **NOTE
|
|
1376
|
+
* **NOTE:** *For very large numbers (e.g. more than quintillion) results may not always be correct.*
|
|
1377
1377
|
*/
|
|
1378
1378
|
function wordsToNumber(word) {
|
|
1379
1379
|
if (!require_primitives.isNonEmptyString(word)) return NaN;
|
|
@@ -1470,7 +1470,7 @@ function wordsToNumber(word) {
|
|
|
1470
1470
|
function banglaToDigit(bnDigit, forceNumber = true) {
|
|
1471
1471
|
if (!require_primitives.isNonEmptyString(bnDigit)) return forceNumber ? NaN : "";
|
|
1472
1472
|
const digitStr = bnDigit.replace(/[০১২৩৪৫৬৭৮৯]/g, (d) => String(require_constants.BN_DIGITS[d]));
|
|
1473
|
-
if (forceNumber) return Number(digitStr.split("").filter((dig) => !isNaN(Number(dig))).join(""));
|
|
1473
|
+
if (forceNumber) return Number(digitStr.split("").filter((dig) => !Number.isNaN(Number(dig))).join(""));
|
|
1474
1474
|
return digitStr;
|
|
1475
1475
|
}
|
|
1476
1476
|
/**
|
|
@@ -1577,7 +1577,7 @@ function getNumbersInRange(type = "any", options) {
|
|
|
1577
1577
|
*/
|
|
1578
1578
|
function createOptionsArray(data, config) {
|
|
1579
1579
|
const { firstFieldKey, secondFieldKey, firstFieldName = "value", secondFieldName = "label", retainNumberValue = false } = config || {};
|
|
1580
|
-
if (data
|
|
1580
|
+
if (data?.length) return data?.map((datum) => {
|
|
1581
1581
|
const firstValue = retainNumberValue && require_primitives.isNumber(datum[firstFieldKey]) ? datum[firstFieldKey] : String(datum[firstFieldKey] ?? "");
|
|
1582
1582
|
return {
|
|
1583
1583
|
[firstFieldName]: firstValue,
|
package/dist/index.d.cts
CHANGED
|
@@ -18,8 +18,8 @@ import { $n as NumberType, Bn as DecimalOptions, D as NumericDotKey, E as Nested
|
|
|
18
18
|
import { T as DiffResult, f as AnagramOptions, g as CharDiffResult, j as MaskOptions } from "./string-EMT7czsU.cjs";
|
|
19
19
|
import { n as convertStringCase, t as capitalizeString } from "./case-DMCkxWbW.cjs";
|
|
20
20
|
import { i as parseQueryStringLiteral, r as parseQueryString, t as generateQueryParams } from "./query-BLsaWi3q.cjs";
|
|
21
|
-
import { c as OrderOption, l as SortByOption, n as FindOptions, s as OptionsConfig, t as FieldValue, u as SortNature } from "./array-
|
|
22
|
-
import { C as shuffleArray, S as isInvalidOrEmptyArray, _ as findPrimeNumbers, a as deepParsePrimitives, b as flattenArray, c as getInstanceGetterNames, d as getStaticMethodNames, f as isDeepEqual, g as throttleAction, h as stripJsonEdgeGarbage, i as debounceAction, l as getInstanceMethodNames, m as stableStringify, n as countInstanceMethods, o as definePrototypeMethod, p as parseJSON, r as countStaticMethods, s as getClassDetails, t as convertArrayToString, u as getStaticGetterNames, v as isPrime, x as getLastArrayElement, y as filterArrayOfObjects } from "./index-
|
|
21
|
+
import { c as OrderOption, l as SortByOption, n as FindOptions, s as OptionsConfig, t as FieldValue, u as SortNature } from "./array-EVkwcL_k.cjs";
|
|
22
|
+
import { C as shuffleArray, S as isInvalidOrEmptyArray, _ as findPrimeNumbers, a as deepParsePrimitives, b as flattenArray, c as getInstanceGetterNames, d as getStaticMethodNames, f as isDeepEqual, g as throttleAction, h as stripJsonEdgeGarbage, i as debounceAction, l as getInstanceMethodNames, m as stableStringify, n as countInstanceMethods, o as definePrototypeMethod, p as parseJSON, r as countStaticMethods, s as getClassDetails, t as convertArrayToString, u as getStaticGetterNames, v as isPrime, x as getLastArrayElement, y as filterArrayOfObjects } from "./index-D00Uqm9S.cjs";
|
|
23
23
|
import { n as trimString, r as truncateString, t as generateRandomID } from "./basics-DlwGpXu-.cjs";
|
|
24
24
|
|
|
25
25
|
//#region src/string/anagram.d.ts
|
|
@@ -491,7 +491,7 @@ declare function numberToWordsOrdinal(number: Numeric | string): string;
|
|
|
491
491
|
* @returns Numeric value of the word or NaN if cannot parse
|
|
492
492
|
*
|
|
493
493
|
* @remarks
|
|
494
|
-
* **NOTE
|
|
494
|
+
* **NOTE:** *For very large numbers (e.g. more than quintillion) results may not always be correct.*
|
|
495
495
|
*/
|
|
496
496
|
declare function wordsToNumber(word: string): number;
|
|
497
497
|
/**
|
|
@@ -1075,8 +1075,7 @@ declare const extractUpdatedAndNewFields: <T extends GenericObject, U extends Ge
|
|
|
1075
1075
|
* - *Unlike `parseJSON`, which returns any valid JSON structure (including arrays, strings, numbers, etc.),
|
|
1076
1076
|
* this function strictly ensures that the result is an object and optionally transforms stringified primitives.*
|
|
1077
1077
|
*
|
|
1078
|
-
* @see parseJSON - For parsing generic JSON values (arrays, numbers, etc.) with optional primitive transformation.
|
|
1079
|
-
*
|
|
1078
|
+
* @see `parseJSON` - For parsing generic JSON values (arrays, numbers, etc.) with optional primitive transformation.
|
|
1080
1079
|
*/
|
|
1081
1080
|
declare const parseJsonToObject: <T extends GenericObject = GenericObject>(value: string, parsePrimitives?: boolean) => T;
|
|
1082
1081
|
//#endregion
|
package/dist/index.d.mts
CHANGED
|
@@ -18,8 +18,8 @@ import { $n as NumberType, Bn as DecimalOptions, D as NumericDotKey, E as Nested
|
|
|
18
18
|
import { T as DiffResult, f as AnagramOptions, g as CharDiffResult, j as MaskOptions } from "./string-GQsmDdYa.mjs";
|
|
19
19
|
import { n as convertStringCase, t as capitalizeString } from "./case-CcoD-jFV.mjs";
|
|
20
20
|
import { i as parseQueryStringLiteral, r as parseQueryString, t as generateQueryParams } from "./query-Bi_ofCBp.mjs";
|
|
21
|
-
import { c as OrderOption, l as SortByOption, n as FindOptions, s as OptionsConfig, t as FieldValue, u as SortNature } from "./array-
|
|
22
|
-
import { C as shuffleArray, S as isInvalidOrEmptyArray, _ as findPrimeNumbers, a as deepParsePrimitives, b as flattenArray, c as getInstanceGetterNames, d as getStaticMethodNames, f as isDeepEqual, g as throttleAction, h as stripJsonEdgeGarbage, i as debounceAction, l as getInstanceMethodNames, m as stableStringify, n as countInstanceMethods, o as definePrototypeMethod, p as parseJSON, r as countStaticMethods, s as getClassDetails, t as convertArrayToString, u as getStaticGetterNames, v as isPrime, x as getLastArrayElement, y as filterArrayOfObjects } from "./index-
|
|
21
|
+
import { c as OrderOption, l as SortByOption, n as FindOptions, s as OptionsConfig, t as FieldValue, u as SortNature } from "./array-CbAKXvhH.mjs";
|
|
22
|
+
import { C as shuffleArray, S as isInvalidOrEmptyArray, _ as findPrimeNumbers, a as deepParsePrimitives, b as flattenArray, c as getInstanceGetterNames, d as getStaticMethodNames, f as isDeepEqual, g as throttleAction, h as stripJsonEdgeGarbage, i as debounceAction, l as getInstanceMethodNames, m as stableStringify, n as countInstanceMethods, o as definePrototypeMethod, p as parseJSON, r as countStaticMethods, s as getClassDetails, t as convertArrayToString, u as getStaticGetterNames, v as isPrime, x as getLastArrayElement, y as filterArrayOfObjects } from "./index-BbBnKdBb.mjs";
|
|
23
23
|
import { n as trimString, r as truncateString, t as generateRandomID } from "./basics-DY7AX7D4.mjs";
|
|
24
24
|
|
|
25
25
|
//#region src/string/anagram.d.ts
|
|
@@ -491,7 +491,7 @@ declare function numberToWordsOrdinal(number: Numeric | string): string;
|
|
|
491
491
|
* @returns Numeric value of the word or NaN if cannot parse
|
|
492
492
|
*
|
|
493
493
|
* @remarks
|
|
494
|
-
* **NOTE
|
|
494
|
+
* **NOTE:** *For very large numbers (e.g. more than quintillion) results may not always be correct.*
|
|
495
495
|
*/
|
|
496
496
|
declare function wordsToNumber(word: string): number;
|
|
497
497
|
/**
|
|
@@ -1075,8 +1075,7 @@ declare const extractUpdatedAndNewFields: <T extends GenericObject, U extends Ge
|
|
|
1075
1075
|
* - *Unlike `parseJSON`, which returns any valid JSON structure (including arrays, strings, numbers, etc.),
|
|
1076
1076
|
* this function strictly ensures that the result is an object and optionally transforms stringified primitives.*
|
|
1077
1077
|
*
|
|
1078
|
-
* @see parseJSON - For parsing generic JSON values (arrays, numbers, etc.) with optional primitive transformation.
|
|
1079
|
-
*
|
|
1078
|
+
* @see `parseJSON` - For parsing generic JSON values (arrays, numbers, etc.) with optional primitive transformation.
|
|
1080
1079
|
*/
|
|
1081
1080
|
declare const parseJsonToObject: <T extends GenericObject = GenericObject>(value: string, parsePrimitives?: boolean) => T;
|
|
1082
1081
|
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
import { a as isNonEmptyString, c as isNumber, d as isString, i as isInteger, m as isUndefined } from "./primitives-Djsevc69.mjs";
|
|
18
18
|
import { n as convertStringCase, t as capitalizeString } from "./case-DBC4Rj0h.mjs";
|
|
19
|
+
import { T as isObject, b as isFunction, d as isNumericString, j as isValidArray } from "./specials-krf7zsqI.mjs";
|
|
19
20
|
import { c as ORDINAL_UNDER_TEEN, d as TENS, f as THOUSANDS, l as PREFIX_MULTIPLIERS, o as ONES, s as ORDINAL_TO_CARDINAL, t as BN_DIGITS, u as TEENS } from "./constants-ZyfpysiQ.mjs";
|
|
21
|
+
import { a as normalizeNumber, i as getRandomFloat, n as formatCurrency, o as roundToNearest, r as getOrdinal, t as clampNumber } from "./utilities-BSv8VbnM.mjs";
|
|
20
22
|
import { t as COUNTRIES } from "./countries-CMxHxKiK.mjs";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { A as extractObjectEntries, C as filterArrayOfObjects, D as shuffleArray, E as isInvalidOrEmptyArray, M as extractObjectKeysDeep, O as cloneObject, T as getLastArrayElement, _ as areInvalidNumbers, c as extractURLs, d as normalizeString, f as replaceAllInString, g as isPrime, h as findPrimeNumbers, j as extractObjectKeys, k as countObjectFields, l as formatUnitWithPlural, m as slugifyString, p as reverseString, s as extractEmails, u as maskString, v as isEven, w as flattenArray, x as isOdd } from "./guards-D1et4U32.mjs";
|
|
25
|
-
import { c as extractUpdatedFields, d as mergeAndFlattenObjects, f as mergeObjects, h as sanitizeData, i as parseQueryStringLiteral, l as flattenObjectDotNotation, m as parseObjectValues, o as extractNewFields, p as parseJsonToObject, r as parseQueryString, s as extractUpdatedAndNewFields, t as generateQueryParams, u as flattenObjectKeyValue } from "./query-B4Lrr5Vt.mjs";
|
|
23
|
+
import { B as getInstanceMethodNames, F as debounceAction, G as stableStringify, H as getStaticMethodNames, I as deepParsePrimitives, J as naturalSort, K as stripJsonEdgeGarbage, L as definePrototypeMethod, M as convertArrayToString, N as countInstanceMethods, P as countStaticMethods, R as getClassDetails, U as isDeepEqual, V as getStaticGetterNames, W as parseJSON, X as _getNumericProp, Y as sortAnArray, Z as _resolveNestedKey, n as trimString, q as throttleAction, r as truncateString, t as generateRandomID, z as getInstanceGetterNames } from "./basics-20lm69yy.mjs";
|
|
24
|
+
import { A as extractObjectEntries, C as filterArrayOfObjects, D as shuffleArray, E as isInvalidOrEmptyArray, M as extractObjectKeysDeep, O as cloneObject, T as getLastArrayElement, _ as areInvalidNumbers, c as extractURLs, d as normalizeString, f as replaceAllInString, g as isPrime, h as findPrimeNumbers, j as extractObjectKeys, k as countObjectFields, l as formatUnitWithPlural, m as slugifyString, p as reverseString, s as extractEmails, u as maskString, v as isEven, w as flattenArray, x as isOdd } from "./guards-Dc9MB9on.mjs";
|
|
25
|
+
import { c as extractUpdatedFields, d as mergeAndFlattenObjects, f as mergeObjects, h as sanitizeData, i as parseQueryStringLiteral, l as flattenObjectDotNotation, m as parseObjectValues, o as extractNewFields, p as parseJsonToObject, r as parseQueryString, s as extractUpdatedAndNewFields, t as generateQueryParams, u as flattenObjectKeyValue } from "./query-BomnyWh3.mjs";
|
|
26
26
|
|
|
27
27
|
//#region src/string/anagram.ts
|
|
28
28
|
/** `WeakMap` to cache user provided dictionary array */
|
|
@@ -597,7 +597,7 @@ function getAverage(...numbers) {
|
|
|
597
597
|
* roundNumber(1234.56, 1); // 1234.6
|
|
598
598
|
*/
|
|
599
599
|
function roundNumber(number, roundTo = 2) {
|
|
600
|
-
const factor =
|
|
600
|
+
const factor = 10 ** roundTo;
|
|
601
601
|
const num = isNumber(number) ? number : Number(number);
|
|
602
602
|
return Math.round(num * factor) / factor;
|
|
603
603
|
}
|
|
@@ -1119,7 +1119,7 @@ function calculatePercentage(options) {
|
|
|
1119
1119
|
* @returns The rounded number.
|
|
1120
1120
|
*/
|
|
1121
1121
|
const _roundNumber = (num) => {
|
|
1122
|
-
const factor =
|
|
1122
|
+
const factor = 10 ** roundTo;
|
|
1123
1123
|
return Math.round(num * factor) / factor;
|
|
1124
1124
|
};
|
|
1125
1125
|
switch (options?.mode) {
|
|
@@ -1246,7 +1246,7 @@ function getNthFibonacci(index) {
|
|
|
1246
1246
|
*/
|
|
1247
1247
|
function numberToWords(num) {
|
|
1248
1248
|
let number = Math.trunc(Number(num));
|
|
1249
|
-
if (!Number.isFinite(number) || isNaN(number)) return "Invalid Number!";
|
|
1249
|
+
if (!Number.isFinite(number) || Number.isNaN(number)) return "Invalid Number!";
|
|
1250
1250
|
const isNegative = number < 0;
|
|
1251
1251
|
if (number === 0) return "zero";
|
|
1252
1252
|
number = Math.abs(number);
|
|
@@ -1351,7 +1351,7 @@ function numberToWordsOrdinal(number) {
|
|
|
1351
1351
|
return ORDINAL_UNDER_TEEN[cardinal];
|
|
1352
1352
|
};
|
|
1353
1353
|
const wordNumber = isNumericString(number) || isNumber(number) ? numberToWords(number) : number?.trim()?.toLowerCase();
|
|
1354
|
-
if (TEEN_OR_HUNDRED.test(wordNumber)) return wordNumber
|
|
1354
|
+
if (TEEN_OR_HUNDRED.test(wordNumber)) return `${wordNumber}th`;
|
|
1355
1355
|
else if (/y$/.test(wordNumber)) return wordNumber.replace(/y$/, "ieth");
|
|
1356
1356
|
else if (UNDER_TEEN.test(wordNumber)) return wordNumber.replace(UNDER_TEEN, _fixUnderTeen);
|
|
1357
1357
|
else return wordNumber;
|
|
@@ -1372,7 +1372,7 @@ function numberToWordsOrdinal(number) {
|
|
|
1372
1372
|
* @returns Numeric value of the word or NaN if cannot parse
|
|
1373
1373
|
*
|
|
1374
1374
|
* @remarks
|
|
1375
|
-
* **NOTE
|
|
1375
|
+
* **NOTE:** *For very large numbers (e.g. more than quintillion) results may not always be correct.*
|
|
1376
1376
|
*/
|
|
1377
1377
|
function wordsToNumber(word) {
|
|
1378
1378
|
if (!isNonEmptyString(word)) return NaN;
|
|
@@ -1469,7 +1469,7 @@ function wordsToNumber(word) {
|
|
|
1469
1469
|
function banglaToDigit(bnDigit, forceNumber = true) {
|
|
1470
1470
|
if (!isNonEmptyString(bnDigit)) return forceNumber ? NaN : "";
|
|
1471
1471
|
const digitStr = bnDigit.replace(/[০১২৩৪৫৬৭৮৯]/g, (d) => String(BN_DIGITS[d]));
|
|
1472
|
-
if (forceNumber) return Number(digitStr.split("").filter((dig) => !isNaN(Number(dig))).join(""));
|
|
1472
|
+
if (forceNumber) return Number(digitStr.split("").filter((dig) => !Number.isNaN(Number(dig))).join(""));
|
|
1473
1473
|
return digitStr;
|
|
1474
1474
|
}
|
|
1475
1475
|
/**
|
|
@@ -1576,7 +1576,7 @@ function getNumbersInRange(type = "any", options) {
|
|
|
1576
1576
|
*/
|
|
1577
1577
|
function createOptionsArray(data, config) {
|
|
1578
1578
|
const { firstFieldKey, secondFieldKey, firstFieldName = "value", secondFieldName = "label", retainNumberValue = false } = config || {};
|
|
1579
|
-
if (data
|
|
1579
|
+
if (data?.length) return data?.map((datum) => {
|
|
1580
1580
|
const firstValue = retainNumberValue && isNumber(datum[firstFieldKey]) ? datum[firstFieldKey] : String(datum[firstFieldKey] ?? "");
|
|
1581
1581
|
return {
|
|
1582
1582
|
[firstFieldName]: firstValue,
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { a as isNonEmptyString, c as isNumber, d as isString } from "./primitives-Djsevc69.mjs";
|
|
18
|
+
import { d as isNumericString } from "./specials-krf7zsqI.mjs";
|
|
19
|
+
import { r as getOrdinal } from "./utilities-BSv8VbnM.mjs";
|
|
18
20
|
import { i as MS_MAP, n as DAYS, o as SORTED_TIME_FORMATS, r as MONTHS } from "./constants-GZL_CT1W.mjs";
|
|
19
|
-
import {
|
|
20
|
-
import { r as getOrdinal } from "./utilities-DPscNbS1.mjs";
|
|
21
|
-
import { Z as isTimeWithUnit } from "./basics-Dald7J6c.mjs";
|
|
21
|
+
import { i as isTimeWithUnit } from "./guards-DKGBsd6x.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/date/helpers.ts
|
|
24
24
|
/** Core formatting logic shared by `formatDate` and `Chronos`, `BanglaCalendar` classes */
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
const require_primitives = require('./primitives-CBGICrDR.cjs');
|
|
18
|
+
const require_specials = require('./specials-DU8u108m.cjs');
|
|
19
|
+
const require_utilities = require('./utilities-BVpk3LKy.cjs');
|
|
18
20
|
const require_constants = require('./constants-CgFaV72Z.cjs');
|
|
19
|
-
const
|
|
20
|
-
const require_utilities = require('./utilities-CWV1GPGY.cjs');
|
|
21
|
-
const require_basics = require('./basics-Bb5ovcvz.cjs');
|
|
21
|
+
const require_guards = require('./guards-CqbVT4L5.cjs');
|
|
22
22
|
|
|
23
23
|
//#region src/date/helpers.ts
|
|
24
24
|
/** Core formatting logic shared by `formatDate` and `Chronos`, `BanglaCalendar` classes */
|
|
@@ -139,7 +139,7 @@ function _dateArgsToDate(value) {
|
|
|
139
139
|
*/
|
|
140
140
|
function parseMSec(value, sec = false) {
|
|
141
141
|
if (require_primitives.isNumber(value) || require_specials.isNumericString(value)) return _parse(`${value}s`, sec);
|
|
142
|
-
else if (
|
|
142
|
+
else if (require_guards.isTimeWithUnit(value)) return _parse(value, sec);
|
|
143
143
|
else return NaN;
|
|
144
144
|
}
|
|
145
145
|
/**
|
package/dist/pluralizer.cjs
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_primitives = require('./primitives-CBGICrDR.cjs');
|
|
19
|
-
const require_utilities = require('./utilities-
|
|
19
|
+
const require_utilities = require('./utilities-BVpk3LKy.cjs');
|
|
20
20
|
|
|
21
21
|
//#region src/pluralizer/rules.ts
|
|
22
22
|
/** Irregular singular → plural mappings */
|
package/dist/pluralizer.mjs
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { a as isNonEmptyString, d as isString, m as isUndefined } from "./primitives-Djsevc69.mjs";
|
|
18
|
-
import { a as normalizeNumber } from "./utilities-
|
|
18
|
+
import { a as normalizeNumber } from "./utilities-BSv8VbnM.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/pluralizer/rules.ts
|
|
21
21
|
/** Irregular singular → plural mappings */
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { d as isString } from "./primitives-Djsevc69.mjs";
|
|
18
|
-
import { E as isObjectWithKeys, T as isObject, g as isArrayOfType, j as isValidArray, v as isEmptyObject, w as isNotEmptyObject } from "./specials-
|
|
19
|
-
import {
|
|
18
|
+
import { E as isObjectWithKeys, T as isObject, g as isArrayOfType, j as isValidArray, v as isEmptyObject, w as isNotEmptyObject } from "./specials-krf7zsqI.mjs";
|
|
19
|
+
import { t as isDateLike } from "./guards-DKGBsd6x.mjs";
|
|
20
|
+
import { I as deepParsePrimitives, U as isDeepEqual, n as trimString } from "./basics-20lm69yy.mjs";
|
|
20
21
|
|
|
21
22
|
//#region src/form/guards.ts
|
|
22
23
|
/**
|
|
@@ -212,7 +213,7 @@ function parseObjectValues(object, parseNested = true) {
|
|
|
212
213
|
else if (data === "false") return false;
|
|
213
214
|
else if (data === "null") return null;
|
|
214
215
|
else if (data === "undefined") return;
|
|
215
|
-
else if (!isNaN(Number(data))) return Number(data);
|
|
216
|
+
else if (!Number.isNaN(Number(data))) return Number(data);
|
|
216
217
|
else return data;
|
|
217
218
|
}
|
|
218
219
|
return data;
|
|
@@ -393,8 +394,7 @@ const extractUpdatedAndNewFields = (baseObject, updatedObject) => {
|
|
|
393
394
|
* - *Unlike `parseJSON`, which returns any valid JSON structure (including arrays, strings, numbers, etc.),
|
|
394
395
|
* this function strictly ensures that the result is an object and optionally transforms stringified primitives.*
|
|
395
396
|
*
|
|
396
|
-
* @see parseJSON - For parsing generic JSON values (arrays, numbers, etc.) with optional primitive transformation.
|
|
397
|
-
*
|
|
397
|
+
* @see `parseJSON` - For parsing generic JSON values (arrays, numbers, etc.) with optional primitive transformation.
|
|
398
398
|
*/
|
|
399
399
|
const parseJsonToObject = (value, parsePrimitives = true) => {
|
|
400
400
|
try {
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
const require_primitives = require('./primitives-CBGICrDR.cjs');
|
|
18
|
-
const require_specials = require('./specials-
|
|
19
|
-
const
|
|
18
|
+
const require_specials = require('./specials-DU8u108m.cjs');
|
|
19
|
+
const require_guards = require('./guards-CqbVT4L5.cjs');
|
|
20
|
+
const require_basics = require('./basics-byj0VH1c.cjs');
|
|
20
21
|
|
|
21
22
|
//#region src/form/guards.ts
|
|
22
23
|
/**
|
|
@@ -129,7 +130,7 @@ function sanitizeData(input, options, _return) {
|
|
|
129
130
|
};
|
|
130
131
|
/** Determines if a value is file-like or date-like object */
|
|
131
132
|
const _shouldNotProcess = (value) => {
|
|
132
|
-
return isCustomFile(value) || isFileList(value) || isFileOrBlob(value) || isFileUpload(value) ||
|
|
133
|
+
return isCustomFile(value) || isFileList(value) || isFileOrBlob(value) || isFileUpload(value) || require_guards.isDateLike(value);
|
|
133
134
|
};
|
|
134
135
|
/**
|
|
135
136
|
* * Recursively process an array and its nested content(s).
|
|
@@ -212,7 +213,7 @@ function parseObjectValues(object, parseNested = true) {
|
|
|
212
213
|
else if (data === "false") return false;
|
|
213
214
|
else if (data === "null") return null;
|
|
214
215
|
else if (data === "undefined") return;
|
|
215
|
-
else if (!isNaN(Number(data))) return Number(data);
|
|
216
|
+
else if (!Number.isNaN(Number(data))) return Number(data);
|
|
216
217
|
else return data;
|
|
217
218
|
}
|
|
218
219
|
return data;
|
|
@@ -251,7 +252,7 @@ const mergeObjects = (...objects) => {
|
|
|
251
252
|
const map = /* @__PURE__ */ new Map();
|
|
252
253
|
for (const obj of objects) for (const key in obj) {
|
|
253
254
|
const existingValue = map.get(key);
|
|
254
|
-
if (require_specials.isNotEmptyObject(obj[key])) if (require_specials.isNotEmptyObject(existingValue)) if (
|
|
255
|
+
if (require_specials.isNotEmptyObject(obj[key])) if (require_specials.isNotEmptyObject(existingValue)) if (require_guards.isDateLike(obj[key]) || isFileOrBlob(obj[key])) map.set(key, obj[key]);
|
|
255
256
|
else map.set(key, mergeObjects(existingValue, obj[key]));
|
|
256
257
|
else map.set(key, obj[key]);
|
|
257
258
|
else map.set(key, obj[key]);
|
|
@@ -275,7 +276,7 @@ const mergeAndFlattenObjects = (...objects) => {
|
|
|
275
276
|
const _flattenObject = (obj, parentKey = "") => {
|
|
276
277
|
for (const key in obj) {
|
|
277
278
|
const newKey = parentKey ? `${String(parentKey)}.${key}` : key;
|
|
278
|
-
if (require_specials.isNotEmptyObject(obj[key])) if (
|
|
279
|
+
if (require_specials.isNotEmptyObject(obj[key])) if (require_guards.isDateLike(obj[key]) || isFileOrBlob(obj[key])) map.set(newKey, obj[key]);
|
|
279
280
|
else _flattenObject(obj[key], newKey);
|
|
280
281
|
else map.set(newKey, obj[key]);
|
|
281
282
|
}
|
|
@@ -297,7 +298,7 @@ const flattenObjectKeyValue = (object) => {
|
|
|
297
298
|
const flattened = {};
|
|
298
299
|
for (const [key, value] of Object.entries(object)) if (require_specials.isNotEmptyObject(value)) {
|
|
299
300
|
const nestedFlattened = flattenObjectKeyValue(value);
|
|
300
|
-
if (
|
|
301
|
+
if (require_guards.isDateLike(value) || isFileOrBlob(value)) flattened[key] = value;
|
|
301
302
|
else Object.assign(flattened, nestedFlattened);
|
|
302
303
|
} else flattened[key] = value;
|
|
303
304
|
return flattened;
|
|
@@ -320,7 +321,7 @@ const flattenObjectDotNotation = (object) => {
|
|
|
320
321
|
const flattened = {};
|
|
321
322
|
for (const [key, value] of Object.entries(source)) {
|
|
322
323
|
const newKey = prefix ? `${String(prefix)}.${key}` : key;
|
|
323
|
-
if (require_specials.isNotEmptyObject(value) || isFileOrBlob(value)) if (
|
|
324
|
+
if (require_specials.isNotEmptyObject(value) || isFileOrBlob(value)) if (require_guards.isDateLike(value)) flattened[newKey] = value;
|
|
324
325
|
else Object.assign(flattened, _flattenObject(value, newKey));
|
|
325
326
|
else flattened[newKey] = value;
|
|
326
327
|
}
|
|
@@ -393,8 +394,7 @@ const extractUpdatedAndNewFields = (baseObject, updatedObject) => {
|
|
|
393
394
|
* - *Unlike `parseJSON`, which returns any valid JSON structure (including arrays, strings, numbers, etc.),
|
|
394
395
|
* this function strictly ensures that the result is an object and optionally transforms stringified primitives.*
|
|
395
396
|
*
|
|
396
|
-
* @see parseJSON - For parsing generic JSON values (arrays, numbers, etc.) with optional primitive transformation.
|
|
397
|
-
*
|
|
397
|
+
* @see `parseJSON` - For parsing generic JSON values (arrays, numbers, etc.) with optional primitive transformation.
|
|
398
398
|
*/
|
|
399
399
|
const parseJsonToObject = (value, parsePrimitives = true) => {
|
|
400
400
|
try {
|
|
@@ -187,7 +187,7 @@ function isEmailArray(value) {
|
|
|
187
187
|
* @returns `true` if the value is a valid date string, otherwise `false`.
|
|
188
188
|
*/
|
|
189
189
|
function isDateString(value) {
|
|
190
|
-
return require_primitives.isString(value) && !isNaN(Date.parse(value));
|
|
190
|
+
return require_primitives.isString(value) && !Number.isNaN(Date.parse(value));
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
193
|
* * Type guard to check if a value is a valid UUID (`RFC4122` `v1`-`v8`).
|
|
@@ -187,7 +187,7 @@ function isEmailArray(value) {
|
|
|
187
187
|
* @returns `true` if the value is a valid date string, otherwise `false`.
|
|
188
188
|
*/
|
|
189
189
|
function isDateString(value) {
|
|
190
|
-
return isString(value) && !isNaN(Date.parse(value));
|
|
190
|
+
return isString(value) && !Number.isNaN(Date.parse(value));
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
193
|
* * Type guard to check if a value is a valid UUID (`RFC4122` `v1`-`v8`).
|
package/dist/stylog.cjs
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_primitives = require('./primitives-CBGICrDR.cjs');
|
|
19
19
|
const require_css_colors = require('./css-colors-DC7oZ46Y.cjs');
|
|
20
|
-
const require_guards = require('./guards-
|
|
21
|
-
const require_convert = require('./convert-
|
|
22
|
-
const require_specials = require('./specials-
|
|
20
|
+
const require_guards = require('./guards-CrfVwk0-.cjs');
|
|
21
|
+
const require_convert = require('./convert-BjKz_hhr.cjs');
|
|
22
|
+
const require_specials = require('./specials-DU8u108m.cjs');
|
|
23
23
|
|
|
24
24
|
//#region src/stylog/console.log.ts
|
|
25
25
|
/**
|
package/dist/stylog.d.cts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { _ as Hex } from "./Color-
|
|
18
|
-
import { a as AnsiSequence, n as Stylog, o as BGColor, t as LogStyler, u as TextStyle } from "./Stylog-
|
|
17
|
+
import { _ as Hex } from "./Color-CVRcGmWe.cjs";
|
|
18
|
+
import { a as AnsiSequence, n as Stylog, o as BGColor, t as LogStyler, u as TextStyle } from "./Stylog-00MmV27Z.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/stylog/utils.d.ts
|
|
21
21
|
/**
|
package/dist/stylog.d.mts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { _ as Hex } from "./Color-
|
|
18
|
-
import { a as AnsiSequence, n as Stylog, o as BGColor, t as LogStyler, u as TextStyle } from "./Stylog-
|
|
17
|
+
import { _ as Hex } from "./Color-CInCJvH7.mjs";
|
|
18
|
+
import { a as AnsiSequence, n as Stylog, o as BGColor, t as LogStyler, u as TextStyle } from "./Stylog-Bi1f4CR9.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/stylog/utils.d.ts
|
|
21
21
|
/**
|
package/dist/stylog.mjs
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
import { c as isNumber, d as isString } from "./primitives-Djsevc69.mjs";
|
|
18
18
|
import { t as CSS_COLORS } from "./css-colors-B-y4TmeC.mjs";
|
|
19
|
-
import { f as _isValidHue, i as isHex6, m as _isValidRGBComponent, o as isRGB, p as _isValidPercentage, t as isCSSColor } from "./guards-
|
|
20
|
-
import { a as convertHexToRgb, s as convertHslToRgb } from "./convert-
|
|
21
|
-
import { g as isArrayOfType, r as isBrowser } from "./specials-
|
|
19
|
+
import { f as _isValidHue, i as isHex6, m as _isValidRGBComponent, o as isRGB, p as _isValidPercentage, t as isCSSColor } from "./guards-CNG9gnvL.mjs";
|
|
20
|
+
import { a as convertHexToRgb, s as convertHslToRgb } from "./convert-DRZXcjcS.mjs";
|
|
21
|
+
import { g as isArrayOfType, r as isBrowser } from "./specials-krf7zsqI.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/stylog/console.log.ts
|
|
24
24
|
/**
|
package/dist/types/array.d.cts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as Flattened, c as OrderOption, d as SortOptions, i as FirstFieldValue, l as SortByOption, n as FindOptions, o as Option, r as FirstFieldKey, s as OptionsConfig, t as FieldValue, u as SortNature } from "../array-
|
|
18
|
-
export { FieldValue, FindOptions, FirstFieldKey, FirstFieldValue, Flattened, Option, OptionsConfig, OrderOption, SortByOption, SortNature, SortOptions };
|
|
17
|
+
import { a as Flattened, c as OrderOption, d as SortOptions, f as TypeOrArray, i as FirstFieldValue, l as SortByOption, n as FindOptions, o as Option, r as FirstFieldKey, s as OptionsConfig, t as FieldValue, u as SortNature } from "../array-EVkwcL_k.cjs";
|
|
18
|
+
export { FieldValue, FindOptions, FirstFieldKey, FirstFieldValue, Flattened, Option, OptionsConfig, OrderOption, SortByOption, SortNature, SortOptions, TypeOrArray };
|
package/dist/types/array.d.mts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as Flattened, c as OrderOption, d as SortOptions, i as FirstFieldValue, l as SortByOption, n as FindOptions, o as Option, r as FirstFieldKey, s as OptionsConfig, t as FieldValue, u as SortNature } from "../array-
|
|
18
|
-
export { FieldValue, FindOptions, FirstFieldKey, FirstFieldValue, Flattened, Option, OptionsConfig, OrderOption, SortByOption, SortNature, SortOptions };
|
|
17
|
+
import { a as Flattened, c as OrderOption, d as SortOptions, f as TypeOrArray, i as FirstFieldValue, l as SortByOption, n as FindOptions, o as Option, r as FirstFieldKey, s as OptionsConfig, t as FieldValue, u as SortNature } from "../array-CbAKXvhH.mjs";
|
|
18
|
+
export { FieldValue, FindOptions, FirstFieldKey, FirstFieldValue, Flattened, Option, OptionsConfig, OrderOption, SortByOption, SortNature, SortOptions, TypeOrArray };
|
package/dist/types/colors.d.cts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as RandomColorOptions, D as Triad, E as Tetrad, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, c as ColorInput, d as ColorTypeAlpha, f as ColorTypeSolid, g as HSLA, h as HSL, i as AlphaValue, l as ColorInputArray, m as ConvertedColors, n as $ColorType, o as Analogous, p as Colors, r as AlphaColors, s as CSSColor, u as ColorType, v as Hex6, w as SolidColors, x as RGBA, y as Hex8 } from "../Color-
|
|
17
|
+
import { C as RandomColorOptions, D as Triad, E as Tetrad, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, c as ColorInput, d as ColorTypeAlpha, f as ColorTypeSolid, g as HSLA, h as HSL, i as AlphaValue, l as ColorInputArray, m as ConvertedColors, n as $ColorType, o as Analogous, p as Colors, r as AlphaColors, s as CSSColor, u as ColorType, v as Hex6, w as SolidColors, x as RGBA, y as Hex8 } from "../Color-CVRcGmWe.cjs";
|
|
18
18
|
export { $ColorType, AlphaColors, AlphaValue, AlphaValues, Analogous, CSSColor, ColorInput, ColorInputArray, ColorType, ColorTypeAlpha, ColorTypeSolid, Colors, ConvertedColors, HSL, HSLA, Hex, Hex6, Hex8, RGB, RGBA, RandomColor, RandomColorOptions, SolidColors, SolidValues, Tetrad, Triad };
|
package/dist/types/colors.d.mts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { C as RandomColorOptions, D as Triad, E as Tetrad, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, c as ColorInput, d as ColorTypeAlpha, f as ColorTypeSolid, g as HSLA, h as HSL, i as AlphaValue, l as ColorInputArray, m as ConvertedColors, n as $ColorType, o as Analogous, p as Colors, r as AlphaColors, s as CSSColor, u as ColorType, v as Hex6, w as SolidColors, x as RGBA, y as Hex8 } from "../Color-
|
|
17
|
+
import { C as RandomColorOptions, D as Triad, E as Tetrad, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, c as ColorInput, d as ColorTypeAlpha, f as ColorTypeSolid, g as HSLA, h as HSL, i as AlphaValue, l as ColorInputArray, m as ConvertedColors, n as $ColorType, o as Analogous, p as Colors, r as AlphaColors, s as CSSColor, u as ColorType, v as Hex6, w as SolidColors, x as RGBA, y as Hex8 } from "../Color-CInCJvH7.mjs";
|
|
18
18
|
export { $ColorType, AlphaColors, AlphaValue, AlphaValues, Analogous, CSSColor, ColorInput, ColorInputArray, ColorType, ColorTypeAlpha, ColorTypeSolid, Colors, ConvertedColors, HSL, HSLA, Hex, Hex6, Hex8, RGB, RGBA, RandomColor, RandomColorOptions, SolidColors, SolidValues, Tetrad, Triad };
|
package/dist/types/form.d.cts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as OriginFileObj, i as FormDataConfigs, n as FileError, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "../form-
|
|
17
|
+
import { a as OriginFileObj, i as FormDataConfigs, n as FileError, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "../form-DA-YShnM.cjs";
|
|
18
18
|
export { CustomFile, FileError, FileUpload, FormDataConfigs, OriginFileObj, ParsedFormData, SerializedForm };
|
package/dist/types/form.d.mts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as OriginFileObj, i as FormDataConfigs, n as FileError, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "../form-
|
|
17
|
+
import { a as OriginFileObj, i as FormDataConfigs, n as FileError, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "../form-DIYoIS0E.mjs";
|
|
18
18
|
export { CustomFile, FileError, FileUpload, FormDataConfigs, OriginFileObj, ParsedFormData, SerializedForm };
|
package/dist/types/stylog.d.cts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as AnsiSequence, c as Styles, i as Ansi16Value, l as StylogChain, o as BGColor, r as Ansi16Color, s as CSS16Color, u as TextStyle } from "../Stylog-
|
|
17
|
+
import { a as AnsiSequence, c as Styles, i as Ansi16Value, l as StylogChain, o as BGColor, r as Ansi16Color, s as CSS16Color, u as TextStyle } from "../Stylog-00MmV27Z.cjs";
|
|
18
18
|
export { Ansi16Color, Ansi16Value, AnsiSequence, BGColor, CSS16Color, Styles, StylogChain, TextStyle };
|
package/dist/types/stylog.d.mts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as AnsiSequence, c as Styles, i as Ansi16Value, l as StylogChain, o as BGColor, r as Ansi16Color, s as CSS16Color, u as TextStyle } from "../Stylog-
|
|
17
|
+
import { a as AnsiSequence, c as Styles, i as Ansi16Value, l as StylogChain, o as BGColor, r as Ansi16Color, s as CSS16Color, u as TextStyle } from "../Stylog-Bi1f4CR9.mjs";
|
|
18
18
|
export { Ansi16Color, Ansi16Value, AnsiSequence, BGColor, CSS16Color, Styles, StylogChain, TextStyle };
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { c as isNumber } from "./primitives-Djsevc69.mjs";
|
|
18
|
+
import { d as isNumericString } from "./specials-krf7zsqI.mjs";
|
|
18
19
|
import { r as CURRENCY_LOCALES } from "./constants-ZyfpysiQ.mjs";
|
|
19
|
-
import { d as isNumericString } from "./specials-Hq5Ncd6y.mjs";
|
|
20
20
|
|
|
21
21
|
//#region src/number/utilities.ts
|
|
22
22
|
/**
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
const require_primitives = require('./primitives-CBGICrDR.cjs');
|
|
18
|
+
const require_specials = require('./specials-DU8u108m.cjs');
|
|
18
19
|
const require_constants = require('./constants-B3nc8psr.cjs');
|
|
19
|
-
const require_specials = require('./specials-dkYP1Nh2.cjs');
|
|
20
20
|
|
|
21
21
|
//#region src/number/utilities.ts
|
|
22
22
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolbox-x",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "A versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
},
|
|
106
106
|
"lint-staged": {
|
|
107
107
|
"*.+((c|m)?js(x)?|(c|m)?ts(x)?)": [
|
|
108
|
-
"biome format --write --diagnostic-level=
|
|
109
|
-
"biome lint --diagnostic-level=
|
|
108
|
+
"biome format --write --diagnostic-level=warn",
|
|
109
|
+
"biome lint --diagnostic-level=warn"
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
112
|
"module": "./dist/index.mjs",
|
|
@@ -245,9 +245,9 @@
|
|
|
245
245
|
"commit": "nhb-commit",
|
|
246
246
|
"count": "nhb-count",
|
|
247
247
|
"delete": "nhb-delete",
|
|
248
|
-
"lint": "biome lint --diagnostic-level=
|
|
249
|
-
"fix": "biome check --write --diagnostic-level=
|
|
250
|
-
"format": "biome format --write --diagnostic-level=
|
|
248
|
+
"lint": "biome lint --diagnostic-level=warn",
|
|
249
|
+
"fix": "biome check --write --diagnostic-level=warn",
|
|
250
|
+
"format": "biome format --write --diagnostic-level=warn",
|
|
251
251
|
"create-docs": "nhb-module -t docs"
|
|
252
252
|
}
|
|
253
253
|
}
|