@rzl-zone/utils-js 3.12.1-beta.1 → 3.13.0-beta.2
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/README.md +11 -31
- package/dist/.references/index.d.cts +1 -3
- package/dist/.references/index.d.ts +1 -3
- package/dist/{assertIsArray-bTA3XLjq.js → assertIsArray-6BcSdNa-.js} +3 -3
- package/dist/{assertIsArray-bTA3XLjq.js.map → assertIsArray-6BcSdNa-.js.map} +1 -1
- package/dist/{assertIsArray-DJXkjHZs.cjs → assertIsArray-BqjMoan3.cjs} +3 -3
- package/dist/{assertIsArray-DJXkjHZs.cjs.map → assertIsArray-BqjMoan3.cjs.map} +1 -1
- package/dist/{assertIsBoolean-DR1SaXPD.js → assertIsBoolean-Bv6gL-xe.js} +2 -2
- package/dist/{assertIsBoolean-DR1SaXPD.js.map → assertIsBoolean-Bv6gL-xe.js.map} +1 -1
- package/dist/{assertIsBoolean-C8WEXVr2.cjs → assertIsBoolean-amRiJHnh.cjs} +2 -2
- package/dist/{assertIsBoolean-C8WEXVr2.cjs.map → assertIsBoolean-amRiJHnh.cjs.map} +1 -1
- package/dist/{assertIsString-CEB07_83.js → assertIsString-1WiUjgqf.js} +3 -3
- package/dist/{assertIsString-CEB07_83.js.map → assertIsString-1WiUjgqf.js.map} +1 -1
- package/dist/{assertIsString-BiHQSrB2.cjs → assertIsString-C0b28AU1.cjs} +3 -3
- package/dist/{assertIsString-BiHQSrB2.cjs.map → assertIsString-C0b28AU1.cjs.map} +1 -1
- package/dist/assertions/index.cjs +5 -5
- package/dist/assertions/index.d.cts +2 -2
- package/dist/assertions/index.d.ts +2 -2
- package/dist/assertions/index.js +5 -5
- package/dist/conversions/index.cjs +6 -6
- package/dist/conversions/index.d.cts +2 -2
- package/dist/conversions/index.d.ts +2 -2
- package/dist/conversions/index.js +6 -6
- package/dist/{conversions-BNIh_tCH.js → conversions-BrI0GIOr.js} +12 -12
- package/dist/{conversions-BNIh_tCH.js.map → conversions-BrI0GIOr.js.map} +1 -1
- package/dist/{conversions-D_Kh0a_C.cjs → conversions-lvvAYiZs.cjs} +12 -12
- package/dist/{conversions-D_Kh0a_C.cjs.map → conversions-lvvAYiZs.cjs.map} +1 -1
- package/dist/events/index.cjs +4 -4
- package/dist/events/index.d.cts +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.js +4 -4
- package/dist/formatters/index.cjs +2 -2
- package/dist/formatters/index.d.cts +2 -2
- package/dist/formatters/index.d.ts +2 -2
- package/dist/formatters/index.js +2 -2
- package/dist/{formatters-Cbij0XLU.cjs → formatters-DQr05EUA.cjs} +10 -10
- package/dist/{formatters-Cbij0XLU.cjs.map → formatters-DQr05EUA.cjs.map} +1 -1
- package/dist/{formatters--1m_vpE8.js → formatters-zDzQvtb4.js} +10 -10
- package/dist/{formatters--1m_vpE8.js.map → formatters-zDzQvtb4.js.map} +1 -1
- package/dist/generators/index.cjs +5 -5
- package/dist/generators/index.d.cts +2 -2
- package/dist/generators/index.d.ts +2 -2
- package/dist/generators/index.js +5 -5
- package/dist/{index-59zbLcPr.d.ts → index-3jBnthag.d.cts} +1 -1
- package/dist/{index-UPp94Agr.d.ts → index-BXwimNPA.d.cts} +2 -2
- package/dist/{index-C267akkJ.d.ts → index-BlTCrSyc.d.cts} +2 -2
- package/dist/{index-Qm3iFwd0.d.cts → index-CEm8ZOvj.d.ts} +2 -2
- package/dist/{index-jyDqzicx.d.cts → index-CLq5kZmQ.d.cts} +2 -2
- package/dist/{index-CeBC2Vvl.d.cts → index-Ckao53JY.d.ts} +2 -2
- package/dist/{index-D4fcasfZ.d.cts → index-DHHrLc0B.d.ts} +241 -14
- package/dist/{index-gBA_8SuF.d.cts → index-DIeR8qa-.d.ts} +1 -1
- package/dist/{index-B6tawc8L.d.cts → index-DxZlGbAH.d.ts} +1 -1
- package/dist/{index-Hg1qJkjl.d.ts → index-DyVWeYP3.d.cts} +1 -1
- package/dist/{index-CgRDTI6f.d.ts → index-GSUN6rjA.d.ts} +2 -2
- package/dist/{index-DsGxO31H.d.cts → index-_dJhBl1h.d.ts} +1 -1
- package/dist/{index-DDrSQKIc.d.ts → index-bMa-0Yr4.d.cts} +1 -1
- package/dist/{index-CoiUBVmr.d.ts → index-z_uCh5KW.d.cts} +241 -14
- package/dist/{isBigInt-C4krUeAw.cjs → isBigInt-CIFRnsdx.cjs} +2 -2
- package/dist/{isBigInt-C4krUeAw.cjs.map → isBigInt-CIFRnsdx.cjs.map} +1 -1
- package/dist/{isBigInt-DKe0M6hp.js → isBigInt-D-Pu9sxp.js} +2 -2
- package/dist/{isBigInt-DKe0M6hp.js.map → isBigInt-D-Pu9sxp.js.map} +1 -1
- package/dist/{isEmptyObject-ZkSwRC_D.cjs → isEmptyObject-CEySmyHK.cjs} +3 -3
- package/dist/{isEmptyObject-ZkSwRC_D.cjs.map → isEmptyObject-CEySmyHK.cjs.map} +1 -1
- package/dist/{isEmptyObject-DCipFwxJ.js → isEmptyObject-CZ9DLi7R.js} +3 -3
- package/dist/{isEmptyObject-DCipFwxJ.js.map → isEmptyObject-CZ9DLi7R.js.map} +1 -1
- package/dist/{isEmptyString-BXzKAC2j.js → isEmptyString-DFDtBbNr.js} +3 -3
- package/dist/{isEmptyString-BXzKAC2j.js.map → isEmptyString-DFDtBbNr.js.map} +1 -1
- package/dist/{isEmptyString-UiiUsSQj.cjs → isEmptyString-DI64RQCy.cjs} +3 -3
- package/dist/{isEmptyString-UiiUsSQj.cjs.map → isEmptyString-DI64RQCy.cjs.map} +1 -1
- package/dist/{isEmptyValue-BQzcjVaL.cjs → isEmptyValue-Cw6ovu7z.cjs} +5 -5
- package/dist/{isEmptyValue-BQzcjVaL.cjs.map → isEmptyValue-Cw6ovu7z.cjs.map} +1 -1
- package/dist/{isEmptyValue-jqOr7OHD.js → isEmptyValue-aGyeClwA.js} +5 -5
- package/dist/{isEmptyValue-jqOr7OHD.js.map → isEmptyValue-aGyeClwA.js.map} +1 -1
- package/dist/{isEqual-BX49cF9m.js → isEqual-Dtb2sXUv.js} +4 -4
- package/dist/{isEqual-BX49cF9m.js.map → isEqual-Dtb2sXUv.js.map} +1 -1
- package/dist/{isEqual-BvumA3RA.cjs → isEqual-UsvOwrlY.cjs} +4 -4
- package/dist/{isEqual-BvumA3RA.cjs.map → isEqual-UsvOwrlY.cjs.map} +1 -1
- package/dist/{isFinite-BCnaDpod.js → isFinite-Cz_IFXuV.js} +3 -3
- package/dist/{isFinite-BCnaDpod.js.map → isFinite-Cz_IFXuV.js.map} +1 -1
- package/dist/{isFinite-D24ZaE6c.cjs → isFinite-uukWvxJh.cjs} +3 -3
- package/dist/{isFinite-D24ZaE6c.cjs.map → isFinite-uukWvxJh.cjs.map} +1 -1
- package/dist/{isInteger-Caeuz0rB.cjs → isInteger-DPYjliLZ.cjs} +2 -2
- package/dist/{isInteger-Caeuz0rB.cjs.map → isInteger-DPYjliLZ.cjs.map} +1 -1
- package/dist/{isInteger-naMbJsxJ.js → isInteger-DZ163OQg.js} +2 -2
- package/dist/{isInteger-naMbJsxJ.js.map → isInteger-DZ163OQg.js.map} +1 -1
- package/dist/{isPlainObject-BF-2-phb.d.cts → isPlainObject-CBABRyEX.d.cts} +1 -1
- package/dist/{isPlainObject-DxNDL8XU.d.ts → isPlainObject-Dr8gi89U.d.ts} +1 -1
- package/dist/{isServer-Da3o3XSs.js → isServer-BDShLyVJ.js} +2 -2
- package/dist/{isServer-Da3o3XSs.js.map → isServer-BDShLyVJ.js.map} +1 -1
- package/dist/{isServer-BJHVnixd.cjs → isServer-BzDeYuGg.cjs} +2 -2
- package/dist/{isServer-BJHVnixd.cjs.map → isServer-BzDeYuGg.cjs.map} +1 -1
- package/dist/{isTypedArray-TJptiw2b.cjs → isTypedArray-DaYAkyrt.cjs} +3 -3
- package/dist/{isTypedArray-TJptiw2b.cjs.map → isTypedArray-DaYAkyrt.cjs.map} +1 -1
- package/dist/{isTypedArray-DuNA8tK6.js → isTypedArray-DuUUA4CL.js} +3 -3
- package/dist/{isTypedArray-DuNA8tK6.js.map → isTypedArray-DuUUA4CL.js.map} +1 -1
- package/dist/{isValidDomain-BB9IGhJs.cjs → isValidDomain-BxyToAlh.cjs} +14 -5
- package/dist/isValidDomain-BxyToAlh.cjs.map +1 -0
- package/dist/{isValidDomain-DoE98yhJ.js → isValidDomain-CTw5vZFY.js} +9 -6
- package/dist/isValidDomain-CTw5vZFY.js.map +1 -0
- package/dist/{noop-B13_ii35.cjs → noop-7KrqC9DC.cjs} +2 -2
- package/dist/{noop-B13_ii35.cjs.map → noop-7KrqC9DC.cjs.map} +1 -1
- package/dist/{noop-ubqAIbHD.js → noop-DGg9vMSD.js} +2 -2
- package/dist/{noop-ubqAIbHD.js.map → noop-DGg9vMSD.js.map} +1 -1
- package/dist/{normalizeSpaces-ZXnR4Qzp.cjs → normalizeSpaces-B6ZQOZRX.cjs} +3 -3
- package/dist/{normalizeSpaces-ZXnR4Qzp.cjs.map → normalizeSpaces-B6ZQOZRX.cjs.map} +1 -1
- package/dist/{normalizeSpaces-Bg2IZW7W.js → normalizeSpaces-C1eLwykD.js} +3 -3
- package/dist/{normalizeSpaces-Bg2IZW7W.js.map → normalizeSpaces-C1eLwykD.js.map} +1 -1
- package/dist/operations/index.cjs +7 -7
- package/dist/operations/index.d.cts +1 -1
- package/dist/operations/index.d.ts +1 -1
- package/dist/operations/index.js +7 -7
- package/dist/parsers/index.cjs +2 -2
- package/dist/parsers/index.d.cts +1 -1
- package/dist/parsers/index.d.ts +1 -1
- package/dist/parsers/index.js +2 -2
- package/dist/{parsers-OqDeffqc.cjs → parsers-DEFpCYhw.cjs} +4 -4
- package/dist/{parsers-OqDeffqc.cjs.map → parsers-DEFpCYhw.cjs.map} +1 -1
- package/dist/{parsers-BSBPgvsq.js → parsers-bQQ9mStV.js} +4 -4
- package/dist/{parsers-BSBPgvsq.js.map → parsers-bQQ9mStV.js.map} +1 -1
- package/dist/{parsing-Cao8b358.js → parsing-BngARhmu.js} +3 -3
- package/dist/{parsing-Cao8b358.js.map → parsing-BngARhmu.js.map} +1 -1
- package/dist/{parsing-DOGSCH6N.cjs → parsing-lI5EN4LY.cjs} +3 -3
- package/dist/{parsing-DOGSCH6N.cjs.map → parsing-lI5EN4LY.cjs.map} +1 -1
- package/dist/predicates/index.cjs +15 -16
- package/dist/predicates/index.d.cts +3 -3
- package/dist/predicates/index.d.ts +3 -3
- package/dist/predicates/index.js +14 -15
- package/dist/{predicates-D0ubqgqy.cjs → predicates-CMmP3fPJ.cjs} +13 -13
- package/dist/{predicates-D0ubqgqy.cjs.map → predicates-CMmP3fPJ.cjs.map} +1 -1
- package/dist/{predicates-Bj6meyXV.js → predicates-V87QD8hs.js} +11 -11
- package/dist/{predicates-Bj6meyXV.js.map → predicates-V87QD8hs.js.map} +1 -1
- package/dist/promises/index.cjs +4 -4
- package/dist/promises/index.d.cts +1 -1
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +4 -4
- package/dist/{punyCode-8SrbMWfM.js → punyCode-BeFYDjj0.js} +4 -4
- package/dist/{punyCode-8SrbMWfM.js.map → punyCode-BeFYDjj0.js.map} +1 -1
- package/dist/{punyCode-D-Qu6nj6.cjs → punyCode-DmTsB7q_.cjs} +4 -4
- package/dist/{punyCode-D-Qu6nj6.cjs.map → punyCode-DmTsB7q_.cjs.map} +1 -1
- package/dist/{removeSpaces-Bmc5DX4F.js → removeSpaces-B96axxP6.js} +7 -4
- package/dist/removeSpaces-B96axxP6.js.map +1 -0
- package/dist/{removeSpaces-CWIvhZHg.cjs → removeSpaces-C8mu_yp3.cjs} +12 -3
- package/dist/removeSpaces-C8mu_yp3.cjs.map +1 -0
- package/dist/rzl-utils.global.js +1 -1
- package/dist/{safeJsonParse-Sms2CJf4.cjs → safeJsonParse-BXbtX_j7.cjs} +6 -6
- package/dist/{safeJsonParse-Sms2CJf4.cjs.map → safeJsonParse-BXbtX_j7.cjs.map} +1 -1
- package/dist/{safeJsonParse-BP38mwlj.js → safeJsonParse-DyCsTXlU.js} +6 -6
- package/dist/{safeJsonParse-BP38mwlj.js.map → safeJsonParse-DyCsTXlU.js.map} +1 -1
- package/dist/{safeStableStringify-CXOZ9Ub8.js → safeStableStringify-BrOcdX9n.js} +4 -4
- package/dist/{safeStableStringify-CXOZ9Ub8.js.map → safeStableStringify-BrOcdX9n.js.map} +1 -1
- package/dist/{safeStableStringify-CJtP89qn.cjs → safeStableStringify-DRYQ56Dg.cjs} +4 -4
- package/dist/{safeStableStringify-CJtP89qn.cjs.map → safeStableStringify-DRYQ56Dg.cjs.map} +1 -1
- package/dist/strings/index.cjs +6 -7
- package/dist/strings/index.cjs.map +1 -1
- package/dist/strings/index.d.cts +2 -2
- package/dist/strings/index.d.ts +2 -2
- package/dist/strings/index.js +5 -6
- package/dist/strings/index.js.map +1 -1
- package/dist/tailwind/index.cjs +6 -2
- package/dist/tailwind/index.d.cts +3 -3
- package/dist/tailwind/index.d.ts +3 -3
- package/dist/tailwind/index.js +3 -3
- package/dist/{tailwind-B2ssevxq.js → tailwind-BZ2_MeNX.js} +18 -8
- package/dist/tailwind-BZ2_MeNX.js.map +1 -0
- package/dist/{tailwind-CHIx9uxu.cjs → tailwind-C1YtxJ-K.cjs} +39 -5
- package/dist/tailwind-C1YtxJ-K.cjs.map +1 -0
- package/dist/{toStringArrayUnRecursive-C4zYCja7.cjs → toStringArrayUnRecursive-D1mPM4wg.cjs} +6 -6
- package/dist/{toStringArrayUnRecursive-C4zYCja7.cjs.map → toStringArrayUnRecursive-D1mPM4wg.cjs.map} +1 -1
- package/dist/{toStringArrayUnRecursive-DJGtPsFb.js → toStringArrayUnRecursive-tHp2a7KR.js} +6 -6
- package/dist/{toStringArrayUnRecursive-DJGtPsFb.js.map → toStringArrayUnRecursive-tHp2a7KR.js.map} +1 -1
- package/dist/urls/index.cjs +9 -120
- package/dist/urls/index.d.cts +1 -1
- package/dist/urls/index.d.ts +1 -1
- package/dist/urls/index.js +3 -114
- package/dist/urls-CoxDAoki.js +263 -0
- package/dist/urls-CoxDAoki.js.map +1 -0
- package/dist/urls-DCyx8Wpk.cjs +299 -0
- package/dist/urls-DCyx8Wpk.cjs.map +1 -0
- package/package.json +3 -24
- package/dist/formatEnvPort-B3OLxQk9.cjs +0 -171
- package/dist/formatEnvPort-B3OLxQk9.cjs.map +0 -1
- package/dist/formatEnvPort-ByFVLjSV.js +0 -159
- package/dist/formatEnvPort-ByFVLjSV.js.map +0 -1
- package/dist/isURL-C-kSk6KJ.js +0 -14
- package/dist/isURL-C-kSk6KJ.js.map +0 -1
- package/dist/isURL-DeUPO_oR.cjs +0 -20
- package/dist/isURL-DeUPO_oR.cjs.map +0 -1
- package/dist/isValidDomain-BB9IGhJs.cjs.map +0 -1
- package/dist/isValidDomain-DoE98yhJ.js.map +0 -1
- package/dist/next/index.cjs +0 -129
- package/dist/next/index.cjs.map +0 -1
- package/dist/next/index.d.cts +0 -220
- package/dist/next/index.d.ts +0 -220
- package/dist/next/index.js +0 -124
- package/dist/next/index.js.map +0 -1
- package/dist/next/server/index.cjs +0 -28
- package/dist/next/server/index.cjs.map +0 -1
- package/dist/next/server/index.d.cts +0 -39
- package/dist/next/server/index.d.ts +0 -39
- package/dist/next/server/index.js +0 -26
- package/dist/next/server/index.js.map +0 -1
- package/dist/normalizeString-BDdkaXui.js +0 -15
- package/dist/normalizeString-BDdkaXui.js.map +0 -1
- package/dist/normalizeString-BE6ELqEb.cjs +0 -21
- package/dist/normalizeString-BE6ELqEb.cjs.map +0 -1
- package/dist/removeSpaces-Bmc5DX4F.js.map +0 -1
- package/dist/removeSpaces-CWIvhZHg.cjs.map +0 -1
- package/dist/tailwind-B2ssevxq.js.map +0 -1
- package/dist/tailwind-CHIx9uxu.cjs.map +0 -1
- package/dist/urls/index.cjs.map +0 -1
- package/dist/urls/index.js.map +0 -1
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
|
-
import { k as isString, n as resolveErrorMessageAssertions } from "./assertIsBoolean-
|
|
10
|
+
import { k as isString, n as resolveErrorMessageAssertions } from "./assertIsBoolean-Bv6gL-xe.js";
|
|
11
11
|
const assertIsString = (value, options = {}) => {
|
|
12
12
|
if (isString(value)) return;
|
|
13
13
|
resolveErrorMessageAssertions({
|
|
@@ -17,4 +17,4 @@ const assertIsString = (value, options = {}) => {
|
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
export { assertIsString as t };
|
|
20
|
-
//# sourceMappingURL=assertIsString-
|
|
20
|
+
//# sourceMappingURL=assertIsString-1WiUjgqf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertIsString-
|
|
1
|
+
{"version":3,"file":"assertIsString-1WiUjgqf.js","names":[],"sources":["../src/assertions/strings/assertIsString.ts"],"sourcesContent":["import { isString } from \"@/predicates/is/isString\";\nimport {\n resolveErrorMessageAssertions,\n type OptionsAssertIs\n} from \"../_private/assertIs\";\n\n/** -------------------------------------------------------\n * * ***Type guard assertion: `assertIsString`.***\n * -------------------------------------------------------\n * **This function is an **assertion function**.**\n * - **Behavior:**\n * - Validates that the given `value` is a **primitive-string**.\n * - After it returns successfully, TypeScript narrows the type of `value` to `primitive-string`.\n * - ✅ If `value` is a `primitive-string` ➔ execution continues normally.\n * - ❌ If `value` is not a `primitive-string` ➔ throws a built-in error with either:\n * - A custom error message (`options.message`), or\n * - A default message including the actual type.\n * - **ℹ️ Note:**\n * - A \"string\" refers strictly to a JavaScript `primitive-string` type (e.g., `\"hello\"`, `\"\"`, `\"123\"`).\n * - This function excludes `String` objects created with `new String()`.\n * - **⚠️ Error type selection (`options.errorType`):**\n * - You can override the type of error thrown when validation fails.\n * - Must be one of the standard JavaScript built-in errors:\n * - [`TypeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) |\n * [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) |\n * [`EvalError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError) |\n * [`RangeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError) |\n * [`ReferenceError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError) |\n * [`SyntaxError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError) |\n * [`URIError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError)\n * - **Default:** `\"TypeError\"` if not provided or invalid.\n * @param {*} value - ***The value to validate.***\n * @param {OptionsAssertIs} [options]\n * ***Optional configuration:***\n * - `message`: A custom error message (`string` or `function`).\n * - `errorType`: Built-in JavaScript error type to throw on failure (default `\"TypeError\"`).\n * - `formatCase`: Controls how detected type names are formatted case in error messages.\n * - `useAcronyms`: Control uppercase preservation of recognized acronyms during formatting.\n * @returns {boolean} Narrows `value` to `string` if no error is thrown.\n * @throws [`TypeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) | [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) | [`EvalError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError) | [`RangeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError) | [`ReferenceError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError) | [`SyntaxError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError) | [`URIError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError) if the value is not a primitive string.\n * @example\n * ```ts\n * // ✅ Simple usage\n * assertIsString(\"hello\");\n * // No error, value is string\n *\n * // ❌ Throws TypeError (default behavior)\n * // Case 1: Invalid input type — received a string instead of a string\n * assertIsString(42);\n * // ➔ TypeError: \"Parameter input (`value`) must be of type `string`, but received: `number`.\"\n *\n * // Case 3: The new String() is a String object (constructor), not a primitive string\n * assertIsString(new String(\"abc\"));\n * // ➔ TypeError: \"Parameter input (`value`) must be of type `string`, but received: `string-constructor`.\"\n *\n * // ❌ Throws custom error type (e.g., RangeError)\n * assertIsString(async function () {}, { errorType: \"RangeError\" });\n * // ➔ RangeError: \"Parameter input (`value`) must be of type `string`, but received: `async-function`.\"\n *\n * // ❌ Throws a TypeError with a custom string static message\n * assertIsString(123, { message: \"Must be a string!\" });\n * // ➔ TypeError: \"Must be a string!\"\n *\n * // ❌ Throws a TypeError with a custom message function and formatCase\n * assertIsString(/regex/, {\n * message: ({ currentType, validType }) => {\n * return `Expected ${validType} but got (${currentType}).`\n * },\n * formatCase: \"toPascalCaseSpace\"\n * });\n * // ➔ TypeError: \"Expected string but got (Reg Exp).\"\n *\n * // ❌ Throws a TypeError with a custom useAcronyms option\n * // Case 1:\n * assertIsString(new URL(\"https://example.com\"),{\n * message: ({ currentType, validType }) => {\n * return `Expected ${validType} but got (${currentType}).`\n * },\n * });\n * // ➔ TypeError: \"Expected string but got (url).\"\n * assertIsString(new URL(\"https://example.com\"), {\n * useAcronyms: true,\n * message: ({ currentType, validType }) => {\n * return `Expected ${validType} but got (${currentType}).`\n * },\n * });\n * // ➔ TypeError: \"Expected string but got (URL).\"\n *\n * // Case 2:\n * assertIsString(new URLSearchParams, {\n * formatCase: \"toPascalCase\",\n * message: ({ currentType, validType }) => {\n * return `Expected ${validType} but got (${currentType}).`\n * },\n * });\n * // ➔ TypeError: \"Expected string but got (UrlSearchParams).\"\n * assertIsString(new URLSearchParams, {\n * useAcronyms: true,\n * formatCase: \"toPascalCase\",\n * message: ({ currentType, validType }) => {\n * return `Expected ${validType} but got (${currentType}).`\n * },\n * });\n * // ➔ TypeError: \"Expected string but got (URLSearchParams).\"\n * ```\n * -------------------------------------------------------\n * ✅ ***Real-world usage with generic narrowing***:\n * ```ts\n * const mixedValue: string | boolean | undefined = getUserInput();\n *\n * // Runtime assertion: throws if `mixedValue` is not a `string`\n * assertIsString(mixedValue, {\n * errorType: \"RangeError\",\n * message: \"Must be a string!\"\n * });\n *\n * // ✅ If no error thrown, TypeScript narrows `mixedValue` to `string` here\n * const result: string = mixedValue; // ➔ Safe type assignment\n * console.log(result.toUpperCase()); // ➔ Safe to call String.prototype methods\n * ```\n */\nexport const assertIsString: (\n value: unknown,\n options?: OptionsAssertIs\n) => asserts value is string = (\n value: unknown,\n options: OptionsAssertIs = {}\n): asserts value is string => {\n if (isString(value)) return;\n\n resolveErrorMessageAssertions({\n value,\n options,\n requiredValidType: \"string\"\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyHA,MAAa,kBAIX,OACA,UAA2B,EAAE,KACD;CAC5B,IAAI,SAAS,MAAM,EAAE;CAErB,8BAA8B;EAC5B;EACA;EACA,mBAAmB;EACpB,CAAC"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
"use strict";
|
|
11
|
-
const require_assertIsBoolean = require('./assertIsBoolean-
|
|
11
|
+
const require_assertIsBoolean = require('./assertIsBoolean-amRiJHnh.cjs');
|
|
12
12
|
const assertIsString = (value, options = {}) => {
|
|
13
13
|
if (require_assertIsBoolean.isString(value)) return;
|
|
14
14
|
require_assertIsBoolean.resolveErrorMessageAssertions({
|
|
@@ -23,4 +23,4 @@ Object.defineProperty(exports, 'assertIsString', {
|
|
|
23
23
|
return assertIsString;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
//# sourceMappingURL=assertIsString-
|
|
26
|
+
//# sourceMappingURL=assertIsString-C0b28AU1.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertIsString-
|
|
1
|
+
{"version":3,"file":"assertIsString-C0b28AU1.cjs","names":["isString"],"sources":["../src/assertions/strings/assertIsString.ts"],"sourcesContent":["import { isString } from \"@/predicates/is/isString\";\nimport {\n resolveErrorMessageAssertions,\n type OptionsAssertIs\n} from \"../_private/assertIs\";\n\n/** -------------------------------------------------------\n * * ***Type guard assertion: `assertIsString`.***\n * -------------------------------------------------------\n * **This function is an **assertion function**.**\n * - **Behavior:**\n * - Validates that the given `value` is a **primitive-string**.\n * - After it returns successfully, TypeScript narrows the type of `value` to `primitive-string`.\n * - ✅ If `value` is a `primitive-string` ➔ execution continues normally.\n * - ❌ If `value` is not a `primitive-string` ➔ throws a built-in error with either:\n * - A custom error message (`options.message`), or\n * - A default message including the actual type.\n * - **ℹ️ Note:**\n * - A \"string\" refers strictly to a JavaScript `primitive-string` type (e.g., `\"hello\"`, `\"\"`, `\"123\"`).\n * - This function excludes `String` objects created with `new String()`.\n * - **⚠️ Error type selection (`options.errorType`):**\n * - You can override the type of error thrown when validation fails.\n * - Must be one of the standard JavaScript built-in errors:\n * - [`TypeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) |\n * [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) |\n * [`EvalError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError) |\n * [`RangeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError) |\n * [`ReferenceError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError) |\n * [`SyntaxError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError) |\n * [`URIError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError)\n * - **Default:** `\"TypeError\"` if not provided or invalid.\n * @param {*} value - ***The value to validate.***\n * @param {OptionsAssertIs} [options]\n * ***Optional configuration:***\n * - `message`: A custom error message (`string` or `function`).\n * - `errorType`: Built-in JavaScript error type to throw on failure (default `\"TypeError\"`).\n * - `formatCase`: Controls how detected type names are formatted case in error messages.\n * - `useAcronyms`: Control uppercase preservation of recognized acronyms during formatting.\n * @returns {boolean} Narrows `value` to `string` if no error is thrown.\n * @throws [`TypeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) | [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) | [`EvalError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError) | [`RangeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError) | [`ReferenceError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError) | [`SyntaxError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError) | [`URIError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError) if the value is not a primitive string.\n * @example\n * ```ts\n * // ✅ Simple usage\n * assertIsString(\"hello\");\n * // No error, value is string\n *\n * // ❌ Throws TypeError (default behavior)\n * // Case 1: Invalid input type — received a string instead of a string\n * assertIsString(42);\n * // ➔ TypeError: \"Parameter input (`value`) must be of type `string`, but received: `number`.\"\n *\n * // Case 3: The new String() is a String object (constructor), not a primitive string\n * assertIsString(new String(\"abc\"));\n * // ➔ TypeError: \"Parameter input (`value`) must be of type `string`, but received: `string-constructor`.\"\n *\n * // ❌ Throws custom error type (e.g., RangeError)\n * assertIsString(async function () {}, { errorType: \"RangeError\" });\n * // ➔ RangeError: \"Parameter input (`value`) must be of type `string`, but received: `async-function`.\"\n *\n * // ❌ Throws a TypeError with a custom string static message\n * assertIsString(123, { message: \"Must be a string!\" });\n * // ➔ TypeError: \"Must be a string!\"\n *\n * // ❌ Throws a TypeError with a custom message function and formatCase\n * assertIsString(/regex/, {\n * message: ({ currentType, validType }) => {\n * return `Expected ${validType} but got (${currentType}).`\n * },\n * formatCase: \"toPascalCaseSpace\"\n * });\n * // ➔ TypeError: \"Expected string but got (Reg Exp).\"\n *\n * // ❌ Throws a TypeError with a custom useAcronyms option\n * // Case 1:\n * assertIsString(new URL(\"https://example.com\"),{\n * message: ({ currentType, validType }) => {\n * return `Expected ${validType} but got (${currentType}).`\n * },\n * });\n * // ➔ TypeError: \"Expected string but got (url).\"\n * assertIsString(new URL(\"https://example.com\"), {\n * useAcronyms: true,\n * message: ({ currentType, validType }) => {\n * return `Expected ${validType} but got (${currentType}).`\n * },\n * });\n * // ➔ TypeError: \"Expected string but got (URL).\"\n *\n * // Case 2:\n * assertIsString(new URLSearchParams, {\n * formatCase: \"toPascalCase\",\n * message: ({ currentType, validType }) => {\n * return `Expected ${validType} but got (${currentType}).`\n * },\n * });\n * // ➔ TypeError: \"Expected string but got (UrlSearchParams).\"\n * assertIsString(new URLSearchParams, {\n * useAcronyms: true,\n * formatCase: \"toPascalCase\",\n * message: ({ currentType, validType }) => {\n * return `Expected ${validType} but got (${currentType}).`\n * },\n * });\n * // ➔ TypeError: \"Expected string but got (URLSearchParams).\"\n * ```\n * -------------------------------------------------------\n * ✅ ***Real-world usage with generic narrowing***:\n * ```ts\n * const mixedValue: string | boolean | undefined = getUserInput();\n *\n * // Runtime assertion: throws if `mixedValue` is not a `string`\n * assertIsString(mixedValue, {\n * errorType: \"RangeError\",\n * message: \"Must be a string!\"\n * });\n *\n * // ✅ If no error thrown, TypeScript narrows `mixedValue` to `string` here\n * const result: string = mixedValue; // ➔ Safe type assignment\n * console.log(result.toUpperCase()); // ➔ Safe to call String.prototype methods\n * ```\n */\nexport const assertIsString: (\n value: unknown,\n options?: OptionsAssertIs\n) => asserts value is string = (\n value: unknown,\n options: OptionsAssertIs = {}\n): asserts value is string => {\n if (isString(value)) return;\n\n resolveErrorMessageAssertions({\n value,\n options,\n requiredValidType: \"string\"\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyHA,MAAa,kBAIX,OACA,UAA2B,EAAE,KACD;CAC5B,IAAIA,iCAAS,MAAM,EAAE;CAErB,sDAA8B;EAC5B;EACA;EACA,mBAAmB;EACpB,CAAC"}
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
12
|
-
const require_assertIsBoolean = require('../assertIsBoolean-
|
|
13
|
-
const require_isBigInt = require('../isBigInt-
|
|
14
|
-
const require_assertIsArray = require('../assertIsArray-
|
|
15
|
-
const require_assertIsString = require('../assertIsString-
|
|
12
|
+
const require_assertIsBoolean = require('../assertIsBoolean-amRiJHnh.cjs');
|
|
13
|
+
const require_isBigInt = require('../isBigInt-CIFRnsdx.cjs');
|
|
14
|
+
const require_assertIsArray = require('../assertIsArray-BqjMoan3.cjs');
|
|
15
|
+
const require_assertIsString = require('../assertIsString-C0b28AU1.cjs');
|
|
16
16
|
const assertIsBigInt = (value, options = {}) => {
|
|
17
17
|
if (require_isBigInt.isBigInt(value)) return;
|
|
18
18
|
require_assertIsBoolean.resolveErrorMessageAssertions({
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { a as assertIsBigInt, i as assertIsNumber, n as assertIsPlainObject, o as assertIsBoolean, r as assertIsArray, t as assertIsString } from "../index-
|
|
11
|
+
import { a as assertIsBigInt, i as assertIsNumber, n as assertIsPlainObject, o as assertIsBoolean, r as assertIsArray, t as assertIsString } from "../index-CLq5kZmQ.cjs";
|
|
12
12
|
export { assertIsArray, assertIsBigInt, assertIsBoolean, assertIsNumber, assertIsPlainObject, assertIsString };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { a as assertIsBigInt, i as assertIsNumber, n as assertIsPlainObject, o as assertIsBoolean, r as assertIsArray, t as assertIsString } from "../index-
|
|
11
|
+
import { a as assertIsBigInt, i as assertIsNumber, n as assertIsPlainObject, o as assertIsBoolean, r as assertIsArray, t as assertIsString } from "../index-GSUN6rjA.js";
|
|
12
12
|
export { assertIsArray, assertIsBigInt, assertIsBoolean, assertIsNumber, assertIsPlainObject, assertIsString };
|
package/dist/assertions/index.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
|
-
import { T as assertIsPlainObject, b as hasOwnProp, n as resolveErrorMessageAssertions, t as assertIsBoolean, w as isNumber } from "../assertIsBoolean-
|
|
11
|
-
import { t as isBigInt } from "../isBigInt-
|
|
12
|
-
import { t as assertIsArray } from "../assertIsArray-
|
|
13
|
-
import { t as assertIsString } from "../assertIsString-
|
|
10
|
+
import { T as assertIsPlainObject, b as hasOwnProp, n as resolveErrorMessageAssertions, t as assertIsBoolean, w as isNumber } from "../assertIsBoolean-Bv6gL-xe.js";
|
|
11
|
+
import { t as isBigInt } from "../isBigInt-D-Pu9sxp.js";
|
|
12
|
+
import { t as assertIsArray } from "../assertIsArray-6BcSdNa-.js";
|
|
13
|
+
import { t as assertIsString } from "../assertIsString-1WiUjgqf.js";
|
|
14
14
|
const assertIsBigInt = (value, options = {}) => {
|
|
15
15
|
if (isBigInt(value)) return;
|
|
16
16
|
resolveErrorMessageAssertions({
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
12
|
-
const require_toStringArrayUnRecursive = require('../toStringArrayUnRecursive-
|
|
13
|
-
const require_conversions = require('../conversions-
|
|
14
|
-
const require_safeStableStringify = require('../safeStableStringify-
|
|
15
|
-
const require_parsing = require('../parsing-
|
|
16
|
-
const require_safeJsonParse = require('../safeJsonParse-
|
|
12
|
+
const require_toStringArrayUnRecursive = require('../toStringArrayUnRecursive-D1mPM4wg.cjs');
|
|
13
|
+
const require_conversions = require('../conversions-lvvAYiZs.cjs');
|
|
14
|
+
const require_safeStableStringify = require('../safeStableStringify-DRYQ56Dg.cjs');
|
|
15
|
+
const require_parsing = require('../parsing-lI5EN4LY.cjs');
|
|
16
|
+
const require_safeJsonParse = require('../safeJsonParse-BXbtX_j7.cjs');
|
|
17
17
|
exports.cleanParsedData = require_safeJsonParse.cleanParsedData;
|
|
18
18
|
exports.convertType = require_conversions.convertType;
|
|
19
19
|
exports.dedupeArray = require_conversions.dedupeArray;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { _ as dedupeArray, a as removeObjectPaths, c as parseCustomDate, d as parseCurrencyString, f as toBooleanLoose, g as filterNilArray, h as toBooleanContent, i as safeStableStringify, l as cleanParsedData, m as toBooleanContentDeep, n as toStringDeep, o as extractDigits, p as toBooleanExplicit, r as toNumberDeep, s as safeJsonParse, t as toStringDeepForce, u as convertType, v as toStringArrayUnRecursive, y as toNumberArrayUnRecursive } from "../index-
|
|
11
|
+
import { _ as dedupeArray, a as removeObjectPaths, c as parseCustomDate, d as parseCurrencyString, f as toBooleanLoose, g as filterNilArray, h as toBooleanContent, i as safeStableStringify, l as cleanParsedData, m as toBooleanContentDeep, n as toStringDeep, o as extractDigits, p as toBooleanExplicit, r as toNumberDeep, s as safeJsonParse, t as toStringDeepForce, u as convertType, v as toStringArrayUnRecursive, y as toNumberArrayUnRecursive } from "../index-bMa-0Yr4.cjs";
|
|
12
12
|
export { cleanParsedData, convertType, dedupeArray, extractDigits, filterNilArray, parseCurrencyString, parseCustomDate, removeObjectPaths, safeJsonParse, safeStableStringify, toBooleanContent, toBooleanContentDeep, toBooleanExplicit, toBooleanLoose, toNumberArrayUnRecursive, toNumberDeep, toStringArrayUnRecursive, toStringDeep, toStringDeepForce };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { _ as dedupeArray, a as removeObjectPaths, c as parseCustomDate, d as parseCurrencyString, f as toBooleanLoose, g as filterNilArray, h as toBooleanContent, i as safeStableStringify, l as cleanParsedData, m as toBooleanContentDeep, n as toStringDeep, o as extractDigits, p as toBooleanExplicit, r as toNumberDeep, s as safeJsonParse, t as toStringDeepForce, u as convertType, v as toStringArrayUnRecursive, y as toNumberArrayUnRecursive } from "../index-
|
|
11
|
+
import { _ as dedupeArray, a as removeObjectPaths, c as parseCustomDate, d as parseCurrencyString, f as toBooleanLoose, g as filterNilArray, h as toBooleanContent, i as safeStableStringify, l as cleanParsedData, m as toBooleanContentDeep, n as toStringDeep, o as extractDigits, p as toBooleanExplicit, r as toNumberDeep, s as safeJsonParse, t as toStringDeepForce, u as convertType, v as toStringArrayUnRecursive, y as toNumberArrayUnRecursive } from "../index-DxZlGbAH.js";
|
|
12
12
|
export { cleanParsedData, convertType, dedupeArray, extractDigits, filterNilArray, parseCurrencyString, parseCustomDate, removeObjectPaths, safeJsonParse, safeStableStringify, toBooleanContent, toBooleanContentDeep, toBooleanExplicit, toBooleanLoose, toNumberArrayUnRecursive, toNumberDeep, toStringArrayUnRecursive, toStringDeep, toStringDeepForce };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
|
-
import { n as filterNilArray, t as toStringArrayUnRecursive } from "../toStringArrayUnRecursive-
|
|
11
|
-
import { a as toBooleanLoose, c as toBooleanContent, d as toNumberArrayUnRecursive, i as convertType, l as dedupeArray, n as toNumberDeep, o as toBooleanExplicit, r as removeObjectPaths, s as toBooleanContentDeep, t as toStringDeep, u as toStringDeepForce } from "../conversions-
|
|
12
|
-
import { t as safeStableStringify } from "../safeStableStringify-
|
|
13
|
-
import { t as parseCurrencyString } from "../parsing-
|
|
14
|
-
import { i as parseCustomDate, n as extractDigits, r as cleanParsedData, t as safeJsonParse } from "../safeJsonParse-
|
|
10
|
+
import { n as filterNilArray, t as toStringArrayUnRecursive } from "../toStringArrayUnRecursive-tHp2a7KR.js";
|
|
11
|
+
import { a as toBooleanLoose, c as toBooleanContent, d as toNumberArrayUnRecursive, i as convertType, l as dedupeArray, n as toNumberDeep, o as toBooleanExplicit, r as removeObjectPaths, s as toBooleanContentDeep, t as toStringDeep, u as toStringDeepForce } from "../conversions-BrI0GIOr.js";
|
|
12
|
+
import { t as safeStableStringify } from "../safeStableStringify-BrOcdX9n.js";
|
|
13
|
+
import { t as parseCurrencyString } from "../parsing-BngARhmu.js";
|
|
14
|
+
import { i as parseCustomDate, n as extractDigits, r as cleanParsedData, t as safeJsonParse } from "../safeJsonParse-DyCsTXlU.js";
|
|
15
15
|
export { cleanParsedData, convertType, dedupeArray, extractDigits, filterNilArray, parseCurrencyString, parseCustomDate, removeObjectPaths, safeJsonParse, safeStableStringify, toBooleanContent, toBooleanContentDeep, toBooleanExplicit, toBooleanLoose, toNumberArrayUnRecursive, toNumberDeep, toStringArrayUnRecursive, toStringDeep, toStringDeepForce };
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
* ========================================================================
|
|
3
3
|
* @rzl-zone/utils-js
|
|
4
4
|
* ------------------------------------------------------------------------
|
|
5
|
-
* Version: `3.
|
|
5
|
+
* Version: `3.13.0-beta.2`
|
|
6
6
|
* Author: `Rizalvin Dwiky <rizalvindwiky@gmail.com>`
|
|
7
7
|
* Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js`
|
|
8
8
|
* ========================================================================
|
|
9
9
|
*/
|
|
10
|
-
import { A as isPlainObject, C as isSymbol, D as isNaN, E as isNull, F as isBoolean, M as isArray, N as isNil, O as isNumberObject, P as isFunction, S as isUndefined, T as assertIsPlainObject, _ as isBuffer, b as hasOwnProp, f as isSet, g as isStringObject, h as isBooleanObject, j as isObject, k as isString, m as isInfinityNumber, r as getPreciseType, t as assertIsBoolean, v as isError, w as isNumber, x as isObjectOrArray, y as isNonEmptyString } from "./assertIsBoolean-
|
|
11
|
-
import { t as isBigInt } from "./isBigInt-
|
|
12
|
-
import { t as assertIsArray } from "./assertIsArray-
|
|
13
|
-
import { t as assertIsString } from "./assertIsString-
|
|
14
|
-
import { n as isEmptyArray, t as isEmptyObject } from "./isEmptyObject-
|
|
15
|
-
import { n as filterNilArray } from "./toStringArrayUnRecursive-
|
|
16
|
-
import { n as isDate, r as isMap, t as safeStableStringify } from "./safeStableStringify-
|
|
17
|
-
import { i as isRegExp, t as isEqual } from "./isEqual-
|
|
18
|
-
import { t as isEmptyString } from "./isEmptyString-
|
|
19
|
-
import { n as isNonEmptyValue, t as isTypedArray } from "./isTypedArray-
|
|
10
|
+
import { A as isPlainObject, C as isSymbol, D as isNaN, E as isNull, F as isBoolean, M as isArray, N as isNil, O as isNumberObject, P as isFunction, S as isUndefined, T as assertIsPlainObject, _ as isBuffer, b as hasOwnProp, f as isSet, g as isStringObject, h as isBooleanObject, j as isObject, k as isString, m as isInfinityNumber, r as getPreciseType, t as assertIsBoolean, v as isError, w as isNumber, x as isObjectOrArray, y as isNonEmptyString } from "./assertIsBoolean-Bv6gL-xe.js";
|
|
11
|
+
import { t as isBigInt } from "./isBigInt-D-Pu9sxp.js";
|
|
12
|
+
import { t as assertIsArray } from "./assertIsArray-6BcSdNa-.js";
|
|
13
|
+
import { t as assertIsString } from "./assertIsString-1WiUjgqf.js";
|
|
14
|
+
import { n as isEmptyArray, t as isEmptyObject } from "./isEmptyObject-CZ9DLi7R.js";
|
|
15
|
+
import { n as filterNilArray } from "./toStringArrayUnRecursive-tHp2a7KR.js";
|
|
16
|
+
import { n as isDate, r as isMap, t as safeStableStringify } from "./safeStableStringify-BrOcdX9n.js";
|
|
17
|
+
import { i as isRegExp, t as isEqual } from "./isEqual-Dtb2sXUv.js";
|
|
18
|
+
import { t as isEmptyString } from "./isEmptyString-DFDtBbNr.js";
|
|
19
|
+
import { n as isNonEmptyValue, t as isTypedArray } from "./isTypedArray-DuUUA4CL.js";
|
|
20
20
|
function toNumberArrayUnRecursive(array, options = {}) {
|
|
21
21
|
assertIsPlainObject(options, { message: ({ currentType, validType }) => `Second parameter (\`options\`) must be of type \`${validType}\`, but received: \`${currentType}\`.` });
|
|
22
22
|
const riv = hasOwnProp(options, "removeInvalidValueNumber") ? options.removeInvalidValueNumber : true;
|
|
@@ -377,4 +377,4 @@ function toStringDeep(input, options = {}) {
|
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
export { toBooleanLoose as a, toBooleanContent as c, toNumberArrayUnRecursive as d, convertType as i, dedupeArray as l, toNumberDeep as n, toBooleanExplicit as o, removeObjectPaths as r, toBooleanContentDeep as s, toStringDeep as t, toStringDeepForce as u };
|
|
380
|
-
//# sourceMappingURL=conversions-
|
|
380
|
+
//# sourceMappingURL=conversions-BrI0GIOr.js.map
|