@rzl-zone/utils-js 3.11.1 → 3.12.1-beta.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/{LICENSE.md → LICENSE} +3 -3
- package/README.md +62 -89
- package/dist/.references/index.d.cts +25 -0
- package/dist/.references/index.d.ts +25 -0
- package/dist/assertIsArray-BChqwPiP.cjs +26 -0
- package/dist/assertIsArray-BChqwPiP.cjs.map +1 -0
- package/dist/assertIsArray-BfAbIUfa.js +20 -0
- package/dist/assertIsArray-BfAbIUfa.js.map +1 -0
- package/dist/assertIsBoolean-BlBct0Fc.js +1073 -0
- package/dist/assertIsBoolean-BlBct0Fc.js.map +1 -0
- package/dist/assertIsBoolean-DozdtbNi.cjs +1283 -0
- package/dist/assertIsBoolean-DozdtbNi.cjs.map +1 -0
- package/dist/assertIsString-Bvk7bUL7.cjs +26 -0
- package/dist/assertIsString-Bvk7bUL7.cjs.map +1 -0
- package/dist/assertIsString-DqV9NwbI.js +20 -0
- package/dist/assertIsString-DqV9NwbI.js.map +1 -0
- package/dist/assertions/index.cjs +37 -40
- package/dist/assertions/index.cjs.map +1 -0
- package/dist/assertions/index.d.cts +12 -0
- package/dist/assertions/index.d.ts +10 -824
- package/dist/assertions/index.js +30 -13
- package/dist/assertions/index.js.map +1 -0
- package/dist/conversions/index.cjs +34 -103
- package/dist/conversions/index.d.cts +12 -0
- package/dist/conversions/index.d.ts +10 -1791
- package/dist/conversions/index.js +14 -24
- package/dist/conversions-CBs8-REq.cjs +448 -0
- package/dist/conversions-CBs8-REq.cjs.map +1 -0
- package/dist/conversions-EMJa3g-D.js +382 -0
- package/dist/conversions-EMJa3g-D.js.map +1 -0
- package/dist/events/index.cjs +55 -31
- package/dist/events/index.cjs.map +1 -0
- package/dist/events/index.d.cts +174 -0
- package/dist/events/index.d.ts +31 -35
- package/dist/events/index.js +50 -12
- package/dist/events/index.js.map +1 -0
- package/dist/formatEnvPort-DpIXzPAZ.js +159 -0
- package/dist/formatEnvPort-DpIXzPAZ.js.map +1 -0
- package/dist/formatEnvPort-hHNvOim-.cjs +171 -0
- package/dist/formatEnvPort-hHNvOim-.cjs.map +1 -0
- package/dist/formatters/index.cjs +21 -61
- package/dist/formatters/index.d.cts +12 -0
- package/dist/formatters/index.d.ts +10 -2152
- package/dist/formatters/index.js +10 -18
- package/dist/formatters-QcZO_Cpx.js +367 -0
- package/dist/formatters-QcZO_Cpx.js.map +1 -0
- package/dist/formatters-lAYgA11L.cjs +427 -0
- package/dist/formatters-lAYgA11L.cjs.map +1 -0
- package/dist/generators/index.cjs +161 -41
- package/dist/generators/index.cjs.map +1 -0
- package/dist/generators/index.d.cts +12 -0
- package/dist/generators/index.d.ts +10 -338
- package/dist/generators/index.js +154 -14
- package/dist/generators/index.js.map +1 -0
- package/dist/index-26W7ItWx.d.ts +760 -0
- package/dist/index-BPPQjAfs.d.cts +2359 -0
- package/dist/index-BXjlgBLz.d.cts +2139 -0
- package/dist/index-B_Wwo91H.d.ts +2359 -0
- package/dist/index-CpufydcI.d.cts +704 -0
- package/dist/index-Czc4O526.d.ts +333 -0
- package/dist/index-DPs1_p5G.d.cts +760 -0
- package/dist/index-DRpOyBSC.d.ts +1703 -0
- package/dist/index-DWWvtHUn.d.cts +822 -0
- package/dist/index-DnM0LD0n.d.cts +333 -0
- package/dist/index-GUZ9fK6T.d.ts +2139 -0
- package/dist/index-I4fAzwXV.d.ts +704 -0
- package/dist/index-JDrOl_19.d.ts +822 -0
- package/dist/index-b66P49Qe.d.cts +1703 -0
- package/dist/isBigInt-B1cijjqm.cjs +20 -0
- package/dist/isBigInt-B1cijjqm.cjs.map +1 -0
- package/dist/isBigInt-C0bN0Rhu.js +14 -0
- package/dist/isBigInt-C0bN0Rhu.js.map +1 -0
- package/dist/isEmptyObject-DI42NEo0.cjs +37 -0
- package/dist/isEmptyObject-DI42NEo0.cjs.map +1 -0
- package/dist/isEmptyObject-DeLVIJpl.js +25 -0
- package/dist/isEmptyObject-DeLVIJpl.js.map +1 -0
- package/dist/isEmptyString-BTUWYTbw.js +15 -0
- package/dist/isEmptyString-BTUWYTbw.js.map +1 -0
- package/dist/isEmptyString-CCK3bP74.cjs +21 -0
- package/dist/isEmptyString-CCK3bP74.cjs.map +1 -0
- package/dist/isEmptyValue-DMSMFTU8.cjs +30 -0
- package/dist/isEmptyValue-DMSMFTU8.cjs.map +1 -0
- package/dist/isEmptyValue-fjnfQnt5.js +24 -0
- package/dist/isEmptyValue-fjnfQnt5.js.map +1 -0
- package/dist/isEqual-B1fRgEuU.cjs +111 -0
- package/dist/isEqual-B1fRgEuU.cjs.map +1 -0
- package/dist/isEqual-DhyP8fB_.js +87 -0
- package/dist/isEqual-DhyP8fB_.js.map +1 -0
- package/dist/isFinite-BYMOo0os.js +15 -0
- package/dist/isFinite-BYMOo0os.js.map +1 -0
- package/dist/isFinite-sFkps2TY.cjs +21 -0
- package/dist/isFinite-sFkps2TY.cjs.map +1 -0
- package/dist/isInteger-DS9V7l_f.js +14 -0
- package/dist/isInteger-DS9V7l_f.js.map +1 -0
- package/dist/isInteger-FTCthMre.cjs +20 -0
- package/dist/isInteger-FTCthMre.cjs.map +1 -0
- package/dist/isPlainObject-DcFGh3_5.d.ts +530 -0
- package/dist/isPlainObject-doTI11Ib.d.cts +530 -0
- package/dist/isServer-D1TXfOs3.js +14 -0
- package/dist/isServer-D1TXfOs3.js.map +1 -0
- package/dist/isServer-q-QLFCqE.cjs +20 -0
- package/dist/isServer-q-QLFCqE.cjs.map +1 -0
- package/dist/isTypedArray-47R0wdrc.js +31 -0
- package/dist/isTypedArray-47R0wdrc.js.map +1 -0
- package/dist/isTypedArray-DiCoqffZ.cjs +43 -0
- package/dist/isTypedArray-DiCoqffZ.cjs.map +1 -0
- package/dist/isURL-CQiowFq2.js +14 -0
- package/dist/isURL-CQiowFq2.js.map +1 -0
- package/dist/isURL-WZypXsax.cjs +20 -0
- package/dist/isURL-WZypXsax.cjs.map +1 -0
- package/dist/isValidDomain-BSXshgkC.cjs +1788 -0
- package/dist/isValidDomain-BSXshgkC.cjs.map +1 -0
- package/dist/isValidDomain-DwA2EN79.js +1782 -0
- package/dist/isValidDomain-DwA2EN79.js.map +1 -0
- package/dist/next/index.cjs +119 -212
- package/dist/next/index.cjs.map +1 -0
- package/dist/next/index.d.cts +226 -0
- package/dist/next/index.d.ts +26 -31
- package/dist/next/index.js +117 -210
- package/dist/next/index.js.map +1 -0
- package/dist/next/server/index.cjs +25 -40
- package/dist/next/server/index.cjs.map +1 -0
- package/dist/next/server/index.d.cts +39 -0
- package/dist/next/server/index.d.ts +9 -10
- package/dist/next/server/index.js +23 -38
- package/dist/next/server/index.js.map +1 -0
- package/dist/noop-B2mTBhW-.cjs +18 -0
- package/dist/noop-B2mTBhW-.cjs.map +1 -0
- package/dist/noop-BzktGBVz.js +12 -0
- package/dist/noop-BzktGBVz.js.map +1 -0
- package/dist/normalizeSpaces-DQHR3Tlr.cjs +29 -0
- package/dist/normalizeSpaces-DQHR3Tlr.cjs.map +1 -0
- package/dist/normalizeSpaces-WS_iERJk.js +23 -0
- package/dist/normalizeSpaces-WS_iERJk.js.map +1 -0
- package/dist/normalizeString-2WLth_Gj.js +15 -0
- package/dist/normalizeString-2WLth_Gj.js.map +1 -0
- package/dist/normalizeString-D8euBcRD.cjs +21 -0
- package/dist/normalizeString-D8euBcRD.cjs.map +1 -0
- package/dist/operations/index.cjs +65 -32
- package/dist/operations/index.cjs.map +1 -0
- package/dist/operations/index.d.cts +139 -0
- package/dist/operations/index.d.ts +10 -15
- package/dist/operations/index.js +61 -17
- package/dist/operations/index.js.map +1 -0
- package/dist/parsers/index.cjs +12 -19
- package/dist/parsers/index.d.cts +239 -0
- package/dist/parsers/index.d.ts +71 -72
- package/dist/parsers/index.js +10 -12
- package/dist/parsers-DXtpsDyj.cjs +649 -0
- package/dist/parsers-DXtpsDyj.cjs.map +1 -0
- package/dist/parsers-Dpuq-V4u.js +643 -0
- package/dist/parsers-Dpuq-V4u.js.map +1 -0
- package/dist/parsing-B43x1sxn.js +50 -0
- package/dist/parsing-B43x1sxn.js.map +1 -0
- package/dist/parsing-lRoxn1Nz.cjs +56 -0
- package/dist/parsing-lRoxn1Nz.cjs.map +1 -0
- package/dist/predicates/index.cjs +91 -296
- package/dist/predicates/index.d.cts +13 -0
- package/dist/predicates/index.d.ts +12 -2482
- package/dist/predicates/index.js +23 -25
- package/dist/predicates-DiaYA7Ps.cjs +413 -0
- package/dist/predicates-DiaYA7Ps.cjs.map +1 -0
- package/dist/predicates-gNepszvo.js +257 -0
- package/dist/predicates-gNepszvo.js.map +1 -0
- package/dist/promises/index.cjs +76 -24
- package/dist/promises/index.cjs.map +1 -0
- package/dist/promises/index.d.cts +123 -0
- package/dist/promises/index.d.ts +28 -31
- package/dist/promises/index.js +73 -13
- package/dist/promises/index.js.map +1 -0
- package/dist/punyCode-CTWXVVFo.cjs +185 -0
- package/dist/punyCode-CTWXVVFo.cjs.map +1 -0
- package/dist/punyCode-hmiFzLWT.js +179 -0
- package/dist/punyCode-hmiFzLWT.js.map +1 -0
- package/dist/removeSpaces-BE8lfh-4.js +19 -0
- package/dist/removeSpaces-BE8lfh-4.js.map +1 -0
- package/dist/removeSpaces-DRRxNWlb.cjs +25 -0
- package/dist/removeSpaces-DRRxNWlb.cjs.map +1 -0
- package/dist/safeJsonParse-BBnQElk8.cjs +208 -0
- package/dist/safeJsonParse-BBnQElk8.cjs.map +1 -0
- package/dist/safeJsonParse-CXruaP0p.js +184 -0
- package/dist/safeJsonParse-CXruaP0p.js.map +1 -0
- package/dist/safeStableStringify-BNh3D0K0.js +88 -0
- package/dist/safeStableStringify-BNh3D0K0.js.map +1 -0
- package/dist/safeStableStringify-Cc62pfRp.cjs +106 -0
- package/dist/safeStableStringify-Cc62pfRp.cjs.map +1 -0
- package/dist/strings/index.cjs +76 -81
- package/dist/strings/index.cjs.map +1 -0
- package/dist/strings/index.d.cts +12 -0
- package/dist/strings/index.d.ts +10 -775
- package/dist/strings/index.js +59 -14
- package/dist/strings/index.js.map +1 -0
- package/dist/tailwind/index.cjs +19 -47
- package/dist/tailwind/index.d.cts +12 -0
- package/dist/tailwind/index.d.ts +11 -712
- package/dist/tailwind/index.js +10 -12
- package/dist/tailwind-DJ4cmLUw.cjs +247 -0
- package/dist/tailwind-DJ4cmLUw.cjs.map +1 -0
- package/dist/tailwind-IJvOdkZp.js +199 -0
- package/dist/tailwind-IJvOdkZp.js.map +1 -0
- package/dist/toStringArrayUnRecursive-CFs0jTEg.js +39 -0
- package/dist/toStringArrayUnRecursive-CFs0jTEg.js.map +1 -0
- package/dist/toStringArrayUnRecursive-xUaU8Ot9.cjs +51 -0
- package/dist/toStringArrayUnRecursive-xUaU8Ot9.cjs.map +1 -0
- package/dist/urls/index.cjs +129 -57
- package/dist/urls/index.cjs.map +1 -0
- package/dist/urls/index.d.cts +740 -0
- package/dist/urls/index.d.ts +218 -224
- package/dist/urls/index.js +121 -26
- package/dist/urls/index.js.map +1 -0
- package/package.json +203 -194
- package/dist/chunk-22V4WP3H.js +0 -53
- package/dist/chunk-2XSZ2ANI.js +0 -63
- package/dist/chunk-3T6VSWYX.js +0 -21
- package/dist/chunk-5WIEDF2J.js +0 -1823
- package/dist/chunk-6EDFZJZ5.cjs +0 -598
- package/dist/chunk-6LXWT2I5.js +0 -32
- package/dist/chunk-6YGBRENU.js +0 -209
- package/dist/chunk-7FGNVDEV.cjs +0 -38
- package/dist/chunk-AXDYWO67.js +0 -119
- package/dist/chunk-B6PMNZ4M.cjs +0 -35
- package/dist/chunk-BAV5T2E3.cjs +0 -15
- package/dist/chunk-BLF7SD66.js +0 -95
- package/dist/chunk-BMZZXZJ2.cjs +0 -30
- package/dist/chunk-BOYP3ARU.js +0 -264
- package/dist/chunk-BPYW5YL7.js +0 -16
- package/dist/chunk-C2PV3VWC.cjs +0 -118
- package/dist/chunk-CCJ2MSN7.js +0 -16
- package/dist/chunk-DAPAK2W3.cjs +0 -123
- package/dist/chunk-DLS3G6WQ.cjs +0 -23
- package/dist/chunk-DNMCR5JH.js +0 -370
- package/dist/chunk-DVMHRLKP.cjs +0 -16
- package/dist/chunk-EBYFYZW4.cjs +0 -26
- package/dist/chunk-ENMRZ4BE.js +0 -302
- package/dist/chunk-FJ4BQFVO.js +0 -587
- package/dist/chunk-GIKL4PUF.cjs +0 -106
- package/dist/chunk-GOFINGT6.js +0 -35
- package/dist/chunk-GXKQ3LHF.js +0 -101
- package/dist/chunk-HNBRGN4R.js +0 -24
- package/dist/chunk-HYN6FC5A.cjs +0 -249
- package/dist/chunk-IZGVBYFN.js +0 -242
- package/dist/chunk-JIE447J5.js +0 -676
- package/dist/chunk-JXEIJM5M.cjs +0 -237
- package/dist/chunk-K47GZDBH.js +0 -115
- package/dist/chunk-K5536YHG.cjs +0 -269
- package/dist/chunk-KHO2SBNA.cjs +0 -16
- package/dist/chunk-KXJ7X325.cjs +0 -308
- package/dist/chunk-L5RDAVVH.js +0 -14
- package/dist/chunk-LJHPTLWB.js +0 -109
- package/dist/chunk-M7ELWZXM.cjs +0 -1825
- package/dist/chunk-MSUW5VHZ.js +0 -1590
- package/dist/chunk-MUHRPRR7.cjs +0 -65
- package/dist/chunk-MV3TSQSH.cjs +0 -397
- package/dist/chunk-NLZLXWAU.cjs +0 -678
- package/dist/chunk-NVRZPF5M.cjs +0 -18
- package/dist/chunk-ONZFBJVW.js +0 -14
- package/dist/chunk-PGNL7JXO.cjs +0 -251
- package/dist/chunk-Q4GEQS7X.cjs +0 -564
- package/dist/chunk-QNKGP5DY.js +0 -14
- package/dist/chunk-QYI2VJLS.cjs +0 -211
- package/dist/chunk-RBWZII5I.js +0 -59
- package/dist/chunk-RMP7VMPB.cjs +0 -33
- package/dist/chunk-RZOGBYIS.js +0 -21
- package/dist/chunk-SU3UELUB.cjs +0 -36
- package/dist/chunk-SYHPSOUU.cjs +0 -1626
- package/dist/chunk-SZUNAEMR.js +0 -246
- package/dist/chunk-TER22LO4.cjs +0 -64
- package/dist/chunk-TJHGRQ4P.js +0 -33
- package/dist/chunk-U23I7JPB.cjs +0 -56
- package/dist/chunk-U7HHN47R.js +0 -552
- package/dist/chunk-UDA26MCU.cjs +0 -16
- package/dist/chunk-UIAWUZ4H.js +0 -31
- package/dist/chunk-ULQPCIA2.js +0 -16
- package/dist/chunk-VJDDGRIK.cjs +0 -16
- package/dist/chunk-WETQI6HM.js +0 -232
- package/dist/chunk-WLOQQFDS.cjs +0 -18
- package/dist/chunk-WVSPXFTY.js +0 -14
- package/dist/chunk-WXFTVXBF.cjs +0 -23
- package/dist/chunk-XPVTIGU2.cjs +0 -113
- package/dist/chunk-XX6RUGTM.cjs +0 -18
- package/dist/chunk-YWHHVDT4.js +0 -13
- package/dist/chunk-ZPDMWDGZ.cjs +0 -101
- package/dist/chunk-ZVWZEGQP.js +0 -28
- package/dist/index.d.ts +0 -24
- package/dist/isPlainObject-0p3VveWr.d.ts +0 -534
- package/dist/rzl-utils.global.js +0 -10
package/package.json
CHANGED
|
@@ -1,245 +1,254 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rzl-zone/utils-js",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"
|
|
5
|
-
"engineStrict": true,
|
|
3
|
+
"version": "3.12.1-beta.0",
|
|
4
|
+
"description": "A modern, lightweight set of JavaScript utility functions with TypeScript support for everyday development, crafted to enhance code readability and maintainability.",
|
|
6
5
|
"license": "MIT",
|
|
7
|
-
"type": "module",
|
|
8
6
|
"unpkg": "./dist/rzl-utils.global.js",
|
|
9
7
|
"jsdelivr": "./dist/rzl-utils.global.js",
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
8
|
"author": "Rizalvin Dwiky <rizalvindwiky@gmail.com>",
|
|
12
|
-
"homepage": "https://github.com/rzl-zone/utils-js#readme",
|
|
13
|
-
"description": "A modern, lightweight set of JavaScript utility functions with TypeScript support for everyday development, crafted to enhance code readability and maintainability.",
|
|
14
9
|
"contributors": [
|
|
15
10
|
"Rizalvin Dwiky <rizalvindwiky@gmail.com>"
|
|
16
11
|
],
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"date-fns": "^4.1.0",
|
|
23
|
-
"libphonenumber-js": "^1.12.17",
|
|
24
|
-
"server-only": "^0.0.1",
|
|
25
|
-
"tailwind-merge-v3": "npm:tailwind-merge@2.6.0",
|
|
26
|
-
"tailwind-merge-v4": "npm:tailwind-merge@3.3.1"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@eslint/js": "^9.31.0",
|
|
30
|
-
"@types/node": "^20.19.11",
|
|
31
|
-
"@types/rollup": "^0.51.4",
|
|
32
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
33
|
-
"barrelsby": "^2.8.1",
|
|
34
|
-
"del-cli": "^6.0.0",
|
|
35
|
-
"dts-bundle-generator": "^9.5.1",
|
|
36
|
-
"eslint": "^9.31.0",
|
|
37
|
-
"globals": "^16.3.0",
|
|
38
|
-
"jsdom": "^26.1.0",
|
|
39
|
-
"next": "^15.5.3",
|
|
40
|
-
"tailwindcss": "^4.1.13",
|
|
41
|
-
"terser": "^5.44.0",
|
|
42
|
-
"tsc-alias": "^1.8.16",
|
|
43
|
-
"tsup": "^8.5.0",
|
|
44
|
-
"tsx": "^4.20.3",
|
|
45
|
-
"type-fest": "^5.0.1",
|
|
46
|
-
"typescript": "^5.9.2",
|
|
47
|
-
"typescript-eslint": "^8.41.0",
|
|
48
|
-
"vitest": "^3.2.4"
|
|
49
|
-
},
|
|
50
|
-
"peerDependencies": {
|
|
51
|
-
"tailwindcss": "^3.0.0 || ^4.0.0"
|
|
52
|
-
},
|
|
53
|
-
"peerDependenciesMeta": {
|
|
54
|
-
"tailwindcss": {
|
|
55
|
-
"optional": true
|
|
56
|
-
}
|
|
12
|
+
"homepage": "https://github.com/rzl-zone/rzl-zone/tree/main/packages/utils-js",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/rzl-zone/rzl-zone.git",
|
|
16
|
+
"directory": "packages/utils-js"
|
|
57
17
|
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"javascript",
|
|
20
|
+
"typescript",
|
|
21
|
+
"js",
|
|
22
|
+
"ts",
|
|
23
|
+
"util",
|
|
24
|
+
"utils",
|
|
25
|
+
"helper",
|
|
26
|
+
"helpers",
|
|
27
|
+
"library",
|
|
28
|
+
"@rzl-zone/utils-js",
|
|
29
|
+
"rzl",
|
|
30
|
+
"rzl-zone",
|
|
31
|
+
"rzl zone",
|
|
32
|
+
"util js",
|
|
33
|
+
"util-js",
|
|
34
|
+
"utils-js",
|
|
35
|
+
"utils js",
|
|
36
|
+
"utility",
|
|
37
|
+
"utility js",
|
|
38
|
+
"rzl-utils",
|
|
39
|
+
"rzl utils",
|
|
40
|
+
"functions"
|
|
41
|
+
],
|
|
42
|
+
"type": "module",
|
|
43
|
+
"sideEffects": false,
|
|
44
|
+
"engineStrict": true,
|
|
58
45
|
"engines": {
|
|
59
46
|
"node": ">=18.18.0"
|
|
60
47
|
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
},
|
|
51
|
+
"files": [
|
|
52
|
+
"dist",
|
|
53
|
+
"README.md",
|
|
54
|
+
"LICENSE.md",
|
|
55
|
+
"LICENSE",
|
|
56
|
+
"!**/*.test.*"
|
|
57
|
+
],
|
|
61
58
|
"exports": {
|
|
62
|
-
"
|
|
63
|
-
"
|
|
59
|
+
"./.references": {
|
|
60
|
+
"import": {
|
|
61
|
+
"types": "./dist/.references/index.d.ts"
|
|
62
|
+
},
|
|
63
|
+
"require": {
|
|
64
|
+
"types": "./dist/.references/index.d.cts"
|
|
65
|
+
}
|
|
64
66
|
},
|
|
65
67
|
"./assertions": {
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
"import": {
|
|
69
|
+
"types": "./dist/assertions/index.d.ts",
|
|
70
|
+
"default": "./dist/assertions/index.js"
|
|
71
|
+
},
|
|
72
|
+
"require": {
|
|
73
|
+
"types": "./dist/assertions/index.d.cts",
|
|
74
|
+
"default": "./dist/assertions/index.cjs"
|
|
75
|
+
}
|
|
69
76
|
},
|
|
70
77
|
"./conversions": {
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
78
|
+
"import": {
|
|
79
|
+
"types": "./dist/conversions/index.d.ts",
|
|
80
|
+
"default": "./dist/conversions/index.js"
|
|
81
|
+
},
|
|
82
|
+
"require": {
|
|
83
|
+
"types": "./dist/conversions/index.d.cts",
|
|
84
|
+
"default": "./dist/conversions/index.cjs"
|
|
85
|
+
}
|
|
74
86
|
},
|
|
75
87
|
"./events": {
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
88
|
+
"import": {
|
|
89
|
+
"types": "./dist/events/index.d.ts",
|
|
90
|
+
"default": "./dist/events/index.js"
|
|
91
|
+
},
|
|
92
|
+
"require": {
|
|
93
|
+
"types": "./dist/events/index.d.cts",
|
|
94
|
+
"default": "./dist/events/index.cjs"
|
|
95
|
+
}
|
|
79
96
|
},
|
|
80
97
|
"./formatters": {
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
98
|
+
"import": {
|
|
99
|
+
"types": "./dist/formatters/index.d.ts",
|
|
100
|
+
"default": "./dist/formatters/index.js"
|
|
101
|
+
},
|
|
102
|
+
"require": {
|
|
103
|
+
"types": "./dist/formatters/index.d.cts",
|
|
104
|
+
"default": "./dist/formatters/index.cjs"
|
|
105
|
+
}
|
|
84
106
|
},
|
|
85
107
|
"./generators": {
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
108
|
+
"import": {
|
|
109
|
+
"types": "./dist/generators/index.d.ts",
|
|
110
|
+
"default": "./dist/generators/index.js"
|
|
111
|
+
},
|
|
112
|
+
"require": {
|
|
113
|
+
"types": "./dist/generators/index.d.cts",
|
|
114
|
+
"default": "./dist/generators/index.cjs"
|
|
115
|
+
}
|
|
89
116
|
},
|
|
90
117
|
"./next": {
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
118
|
+
"import": {
|
|
119
|
+
"types": "./dist/next/index.d.ts",
|
|
120
|
+
"default": "./dist/next/index.js"
|
|
121
|
+
},
|
|
122
|
+
"require": {
|
|
123
|
+
"types": "./dist/next/index.d.cts",
|
|
124
|
+
"default": "./dist/next/index.cjs"
|
|
125
|
+
}
|
|
94
126
|
},
|
|
95
127
|
"./next/server": {
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
128
|
+
"import": {
|
|
129
|
+
"types": "./dist/next/server/index.d.ts",
|
|
130
|
+
"default": "./dist/next/server/index.js"
|
|
131
|
+
},
|
|
132
|
+
"require": {
|
|
133
|
+
"types": "./dist/next/server/index.d.cts",
|
|
134
|
+
"default": "./dist/next/server/index.cjs"
|
|
135
|
+
}
|
|
99
136
|
},
|
|
100
137
|
"./operations": {
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
138
|
+
"import": {
|
|
139
|
+
"types": "./dist/operations/index.d.ts",
|
|
140
|
+
"default": "./dist/operations/index.js"
|
|
141
|
+
},
|
|
142
|
+
"require": {
|
|
143
|
+
"types": "./dist/operations/index.d.cts",
|
|
144
|
+
"default": "./dist/operations/index.cjs"
|
|
145
|
+
}
|
|
104
146
|
},
|
|
105
147
|
"./parsers": {
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
148
|
+
"import": {
|
|
149
|
+
"types": "./dist/parsers/index.d.ts",
|
|
150
|
+
"default": "./dist/parsers/index.js"
|
|
151
|
+
},
|
|
152
|
+
"require": {
|
|
153
|
+
"types": "./dist/parsers/index.d.cts",
|
|
154
|
+
"default": "./dist/parsers/index.cjs"
|
|
155
|
+
}
|
|
109
156
|
},
|
|
110
157
|
"./predicates": {
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
158
|
+
"import": {
|
|
159
|
+
"types": "./dist/predicates/index.d.ts",
|
|
160
|
+
"default": "./dist/predicates/index.js"
|
|
161
|
+
},
|
|
162
|
+
"require": {
|
|
163
|
+
"types": "./dist/predicates/index.d.cts",
|
|
164
|
+
"default": "./dist/predicates/index.cjs"
|
|
165
|
+
}
|
|
114
166
|
},
|
|
115
167
|
"./promises": {
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
168
|
+
"import": {
|
|
169
|
+
"types": "./dist/promises/index.d.ts",
|
|
170
|
+
"default": "./dist/promises/index.js"
|
|
171
|
+
},
|
|
172
|
+
"require": {
|
|
173
|
+
"types": "./dist/promises/index.d.cts",
|
|
174
|
+
"default": "./dist/promises/index.cjs"
|
|
175
|
+
}
|
|
119
176
|
},
|
|
120
177
|
"./strings": {
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
178
|
+
"import": {
|
|
179
|
+
"types": "./dist/strings/index.d.ts",
|
|
180
|
+
"default": "./dist/strings/index.js"
|
|
181
|
+
},
|
|
182
|
+
"require": {
|
|
183
|
+
"types": "./dist/strings/index.d.cts",
|
|
184
|
+
"default": "./dist/strings/index.cjs"
|
|
185
|
+
}
|
|
124
186
|
},
|
|
125
187
|
"./tailwind": {
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
188
|
+
"import": {
|
|
189
|
+
"types": "./dist/tailwind/index.d.ts",
|
|
190
|
+
"default": "./dist/tailwind/index.js"
|
|
191
|
+
},
|
|
192
|
+
"require": {
|
|
193
|
+
"types": "./dist/tailwind/index.d.cts",
|
|
194
|
+
"default": "./dist/tailwind/index.cjs"
|
|
195
|
+
}
|
|
129
196
|
},
|
|
130
197
|
"./urls": {
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
198
|
+
"import": {
|
|
199
|
+
"types": "./dist/urls/index.d.ts",
|
|
200
|
+
"default": "./dist/urls/index.js"
|
|
201
|
+
},
|
|
202
|
+
"require": {
|
|
203
|
+
"types": "./dist/urls/index.d.cts",
|
|
204
|
+
"default": "./dist/urls/index.cjs"
|
|
205
|
+
}
|
|
134
206
|
}
|
|
135
207
|
},
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
],
|
|
144
|
-
"conversions": [
|
|
145
|
-
"dist/conversions/index.d.ts"
|
|
146
|
-
],
|
|
147
|
-
"events": [
|
|
148
|
-
"dist/events/index.d.ts"
|
|
149
|
-
],
|
|
150
|
-
"formatters": [
|
|
151
|
-
"dist/formatters/index.d.ts"
|
|
152
|
-
],
|
|
153
|
-
"generators": [
|
|
154
|
-
"dist/generators/index.d.ts"
|
|
155
|
-
],
|
|
156
|
-
"next": [
|
|
157
|
-
"dist/next/index.d.ts"
|
|
158
|
-
],
|
|
159
|
-
"next/server": [
|
|
160
|
-
"dist/next/server/index.d.ts"
|
|
161
|
-
],
|
|
162
|
-
"operations": [
|
|
163
|
-
"dist/operations/index.d.ts"
|
|
164
|
-
],
|
|
165
|
-
"parsers": [
|
|
166
|
-
"dist/parsers/index.d.ts"
|
|
167
|
-
],
|
|
168
|
-
"predicates": [
|
|
169
|
-
"dist/predicates/index.d.ts"
|
|
170
|
-
],
|
|
171
|
-
"promises": [
|
|
172
|
-
"dist/promises/index.d.ts"
|
|
173
|
-
],
|
|
174
|
-
"strings": [
|
|
175
|
-
"dist/strings/index.d.ts"
|
|
176
|
-
],
|
|
177
|
-
"tailwind": [
|
|
178
|
-
"dist/tailwind/index.d.ts"
|
|
179
|
-
],
|
|
180
|
-
"urls": [
|
|
181
|
-
"dist/urls/index.d.ts"
|
|
182
|
-
]
|
|
183
|
-
}
|
|
208
|
+
"dependencies": {
|
|
209
|
+
"date-fns": "^4.1.0",
|
|
210
|
+
"libphonenumber-js": "^1.13.1",
|
|
211
|
+
"tailwind-merge-v3": "npm:tailwind-merge@2.6.0",
|
|
212
|
+
"tailwind-merge-v4": "npm:tailwind-merge@3.3.1",
|
|
213
|
+
"@rzl-zone/node-only": "0.0.10-beta.0",
|
|
214
|
+
"@rzl-zone/ts-types-plus": "0.1.6-beta.0"
|
|
184
215
|
},
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"@rzl-zone/
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"rzl zone",
|
|
204
|
-
"util js",
|
|
205
|
-
"util-js",
|
|
206
|
-
"utils-js",
|
|
207
|
-
"utils js",
|
|
208
|
-
"utility",
|
|
209
|
-
"utility js",
|
|
210
|
-
"rzl-utils",
|
|
211
|
-
"rzl utils",
|
|
212
|
-
"functions"
|
|
213
|
-
],
|
|
214
|
-
"publishConfig": {
|
|
215
|
-
"access": "public"
|
|
216
|
+
"devDependencies": {
|
|
217
|
+
"@eslint/js": "^10",
|
|
218
|
+
"@types/node": "^20.19.11",
|
|
219
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
220
|
+
"barrelsby": "^2.8.1",
|
|
221
|
+
"eslint": "^10",
|
|
222
|
+
"globals": "^17.6.0",
|
|
223
|
+
"jsdom": "^29.1.1",
|
|
224
|
+
"next": "^15.5.9",
|
|
225
|
+
"tailwindcss": "^4.3.0",
|
|
226
|
+
"tsdown": "0.22.0",
|
|
227
|
+
"tsx": "^4.21.0",
|
|
228
|
+
"typescript": "6.0.3",
|
|
229
|
+
"vitest": "^4.1.6",
|
|
230
|
+
"@rzl-zone/build-tools": "0.0.12-beta.0",
|
|
231
|
+
"@rzl-zone/eslint": "0.0.10-beta.0",
|
|
232
|
+
"@workspace/eslint-config": "0.0.0",
|
|
233
|
+
"@workspace/typescript-config": "0.0.0"
|
|
216
234
|
},
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
|
|
235
|
+
"peerDependencies": {
|
|
236
|
+
"tailwindcss": "^3.0.0 || ^4.0.0"
|
|
237
|
+
},
|
|
238
|
+
"peerDependenciesMeta": {
|
|
239
|
+
"tailwindcss": {
|
|
240
|
+
"optional": true
|
|
241
|
+
}
|
|
220
242
|
},
|
|
221
243
|
"scripts": {
|
|
244
|
+
"check-types:package": "tsc --noEmit",
|
|
222
245
|
"barrel:generate": "npx barrelsby --config barrelsby.config.json",
|
|
223
246
|
"barrel:remove-comment-dist": "tsx scripts/removeBarrelsbyComment.ts",
|
|
224
|
-
"barrel": "
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
"
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
"delete-dist:index-runtime": "del-cli \"dist/index.{js,js.map,cjs,cjs.map}\" \"dist/index.d.{ts,cts,mts,esm}\"",
|
|
231
|
-
"minify:dts-dist": "echo 'Skip tsx scripts/minifyDtsDist.ts'",
|
|
232
|
-
"build:types-dts": "dts-bundle-generator --config dts-config.cjs --silent --external-imports next",
|
|
233
|
-
"generate:reference-index": "tsx scripts/generateReferenceIndex.ts",
|
|
234
|
-
"postbuild": "",
|
|
235
|
-
"build": "npm run clean-dist && npm run barrel && tsup && npm run minify:dts-dist && npm run clean-dist:js-comments && npm run normalize:new-lines && npm run clean-dist:types-cts && npm run delete-dist:index-runtime && npm run generate:reference-index && npm run inject:banner",
|
|
236
|
-
"format": "prettier --check .",
|
|
237
|
-
"lint": "eslint . --ext .ts,.js",
|
|
238
|
-
"lint:fix": "eslint . --ext .ts,.js --fix",
|
|
239
|
-
"prepublishOnly": "npm run build",
|
|
240
|
-
"tsc:check": "tsc --noEmit",
|
|
241
|
-
"test": "vitest run",
|
|
242
|
-
"check-publish": "npm run build && npm pack --dry-run",
|
|
243
|
-
"release-patch": "npm version patch && git push && git push --tags && npm publish"
|
|
247
|
+
"barrel": "pnpm run barrel:generate && pnpm run barrel:generate && pnpm run barrel:remove-comment-dist",
|
|
248
|
+
"build": "pnpm run barrel && tsdown",
|
|
249
|
+
"lint": "eslint",
|
|
250
|
+
"test:utils-js": "vitest run",
|
|
251
|
+
"check-publish": "pnpm run build && pnpm pack --dry-run",
|
|
252
|
+
"release-patch": "pnpm version patch && git push && git push --tags && pnpm publish"
|
|
244
253
|
}
|
|
245
|
-
}
|
|
254
|
+
}
|
package/dist/chunk-22V4WP3H.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* ====================================================
|
|
3
|
-
* Rzl Utils-JS.
|
|
4
|
-
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.11.1.
|
|
6
|
-
* Author: Rizalvin Dwiky.
|
|
7
|
-
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
-
* ====================================================
|
|
9
|
-
*/
|
|
10
|
-
import { isFinite } from './chunk-CCJ2MSN7.js';
|
|
11
|
-
import { isEmptyArray } from './chunk-GOFINGT6.js';
|
|
12
|
-
import { isBigInt } from './chunk-QNKGP5DY.js';
|
|
13
|
-
import { isNil, isArray, assertIsPlainObject, hasOwnProp, assertIsBoolean, isString, isBoolean, isNull } from './chunk-MSUW5VHZ.js';
|
|
14
|
-
|
|
15
|
-
function filterNilArray(input) {
|
|
16
|
-
if (isNil(input)) return void 0;
|
|
17
|
-
if (!isArray(input)) return [];
|
|
18
|
-
const filtered = input.reduce((output, element) => {
|
|
19
|
-
if (!isNil(element)) {
|
|
20
|
-
if (isArray(element)) {
|
|
21
|
-
const cleanedNested = filterNilArray(element);
|
|
22
|
-
if (cleanedNested && !isEmptyArray(cleanedNested)) {
|
|
23
|
-
output.push(cleanedNested);
|
|
24
|
-
}
|
|
25
|
-
} else {
|
|
26
|
-
output.push(element);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return output;
|
|
30
|
-
}, []);
|
|
31
|
-
return filtered;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function toStringArrayUnRecursive(array, options = {}) {
|
|
35
|
-
assertIsPlainObject(options, {
|
|
36
|
-
message: ({ currentType, validType }) => `Second parameter (\`options\`) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
37
|
-
});
|
|
38
|
-
const riv = hasOwnProp(options, "removeInvalidValue") ? options.removeInvalidValue : true;
|
|
39
|
-
assertIsBoolean(riv, {
|
|
40
|
-
message: ({ currentType, validType }) => `Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
41
|
-
});
|
|
42
|
-
if (isArray(array)) {
|
|
43
|
-
const result = Array.from(array, (x) => {
|
|
44
|
-
if (isString(x) || isFinite(x) || isBoolean(x) || isBigInt(x)) return String(x);
|
|
45
|
-
return isNull(x) ? null : void 0;
|
|
46
|
-
});
|
|
47
|
-
if (riv) return filterNilArray(result);
|
|
48
|
-
return result;
|
|
49
|
-
}
|
|
50
|
-
return void 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { filterNilArray, toStringArrayUnRecursive };
|
package/dist/chunk-2XSZ2ANI.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* ====================================================
|
|
3
|
-
* Rzl Utils-JS.
|
|
4
|
-
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.11.1.
|
|
6
|
-
* Author: Rizalvin Dwiky.
|
|
7
|
-
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
-
* ====================================================
|
|
9
|
-
*/
|
|
10
|
-
import { isNonEmptyString } from './chunk-MSUW5VHZ.js';
|
|
11
|
-
|
|
12
|
-
var parseCurrencyString = (input) => {
|
|
13
|
-
if (!isNonEmptyString(input)) return 0;
|
|
14
|
-
let trimmed = input.trim().replace(/\u00A0/g, "").replace(/\u202F/g, "");
|
|
15
|
-
let isNegative = false;
|
|
16
|
-
if (/^\(.*\)$/.test(trimmed)) {
|
|
17
|
-
isNegative = true;
|
|
18
|
-
trimmed = trimmed.slice(1, -1).trim();
|
|
19
|
-
}
|
|
20
|
-
trimmed = trimmed.replace(/^[-\s]+/, (match) => match.includes("-") ? "-" : "").replace(/[\s.,-]+$/, "");
|
|
21
|
-
isNegative = isNegative || /^-/.test(trimmed) || /^[^\d]*-/.test(trimmed);
|
|
22
|
-
const cleaned = trimmed.replace(/[^0-9.,'\s]/g, "");
|
|
23
|
-
let cleanedNoSpace = cleaned.replace(/[\s']/g, "");
|
|
24
|
-
const indianMatches = cleanedNoSpace.match(/,\d{2}/g);
|
|
25
|
-
const isIndianStyle = indianMatches && indianMatches.length > 1;
|
|
26
|
-
if (isIndianStyle) {
|
|
27
|
-
cleanedNoSpace = cleanedNoSpace.replace(/,/g, "");
|
|
28
|
-
} else {
|
|
29
|
-
const dotCount = (cleanedNoSpace.match(/\./g) || []).length;
|
|
30
|
-
const commaCount = (cleanedNoSpace.match(/,/g) || []).length;
|
|
31
|
-
if (dotCount > 1 && commaCount === 0) {
|
|
32
|
-
cleanedNoSpace = cleanedNoSpace.replace(/\./g, "");
|
|
33
|
-
} else if (commaCount > 1 && dotCount === 0) {
|
|
34
|
-
cleanedNoSpace = cleanedNoSpace.replace(/,/g, "");
|
|
35
|
-
} else {
|
|
36
|
-
const lastComma = cleanedNoSpace.lastIndexOf(",");
|
|
37
|
-
const lastDot = cleanedNoSpace.lastIndexOf(".");
|
|
38
|
-
if (lastComma > lastDot) {
|
|
39
|
-
cleanedNoSpace = cleanedNoSpace.replace(/\./g, "").replace(",", ".");
|
|
40
|
-
} else if (lastDot > lastComma) {
|
|
41
|
-
cleanedNoSpace = cleanedNoSpace.replace(/,/g, "");
|
|
42
|
-
} else {
|
|
43
|
-
if (lastComma > lastDot) {
|
|
44
|
-
const beforeDecimal = cleanedNoSpace.slice(0, lastComma).replace(/,/g, "").replace(/\./g, "");
|
|
45
|
-
const afterDecimal = cleanedNoSpace.slice(lastComma + 1);
|
|
46
|
-
cleanedNoSpace = beforeDecimal + "." + afterDecimal;
|
|
47
|
-
} else if (lastDot > lastComma) {
|
|
48
|
-
const beforeDecimal = cleanedNoSpace.slice(0, lastDot).replace(/\./g, "").replace(/,/g, "");
|
|
49
|
-
const afterDecimal = cleanedNoSpace.slice(lastDot + 1);
|
|
50
|
-
cleanedNoSpace = beforeDecimal + "." + afterDecimal;
|
|
51
|
-
} else if (lastComma !== -1) {
|
|
52
|
-
cleanedNoSpace = cleanedNoSpace.replace(/,/g, "");
|
|
53
|
-
} else if (lastDot !== -1) {
|
|
54
|
-
cleanedNoSpace = cleanedNoSpace.replace(/\./g, "");
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
const num = parseFloat(cleanedNoSpace) || 0;
|
|
60
|
-
return isNegative ? -num : num;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export { parseCurrencyString };
|
package/dist/chunk-3T6VSWYX.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* ====================================================
|
|
3
|
-
* Rzl Utils-JS.
|
|
4
|
-
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.11.1.
|
|
6
|
-
* Author: Rizalvin Dwiky.
|
|
7
|
-
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
-
* ====================================================
|
|
9
|
-
*/
|
|
10
|
-
import { isString, resolveErrorMessageAssertions } from './chunk-MSUW5VHZ.js';
|
|
11
|
-
|
|
12
|
-
var assertIsString = (value, options = {}) => {
|
|
13
|
-
if (isString(value)) return;
|
|
14
|
-
resolveErrorMessageAssertions({
|
|
15
|
-
value,
|
|
16
|
-
options,
|
|
17
|
-
requiredValidType: "string"
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export { assertIsString };
|