@rzl-zone/utils-js 3.9.1 → 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.
- package/README.md +111 -73
- package/dist/assertions/index.cjs +11 -11
- package/dist/assertions/index.d.ts +487 -215
- package/dist/assertions/index.js +5 -5
- package/dist/{chunk-SN5HAK3Y.js → chunk-22V4WP3H.js} +4 -4
- package/dist/{chunk-EJV5AF4L.js → chunk-2XSZ2ANI.js} +2 -2
- package/dist/{chunk-OSSFLQDD.js → chunk-3T6VSWYX.js} +2 -2
- package/dist/{chunk-3LE6NX57.js → chunk-5WIEDF2J.js} +4 -4
- package/dist/{chunk-WLEZ2KSG.cjs → chunk-6EDFZJZ5.cjs} +126 -126
- package/dist/{chunk-GHU356XQ.js → chunk-6LXWT2I5.js} +3 -3
- package/dist/{chunk-GKDSBOYE.js → chunk-6YGBRENU.js} +3 -3
- package/dist/{chunk-NAOVH4OH.cjs → chunk-7FGNVDEV.cjs} +7 -7
- package/dist/{chunk-X6ULJZ3X.js → chunk-AXDYWO67.js} +2 -2
- package/dist/{chunk-UV5BKAYW.cjs → chunk-B6PMNZ4M.cjs} +7 -7
- package/dist/chunk-BAV5T2E3.cjs +1 -1
- package/dist/{chunk-YHFRCVTN.js → chunk-BLF7SD66.js} +3 -3
- package/dist/{chunk-QZI5PVCI.cjs → chunk-BMZZXZJ2.cjs} +4 -4
- package/dist/{chunk-DXPM4NOU.js → chunk-BOYP3ARU.js} +4 -4
- package/dist/{chunk-UXT4XSUK.js → chunk-BPYW5YL7.js} +2 -2
- package/dist/{chunk-QGTFQ7RO.cjs → chunk-C2PV3VWC.cjs} +6 -6
- package/dist/{chunk-MZ3T6L7Z.js → chunk-CCJ2MSN7.js} +2 -2
- package/dist/{chunk-H44QVAZL.cjs → chunk-DAPAK2W3.cjs} +31 -31
- package/dist/{chunk-OYFUBKEG.cjs → chunk-DLS3G6WQ.cjs} +4 -4
- package/dist/{chunk-MS2KSKD7.js → chunk-DNMCR5JH.js} +9 -9
- package/dist/chunk-DVMHRLKP.cjs +1 -1
- package/dist/{chunk-IX6PF5ZP.cjs → chunk-EBYFYZW4.cjs} +4 -4
- package/dist/{chunk-5Y6JL47L.js → chunk-ENMRZ4BE.js} +3 -3
- package/dist/{chunk-7EIFPHV3.js → chunk-FJ4BQFVO.js} +8 -8
- package/dist/{chunk-TJ5OY6MC.cjs → chunk-GIKL4PUF.cjs} +10 -10
- package/dist/{chunk-M5QB2GM5.js → chunk-GOFINGT6.js} +2 -2
- package/dist/{chunk-J6VLFVIL.js → chunk-GXKQ3LHF.js} +3 -3
- package/dist/{chunk-5KDVIEVO.js → chunk-HNBRGN4R.js} +2 -2
- package/dist/{chunk-OCTHWEZK.cjs → chunk-HYN6FC5A.cjs} +34 -34
- package/dist/{chunk-MBFVTGYS.js → chunk-IZGVBYFN.js} +4 -4
- package/dist/{chunk-QXTJVDWE.js → chunk-JIE447J5.js} +3 -3
- package/dist/{chunk-UFYMRRJH.cjs → chunk-JXEIJM5M.cjs} +61 -61
- package/dist/{chunk-WB3FT62A.js → chunk-K47GZDBH.js} +3 -3
- package/dist/{chunk-KUVRZ2JW.cjs → chunk-K5536YHG.cjs} +50 -50
- package/dist/chunk-KHO2SBNA.cjs +1 -1
- package/dist/{chunk-NJ24M6ZH.cjs → chunk-KXJ7X325.cjs} +37 -37
- package/dist/chunk-L5RDAVVH.js +1 -1
- package/dist/{chunk-SRWL4YCP.js → chunk-LJHPTLWB.js} +7 -7
- package/dist/{chunk-6AMDHVS2.cjs → chunk-M7ELWZXM.cjs} +9 -9
- package/dist/chunk-MSUW5VHZ.js +1590 -0
- package/dist/{chunk-2XGQQZ6A.cjs → chunk-MUHRPRR7.cjs} +3 -3
- package/dist/{chunk-XYWC4EQ3.cjs → chunk-MV3TSQSH.cjs} +71 -71
- package/dist/{chunk-VCYXNIZ2.cjs → chunk-NLZLXWAU.cjs} +9 -9
- package/dist/{chunk-76ATVDCR.cjs → chunk-NVRZPF5M.cjs} +3 -3
- package/dist/chunk-ONZFBJVW.js +1 -1
- package/dist/{chunk-62FS7WMB.cjs → chunk-PGNL7JXO.cjs} +31 -31
- package/dist/{chunk-JI57K7D4.cjs → chunk-Q4GEQS7X.cjs} +161 -161
- package/dist/chunk-QNKGP5DY.js +1 -1
- package/dist/{chunk-ZTHJQJ5F.cjs → chunk-QYI2VJLS.cjs} +9 -9
- package/dist/{chunk-C7GC2PFX.js → chunk-RBWZII5I.js} +3 -3
- package/dist/{chunk-MMRHKYT6.cjs → chunk-RMP7VMPB.cjs} +12 -12
- package/dist/{chunk-TXOVQZPU.js → chunk-RZOGBYIS.js} +2 -2
- package/dist/{chunk-ALRISPTL.cjs → chunk-SU3UELUB.cjs} +3 -3
- package/dist/chunk-SYHPSOUU.cjs +1626 -0
- package/dist/{chunk-R2DR7SPJ.js → chunk-SZUNAEMR.js} +6 -6
- package/dist/{chunk-YVRUY4EW.cjs → chunk-TER22LO4.cjs} +8 -8
- package/dist/{chunk-WRGN6UBK.js → chunk-TJHGRQ4P.js} +2 -2
- package/dist/{chunk-I33PB44Q.cjs → chunk-U23I7JPB.cjs} +15 -15
- package/dist/{chunk-VBSLIIDB.js → chunk-U7HHN47R.js} +10 -10
- package/dist/chunk-UDA26MCU.cjs +1 -1
- package/dist/{chunk-44X74C26.js → chunk-UIAWUZ4H.js} +4 -4
- package/dist/{chunk-5O66AUEC.js → chunk-ULQPCIA2.js} +2 -2
- package/dist/chunk-VJDDGRIK.cjs +1 -1
- package/dist/{chunk-6WVOUVWD.js → chunk-WETQI6HM.js} +9 -9
- package/dist/{chunk-FWWPEL7J.cjs → chunk-WLOQQFDS.cjs} +3 -3
- package/dist/chunk-WVSPXFTY.js +1 -1
- package/dist/{chunk-WKM6UVMG.cjs → chunk-WXFTVXBF.cjs} +4 -4
- package/dist/{chunk-YQHJB7KR.cjs → chunk-XPVTIGU2.cjs} +26 -26
- package/dist/{chunk-PWKOFPAH.cjs → chunk-XX6RUGTM.cjs} +3 -3
- package/dist/chunk-YWHHVDT4.js +1 -1
- package/dist/{chunk-7NXFGJJE.cjs → chunk-ZPDMWDGZ.cjs} +14 -14
- package/dist/{chunk-JYOCB6OV.js → chunk-ZVWZEGQP.js} +2 -2
- package/dist/conversions/index.cjs +34 -34
- package/dist/conversions/index.d.ts +489 -333
- package/dist/conversions/index.js +15 -15
- package/dist/events/index.cjs +8 -8
- package/dist/events/index.d.ts +35 -29
- package/dist/events/index.js +4 -4
- package/dist/formatters/index.cjs +19 -19
- package/dist/formatters/index.d.ts +917 -873
- package/dist/formatters/index.js +9 -9
- package/dist/generators/index.cjs +9 -9
- package/dist/generators/index.d.ts +104 -86
- package/dist/generators/index.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/isPlainObject-0p3VveWr.d.ts +534 -0
- package/dist/next/index.cjs +37 -37
- package/dist/next/index.d.ts +36 -21
- package/dist/next/index.js +9 -9
- package/dist/next/server/index.cjs +4 -4
- package/dist/next/server/index.d.ts +6 -3
- package/dist/next/server/index.js +2 -2
- package/dist/operations/index.cjs +11 -11
- package/dist/operations/index.d.ts +14 -5
- package/dist/operations/index.js +8 -8
- package/dist/parsers/index.cjs +6 -6
- package/dist/parsers/index.d.ts +68 -65
- package/dist/parsers/index.js +5 -5
- package/dist/predicates/index.cjs +77 -77
- package/dist/predicates/index.d.ts +442 -258
- package/dist/predicates/index.js +14 -14
- package/dist/promises/index.cjs +6 -6
- package/dist/promises/index.d.ts +28 -16
- package/dist/promises/index.js +4 -4
- package/dist/rzl-utils.global.js +2 -2
- package/dist/strings/index.cjs +23 -23
- package/dist/strings/index.d.ts +82 -54
- package/dist/strings/index.js +7 -7
- package/dist/tailwind/index.cjs +13 -13
- package/dist/tailwind/index.d.ts +186 -169
- package/dist/tailwind/index.js +5 -5
- package/dist/urls/index.cjs +23 -23
- package/dist/urls/index.d.ts +252 -229
- package/dist/urls/index.js +16 -16
- package/package.json +3 -3
- package/dist/chunk-7C7TQC5J.cjs +0 -620
- package/dist/chunk-J4TT33ZX.js +0 -584
- package/dist/isPlainObject-BTPjv6zB.d.ts +0 -178
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
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
|
|
12
|
+
var chunkSYHPSOUU_cjs = require('./chunk-SYHPSOUU.cjs');
|
|
13
13
|
|
|
14
14
|
var parseCurrencyString = (input) => {
|
|
15
|
-
if (!
|
|
15
|
+
if (!chunkSYHPSOUU_cjs.isNonEmptyString(input)) return 0;
|
|
16
16
|
let trimmed = input.trim().replace(/\u00A0/g, "").replace(/\u202F/g, "");
|
|
17
17
|
let isNegative = false;
|
|
18
18
|
if (/^\(.*\)$/.test(trimmed)) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
5
|
+
* Version: 3.11.0.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
@@ -10,51 +10,51 @@
|
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
12
|
var chunkKHO2SBNA_cjs = require('./chunk-KHO2SBNA.cjs');
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
13
|
+
var chunkSU3UELUB_cjs = require('./chunk-SU3UELUB.cjs');
|
|
14
|
+
var chunkMUHRPRR7_cjs = require('./chunk-MUHRPRR7.cjs');
|
|
15
|
+
var chunkWLOQQFDS_cjs = require('./chunk-WLOQQFDS.cjs');
|
|
16
|
+
var chunkWXFTVXBF_cjs = require('./chunk-WXFTVXBF.cjs');
|
|
17
|
+
var chunkGIKL4PUF_cjs = require('./chunk-GIKL4PUF.cjs');
|
|
18
|
+
var chunk7FGNVDEV_cjs = require('./chunk-7FGNVDEV.cjs');
|
|
19
|
+
var chunkDAPAK2W3_cjs = require('./chunk-DAPAK2W3.cjs');
|
|
20
|
+
var chunkSYHPSOUU_cjs = require('./chunk-SYHPSOUU.cjs');
|
|
21
21
|
|
|
22
22
|
var areArraysEqual = (array1, array2, ignoreOrder = false) => {
|
|
23
|
-
if (!(
|
|
23
|
+
if (!(chunkSYHPSOUU_cjs.isArray(array1) && chunkSYHPSOUU_cjs.isArray(array2))) {
|
|
24
24
|
throw new TypeError(
|
|
25
|
-
`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${
|
|
25
|
+
`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${chunkSYHPSOUU_cjs.getPreciseType(
|
|
26
26
|
array1
|
|
27
|
-
)}\`, 'array2': \`${
|
|
27
|
+
)}\`, 'array2': \`${chunkSYHPSOUU_cjs.getPreciseType(array2)}\`].`
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
chunkSYHPSOUU_cjs.assertIsBoolean(ignoreOrder, {
|
|
31
31
|
message: ({ currentType, validType }) => `Third parameter \`ignoreOrder\` must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
32
32
|
});
|
|
33
|
-
if (!
|
|
33
|
+
if (!chunkGIKL4PUF_cjs.isEqual(array1.length, array2.length)) return false;
|
|
34
34
|
const deepIgnoreOrder = (arr) => {
|
|
35
|
-
if (!
|
|
35
|
+
if (!chunkSYHPSOUU_cjs.isArray(arr)) return arr;
|
|
36
36
|
const sorted = arr.map((item) => {
|
|
37
|
-
if (
|
|
37
|
+
if (chunkSYHPSOUU_cjs.isArray(item)) {
|
|
38
38
|
return deepIgnoreOrder(item);
|
|
39
39
|
}
|
|
40
40
|
return item;
|
|
41
41
|
});
|
|
42
42
|
return sorted.sort((a, b) => {
|
|
43
|
-
const sa =
|
|
44
|
-
const sb =
|
|
43
|
+
const sa = chunkDAPAK2W3_cjs.safeStableStringify(a);
|
|
44
|
+
const sb = chunkDAPAK2W3_cjs.safeStableStringify(b);
|
|
45
45
|
return sa < sb ? -1 : sa > sb ? 1 : 0;
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
const normalizedArr1 = ignoreOrder ? deepIgnoreOrder(array1) : array1;
|
|
49
49
|
const normalizedArr2 = ignoreOrder ? deepIgnoreOrder(array2) : array2;
|
|
50
|
-
if (!
|
|
50
|
+
if (!chunkGIKL4PUF_cjs.isEqual(normalizedArr1.length, normalizedArr2.length)) return false;
|
|
51
51
|
return normalizedArr1.every(
|
|
52
|
-
(item, index) =>
|
|
52
|
+
(item, index) => chunkDAPAK2W3_cjs.safeStableStringify(item) === chunkDAPAK2W3_cjs.safeStableStringify(normalizedArr2[index])
|
|
53
53
|
);
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
var areObjectsEqual = (object1, object2) => {
|
|
57
|
-
return
|
|
57
|
+
return chunkGIKL4PUF_cjs.isEqual(object1, object2);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
var areURLsEqualPath = (urlA, urlB) => {
|
|
@@ -76,21 +76,21 @@ var areURLsIdentical = (urlA, urlB) => {
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
var textContainsAll = (text, searchWords, options = {}) => {
|
|
79
|
-
if (!
|
|
79
|
+
if (!chunkSYHPSOUU_cjs.isNonEmptyString(text) || !chunkSYHPSOUU_cjs.isArray(searchWords)) {
|
|
80
80
|
return false;
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
chunkSYHPSOUU_cjs.assertIsPlainObject(options, {
|
|
83
83
|
message: ({ currentType, validType }) => `Third parameter (\`options\`) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
84
84
|
});
|
|
85
85
|
const { exactMatch = false, flags = "i" } = options;
|
|
86
|
-
|
|
86
|
+
chunkSYHPSOUU_cjs.assertIsBoolean(exactMatch, {
|
|
87
87
|
message: ({ currentType, validType }) => `Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
88
88
|
});
|
|
89
|
-
|
|
89
|
+
chunkWXFTVXBF_cjs.assertIsString(flags, {
|
|
90
90
|
message: ({ currentType, validType }) => `Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
91
91
|
});
|
|
92
92
|
const escapeRegex = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
93
|
-
const validSearchWords = searchWords.filter((word) =>
|
|
93
|
+
const validSearchWords = searchWords.filter((word) => chunkSYHPSOUU_cjs.isNonEmptyString(word)).map(escapeRegex);
|
|
94
94
|
if (validSearchWords.length === 0) return false;
|
|
95
95
|
return validSearchWords.every((word) => {
|
|
96
96
|
const pattern = exactMatch ? `(?<!\\S)${word}(?!\\S)` : word;
|
|
@@ -99,21 +99,21 @@ var textContainsAll = (text, searchWords, options = {}) => {
|
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
var textContainsAny = (text, searchWords, options = {}) => {
|
|
102
|
-
if (!
|
|
102
|
+
if (!chunkSYHPSOUU_cjs.isNonEmptyString(text) || !chunkSYHPSOUU_cjs.isArray(searchWords)) {
|
|
103
103
|
return false;
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
chunkSYHPSOUU_cjs.assertIsPlainObject(options, {
|
|
106
106
|
message: ({ currentType, validType }) => `Third parameter (\`options\`) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
107
107
|
});
|
|
108
108
|
const { exactMatch = false, flags = "i" } = options;
|
|
109
|
-
|
|
109
|
+
chunkSYHPSOUU_cjs.assertIsBoolean(exactMatch, {
|
|
110
110
|
message: ({ currentType, validType }) => `Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
111
111
|
});
|
|
112
|
-
|
|
112
|
+
chunkWXFTVXBF_cjs.assertIsString(flags, {
|
|
113
113
|
message: ({ currentType, validType }) => `Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
114
114
|
});
|
|
115
115
|
const escapeRegex = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
116
|
-
const validSearchWords = searchWords.filter((word) =>
|
|
116
|
+
const validSearchWords = searchWords.filter((word) => chunkSYHPSOUU_cjs.isNonEmptyString(word)).map(escapeRegex);
|
|
117
117
|
if (validSearchWords.length === 0) return false;
|
|
118
118
|
const pattern = exactMatch ? `(?<!\\S)(${validSearchWords.join("|")})(?!\\S)` : `(${validSearchWords.join("|")})`;
|
|
119
119
|
return new RegExp(pattern, flags.includes("u") ? flags : flags + "u").test(text);
|
|
@@ -125,25 +125,25 @@ function isPropertyKey(value) {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
var doesKeyExist = (object, key) => {
|
|
128
|
-
if (!
|
|
128
|
+
if (!chunkSYHPSOUU_cjs.isObjectOrArray(object)) return false;
|
|
129
129
|
if (!isPropertyKey(key)) {
|
|
130
130
|
throw new TypeError(
|
|
131
|
-
`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${
|
|
131
|
+
`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${chunkSYHPSOUU_cjs.getPreciseType(
|
|
132
132
|
key
|
|
133
133
|
)}\`.`
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
136
|
if (Object.prototype.hasOwnProperty.call(object, key)) return true;
|
|
137
|
-
if (
|
|
137
|
+
if (chunkSYHPSOUU_cjs.isArray(object)) {
|
|
138
138
|
return object.some((item) => doesKeyExist(item, key));
|
|
139
139
|
}
|
|
140
140
|
return Object.values(object).some(
|
|
141
|
-
(value) =>
|
|
141
|
+
(value) => chunkSYHPSOUU_cjs.isObjectOrArray(value) && doesKeyExist(value, key)
|
|
142
142
|
);
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
var arrayHasAnyMatch = (sourceArray, targetArray) => {
|
|
146
|
-
if (!
|
|
146
|
+
if (!chunkSYHPSOUU_cjs.isArray(sourceArray) || !chunkSYHPSOUU_cjs.isArray(targetArray) || chunk7FGNVDEV_cjs.isEmptyArray(sourceArray) || chunk7FGNVDEV_cjs.isEmptyArray(targetArray)) {
|
|
147
147
|
return false;
|
|
148
148
|
}
|
|
149
149
|
const sourceSet = new Set(sourceArray);
|
|
@@ -159,16 +159,16 @@ function isLength(value) {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
function isArrayLike(value) {
|
|
162
|
-
return !
|
|
162
|
+
return !chunkSYHPSOUU_cjs.isFunction(value) && chunkSYHPSOUU_cjs.isObjectOrArray(value) && isLength(value?.length);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
function isArrayLikeObject(value) {
|
|
166
|
-
return
|
|
166
|
+
return chunkSYHPSOUU_cjs.isObjectOrArray(value) && isLength(value.length);
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
var isCurrencyLike = (input) => {
|
|
170
|
-
if (!(
|
|
171
|
-
const parsed =
|
|
170
|
+
if (!(chunkSYHPSOUU_cjs.isString(input) || chunkSYHPSOUU_cjs.isNumber(input))) return false;
|
|
171
|
+
const parsed = chunkMUHRPRR7_cjs.parseCurrencyString(input.toString());
|
|
172
172
|
if (parsed !== 0) return true;
|
|
173
173
|
return input.toString().trim() === "0";
|
|
174
174
|
};
|
|
@@ -179,16 +179,16 @@ var isDeepEqual = (a, b) => {
|
|
|
179
179
|
}
|
|
180
180
|
if (a === b) return true;
|
|
181
181
|
if (typeof a !== typeof b) return false;
|
|
182
|
-
if (
|
|
182
|
+
if (chunkDAPAK2W3_cjs.isDate(a) && chunkDAPAK2W3_cjs.isDate(b)) {
|
|
183
183
|
return a.getTime() === b.getTime();
|
|
184
184
|
}
|
|
185
|
-
if (
|
|
185
|
+
if (chunkGIKL4PUF_cjs.isRegExp(a) && chunkGIKL4PUF_cjs.isRegExp(b)) {
|
|
186
186
|
return a.toString() === b.toString();
|
|
187
187
|
}
|
|
188
|
-
if (
|
|
188
|
+
if (chunkSYHPSOUU_cjs.isSymbol(a) && chunkSYHPSOUU_cjs.isSymbol(b)) {
|
|
189
189
|
return a.toString() === b.toString();
|
|
190
190
|
}
|
|
191
|
-
if (
|
|
191
|
+
if (chunkSYHPSOUU_cjs.isSet(a) && chunkSYHPSOUU_cjs.isSet(b)) {
|
|
192
192
|
if (a.size !== b.size) return false;
|
|
193
193
|
const bValues = Array.from(b);
|
|
194
194
|
const matched = /* @__PURE__ */ new Set();
|
|
@@ -206,7 +206,7 @@ var isDeepEqual = (a, b) => {
|
|
|
206
206
|
}
|
|
207
207
|
return true;
|
|
208
208
|
}
|
|
209
|
-
if (
|
|
209
|
+
if (chunkDAPAK2W3_cjs.isMap(a) && chunkDAPAK2W3_cjs.isMap(b)) {
|
|
210
210
|
if (a.size !== b.size) return false;
|
|
211
211
|
const bEntries = Array.from(b);
|
|
212
212
|
const matched = /* @__PURE__ */ new Set();
|
|
@@ -225,12 +225,12 @@ var isDeepEqual = (a, b) => {
|
|
|
225
225
|
}
|
|
226
226
|
return true;
|
|
227
227
|
}
|
|
228
|
-
if (
|
|
228
|
+
if (chunkSYHPSOUU_cjs.isArray(a) && chunkSYHPSOUU_cjs.isArray(b)) {
|
|
229
229
|
if (a.length !== b.length) return false;
|
|
230
230
|
return a.every((item, i) => isDeepEqual(item, b[i]));
|
|
231
231
|
}
|
|
232
|
-
if (
|
|
233
|
-
if (
|
|
232
|
+
if (chunkSYHPSOUU_cjs.isObjectOrArray(a) && chunkSYHPSOUU_cjs.isObjectOrArray(b) && a && b) {
|
|
233
|
+
if (chunkSYHPSOUU_cjs.isArray(a) !== chunkSYHPSOUU_cjs.isArray(b)) return false;
|
|
234
234
|
const aKeys = Object.keys(a);
|
|
235
235
|
const bKeys = Object.keys(b);
|
|
236
236
|
if (aKeys.length !== bKeys.length) return false;
|
|
@@ -240,38 +240,38 @@ var isDeepEqual = (a, b) => {
|
|
|
240
240
|
};
|
|
241
241
|
|
|
242
242
|
function isElement(value) {
|
|
243
|
-
return !!value && typeof value === "object" && value?.nodeType === 1 && !
|
|
243
|
+
return !!value && typeof value === "object" && value?.nodeType === 1 && !chunkSYHPSOUU_cjs.isPlainObject(value);
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
function isEmpty(value) {
|
|
247
|
-
if (
|
|
248
|
-
if (
|
|
247
|
+
if (chunkSYHPSOUU_cjs.isNil(value)) return true;
|
|
248
|
+
if (chunkSYHPSOUU_cjs.isBoolean(value) || chunkSYHPSOUU_cjs.isNumber(value, { includeNaN: true }) || chunkSYHPSOUU_cjs.isSymbol(value))
|
|
249
249
|
return true;
|
|
250
|
-
if (
|
|
250
|
+
if (chunkSYHPSOUU_cjs.isFunction(value)) {
|
|
251
251
|
return Object.keys(value).length === 0;
|
|
252
252
|
}
|
|
253
|
-
if (
|
|
253
|
+
if (chunkSYHPSOUU_cjs.isString(value) || chunkSYHPSOUU_cjs.isArray(value) || isArguments(value) || chunkSU3UELUB_cjs.isTypedArray(value)) {
|
|
254
254
|
return value.length === 0;
|
|
255
255
|
}
|
|
256
|
-
if (
|
|
256
|
+
if (chunkDAPAK2W3_cjs.isMap(value) || chunkSYHPSOUU_cjs.isSet(value)) {
|
|
257
257
|
return value.size === 0;
|
|
258
258
|
}
|
|
259
|
-
if (
|
|
259
|
+
if (chunkSYHPSOUU_cjs.isBuffer(value)) {
|
|
260
260
|
return value.length === 0;
|
|
261
261
|
}
|
|
262
|
-
if (
|
|
262
|
+
if (chunkSYHPSOUU_cjs.isPlainObject(value)) {
|
|
263
263
|
return Object.keys(value).length === 0;
|
|
264
264
|
}
|
|
265
265
|
return false;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
var isEmptyDeep = (value) => {
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
271
|
-
if (
|
|
272
|
-
return
|
|
269
|
+
if (chunkSYHPSOUU_cjs.isString(value)) return chunkWLOQQFDS_cjs.isEmptyString(value);
|
|
270
|
+
if (chunkSYHPSOUU_cjs.isNumber(value)) return chunkSYHPSOUU_cjs.isNaN(value);
|
|
271
|
+
if (chunkSYHPSOUU_cjs.isArray(value)) {
|
|
272
|
+
return chunk7FGNVDEV_cjs.isEmptyArray(value) || value.every(isEmptyDeep);
|
|
273
273
|
}
|
|
274
|
-
if (
|
|
274
|
+
if (chunkSYHPSOUU_cjs.isObjectOrArray(value)) {
|
|
275
275
|
const keys = Object.keys(value);
|
|
276
276
|
const symbols = Object.getOwnPropertySymbols(value);
|
|
277
277
|
if (keys.length === 0 && symbols.length === 0) return true;
|
|
@@ -282,7 +282,7 @@ var isEmptyDeep = (value) => {
|
|
|
282
282
|
};
|
|
283
283
|
|
|
284
284
|
function isEqualWith(value, other, customizer) {
|
|
285
|
-
return
|
|
285
|
+
return chunkGIKL4PUF_cjs.baseDeepEqual(value, other, customizer, /* @__PURE__ */ new WeakMap());
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
function isMatchWith(value, other, customizer) {
|
|
@@ -294,25 +294,25 @@ function isSameValue(x, y) {
|
|
|
294
294
|
}
|
|
295
295
|
function baseIsMatch(object, source, customizer) {
|
|
296
296
|
if (object === source) return true;
|
|
297
|
-
if (!
|
|
297
|
+
if (!chunkSYHPSOUU_cjs.isObjectOrArray(source)) {
|
|
298
298
|
return isSameValue(object, source);
|
|
299
299
|
}
|
|
300
|
-
if (!
|
|
300
|
+
if (!chunkSYHPSOUU_cjs.isObjectOrArray(object)) {
|
|
301
301
|
return false;
|
|
302
302
|
}
|
|
303
303
|
const keys = Reflect.ownKeys(source).filter(
|
|
304
|
-
(k) => !(
|
|
304
|
+
(k) => !(chunkSYHPSOUU_cjs.isArray(source) && k === "length")
|
|
305
305
|
);
|
|
306
306
|
for (const key of keys) {
|
|
307
307
|
if (!(key in object)) return false;
|
|
308
308
|
const objValue = object[key];
|
|
309
309
|
const srcValue = source[key];
|
|
310
310
|
const result = customizer?.(objValue, srcValue, key, object, source);
|
|
311
|
-
if (!
|
|
311
|
+
if (!chunkSYHPSOUU_cjs.isUndefined(result)) {
|
|
312
312
|
if (!result) return false;
|
|
313
313
|
continue;
|
|
314
314
|
}
|
|
315
|
-
if (
|
|
315
|
+
if (chunkSYHPSOUU_cjs.isObjectOrArray(objValue) && chunkSYHPSOUU_cjs.isObjectOrArray(srcValue)) {
|
|
316
316
|
if (!isMatchWith(objValue, srcValue, customizer)) return false;
|
|
317
317
|
} else {
|
|
318
318
|
if (!isSameValue(objValue, srcValue)) return false;
|
|
@@ -328,7 +328,7 @@ function isMatch(object, source) {
|
|
|
328
328
|
var funcToString = Function.prototype.toString;
|
|
329
329
|
var reIsNative = /\{\s*\[native code\]\s*\}/;
|
|
330
330
|
function isNative(value) {
|
|
331
|
-
if (!
|
|
331
|
+
if (!chunkSYHPSOUU_cjs.isFunction(value)) return false;
|
|
332
332
|
try {
|
|
333
333
|
const source = funcToString.call(value);
|
|
334
334
|
return reIsNative.test(source);
|
|
@@ -338,7 +338,7 @@ function isNative(value) {
|
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
function isObjectLoose(value) {
|
|
341
|
-
return !
|
|
341
|
+
return !chunkSYHPSOUU_cjs.isNil(value) && (chunkSYHPSOUU_cjs.isObjectOrArray(value) || chunkSYHPSOUU_cjs.isFunction(value));
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
function isSafeInteger(value) {
|
|
@@ -346,7 +346,7 @@ function isSafeInteger(value) {
|
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
var isValidURL = (url) => {
|
|
349
|
-
if (!
|
|
349
|
+
if (!chunkSYHPSOUU_cjs.isNonEmptyString(url)) return false;
|
|
350
350
|
let decodedUrl;
|
|
351
351
|
try {
|
|
352
352
|
decodedUrl = decodeURIComponent(url);
|
|
@@ -366,7 +366,7 @@ var isValidURL = (url) => {
|
|
|
366
366
|
};
|
|
367
367
|
|
|
368
368
|
function isWeakMap(value) {
|
|
369
|
-
return
|
|
369
|
+
return chunkSYHPSOUU_cjs.isObject(value) && !chunkSYHPSOUU_cjs.isNull(value) && value instanceof WeakMap;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
exports.areArraysEqual = areArraysEqual;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
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
|
|
13
|
-
var
|
|
12
|
+
var chunkQYI2VJLS_cjs = require('./chunk-QYI2VJLS.cjs');
|
|
13
|
+
var chunkSYHPSOUU_cjs = require('./chunk-SYHPSOUU.cjs');
|
|
14
14
|
|
|
15
15
|
var EXTENSIONS_FILE = /* @__PURE__ */ new Set([
|
|
16
16
|
// 📄 Text & Document
|
|
@@ -586,24 +586,24 @@ var SPECIAL_FILENAMES = /* @__PURE__ */ new Set([
|
|
|
586
586
|
]);
|
|
587
587
|
|
|
588
588
|
var extractFileName = (input, options = {}) => {
|
|
589
|
-
if (!
|
|
590
|
-
|
|
589
|
+
if (!chunkSYHPSOUU_cjs.isNonEmptyString(input)) return null;
|
|
590
|
+
chunkSYHPSOUU_cjs.assertIsPlainObject(options, {
|
|
591
591
|
message: ({ currentType, validType }) => `Second parameter (\`options\`) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
592
592
|
});
|
|
593
593
|
const { domainName, domainAware = false } = options;
|
|
594
|
-
|
|
594
|
+
chunkSYHPSOUU_cjs.assertIsBoolean(domainAware, {
|
|
595
595
|
message: ({ currentType, validType }) => `Parameter \`domainAware\` property of the \`options\` (second parameter) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
596
596
|
});
|
|
597
597
|
let pathname = input.trim();
|
|
598
598
|
pathname = pathname.replace(/\\/g, "/");
|
|
599
599
|
if (domainAware) {
|
|
600
|
-
if (!
|
|
600
|
+
if (!chunkSYHPSOUU_cjs.isNonEmptyString(domainName)) {
|
|
601
601
|
throw new TypeError(
|
|
602
602
|
`If parameter \`domainAware\` is set to \`true\`, the option parameter \`domainName\` is required as string, and cant be an empty-string.`
|
|
603
603
|
);
|
|
604
604
|
}
|
|
605
|
-
const cleanDomain =
|
|
606
|
-
const inputDomain =
|
|
605
|
+
const cleanDomain = chunkQYI2VJLS_cjs.punycodeUtilsJS.toASCII(domainName).replace(/^https?:\/\//i, "").replace(/^www\./, "").replace(/\/.*$/, "").toLowerCase();
|
|
606
|
+
const inputDomain = chunkQYI2VJLS_cjs.punycodeUtilsJS.toASCII(input).replace(/^https?:\/\//i, "").replace(/^www\./, "").toLowerCase();
|
|
607
607
|
const inputHost = inputDomain.split("/")[0].split(/[?#]/)[0];
|
|
608
608
|
const matchesDomain = inputHost === cleanDomain || inputHost.endsWith(`.${cleanDomain}`);
|
|
609
609
|
const hasPath = /\/[^/]+$/.test(inputDomain);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
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
|
|
12
|
+
var chunkSYHPSOUU_cjs = require('./chunk-SYHPSOUU.cjs');
|
|
13
13
|
|
|
14
14
|
var normalizeString = (input) => {
|
|
15
|
-
return
|
|
15
|
+
return chunkSYHPSOUU_cjs.isNonEmptyString(input) ? input.trim() : "";
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
exports.normalizeString = normalizeString;
|
package/dist/chunk-ONZFBJVW.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
5
|
+
* Version: 3.11.0.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.
|
|
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
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var chunkWLOQQFDS_cjs = require('./chunk-WLOQQFDS.cjs');
|
|
13
|
+
var chunkDLS3G6WQ_cjs = require('./chunk-DLS3G6WQ.cjs');
|
|
14
|
+
var chunkSYHPSOUU_cjs = require('./chunk-SYHPSOUU.cjs');
|
|
15
15
|
var tailwindMergeV3 = require('tailwind-merge-v3');
|
|
16
16
|
var tailwindMergeV4 = require('tailwind-merge-v4');
|
|
17
17
|
|
|
18
18
|
function toStringValue(value) {
|
|
19
19
|
let str = "";
|
|
20
|
-
if (
|
|
20
|
+
if (chunkSYHPSOUU_cjs.isNonEmptyString(value) || chunkSYHPSOUU_cjs.isNumber(value)) {
|
|
21
21
|
str += value;
|
|
22
|
-
} else if (
|
|
23
|
-
if (
|
|
22
|
+
} else if (chunkSYHPSOUU_cjs.isObjectOrArray(value)) {
|
|
23
|
+
if (chunkSYHPSOUU_cjs.isStringObject(value) || chunkSYHPSOUU_cjs.isNumberObject(value) || chunkSYHPSOUU_cjs.isBooleanObject(value)) {
|
|
24
24
|
const val = value.valueOf();
|
|
25
25
|
if (val) str += val;
|
|
26
|
-
} else if (
|
|
26
|
+
} else if (chunkSYHPSOUU_cjs.isArray(value)) {
|
|
27
27
|
for (const item of value) {
|
|
28
28
|
if (!item) continue;
|
|
29
29
|
const y = toStringValue(item);
|
|
@@ -54,22 +54,22 @@ function cx(...values) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
var validatorPropsTwMerge = (options) => {
|
|
57
|
-
if (!
|
|
57
|
+
if (!chunkSYHPSOUU_cjs.isPlainObject(options)) options = {};
|
|
58
58
|
let { config, prefix, extend, override, cacheSize, experimentalParseClassName } = options;
|
|
59
|
-
if (!
|
|
60
|
-
if (!
|
|
61
|
-
if (!
|
|
62
|
-
if (!
|
|
63
|
-
if (!
|
|
64
|
-
if (!
|
|
65
|
-
const theme =
|
|
66
|
-
const classGroups =
|
|
67
|
-
const conflictingClassGroupModifiers =
|
|
59
|
+
if (!chunkSYHPSOUU_cjs.isPlainObject(config)) config = {};
|
|
60
|
+
if (!chunkSYHPSOUU_cjs.isPlainObject(extend)) extend = {};
|
|
61
|
+
if (!chunkSYHPSOUU_cjs.isPlainObject(override)) override = {};
|
|
62
|
+
if (!chunkSYHPSOUU_cjs.isNumber(cacheSize)) cacheSize = void 0;
|
|
63
|
+
if (!chunkSYHPSOUU_cjs.isNonEmptyString(prefix)) prefix = void 0;
|
|
64
|
+
if (!chunkSYHPSOUU_cjs.isFunction(experimentalParseClassName)) experimentalParseClassName = void 0;
|
|
65
|
+
const theme = chunkSYHPSOUU_cjs.hasOwnProp(extend, "theme") ? extend.theme : {};
|
|
66
|
+
const classGroups = chunkSYHPSOUU_cjs.hasOwnProp(extend, "classGroups") ? extend.classGroups : {};
|
|
67
|
+
const conflictingClassGroupModifiers = chunkSYHPSOUU_cjs.hasOwnProp(
|
|
68
68
|
extend,
|
|
69
69
|
"conflictingClassGroupModifiers"
|
|
70
70
|
) ? extend.conflictingClassGroupModifiers : {};
|
|
71
|
-
const conflictingClassGroups =
|
|
72
|
-
const orderSensitiveModifiers =
|
|
71
|
+
const conflictingClassGroups = chunkSYHPSOUU_cjs.hasOwnProp(extend, "conflictingClassGroups") ? extend.conflictingClassGroups : {};
|
|
72
|
+
const orderSensitiveModifiers = chunkSYHPSOUU_cjs.hasOwnProp(extend, "orderSensitiveModifiers") && chunkSYHPSOUU_cjs.isNonEmptyArray(extend.orderSensitiveModifiers) ? extend.orderSensitiveModifiers : [];
|
|
73
73
|
return {
|
|
74
74
|
config,
|
|
75
75
|
override,
|
|
@@ -86,7 +86,7 @@ var validatorPropsTwMerge = (options) => {
|
|
|
86
86
|
|
|
87
87
|
var defaultConfig = tailwindMergeV3.getDefaultConfig();
|
|
88
88
|
var twMergeDefaultV3 = (options = {}) => {
|
|
89
|
-
if (!
|
|
89
|
+
if (!chunkSYHPSOUU_cjs.isPlainObject(options)) options = {};
|
|
90
90
|
const {
|
|
91
91
|
cacheSize,
|
|
92
92
|
classGroups,
|
|
@@ -129,7 +129,7 @@ var twMergeDefaultV3 = (options = {}) => {
|
|
|
129
129
|
};
|
|
130
130
|
var defaultConfig2 = tailwindMergeV4.getDefaultConfig();
|
|
131
131
|
var twMergeDefaultV4 = (options = {}) => {
|
|
132
|
-
if (!
|
|
132
|
+
if (!chunkSYHPSOUU_cjs.isPlainObject(options)) options = {};
|
|
133
133
|
const {
|
|
134
134
|
cacheSize,
|
|
135
135
|
classGroups,
|
|
@@ -186,9 +186,9 @@ var cnV4 = (...classes) => {
|
|
|
186
186
|
};
|
|
187
187
|
|
|
188
188
|
var customCnV3 = (customTwMergeV3, ...classes) => {
|
|
189
|
-
if (!
|
|
189
|
+
if (!chunkSYHPSOUU_cjs.isFunction(customTwMergeV3)) {
|
|
190
190
|
throw new TypeError(
|
|
191
|
-
`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${
|
|
191
|
+
`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${chunkSYHPSOUU_cjs.getPreciseType(
|
|
192
192
|
customTwMergeV3
|
|
193
193
|
)}\`.`
|
|
194
194
|
);
|
|
@@ -196,9 +196,9 @@ var customCnV3 = (customTwMergeV3, ...classes) => {
|
|
|
196
196
|
return customTwMergeV3(cx(...classes));
|
|
197
197
|
};
|
|
198
198
|
var customCnV4 = (customTwMergeV4, ...classes) => {
|
|
199
|
-
if (!
|
|
199
|
+
if (!chunkSYHPSOUU_cjs.isFunction(customTwMergeV4)) {
|
|
200
200
|
throw new TypeError(
|
|
201
|
-
`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${
|
|
201
|
+
`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${chunkSYHPSOUU_cjs.getPreciseType(
|
|
202
202
|
customTwMergeV4
|
|
203
203
|
)}\`.`
|
|
204
204
|
);
|
|
@@ -207,26 +207,26 @@ var customCnV4 = (customTwMergeV4, ...classes) => {
|
|
|
207
207
|
};
|
|
208
208
|
|
|
209
209
|
var shouldForwardProp = (props) => {
|
|
210
|
-
|
|
210
|
+
chunkDLS3G6WQ_cjs.assertIsArray(props, {
|
|
211
211
|
message: ({ currentType, validType }) => `First parameter (\`props\`) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
212
212
|
});
|
|
213
213
|
const invalidItems = [];
|
|
214
214
|
props.forEach((p, idx) => {
|
|
215
|
-
if (!
|
|
215
|
+
if (!chunkSYHPSOUU_cjs.isString(p)) {
|
|
216
216
|
invalidItems.push({
|
|
217
217
|
index: idx,
|
|
218
|
-
reason: `Expected a non-empty string, but received ${
|
|
218
|
+
reason: `Expected a non-empty string, but received ${chunkSYHPSOUU_cjs.getPreciseType(p, {
|
|
219
219
|
formatCase: "toPascalCaseSpace"
|
|
220
220
|
})}.`
|
|
221
221
|
});
|
|
222
|
-
} else if (
|
|
222
|
+
} else if (chunkWLOQQFDS_cjs.isEmptyString(p)) {
|
|
223
223
|
invalidItems.push({
|
|
224
224
|
index: idx,
|
|
225
225
|
reason: `Expected a non-empty string, but received EmptyString.`
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
|
-
if (
|
|
229
|
+
if (chunkSYHPSOUU_cjs.isNonEmptyArray(invalidItems)) {
|
|
230
230
|
const maxWidth = Math.max(...invalidItems.map((item) => String(item.index).length));
|
|
231
231
|
const details = invalidItems.map(
|
|
232
232
|
(item) => `\u2022 [Index ${String(item.index).padStart(maxWidth, "0")}] ${item.reason}`
|