@rzl-zone/utils-js 3.10.0 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +36 -18
  2. package/dist/assertions/index.cjs +11 -11
  3. package/dist/assertions/index.d.ts +487 -215
  4. package/dist/assertions/index.js +5 -5
  5. package/dist/{chunk-SN5HAK3Y.js → chunk-22V4WP3H.js} +4 -4
  6. package/dist/{chunk-EJV5AF4L.js → chunk-2XSZ2ANI.js} +2 -2
  7. package/dist/{chunk-OSSFLQDD.js → chunk-3T6VSWYX.js} +2 -2
  8. package/dist/{chunk-3LE6NX57.js → chunk-5WIEDF2J.js} +4 -4
  9. package/dist/{chunk-WLEZ2KSG.cjs → chunk-6EDFZJZ5.cjs} +126 -126
  10. package/dist/{chunk-GHU356XQ.js → chunk-6LXWT2I5.js} +3 -3
  11. package/dist/{chunk-GKDSBOYE.js → chunk-6YGBRENU.js} +3 -3
  12. package/dist/{chunk-NAOVH4OH.cjs → chunk-7FGNVDEV.cjs} +7 -7
  13. package/dist/{chunk-X6ULJZ3X.js → chunk-AXDYWO67.js} +2 -2
  14. package/dist/{chunk-UV5BKAYW.cjs → chunk-B6PMNZ4M.cjs} +7 -7
  15. package/dist/chunk-BAV5T2E3.cjs +1 -1
  16. package/dist/{chunk-YHFRCVTN.js → chunk-BLF7SD66.js} +3 -3
  17. package/dist/{chunk-QZI5PVCI.cjs → chunk-BMZZXZJ2.cjs} +4 -4
  18. package/dist/{chunk-DXPM4NOU.js → chunk-BOYP3ARU.js} +4 -4
  19. package/dist/{chunk-UXT4XSUK.js → chunk-BPYW5YL7.js} +2 -2
  20. package/dist/{chunk-QGTFQ7RO.cjs → chunk-C2PV3VWC.cjs} +6 -6
  21. package/dist/{chunk-MZ3T6L7Z.js → chunk-CCJ2MSN7.js} +2 -2
  22. package/dist/{chunk-H44QVAZL.cjs → chunk-DAPAK2W3.cjs} +31 -31
  23. package/dist/{chunk-OYFUBKEG.cjs → chunk-DLS3G6WQ.cjs} +4 -4
  24. package/dist/{chunk-MS2KSKD7.js → chunk-DNMCR5JH.js} +9 -9
  25. package/dist/chunk-DVMHRLKP.cjs +1 -1
  26. package/dist/{chunk-IX6PF5ZP.cjs → chunk-EBYFYZW4.cjs} +4 -4
  27. package/dist/{chunk-5Y6JL47L.js → chunk-ENMRZ4BE.js} +3 -3
  28. package/dist/{chunk-7EIFPHV3.js → chunk-FJ4BQFVO.js} +8 -8
  29. package/dist/{chunk-TJ5OY6MC.cjs → chunk-GIKL4PUF.cjs} +10 -10
  30. package/dist/{chunk-M5QB2GM5.js → chunk-GOFINGT6.js} +2 -2
  31. package/dist/{chunk-J6VLFVIL.js → chunk-GXKQ3LHF.js} +3 -3
  32. package/dist/{chunk-5KDVIEVO.js → chunk-HNBRGN4R.js} +2 -2
  33. package/dist/{chunk-OCTHWEZK.cjs → chunk-HYN6FC5A.cjs} +34 -34
  34. package/dist/{chunk-MBFVTGYS.js → chunk-IZGVBYFN.js} +4 -4
  35. package/dist/{chunk-QXTJVDWE.js → chunk-JIE447J5.js} +3 -3
  36. package/dist/{chunk-UFYMRRJH.cjs → chunk-JXEIJM5M.cjs} +61 -61
  37. package/dist/{chunk-WB3FT62A.js → chunk-K47GZDBH.js} +3 -3
  38. package/dist/{chunk-KUVRZ2JW.cjs → chunk-K5536YHG.cjs} +50 -50
  39. package/dist/chunk-KHO2SBNA.cjs +1 -1
  40. package/dist/{chunk-NJ24M6ZH.cjs → chunk-KXJ7X325.cjs} +37 -37
  41. package/dist/chunk-L5RDAVVH.js +1 -1
  42. package/dist/{chunk-SRWL4YCP.js → chunk-LJHPTLWB.js} +7 -7
  43. package/dist/{chunk-6AMDHVS2.cjs → chunk-M7ELWZXM.cjs} +9 -9
  44. package/dist/chunk-MSUW5VHZ.js +1590 -0
  45. package/dist/{chunk-2XGQQZ6A.cjs → chunk-MUHRPRR7.cjs} +3 -3
  46. package/dist/{chunk-XYWC4EQ3.cjs → chunk-MV3TSQSH.cjs} +71 -71
  47. package/dist/{chunk-VCYXNIZ2.cjs → chunk-NLZLXWAU.cjs} +9 -9
  48. package/dist/{chunk-76ATVDCR.cjs → chunk-NVRZPF5M.cjs} +3 -3
  49. package/dist/chunk-ONZFBJVW.js +1 -1
  50. package/dist/{chunk-62FS7WMB.cjs → chunk-PGNL7JXO.cjs} +31 -31
  51. package/dist/{chunk-JI57K7D4.cjs → chunk-Q4GEQS7X.cjs} +161 -161
  52. package/dist/chunk-QNKGP5DY.js +1 -1
  53. package/dist/{chunk-ZTHJQJ5F.cjs → chunk-QYI2VJLS.cjs} +9 -9
  54. package/dist/{chunk-C7GC2PFX.js → chunk-RBWZII5I.js} +3 -3
  55. package/dist/{chunk-MMRHKYT6.cjs → chunk-RMP7VMPB.cjs} +12 -12
  56. package/dist/{chunk-TXOVQZPU.js → chunk-RZOGBYIS.js} +2 -2
  57. package/dist/{chunk-ALRISPTL.cjs → chunk-SU3UELUB.cjs} +3 -3
  58. package/dist/chunk-SYHPSOUU.cjs +1626 -0
  59. package/dist/{chunk-R2DR7SPJ.js → chunk-SZUNAEMR.js} +6 -6
  60. package/dist/{chunk-YVRUY4EW.cjs → chunk-TER22LO4.cjs} +8 -8
  61. package/dist/{chunk-WRGN6UBK.js → chunk-TJHGRQ4P.js} +2 -2
  62. package/dist/{chunk-I33PB44Q.cjs → chunk-U23I7JPB.cjs} +15 -15
  63. package/dist/{chunk-VBSLIIDB.js → chunk-U7HHN47R.js} +10 -10
  64. package/dist/chunk-UDA26MCU.cjs +1 -1
  65. package/dist/{chunk-44X74C26.js → chunk-UIAWUZ4H.js} +4 -4
  66. package/dist/{chunk-5O66AUEC.js → chunk-ULQPCIA2.js} +2 -2
  67. package/dist/chunk-VJDDGRIK.cjs +1 -1
  68. package/dist/{chunk-6WVOUVWD.js → chunk-WETQI6HM.js} +9 -9
  69. package/dist/{chunk-FWWPEL7J.cjs → chunk-WLOQQFDS.cjs} +3 -3
  70. package/dist/chunk-WVSPXFTY.js +1 -1
  71. package/dist/{chunk-WKM6UVMG.cjs → chunk-WXFTVXBF.cjs} +4 -4
  72. package/dist/{chunk-YQHJB7KR.cjs → chunk-XPVTIGU2.cjs} +26 -26
  73. package/dist/{chunk-PWKOFPAH.cjs → chunk-XX6RUGTM.cjs} +3 -3
  74. package/dist/chunk-YWHHVDT4.js +1 -1
  75. package/dist/{chunk-7NXFGJJE.cjs → chunk-ZPDMWDGZ.cjs} +14 -14
  76. package/dist/{chunk-JYOCB6OV.js → chunk-ZVWZEGQP.js} +2 -2
  77. package/dist/conversions/index.cjs +34 -34
  78. package/dist/conversions/index.d.ts +489 -333
  79. package/dist/conversions/index.js +15 -15
  80. package/dist/events/index.cjs +8 -8
  81. package/dist/events/index.d.ts +35 -29
  82. package/dist/events/index.js +4 -4
  83. package/dist/formatters/index.cjs +19 -19
  84. package/dist/formatters/index.d.ts +917 -873
  85. package/dist/formatters/index.js +9 -9
  86. package/dist/generators/index.cjs +9 -9
  87. package/dist/generators/index.d.ts +104 -86
  88. package/dist/generators/index.js +4 -4
  89. package/dist/index.d.ts +1 -1
  90. package/dist/isPlainObject-0p3VveWr.d.ts +534 -0
  91. package/dist/next/index.cjs +37 -37
  92. package/dist/next/index.d.ts +36 -21
  93. package/dist/next/index.js +9 -9
  94. package/dist/next/server/index.cjs +4 -4
  95. package/dist/next/server/index.d.ts +6 -3
  96. package/dist/next/server/index.js +2 -2
  97. package/dist/operations/index.cjs +11 -11
  98. package/dist/operations/index.d.ts +14 -5
  99. package/dist/operations/index.js +8 -8
  100. package/dist/parsers/index.cjs +6 -6
  101. package/dist/parsers/index.d.ts +68 -65
  102. package/dist/parsers/index.js +5 -5
  103. package/dist/predicates/index.cjs +77 -77
  104. package/dist/predicates/index.d.ts +442 -258
  105. package/dist/predicates/index.js +14 -14
  106. package/dist/promises/index.cjs +6 -6
  107. package/dist/promises/index.d.ts +28 -16
  108. package/dist/promises/index.js +4 -4
  109. package/dist/rzl-utils.global.js +2 -2
  110. package/dist/strings/index.cjs +23 -23
  111. package/dist/strings/index.d.ts +82 -54
  112. package/dist/strings/index.js +7 -7
  113. package/dist/tailwind/index.cjs +13 -13
  114. package/dist/tailwind/index.d.ts +186 -169
  115. package/dist/tailwind/index.js +5 -5
  116. package/dist/urls/index.cjs +23 -23
  117. package/dist/urls/index.d.ts +252 -229
  118. package/dist/urls/index.js +16 -16
  119. package/package.json +2 -2
  120. package/dist/chunk-7C7TQC5J.cjs +0 -620
  121. package/dist/chunk-J4TT33ZX.js +0 -584
  122. package/dist/isPlainObject-BTPjv6zB.d.ts +0 -178
@@ -2,7 +2,7 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.10.0.
5
+ * Version: 3.11.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
@@ -2,15 +2,15 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.10.0.
5
+ * Version: 3.11.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  'use strict';
11
11
 
12
- var chunkWKM6UVMG_cjs = require('./chunk-WKM6UVMG.cjs');
13
- var chunk7C7TQC5J_cjs = require('./chunk-7C7TQC5J.cjs');
12
+ var chunkWXFTVXBF_cjs = require('./chunk-WXFTVXBF.cjs');
13
+ var chunkSYHPSOUU_cjs = require('./chunk-SYHPSOUU.cjs');
14
14
 
15
15
  var maxInt = 2147483647;
16
16
  var base = 36;
@@ -52,7 +52,7 @@ function mapDomain(domain, fn) {
52
52
  return result + map(labels, fn).join(".");
53
53
  }
54
54
  function ucs2decode(input) {
55
- chunkWKM6UVMG_cjs.assertIsString(input, {
55
+ chunkWXFTVXBF_cjs.assertIsString(input, {
56
56
  message: ({ currentType, validType }) => `Utils \`punycodeUtilsJS.ucs2.decode\`, parameter \`input\` must be of type \`${validType}\`, but received: \`${currentType}\`.`
57
57
  });
58
58
  const output = [];
@@ -75,7 +75,7 @@ function ucs2decode(input) {
75
75
  var ucs2encode = (points) => {
76
76
  if (!Array.isArray(points) || !points.every((p) => typeof p === "number" && Number.isFinite(p))) {
77
77
  throw new TypeError(
78
- `Utils \`punycodeUtilsJS.ucs2.encode\`, parameter \`points\` must be an array of numbers, but received: \`${chunk7C7TQC5J_cjs.getPreciseType(
78
+ `Utils \`punycodeUtilsJS.ucs2.encode\`, parameter \`points\` must be an array of numbers, but received: \`${chunkSYHPSOUU_cjs.getPreciseType(
79
79
  points
80
80
  )}\`.`
81
81
  );
@@ -102,7 +102,7 @@ function adapt(delta, numPoints, firstTime) {
102
102
  return floor(k + (base - tMin + 1) * delta / (delta + skew));
103
103
  }
104
104
  function decode(input) {
105
- chunkWKM6UVMG_cjs.assertIsString(input, {
105
+ chunkWXFTVXBF_cjs.assertIsString(input, {
106
106
  message: ({ currentType, validType }) => `Utils \`punycodeUtilsJS.decode\`, parameter \`input\` must be of type \`${validType}\`, but received: \`${currentType}\`.`
107
107
  });
108
108
  const output = [];
@@ -139,7 +139,7 @@ function decode(input) {
139
139
  return String.fromCodePoint(...output);
140
140
  }
141
141
  function encode(input) {
142
- chunkWKM6UVMG_cjs.assertIsString(input, {
142
+ chunkWXFTVXBF_cjs.assertIsString(input, {
143
143
  message: ({ currentType, validType }) => `Utils \`punycodeUtilsJS.encode\`, parameter \`input\` must be of type \`${validType}\`, but received: \`${currentType}\`.`
144
144
  });
145
145
  const output = [];
@@ -179,7 +179,7 @@ function encode(input) {
179
179
  return output.join("");
180
180
  }
181
181
  function toUnicode(input) {
182
- chunkWKM6UVMG_cjs.assertIsString(input, {
182
+ chunkWXFTVXBF_cjs.assertIsString(input, {
183
183
  message: ({ currentType, validType }) => `Utils \`punycodeUtilsJS.toUnicode\`, parameter \`input\` must be of type \`${validType}\`, but received: \`${currentType}\`.`
184
184
  });
185
185
  return mapDomain(
@@ -188,7 +188,7 @@ function toUnicode(input) {
188
188
  );
189
189
  }
190
190
  function toASCII(input) {
191
- chunkWKM6UVMG_cjs.assertIsString(input, {
191
+ chunkWXFTVXBF_cjs.assertIsString(input, {
192
192
  message: ({ currentType, validType }) => `Utils \`punycodeUtilsJS.toASCII\`, parameter \`input\` must be of type \`${validType}\`, but received: \`${currentType}\`.`
193
193
  });
194
194
  return mapDomain(
@@ -2,14 +2,14 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.10.0.
5
+ * Version: 3.11.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  import { isServer } from './chunk-L5RDAVVH.js';
11
- import { assertIsString } from './chunk-OSSFLQDD.js';
12
- import { isPlainObject, hasOwnProp, isNonEmptyString, isNumber } from './chunk-J4TT33ZX.js';
11
+ import { assertIsString } from './chunk-3T6VSWYX.js';
12
+ import { isPlainObject, hasOwnProp, isNonEmptyString, isNumber } from './chunk-MSUW5VHZ.js';
13
13
 
14
14
  var disableUserInteraction = (className = "on_processing") => {
15
15
  if (isServer()) return;
@@ -2,30 +2,30 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.10.0.
5
+ * Version: 3.11.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  'use strict';
11
11
 
12
- var chunkFWWPEL7J_cjs = require('./chunk-FWWPEL7J.cjs');
13
- var chunkNAOVH4OH_cjs = require('./chunk-NAOVH4OH.cjs');
14
- var chunk7C7TQC5J_cjs = require('./chunk-7C7TQC5J.cjs');
12
+ var chunkWLOQQFDS_cjs = require('./chunk-WLOQQFDS.cjs');
13
+ var chunk7FGNVDEV_cjs = require('./chunk-7FGNVDEV.cjs');
14
+ var chunkSYHPSOUU_cjs = require('./chunk-SYHPSOUU.cjs');
15
15
 
16
16
  var isEmptyValue = (value, options = {}) => {
17
- chunk7C7TQC5J_cjs.assertIsPlainObject(options, {
17
+ chunkSYHPSOUU_cjs.assertIsPlainObject(options, {
18
18
  message: ({ currentType, validType }) => `Second parameter (\`options\`) must be of type \`${validType}\`, but received: \`${currentType}\`.`
19
19
  });
20
- const checkSymbols = chunk7C7TQC5J_cjs.hasOwnProp(options, "checkSymbols") ? options.checkSymbols : false;
21
- chunk7C7TQC5J_cjs.assertIsBoolean(checkSymbols, {
20
+ const checkSymbols = chunkSYHPSOUU_cjs.hasOwnProp(options, "checkSymbols") ? options.checkSymbols : false;
21
+ chunkSYHPSOUU_cjs.assertIsBoolean(checkSymbols, {
22
22
  message: ({ currentType, validType }) => `Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${validType}\`, but received: \`${currentType}\`.`
23
23
  });
24
- if (chunk7C7TQC5J_cjs.isNil(value) || value === false || chunk7C7TQC5J_cjs.isNaN(value)) return true;
25
- if (chunk7C7TQC5J_cjs.isString(value)) return chunkFWWPEL7J_cjs.isEmptyString(value);
26
- if (chunk7C7TQC5J_cjs.isArray(value)) return chunkNAOVH4OH_cjs.isEmptyArray(value);
27
- if (chunk7C7TQC5J_cjs.isObject(value)) {
28
- return chunkNAOVH4OH_cjs.isEmptyObject(value, { checkSymbols });
24
+ if (chunkSYHPSOUU_cjs.isNil(value) || value === false || chunkSYHPSOUU_cjs.isNaN(value)) return true;
25
+ if (chunkSYHPSOUU_cjs.isString(value)) return chunkWLOQQFDS_cjs.isEmptyString(value);
26
+ if (chunkSYHPSOUU_cjs.isArray(value)) return chunk7FGNVDEV_cjs.isEmptyArray(value);
27
+ if (chunkSYHPSOUU_cjs.isObject(value)) {
28
+ return chunk7FGNVDEV_cjs.isEmptyObject(value, { checkSymbols });
29
29
  }
30
30
  return false;
31
31
  };
@@ -2,12 +2,12 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.10.0.
5
+ * Version: 3.11.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
- import { isArray, resolveErrorMessageAssertions } from './chunk-J4TT33ZX.js';
10
+ import { isArray, resolveErrorMessageAssertions } from './chunk-MSUW5VHZ.js';
11
11
 
12
12
  function assertIsArray(value, options) {
13
13
  if (isArray(value)) return;
@@ -2,17 +2,17 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.10.0.
5
+ * Version: 3.11.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  'use strict';
11
11
 
12
- var chunkMMRHKYT6_cjs = require('./chunk-MMRHKYT6.cjs');
12
+ var chunkRMP7VMPB_cjs = require('./chunk-RMP7VMPB.cjs');
13
13
 
14
14
  var isNonEmptyValue = (value, options = {}) => {
15
- return !chunkMMRHKYT6_cjs.isEmptyValue(value, options);
15
+ return !chunkRMP7VMPB_cjs.isEmptyValue(value, options);
16
16
  };
17
17
 
18
18
  var typedArrayTags = /* @__PURE__ */ new Set([