@rzl-zone/utils-js 3.5.3 → 3.5.4
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/dist/assertions/index.cjs +11 -11
- package/dist/assertions/index.d.ts +1 -1
- package/dist/assertions/index.js +5 -5
- package/dist/{chunk-RZW35UN5.cjs → chunk-2CQI36UD.cjs} +6 -6
- package/dist/{chunk-CDCERIZ2.js → chunk-2RZGZEE2.js} +3 -3
- package/dist/{chunk-PET42Z7W.js → chunk-2VO2CBTU.js} +2 -2
- package/dist/{chunk-CMW2TBOQ.js → chunk-3KTD3QDI.js} +2 -7
- package/dist/{chunk-XEDXFSGI.js → chunk-4ACKNPL5.js} +2 -2
- package/dist/{chunk-SIM77PU4.js → chunk-4ZOXSUXB.js} +3 -3
- package/dist/{chunk-IVL7CKVH.cjs → chunk-5NN4ZDE2.cjs} +6 -6
- package/dist/{chunk-FJZGG54N.cjs → chunk-66WLOZOD.cjs} +50 -50
- package/dist/{chunk-SBFNXGTJ.js → chunk-6DSPJA5U.js} +9 -9
- package/dist/{chunk-D3ENH7H6.cjs → chunk-6RFNZ2ZZ.cjs} +14 -14
- package/dist/{chunk-CKTLUNWX.js → chunk-6WMB5AJR.js} +2 -2
- package/dist/{chunk-JBQMXC5I.cjs → chunk-7QQV66RX.cjs} +10 -10
- package/dist/{chunk-6JFZL7YE.cjs → chunk-7WBMA2VE.cjs} +4 -4
- package/dist/{chunk-3IBQ5MOM.js → chunk-7ZNEUWYP.js} +2 -2
- package/dist/{chunk-JEQEF5WD.js → chunk-A3YI6Y2P.js} +3 -3
- package/dist/{chunk-DEZZUYE2.js → chunk-ABA2ZSBQ.js} +3 -3
- package/dist/{chunk-NRF6LWBC.cjs → chunk-AKKM6MOX.cjs} +15 -15
- package/dist/{chunk-ZETAZZLD.cjs → chunk-ATLFMKAF.cjs} +7 -7
- package/dist/{chunk-V45XJKHW.cjs → chunk-B4SDEBN7.cjs} +3 -3
- package/dist/{chunk-2IOOEY45.cjs → chunk-B6UIKBHR.cjs} +4 -4
- package/dist/chunk-BAV5T2E3.cjs +1 -1
- package/dist/{chunk-E74U6CYP.cjs → chunk-BYUT376O.cjs} +3 -3
- package/dist/{chunk-OYTYSY7G.js → chunk-D53CE4BT.js} +7 -7
- package/dist/{chunk-IRFL4MAX.js → chunk-DPLL67OT.js} +2 -2
- package/dist/chunk-DVMHRLKP.cjs +1 -1
- package/dist/{chunk-5KJFVIQT.cjs → chunk-EK7FSI7F.cjs} +3 -3
- package/dist/{chunk-PZQ6I4JJ.cjs → chunk-F3WBQKRI.cjs} +1 -8
- package/dist/{chunk-SBKGWRS5.js → chunk-FI76UZRF.js} +2 -2
- package/dist/{chunk-IZPBKKPO.js → chunk-GAJBF6DR.js} +2 -2
- package/dist/{chunk-DWF2R5GD.cjs → chunk-H5NWBTHW.cjs} +61 -61
- package/dist/{chunk-W2WNBUDE.js → chunk-JY4HLZ4W.js} +2 -2
- package/dist/{chunk-5757UBXJ.cjs → chunk-K3SONK25.cjs} +24 -24
- package/dist/{chunk-HYRQMTRH.cjs → chunk-K63WO3XA.cjs} +4 -4
- package/dist/chunk-KHO2SBNA.cjs +1 -1
- package/dist/{chunk-RIPKY4RU.js → chunk-KPCDDYTZ.js} +2 -2
- package/dist/{chunk-F6IPNNSJ.cjs → chunk-KTQLDIIT.cjs} +161 -161
- package/dist/chunk-L5RDAVVH.js +1 -1
- package/dist/{chunk-GGEADHZO.js → chunk-LBNOZIZ6.js} +5 -5
- package/dist/{chunk-3VA554KW.js → chunk-LEX4TQW2.js} +2 -2
- package/dist/{chunk-KVAL5PAG.cjs → chunk-LIU4S3JA.cjs} +4 -4
- package/dist/{chunk-2WA36TC5.cjs → chunk-ME7Q2M5I.cjs} +22 -22
- package/dist/{chunk-E55EQK2U.cjs → chunk-NREACG6M.cjs} +3 -3
- package/dist/{chunk-T2T7K3KR.js → chunk-OFBFGFVH.js} +2 -2
- package/dist/chunk-ONZFBJVW.js +1 -1
- package/dist/{chunk-XABCB3Y7.cjs → chunk-OS5OT5JA.cjs} +126 -126
- package/dist/{chunk-GQR4R5WY.js → chunk-PZQC3FZY.js} +4 -4
- package/dist/{chunk-FWHNWL2P.cjs → chunk-QAPYHLHC.cjs} +3 -3
- package/dist/chunk-QNKGP5DY.js +1 -1
- package/dist/{chunk-YKPSRP5G.js → chunk-QUITZ3GP.js} +8 -8
- package/dist/{chunk-7ODAAXX5.cjs → chunk-RIEYB2AW.cjs} +71 -71
- package/dist/{chunk-LS6U7FAY.cjs → chunk-RMJC3B5P.cjs} +26 -26
- package/dist/{chunk-JMJQCN74.js → chunk-SN6YRDLG.js} +9 -9
- package/dist/{chunk-NBZWMBO6.js → chunk-SZJ7OI4S.js} +3 -3
- package/dist/{chunk-FWCKOJZM.js → chunk-TDPYR5JY.js} +10 -10
- package/dist/{chunk-OI5XKNZO.js → chunk-TDYGYHSH.js} +4 -4
- package/dist/{chunk-CAH33WOQ.cjs → chunk-TFDXRT6D.cjs} +3 -3
- package/dist/chunk-UDA26MCU.cjs +1 -1
- package/dist/{chunk-HQWOFR56.cjs → chunk-UKAUXY2U.cjs} +12 -12
- package/dist/{chunk-H66AC7GK.cjs → chunk-URDI3IMY.cjs} +19 -19
- package/dist/{chunk-6JFCSH7J.js → chunk-VCVND6CH.js} +2 -2
- package/dist/chunk-VJDDGRIK.cjs +1 -1
- package/dist/{chunk-QBKAEVYG.js → chunk-VNADVWSJ.js} +3 -3
- package/dist/chunk-WVSPXFTY.js +1 -1
- package/dist/{chunk-2CQX5CBG.js → chunk-XFTUHS4Y.js} +4 -4
- package/dist/{chunk-T7PU2V7X.cjs → chunk-YC7AK3KX.cjs} +31 -31
- package/dist/{chunk-EL6A35UR.cjs → chunk-YGB2BQPB.cjs} +8 -8
- package/dist/chunk-YWHHVDT4.js +1 -1
- package/dist/{chunk-5IGC6PBH.js → chunk-ZN53RM3R.js} +2 -2
- package/dist/conversions/index.cjs +34 -34
- package/dist/conversions/index.d.ts +1 -1
- package/dist/conversions/index.js +15 -15
- package/dist/events/index.cjs +8 -8
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.js +4 -4
- package/dist/formatters/index.cjs +19 -19
- package/dist/formatters/index.d.ts +1 -1
- package/dist/formatters/index.js +9 -9
- package/dist/generators/index.cjs +8 -8
- package/dist/generators/index.d.ts +1 -1
- package/dist/generators/index.js +4 -4
- package/dist/index.d.ts +1 -14
- package/dist/isPlainObject-FWmcJF6k.d.ts +1 -1
- package/dist/next/index.cjs +35 -35
- package/dist/next/index.d.ts +1 -1
- package/dist/next/index.js +7 -7
- package/dist/next/server/index.cjs +4 -4
- package/dist/next/server/index.d.ts +1 -1
- package/dist/next/server/index.js +2 -2
- package/dist/operations/index.cjs +11 -11
- package/dist/operations/index.d.ts +1 -1
- package/dist/operations/index.js +8 -8
- package/dist/parsers/index.cjs +4 -4
- package/dist/parsers/index.d.ts +1 -1
- package/dist/parsers/index.js +3 -3
- package/dist/predicates/index.cjs +74 -82
- package/dist/predicates/index.d.ts +2 -23
- package/dist/predicates/index.js +12 -12
- package/dist/promises/index.cjs +6 -6
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +4 -4
- package/dist/rzl-utils.global.js +2 -17
- package/dist/strings/index.cjs +23 -23
- package/dist/strings/index.d.ts +1 -1
- package/dist/strings/index.js +7 -7
- package/dist/tailwind/index.cjs +11 -11
- package/dist/tailwind/index.d.ts +1 -1
- package/dist/tailwind/index.js +4 -4
- package/dist/urls/index.cjs +19 -19
- package/dist/urls/index.d.ts +1 -1
- package/dist/urls/index.js +13 -13
- package/package.json +1 -1
package/dist/chunk-L5RDAVVH.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.5.
|
|
5
|
+
* Version: 3.5.4.
|
|
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.5.
|
|
5
|
+
* Version: 3.5.4.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
9
9
|
*/
|
|
10
|
-
import { removeSpaces } from './chunk-
|
|
11
|
-
import { isEmptyString } from './chunk-
|
|
12
|
-
import { safeStableStringify } from './chunk-
|
|
13
|
-
import { isNonEmptyString, getPreciseType, isError, assertIsPlainObject, hasOwnProp, isBoolean, isFunction } from './chunk-
|
|
10
|
+
import { removeSpaces } from './chunk-4ACKNPL5.js';
|
|
11
|
+
import { isEmptyString } from './chunk-JY4HLZ4W.js';
|
|
12
|
+
import { safeStableStringify } from './chunk-2VO2CBTU.js';
|
|
13
|
+
import { isNonEmptyString, getPreciseType, isError, assertIsPlainObject, hasOwnProp, isBoolean, isFunction } from './chunk-3KTD3QDI.js';
|
|
14
14
|
|
|
15
15
|
var NormalizePathnameError = class _NormalizePathnameError extends Error {
|
|
16
16
|
/** * ***The original error that triggered this normalization failure.***
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.5.
|
|
5
|
+
* Version: 3.5.4.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
9
9
|
*/
|
|
10
10
|
import { isBigInt } from './chunk-QNKGP5DY.js';
|
|
11
|
-
import { resolveErrorMessageAssertions, hasOwnProp, isNumber } from './chunk-
|
|
11
|
+
import { resolveErrorMessageAssertions, hasOwnProp, isNumber } from './chunk-3KTD3QDI.js';
|
|
12
12
|
|
|
13
13
|
var assertIsBigInt = (value, options = {}) => {
|
|
14
14
|
if (isBigInt(value)) return;
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.5.
|
|
5
|
+
* Version: 3.5.4.
|
|
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 chunkF3WBQKRI_cjs = require('./chunk-F3WBQKRI.cjs');
|
|
13
13
|
|
|
14
14
|
var removeSpaces = (value, options = {
|
|
15
15
|
trimOnly: false
|
|
16
16
|
}) => {
|
|
17
|
-
if (!
|
|
18
|
-
if (!
|
|
17
|
+
if (!chunkF3WBQKRI_cjs.isNonEmptyString(value)) return "";
|
|
18
|
+
if (!chunkF3WBQKRI_cjs.isPlainObject(options)) {
|
|
19
19
|
options = {};
|
|
20
20
|
}
|
|
21
21
|
const { trimOnly = false } = options;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.5.
|
|
5
|
+
* Version: 3.5.4.
|
|
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 chunk7WBMA2VE_cjs = require('./chunk-7WBMA2VE.cjs');
|
|
13
|
+
var chunkF3WBQKRI_cjs = require('./chunk-F3WBQKRI.cjs');
|
|
14
14
|
var clsx = require('clsx');
|
|
15
15
|
var tailwindMergeV3 = require('tailwind-merge-v3');
|
|
16
16
|
var tailwindMergeV4 = require('tailwind-merge-v4');
|
|
@@ -20,22 +20,22 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
20
20
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
21
21
|
|
|
22
22
|
var validatorPropsTwMerge = (options) => {
|
|
23
|
-
if (!
|
|
23
|
+
if (!chunkF3WBQKRI_cjs.isPlainObject(options)) options = {};
|
|
24
24
|
let { config, prefix, extend, override, cacheSize, experimentalParseClassName } = options;
|
|
25
|
-
if (!
|
|
26
|
-
if (!
|
|
27
|
-
if (!
|
|
28
|
-
if (!
|
|
29
|
-
if (!
|
|
30
|
-
if (!
|
|
31
|
-
const theme =
|
|
32
|
-
const classGroups =
|
|
33
|
-
const conflictingClassGroupModifiers =
|
|
25
|
+
if (!chunkF3WBQKRI_cjs.isPlainObject(config)) config = {};
|
|
26
|
+
if (!chunkF3WBQKRI_cjs.isPlainObject(extend)) extend = {};
|
|
27
|
+
if (!chunkF3WBQKRI_cjs.isPlainObject(override)) override = {};
|
|
28
|
+
if (!chunkF3WBQKRI_cjs.isNumber(cacheSize)) cacheSize = void 0;
|
|
29
|
+
if (!chunkF3WBQKRI_cjs.isNonEmptyString(prefix)) prefix = void 0;
|
|
30
|
+
if (!chunkF3WBQKRI_cjs.isFunction(experimentalParseClassName)) experimentalParseClassName = void 0;
|
|
31
|
+
const theme = chunkF3WBQKRI_cjs.hasOwnProp(extend, "theme") ? extend.theme : {};
|
|
32
|
+
const classGroups = chunkF3WBQKRI_cjs.hasOwnProp(extend, "classGroups") ? extend.classGroups : {};
|
|
33
|
+
const conflictingClassGroupModifiers = chunkF3WBQKRI_cjs.hasOwnProp(
|
|
34
34
|
extend,
|
|
35
35
|
"conflictingClassGroupModifiers"
|
|
36
36
|
) ? extend.conflictingClassGroupModifiers : {};
|
|
37
|
-
const conflictingClassGroups =
|
|
38
|
-
const orderSensitiveModifiers =
|
|
37
|
+
const conflictingClassGroups = chunkF3WBQKRI_cjs.hasOwnProp(extend, "conflictingClassGroups") ? extend.conflictingClassGroups : {};
|
|
38
|
+
const orderSensitiveModifiers = chunkF3WBQKRI_cjs.hasOwnProp(extend, "orderSensitiveModifiers") && chunkF3WBQKRI_cjs.isNonEmptyArray(extend.orderSensitiveModifiers) ? extend.orderSensitiveModifiers : [];
|
|
39
39
|
return {
|
|
40
40
|
config,
|
|
41
41
|
override,
|
|
@@ -52,7 +52,7 @@ var validatorPropsTwMerge = (options) => {
|
|
|
52
52
|
|
|
53
53
|
var defaultConfig = tailwindMergeV3.getDefaultConfig();
|
|
54
54
|
var twMergeDefaultV3 = (options = {}) => {
|
|
55
|
-
if (!
|
|
55
|
+
if (!chunkF3WBQKRI_cjs.isPlainObject(options)) options = {};
|
|
56
56
|
const {
|
|
57
57
|
cacheSize,
|
|
58
58
|
classGroups,
|
|
@@ -95,7 +95,7 @@ var twMergeDefaultV3 = (options = {}) => {
|
|
|
95
95
|
};
|
|
96
96
|
var defaultConfig2 = tailwindMergeV4.getDefaultConfig();
|
|
97
97
|
var twMergeDefaultV4 = (options = {}) => {
|
|
98
|
-
if (!
|
|
98
|
+
if (!chunkF3WBQKRI_cjs.isPlainObject(options)) options = {};
|
|
99
99
|
const {
|
|
100
100
|
cacheSize,
|
|
101
101
|
classGroups,
|
|
@@ -151,9 +151,9 @@ var cnV4 = (...classes) => {
|
|
|
151
151
|
return defaultTwMergeV4(clsx__default.default(...classes));
|
|
152
152
|
};
|
|
153
153
|
var customCnV3 = (customTwMergeV3, ...classes) => {
|
|
154
|
-
if (!
|
|
154
|
+
if (!chunkF3WBQKRI_cjs.isFunction(customTwMergeV3)) {
|
|
155
155
|
throw new TypeError(
|
|
156
|
-
`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${
|
|
156
|
+
`first Parameter (\`customTwMergeV3\`) must be of type \`function\`, but received: \`${chunkF3WBQKRI_cjs.getPreciseType(
|
|
157
157
|
customTwMergeV3
|
|
158
158
|
)}\`.`
|
|
159
159
|
);
|
|
@@ -161,9 +161,9 @@ var customCnV3 = (customTwMergeV3, ...classes) => {
|
|
|
161
161
|
return customTwMergeV3(clsx__default.default(...classes));
|
|
162
162
|
};
|
|
163
163
|
var customCnV4 = (customTwMergeV4, ...classes) => {
|
|
164
|
-
if (!
|
|
164
|
+
if (!chunkF3WBQKRI_cjs.isFunction(customTwMergeV4)) {
|
|
165
165
|
throw new TypeError(
|
|
166
|
-
`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${
|
|
166
|
+
`first Parameter (\`customTwMergeV4\`) must be of type \`function\`, but received: \`${chunkF3WBQKRI_cjs.getPreciseType(
|
|
167
167
|
customTwMergeV4
|
|
168
168
|
)}\`.`
|
|
169
169
|
);
|
|
@@ -172,7 +172,7 @@ var customCnV4 = (customTwMergeV4, ...classes) => {
|
|
|
172
172
|
};
|
|
173
173
|
|
|
174
174
|
var shouldForwardProp = (props) => {
|
|
175
|
-
|
|
175
|
+
chunk7WBMA2VE_cjs.assertIsArray(props, {
|
|
176
176
|
message: ({ currentType, validType }) => `First parameter (\`props\`) must be of type \`${validType}\`, but received: \`${currentType}\`.`
|
|
177
177
|
});
|
|
178
178
|
return (propName) => {
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.5.
|
|
5
|
+
* Version: 3.5.4.
|
|
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 chunkF3WBQKRI_cjs = require('./chunk-F3WBQKRI.cjs');
|
|
13
13
|
|
|
14
14
|
var isEmptyString = (value, options = {}) => {
|
|
15
|
-
return !
|
|
15
|
+
return !chunkF3WBQKRI_cjs.isNonEmptyString(value, options);
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
exports.isEmptyString = isEmptyString;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.5.
|
|
5
|
+
* Version: 3.5.4.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|
|
9
9
|
*/
|
|
10
|
-
import { isNonEmptyString, isPlainObject } from './chunk-
|
|
10
|
+
import { isNonEmptyString, isPlainObject } from './chunk-3KTD3QDI.js';
|
|
11
11
|
|
|
12
12
|
var normalizeSpaces = (value, options = {
|
|
13
13
|
withTrim: true,
|
package/dist/chunk-ONZFBJVW.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ====================================================
|
|
3
3
|
* Rzl Utils-JS.
|
|
4
4
|
* ----------------------------------------------------
|
|
5
|
-
* Version: 3.5.
|
|
5
|
+
* Version: 3.5.4.
|
|
6
6
|
* Author: Rizalvin Dwiky.
|
|
7
7
|
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
8
|
* ====================================================
|