@rzl-zone/utils-js 3.4.0 → 3.5.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 (117) hide show
  1. package/README.md +94 -45
  2. package/dist/assertions/index.cjs +34 -1
  3. package/dist/assertions/index.d.ts +2 -2
  4. package/dist/assertions/index.js +5 -1
  5. package/dist/chunk-2CQX5CBG.js +247 -1
  6. package/dist/chunk-2IOOEY45.cjs +20 -1
  7. package/dist/chunk-2WA36TC5.cjs +176 -0
  8. package/dist/chunk-3IBQ5MOM.js +6 -1
  9. package/dist/chunk-3VA554KW.js +23 -1
  10. package/dist/chunk-5757UBXJ.cjs +144 -1
  11. package/dist/chunk-5IGC6PBH.js +22 -1
  12. package/dist/chunk-5KJFVIQT.cjs +55 -1
  13. package/dist/chunk-6JFCSH7J.js +24 -1
  14. package/dist/chunk-6JFZL7YE.cjs +14 -1
  15. package/dist/chunk-7ODAAXX5.cjs +361 -1
  16. package/dist/chunk-BAV5T2E3.cjs +5 -1
  17. package/dist/chunk-CAH33WOQ.cjs +25 -1
  18. package/dist/chunk-CDCERIZ2.js +164 -0
  19. package/dist/chunk-CKTLUNWX.js +12 -1
  20. package/dist/chunk-CMW2TBOQ.js +522 -1
  21. package/dist/chunk-D3ENH7H6.cjs +87 -1
  22. package/dist/chunk-DEZZUYE2.js +139 -1
  23. package/dist/chunk-DVMHRLKP.cjs +6 -1
  24. package/dist/chunk-DWF2R5GD.cjs +212 -1
  25. package/dist/chunk-E55EQK2U.cjs +8 -1
  26. package/dist/chunk-E74U6CYP.cjs +8 -1
  27. package/dist/chunk-EL6A35UR.cjs +51 -1
  28. package/dist/chunk-F6IPNNSJ.cjs +531 -1
  29. package/dist/chunk-FJZGG54N.cjs +252 -1
  30. package/dist/chunk-FWCKOJZM.js +519 -1
  31. package/dist/chunk-FWHNWL2P.cjs +409 -1
  32. package/dist/chunk-GGEADHZO.js +78 -1
  33. package/dist/chunk-GQR4R5WY.js +21 -1
  34. package/dist/chunk-H66AC7GK.cjs +81 -1
  35. package/dist/chunk-HQWOFR56.cjs +23 -1
  36. package/dist/chunk-HYRQMTRH.cjs +14 -1
  37. package/dist/chunk-IRFL4MAX.js +53 -1
  38. package/dist/chunk-IVL7CKVH.cjs +26 -1
  39. package/dist/chunk-IZPBKKPO.js +6 -1
  40. package/dist/chunk-JBQMXC5I.cjs +93 -1
  41. package/dist/chunk-JEQEF5WD.js +81 -1
  42. package/dist/chunk-JMJQCN74.js +334 -1
  43. package/dist/chunk-KHO2SBNA.cjs +6 -1
  44. package/dist/chunk-KVAL5PAG.cjs +16 -1
  45. package/dist/chunk-L5RDAVVH.js +5 -1
  46. package/dist/chunk-LS6U7FAY.cjs +98 -1
  47. package/dist/chunk-NBZWMBO6.js +88 -1
  48. package/dist/chunk-NRF6LWBC.cjs +45 -1
  49. package/dist/chunk-OI5XKNZO.js +42 -1
  50. package/dist/chunk-ONZFBJVW.js +5 -1
  51. package/dist/chunk-OYTYSY7G.js +94 -1
  52. package/dist/chunk-PET42Z7W.js +107 -1
  53. package/dist/chunk-PZQ6I4JJ.cjs +559 -1
  54. package/dist/chunk-QBKAEVYG.js +102 -1
  55. package/dist/chunk-QNKGP5DY.js +5 -1
  56. package/dist/chunk-RIPKY4RU.js +407 -1
  57. package/dist/chunk-RZW35UN5.cjs +105 -1
  58. package/dist/chunk-SBFNXGTJ.js +207 -1
  59. package/dist/chunk-SBKGWRS5.js +12 -1
  60. package/dist/chunk-SIM77PU4.js +46 -1
  61. package/dist/chunk-T2T7K3KR.js +18 -1
  62. package/dist/chunk-T7PU2V7X.cjs +111 -1
  63. package/dist/chunk-UDA26MCU.cjs +6 -1
  64. package/dist/chunk-V45XJKHW.cjs +8 -1
  65. package/dist/chunk-VJDDGRIK.cjs +6 -1
  66. package/dist/chunk-W2WNBUDE.js +6 -1
  67. package/dist/chunk-WVSPXFTY.js +5 -1
  68. package/dist/chunk-XABCB3Y7.cjs +563 -1
  69. package/dist/chunk-XEDXFSGI.js +14 -1
  70. package/dist/chunk-YKPSRP5G.js +552 -1
  71. package/dist/chunk-YWHHVDT4.js +4 -1
  72. package/dist/chunk-ZETAZZLD.cjs +27 -1
  73. package/dist/conversions/index.cjs +97 -1
  74. package/dist/conversions/index.d.ts +1 -1
  75. package/dist/conversions/index.js +16 -1
  76. package/dist/events/index.cjs +25 -1
  77. package/dist/events/index.d.ts +1 -1
  78. package/dist/events/index.js +4 -1
  79. package/dist/formatters/index.cjs +55 -1
  80. package/dist/formatters/index.d.ts +1 -1
  81. package/dist/formatters/index.js +10 -1
  82. package/dist/generators/index.cjs +31 -1
  83. package/dist/generators/index.d.ts +1 -1
  84. package/dist/generators/index.js +6 -1
  85. package/dist/index.d.ts +1 -0
  86. package/dist/{isPlainObject-CEPWPiXh.d.ts → isPlainObject-FWmcJF6k.d.ts} +4 -4
  87. package/dist/next/index.cjs +205 -1
  88. package/dist/next/index.d.ts +1 -1
  89. package/dist/next/index.js +200 -1
  90. package/dist/next/server/index.cjs +34 -1
  91. package/dist/next/server/index.d.ts +1 -1
  92. package/dist/next/server/index.js +32 -1
  93. package/dist/operations/index.cjs +26 -1
  94. package/dist/operations/index.d.ts +1 -1
  95. package/dist/operations/index.js +9 -1
  96. package/dist/parsers/index.cjs +11 -1
  97. package/dist/parsers/index.d.ts +1 -1
  98. package/dist/parsers/index.js +2 -1
  99. package/dist/predicates/index.cjs +292 -1
  100. package/dist/predicates/index.d.ts +4 -4
  101. package/dist/predicates/index.js +15 -1
  102. package/dist/promises/index.cjs +18 -1
  103. package/dist/promises/index.d.ts +1 -1
  104. package/dist/promises/index.js +5 -1
  105. package/dist/rzl-utils.global.js +16 -1
  106. package/dist/strings/index.cjs +75 -1
  107. package/dist/strings/index.d.ts +1 -1
  108. package/dist/strings/index.js +6 -1
  109. package/dist/tailwind/index.cjs +36 -1
  110. package/dist/tailwind/index.d.ts +1 -1
  111. package/dist/tailwind/index.js +3 -1
  112. package/dist/urls/index.cjs +44 -1
  113. package/dist/urls/index.d.ts +1 -1
  114. package/dist/urls/index.js +15 -1
  115. package/package.json +16 -19
  116. package/dist/chunk-JYQTCICM.js +0 -1
  117. package/dist/chunk-YLA3DURS.cjs +0 -1
@@ -1 +1,75 @@
1
- "use strict";var e=require("../chunk-D3ENH7H6.cjs"),t=require("../chunk-E74U6CYP.cjs"),r=require("../chunk-2IOOEY45.cjs"),n=require("../chunk-KVAL5PAG.cjs");require("../chunk-E55EQK2U.cjs");var o=require("../chunk-PZQ6I4JJ.cjs");Object.defineProperty(exports,"capitalizeFirst",{enumerable:!0,get:function(){return e.capitalizeFirst}}),Object.defineProperty(exports,"capitalizeWords",{enumerable:!0,get:function(){return e.capitalizeWords}}),Object.defineProperty(exports,"getInitialsName",{enumerable:!0,get:function(){return e.getInitialsName}}),Object.defineProperty(exports,"replaceAt",{enumerable:!0,get:function(){return e.replaceAt}}),Object.defineProperty(exports,"stripHtmlTags",{enumerable:!0,get:function(){return e.stripHtmlTags}}),Object.defineProperty(exports,"normalizeString",{enumerable:!0,get:function(){return t.normalizeString}}),Object.defineProperty(exports,"normalizeSpaces",{enumerable:!0,get:function(){return r.normalizeSpaces}}),Object.defineProperty(exports,"removeSpaces",{enumerable:!0,get:function(){return n.removeSpaces}}),Object.defineProperty(exports,"slugify",{enumerable:!0,get:function(){return o.slugify}}),Object.defineProperty(exports,"toCamelCase",{enumerable:!0,get:function(){return o.toCamelCase}}),Object.defineProperty(exports,"toDotCase",{enumerable:!0,get:function(){return o.toDotCase}}),Object.defineProperty(exports,"toKebabCase",{enumerable:!0,get:function(){return o.toKebabCase}}),Object.defineProperty(exports,"toLowerCase",{enumerable:!0,get:function(){return o.toLowerCase}}),Object.defineProperty(exports,"toPascalCase",{enumerable:!0,get:function(){return o.toPascalCase}}),Object.defineProperty(exports,"toPascalCaseSpace",{enumerable:!0,get:function(){return o.toPascalCaseSpace}}),Object.defineProperty(exports,"toSnakeCase",{enumerable:!0,get:function(){return o.toSnakeCase}});
1
+ 'use strict';
2
+
3
+ var chunkD3ENH7H6_cjs = require('../chunk-D3ENH7H6.cjs');
4
+ var chunkE74U6CYP_cjs = require('../chunk-E74U6CYP.cjs');
5
+ var chunk2IOOEY45_cjs = require('../chunk-2IOOEY45.cjs');
6
+ var chunkKVAL5PAG_cjs = require('../chunk-KVAL5PAG.cjs');
7
+ require('../chunk-E55EQK2U.cjs');
8
+ var chunkPZQ6I4JJ_cjs = require('../chunk-PZQ6I4JJ.cjs');
9
+
10
+
11
+
12
+ Object.defineProperty(exports, "capitalizeFirst", {
13
+ enumerable: true,
14
+ get: function () { return chunkD3ENH7H6_cjs.capitalizeFirst; }
15
+ });
16
+ Object.defineProperty(exports, "capitalizeWords", {
17
+ enumerable: true,
18
+ get: function () { return chunkD3ENH7H6_cjs.capitalizeWords; }
19
+ });
20
+ Object.defineProperty(exports, "getInitialsName", {
21
+ enumerable: true,
22
+ get: function () { return chunkD3ENH7H6_cjs.getInitialsName; }
23
+ });
24
+ Object.defineProperty(exports, "replaceAt", {
25
+ enumerable: true,
26
+ get: function () { return chunkD3ENH7H6_cjs.replaceAt; }
27
+ });
28
+ Object.defineProperty(exports, "stripHtmlTags", {
29
+ enumerable: true,
30
+ get: function () { return chunkD3ENH7H6_cjs.stripHtmlTags; }
31
+ });
32
+ Object.defineProperty(exports, "normalizeString", {
33
+ enumerable: true,
34
+ get: function () { return chunkE74U6CYP_cjs.normalizeString; }
35
+ });
36
+ Object.defineProperty(exports, "normalizeSpaces", {
37
+ enumerable: true,
38
+ get: function () { return chunk2IOOEY45_cjs.normalizeSpaces; }
39
+ });
40
+ Object.defineProperty(exports, "removeSpaces", {
41
+ enumerable: true,
42
+ get: function () { return chunkKVAL5PAG_cjs.removeSpaces; }
43
+ });
44
+ Object.defineProperty(exports, "slugify", {
45
+ enumerable: true,
46
+ get: function () { return chunkPZQ6I4JJ_cjs.slugify; }
47
+ });
48
+ Object.defineProperty(exports, "toCamelCase", {
49
+ enumerable: true,
50
+ get: function () { return chunkPZQ6I4JJ_cjs.toCamelCase; }
51
+ });
52
+ Object.defineProperty(exports, "toDotCase", {
53
+ enumerable: true,
54
+ get: function () { return chunkPZQ6I4JJ_cjs.toDotCase; }
55
+ });
56
+ Object.defineProperty(exports, "toKebabCase", {
57
+ enumerable: true,
58
+ get: function () { return chunkPZQ6I4JJ_cjs.toKebabCase; }
59
+ });
60
+ Object.defineProperty(exports, "toLowerCase", {
61
+ enumerable: true,
62
+ get: function () { return chunkPZQ6I4JJ_cjs.toLowerCase; }
63
+ });
64
+ Object.defineProperty(exports, "toPascalCase", {
65
+ enumerable: true,
66
+ get: function () { return chunkPZQ6I4JJ_cjs.toPascalCase; }
67
+ });
68
+ Object.defineProperty(exports, "toPascalCaseSpace", {
69
+ enumerable: true,
70
+ get: function () { return chunkPZQ6I4JJ_cjs.toPascalCaseSpace; }
71
+ });
72
+ Object.defineProperty(exports, "toSnakeCase", {
73
+ enumerable: true,
74
+ get: function () { return chunkPZQ6I4JJ_cjs.toSnakeCase; }
75
+ });
@@ -737,4 +737,4 @@ declare const getInitialsName:(name:string|null|undefined)=>string;
737
737
  * replaceAt(2, null, "X");
738
738
  * // ➔ ❌ TypeError: First parameter `index` must be of type `number`, second parameter `originalString` and third parameter `replaceTo` must be of type `string`, but received: "['index': `string`,...]."
739
739
  */
740
- declare const replaceAt:(index:number,originalString:string,replaceTo:string)=>string;export{capitalizeFirst,capitalizeWords,getInitialsName,normalizeSpaces,normalizeString,removeSpaces,replaceAt,slugify,stripHtmlTags,toCamelCase,toDotCase,toKebabCase,toLowerCase,toPascalCase,toPascalCaseSpace,toSnakeCase};
740
+ declare const replaceAt:(index:number,originalString:string,replaceTo:string)=>string;export{capitalizeFirst,capitalizeWords,getInitialsName,normalizeSpaces,normalizeString,removeSpaces,replaceAt,slugify,stripHtmlTags,toCamelCase,toDotCase,toKebabCase,toLowerCase,toPascalCase,toPascalCaseSpace,toSnakeCase};
@@ -1 +1,6 @@
1
- export{capitalizeFirst,capitalizeWords,getInitialsName,replaceAt,stripHtmlTags}from"../chunk-JEQEF5WD.js";export{normalizeString}from"../chunk-IZPBKKPO.js";export{normalizeSpaces}from"../chunk-T2T7K3KR.js";export{removeSpaces}from"../chunk-XEDXFSGI.js";import"../chunk-W2WNBUDE.js";export{slugify,toCamelCase,toDotCase,toKebabCase,toLowerCase,toPascalCase,toPascalCaseSpace,toSnakeCase}from"../chunk-CMW2TBOQ.js";
1
+ export { capitalizeFirst, capitalizeWords, getInitialsName, replaceAt, stripHtmlTags } from '../chunk-JEQEF5WD.js';
2
+ export { normalizeString } from '../chunk-IZPBKKPO.js';
3
+ export { normalizeSpaces } from '../chunk-T2T7K3KR.js';
4
+ export { removeSpaces } from '../chunk-XEDXFSGI.js';
5
+ import '../chunk-W2WNBUDE.js';
6
+ export { slugify, toCamelCase, toDotCase, toKebabCase, toLowerCase, toPascalCase, toPascalCaseSpace, toSnakeCase } from '../chunk-CMW2TBOQ.js';
@@ -1 +1,36 @@
1
- "use strict";var e=require("../chunk-YLA3DURS.cjs");require("../chunk-6JFZL7YE.cjs"),require("../chunk-PZQ6I4JJ.cjs"),Object.defineProperty(exports,"cnV3",{enumerable:!0,get:function(){return e.cnV3}}),Object.defineProperty(exports,"cnV4",{enumerable:!0,get:function(){return e.cnV4}}),Object.defineProperty(exports,"customCnV3",{enumerable:!0,get:function(){return e.customCnV3}}),Object.defineProperty(exports,"customCnV4",{enumerable:!0,get:function(){return e.customCnV4}}),Object.defineProperty(exports,"shouldForwardProp",{enumerable:!0,get:function(){return e.shouldForwardProp}}),Object.defineProperty(exports,"twMergeDefaultV3",{enumerable:!0,get:function(){return e.twMergeDefaultV3}}),Object.defineProperty(exports,"twMergeDefaultV4",{enumerable:!0,get:function(){return e.twMergeDefaultV4}});
1
+ 'use strict';
2
+
3
+ var chunk2WA36TC5_cjs = require('../chunk-2WA36TC5.cjs');
4
+ require('../chunk-6JFZL7YE.cjs');
5
+ require('../chunk-PZQ6I4JJ.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "cnV3", {
10
+ enumerable: true,
11
+ get: function () { return chunk2WA36TC5_cjs.cnV3; }
12
+ });
13
+ Object.defineProperty(exports, "cnV4", {
14
+ enumerable: true,
15
+ get: function () { return chunk2WA36TC5_cjs.cnV4; }
16
+ });
17
+ Object.defineProperty(exports, "customCnV3", {
18
+ enumerable: true,
19
+ get: function () { return chunk2WA36TC5_cjs.customCnV3; }
20
+ });
21
+ Object.defineProperty(exports, "customCnV4", {
22
+ enumerable: true,
23
+ get: function () { return chunk2WA36TC5_cjs.customCnV4; }
24
+ });
25
+ Object.defineProperty(exports, "shouldForwardProp", {
26
+ enumerable: true,
27
+ get: function () { return chunk2WA36TC5_cjs.shouldForwardProp; }
28
+ });
29
+ Object.defineProperty(exports, "twMergeDefaultV3", {
30
+ enumerable: true,
31
+ get: function () { return chunk2WA36TC5_cjs.twMergeDefaultV3; }
32
+ });
33
+ Object.defineProperty(exports, "twMergeDefaultV4", {
34
+ enumerable: true,
35
+ get: function () { return chunk2WA36TC5_cjs.twMergeDefaultV4; }
36
+ });
@@ -568,4 +568,4 @@ declare const twMergeDefaultV3:(options?:OptionsMergeTwClsV3)=>TwMergeDefaultFnV
568
568
  * // ➔ "text-xxs" (✅ respects config)
569
569
  * ```
570
570
  */
571
- declare const twMergeDefaultV4:(options?:OptionsMergeTwClsV4)=>TwMergeDefaultFnV4;export{type ClassesValue,cnV3,cnV4,customCnV3,customCnV4,shouldForwardProp,twMergeDefaultV3,twMergeDefaultV4};
571
+ declare const twMergeDefaultV4:(options?:OptionsMergeTwClsV4)=>TwMergeDefaultFnV4;export{type ClassesValue,cnV3,cnV4,customCnV3,customCnV4,shouldForwardProp,twMergeDefaultV3,twMergeDefaultV4};
@@ -1 +1,3 @@
1
- export{cnV3,cnV4,customCnV3,customCnV4,shouldForwardProp,twMergeDefaultV3,twMergeDefaultV4}from"../chunk-JYQTCICM.js";import"../chunk-CKTLUNWX.js";import"../chunk-CMW2TBOQ.js";
1
+ export { cnV3, cnV4, customCnV3, customCnV4, shouldForwardProp, twMergeDefaultV3, twMergeDefaultV4 } from '../chunk-CDCERIZ2.js';
2
+ import '../chunk-CKTLUNWX.js';
3
+ import '../chunk-CMW2TBOQ.js';
@@ -1 +1,44 @@
1
- "use strict";var e=require("../chunk-DWF2R5GD.cjs");require("../chunk-KHO2SBNA.cjs"),require("../chunk-E74U6CYP.cjs"),require("../chunk-NRF6LWBC.cjs"),require("../chunk-HQWOFR56.cjs"),require("../chunk-V45XJKHW.cjs"),require("../chunk-DVMHRLKP.cjs");var r=require("../chunk-H66AC7GK.cjs");require("../chunk-KVAL5PAG.cjs"),require("../chunk-E55EQK2U.cjs"),require("../chunk-ZETAZZLD.cjs"),require("../chunk-6JFZL7YE.cjs"),require("../chunk-T7PU2V7X.cjs"),require("../chunk-UDA26MCU.cjs"),require("../chunk-PZQ6I4JJ.cjs"),Object.defineProperty(exports,"constructURL",{enumerable:!0,get:function(){return e.constructURL}}),Object.defineProperty(exports,"extractURLs",{enumerable:!0,get:function(){return e.extractURLs}}),Object.defineProperty(exports,"getFirstPrefixPathname",{enumerable:!0,get:function(){return e.getFirstPrefixPathname}}),Object.defineProperty(exports,"getPrefixPathname",{enumerable:!0,get:function(){return e.getPrefixPathname}}),Object.defineProperty(exports,"formatEnvPort",{enumerable:!0,get:function(){return r.formatEnvPort}}),Object.defineProperty(exports,"normalizePathname",{enumerable:!0,get:function(){return r.normalizePathname}});
1
+ 'use strict';
2
+
3
+ var chunkDWF2R5GD_cjs = require('../chunk-DWF2R5GD.cjs');
4
+ require('../chunk-KHO2SBNA.cjs');
5
+ require('../chunk-E74U6CYP.cjs');
6
+ require('../chunk-NRF6LWBC.cjs');
7
+ require('../chunk-HQWOFR56.cjs');
8
+ require('../chunk-V45XJKHW.cjs');
9
+ require('../chunk-DVMHRLKP.cjs');
10
+ var chunkH66AC7GK_cjs = require('../chunk-H66AC7GK.cjs');
11
+ require('../chunk-KVAL5PAG.cjs');
12
+ require('../chunk-E55EQK2U.cjs');
13
+ require('../chunk-ZETAZZLD.cjs');
14
+ require('../chunk-6JFZL7YE.cjs');
15
+ require('../chunk-T7PU2V7X.cjs');
16
+ require('../chunk-UDA26MCU.cjs');
17
+ require('../chunk-PZQ6I4JJ.cjs');
18
+
19
+
20
+
21
+ Object.defineProperty(exports, "constructURL", {
22
+ enumerable: true,
23
+ get: function () { return chunkDWF2R5GD_cjs.constructURL; }
24
+ });
25
+ Object.defineProperty(exports, "extractURLs", {
26
+ enumerable: true,
27
+ get: function () { return chunkDWF2R5GD_cjs.extractURLs; }
28
+ });
29
+ Object.defineProperty(exports, "getFirstPrefixPathname", {
30
+ enumerable: true,
31
+ get: function () { return chunkDWF2R5GD_cjs.getFirstPrefixPathname; }
32
+ });
33
+ Object.defineProperty(exports, "getPrefixPathname", {
34
+ enumerable: true,
35
+ get: function () { return chunkDWF2R5GD_cjs.getPrefixPathname; }
36
+ });
37
+ Object.defineProperty(exports, "formatEnvPort", {
38
+ enumerable: true,
39
+ get: function () { return chunkH66AC7GK_cjs.formatEnvPort; }
40
+ });
41
+ Object.defineProperty(exports, "normalizePathname", {
42
+ enumerable: true,
43
+ get: function () { return chunkH66AC7GK_cjs.normalizePathname; }
44
+ });
@@ -395,4 +395,4 @@ prefixColon?:boolean;};
395
395
  * formatEnvPort("port:8080", { prefixColon: true });
396
396
  * // ➔ ":8080"
397
397
  */
398
- declare const formatEnvPort:(envVar:string|null|undefined,options?:FormatEnvPortOptions)=>string;export{type QueryParamPairs,constructURL,extractURLs,formatEnvPort,getFirstPrefixPathname,getPrefixPathname,normalizePathname};
398
+ declare const formatEnvPort:(envVar:string|null|undefined,options?:FormatEnvPortOptions)=>string;export{type QueryParamPairs,constructURL,extractURLs,formatEnvPort,getFirstPrefixPathname,getPrefixPathname,normalizePathname};
@@ -1 +1,15 @@
1
- export{constructURL,extractURLs,getFirstPrefixPathname,getPrefixPathname}from"../chunk-SBFNXGTJ.js";import"../chunk-ONZFBJVW.js";import"../chunk-IZPBKKPO.js";import"../chunk-OI5XKNZO.js";import"../chunk-GQR4R5WY.js";import"../chunk-3IBQ5MOM.js";import"../chunk-WVSPXFTY.js";export{formatEnvPort,normalizePathname}from"../chunk-GGEADHZO.js";import"../chunk-XEDXFSGI.js";import"../chunk-W2WNBUDE.js";import"../chunk-6JFCSH7J.js";import"../chunk-CKTLUNWX.js";import"../chunk-PET42Z7W.js";import"../chunk-QNKGP5DY.js";import"../chunk-CMW2TBOQ.js";
1
+ export { constructURL, extractURLs, getFirstPrefixPathname, getPrefixPathname } from '../chunk-SBFNXGTJ.js';
2
+ import '../chunk-ONZFBJVW.js';
3
+ import '../chunk-IZPBKKPO.js';
4
+ import '../chunk-OI5XKNZO.js';
5
+ import '../chunk-GQR4R5WY.js';
6
+ import '../chunk-3IBQ5MOM.js';
7
+ import '../chunk-WVSPXFTY.js';
8
+ export { formatEnvPort, normalizePathname } from '../chunk-GGEADHZO.js';
9
+ import '../chunk-XEDXFSGI.js';
10
+ import '../chunk-W2WNBUDE.js';
11
+ import '../chunk-6JFCSH7J.js';
12
+ import '../chunk-CKTLUNWX.js';
13
+ import '../chunk-PET42Z7W.js';
14
+ import '../chunk-QNKGP5DY.js';
15
+ import '../chunk-CMW2TBOQ.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@rzl-zone/utils-js",
3
- "version": "3.4.0",
4
- "type": "module",
3
+ "version": "3.5.0",
5
4
  "sideEffects": false,
6
5
  "engineStrict": true,
7
6
  "license": "MIT",
7
+ "type": "module",
8
8
  "unpkg": "./dist/rzl-utils.global.js",
9
9
  "jsdelivr": "./dist/rzl-utils.global.js",
10
10
  "types": "./dist/index.d.ts",
@@ -18,7 +18,8 @@
18
18
  "url": "https://github.com/rzl-zone/utils-js/issues"
19
19
  },
20
20
  "dependencies": {
21
- "@rzl-zone/ts-types-plus": "latest",
21
+ "@rzl-zone/ts-types-plus": "^0.0.8",
22
+ "clsx": "^2.1.1",
22
23
  "date-fns": "^4.1.0",
23
24
  "libphonenumber-js": "^1.12.17",
24
25
  "server-only": "^0.0.1",
@@ -31,14 +32,12 @@
31
32
  "@types/rollup": "^0.51.4",
32
33
  "@vitest/coverage-v8": "^3.2.4",
33
34
  "barrelsby": "^2.8.1",
34
- "clsx": "latest",
35
35
  "del-cli": "^6.0.0",
36
36
  "dts-bundle-generator": "^9.5.1",
37
37
  "eslint": "^9.31.0",
38
38
  "globals": "^16.3.0",
39
39
  "jsdom": "^26.1.0",
40
- "next": "^15.5.2",
41
- "release-please": "^17.1.1",
40
+ "next": "^15.5.3",
42
41
  "tailwindcss": "^4.1.13",
43
42
  "terser": "^5.44.0",
44
43
  "tsc-alias": "^1.8.16",
@@ -281,25 +280,23 @@
281
280
  "url": "git+https://github.com/rzl-zone/utils-js.git"
282
281
  },
283
282
  "scripts": {
284
- "generate:reference": "tsx scripts/generate-reference.ts",
285
- "clean": "del-cli \"dist/*\"",
286
- "prepublish": "npm run clean",
287
- "prepare": "npm run build",
288
- "prepublishOnly": "npm run barrel",
289
- "check-publish": "npm pack --dry-run",
290
- "delete-dist:index": "del-cli \"dist/index.{js,js.map,cjs,cjs.map}\" \"dist/index.d.{ts,cts}\"",
291
- "postbuild": "del-cli \"dist/**/*.d.cts\" && npm run delete-dist:index && npm run generate:reference",
292
283
  "barrel:generate": "npx barrelsby --config barrelsby.config.json",
293
- "barrel": "npm run barrel:generate && npm run barrel:generate && npx tsx scripts/removeBarrelsbyComment.ts ",
294
284
  "barrel:remove-comment-dist": "tsx scripts/removeBarrelsbyComment.ts",
295
- "build": "npm run clean && npm run barrel && tsup && npm run minify-dist && npm run postbuild",
296
- "build:dts": "tsc -p tsconfig.build.json && tsc-alias",
285
+ "barrel": "npm run barrel:generate && npm run barrel:generate && npm run barrel:remove-comment-dist",
286
+ "clean-dist": "del-cli \"dist/*\"",
287
+ "clean-dist:types-cts": "del-cli \"dist/**/*.d.{cts,mts}\"",
288
+ "clean-dist:js-comments": "tsx scripts/cleanDistJsComments.ts",
289
+ "delete-dist:index-runtime": "del-cli \"dist/index.{js,js.map,cjs,cjs.map}\" \"dist/index.d.{ts,cts,mts,esm}\"",
290
+ "minify:dist": "tsx scripts/minifyDist.ts",
297
291
  "build:types-dts": "dts-bundle-generator --config dts-config.cjs --silent --external-imports next",
298
- "coverage": "vitest run --coverage",
292
+ "generate:reference-index": "tsx scripts/generateReferenceIndex.ts",
293
+ "postbuild": "npm run clean-dist:js-comments && npm run clean-dist:types-cts && npm run delete-dist:index-runtime && npm run generate:reference-index",
294
+ "build": "npm run clean-dist && npm run barrel && tsup && npm run minify:dist && npm run postbuild",
299
295
  "format": "prettier --check .",
300
296
  "lint": "eslint . --ext .ts,.js",
301
297
  "lint:fix": "eslint . --ext .ts,.js --fix",
302
- "minify-dist": "tsx scripts/minify-dist.ts",
298
+ "prepublishOnly": "npm run build",
299
+ "check-publish": "npm run build && npm pack --dry-run",
303
300
  "release-patch": "npm version patch && git push && git push --tags && npm publish"
304
301
  }
305
302
  }
@@ -1 +0,0 @@
1
- import{assertIsArray as e}from"./chunk-CKTLUNWX.js";import{isPlainObject as i,isNumber as r,isNonEmptyString as s,isFunction as o,hasOwnProp as t,isNonEmptyArray as n,getPreciseType as a}from"./chunk-CMW2TBOQ.js";import{getDefaultConfig as c,extendTailwindMerge as f}from"tailwind-merge-v3";import{getDefaultConfig as l,extendTailwindMerge as p}from"tailwind-merge-v4";function d(e){var i,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(r=d(e[i]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}var m=function(){for(var e,i,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(i=d(e))&&(s&&(s+=" "),s+=i);return s},u=e=>{i(e)||(e={});let{config:a,prefix:c,extend:f,override:l,cacheSize:p,experimentalParseClassName:d}=e;i(a)||(a={}),i(f)||(f={}),i(l)||(l={}),r(p)||(p=void 0),s(c)||(c=void 0),o(d)||(d=void 0);return{config:a,override:l,cacheSize:p,prefix:c,experimentalParseClassName:d,theme:t(f,"theme")?f.theme:{},classGroups:t(f,"classGroups")?f.classGroups:{},conflictingClassGroupModifiers:t(f,"conflictingClassGroupModifiers")?f.conflictingClassGroupModifiers:{},conflictingClassGroups:t(f,"conflictingClassGroups")?f.conflictingClassGroups:{},orderSensitiveModifiers:t(f,"orderSensitiveModifiers")&&n(f.orderSensitiveModifiers)?f.orderSensitiveModifiers:[]}},g=c(),x=(e={})=>{i(e)||(e={});const{cacheSize:r,classGroups:s,config:o,conflictingClassGroupModifiers:t,conflictingClassGroups:n,override:a,prefix:c,theme:l,experimentalParseClassName:p}=u(e);return f({prefix:c??o.prefix,cacheSize:r||g.cacheSize,experimentalParseClassName:p,override:a,extend:{conflictingClassGroupModifiers:{...g.conflictingClassGroupModifiers,...t},theme:{...g.theme,...l},conflictingClassGroups:{...g.conflictingClassGroups,...n},classGroups:{...g.classGroups,...s,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},h=l(),C=(e={})=>{i(e)||(e={});const{cacheSize:r,classGroups:s,config:o,conflictingClassGroupModifiers:t,conflictingClassGroups:n,orderSensitiveModifiers:a,override:c,prefix:f,theme:l,experimentalParseClassName:d}=u(e);return p({prefix:f||o.prefix,cacheSize:r||h.cacheSize,experimentalParseClassName:d,override:c,extend:{conflictingClassGroupModifiers:{...h.conflictingClassGroupModifiers,...t},theme:{...h.theme,...l},conflictingClassGroups:{...h.conflictingClassGroups,...n},orderSensitiveModifiers:[...h.orderSensitiveModifiers,...a],classGroups:{...h.classGroups,...s,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},G=x(),v=C(),S=(...e)=>G(m(...e)),M=(...e)=>v(m(...e)),y=(e,...i)=>{if(!o(e))throw new TypeError(`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${a(e)}\`.`);return e(m(...i))},z=(e,...i)=>{if(!o(e))throw new TypeError(`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${a(e)}\`.`);return e(m(...i))},w=i=>(e(i,{message:({currentType:e,validType:i})=>`First parameter (\`props\`) must be of type \`${i}\`, but received: \`${e}\`.`}),e=>!i.map(e=>e.toString()).includes(e.toString()));export{S as cnV3,M as cnV4,y as customCnV3,z as customCnV4,w as shouldForwardProp,x as twMergeDefaultV3,C as twMergeDefaultV4};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./chunk-6JFZL7YE.cjs"),i=require("./chunk-PZQ6I4JJ.cjs"),r=require("tailwind-merge-v3"),s=require("tailwind-merge-v4");function t(e){var i,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(r=t(e[i]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}var o=function(){for(var e,i,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(i=t(e))&&(s&&(s+=" "),s+=i);return s},n=e=>{i.isPlainObject(e)||(e={});let{config:r,prefix:s,extend:t,override:o,cacheSize:n,experimentalParseClassName:a}=e;i.isPlainObject(r)||(r={}),i.isPlainObject(t)||(t={}),i.isPlainObject(o)||(o={}),i.isNumber(n)||(n=void 0),i.isNonEmptyString(s)||(s=void 0),i.isFunction(a)||(a=void 0);return{config:r,override:o,cacheSize:n,prefix:s,experimentalParseClassName:a,theme:i.hasOwnProp(t,"theme")?t.theme:{},classGroups:i.hasOwnProp(t,"classGroups")?t.classGroups:{},conflictingClassGroupModifiers:i.hasOwnProp(t,"conflictingClassGroupModifiers")?t.conflictingClassGroupModifiers:{},conflictingClassGroups:i.hasOwnProp(t,"conflictingClassGroups")?t.conflictingClassGroups:{},orderSensitiveModifiers:i.hasOwnProp(t,"orderSensitiveModifiers")&&i.isNonEmptyArray(t.orderSensitiveModifiers)?t.orderSensitiveModifiers:[]}},a=r.getDefaultConfig(),c=(e={})=>{i.isPlainObject(e)||(e={});const{cacheSize:s,classGroups:t,config:o,conflictingClassGroupModifiers:c,conflictingClassGroups:l,override:f,prefix:p,theme:u,experimentalParseClassName:d}=n(e);return r.extendTailwindMerge({prefix:p??o.prefix,cacheSize:s||a.cacheSize,experimentalParseClassName:d,override:f,extend:{conflictingClassGroupModifiers:{...a.conflictingClassGroupModifiers,...c},theme:{...a.theme,...u},conflictingClassGroups:{...a.conflictingClassGroups,...l},classGroups:{...a.classGroups,...t,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},l=s.getDefaultConfig(),f=(e={})=>{i.isPlainObject(e)||(e={});const{cacheSize:r,classGroups:t,config:o,conflictingClassGroupModifiers:a,conflictingClassGroups:c,orderSensitiveModifiers:f,override:p,prefix:u,theme:d,experimentalParseClassName:m}=n(e);return s.extendTailwindMerge({prefix:u||o.prefix,cacheSize:r||l.cacheSize,experimentalParseClassName:m,override:p,extend:{conflictingClassGroupModifiers:{...l.conflictingClassGroupModifiers,...a},theme:{...l.theme,...d},conflictingClassGroups:{...l.conflictingClassGroups,...c},orderSensitiveModifiers:[...l.orderSensitiveModifiers,...f],classGroups:{...l.classGroups,...t,"text-shadow":["","-sm","-md","-lg","-xl","-xxl","-none","-default"].map(e=>`text-shadow${e}`),"font-size":Object.keys({...o.theme?.fontSize||{},...o.theme?.extend?.fontSize||{}}).map(e=>`text-${e}`)}}})},p=c(),u=f();exports.cnV3=(...e)=>p(o(...e)),exports.cnV4=(...e)=>u(o(...e)),exports.customCnV3=(e,...r)=>{if(!i.isFunction(e))throw new TypeError(`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${i.getPreciseType(e)}\`.`);return e(o(...r))},exports.customCnV4=(e,...r)=>{if(!i.isFunction(e))throw new TypeError(`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${i.getPreciseType(e)}\`.`);return e(o(...r))},exports.shouldForwardProp=i=>(e.assertIsArray(i,{message:({currentType:e,validType:i})=>`First parameter (\`props\`) must be of type \`${i}\`, but received: \`${e}\`.`}),e=>!i.map(e=>e.toString()).includes(e.toString())),exports.twMergeDefaultV3=c,exports.twMergeDefaultV4=f;