@rzl-zone/utils-js 3.0.1-beta.0 → 3.1.0-beta.2
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 +1 -1
- package/dist/assertions/index.d.ts +96 -116
- package/dist/assertions/index.js +1 -1
- package/dist/chunk-25G6B35W.js +1 -0
- package/dist/chunk-2AUUPGMN.js +1 -0
- package/dist/chunk-2JQQQ625.js +1 -0
- package/dist/chunk-445TAVT4.cjs +1 -0
- package/dist/chunk-467VEMJH.js +1 -0
- package/dist/chunk-6Q4I2RPC.cjs +1 -0
- package/dist/chunk-6SMJMZ7G.cjs +1 -0
- package/dist/chunk-BLCANGFS.js +1 -0
- package/dist/chunk-CK3BZGEU.js +1 -0
- package/dist/{chunk-JWHM3WZQ.cjs → chunk-D43GV6EF.cjs} +1 -1
- package/dist/chunk-DFSTVQFI.cjs +1 -0
- package/dist/chunk-DYRDBYPF.cjs +1 -0
- package/dist/chunk-EXXLUO7L.cjs +1 -0
- package/dist/chunk-G72VSVGO.js +1 -0
- package/dist/chunk-GAJTFCUA.js +1 -0
- package/dist/chunk-GOJNH55O.cjs +1 -0
- package/dist/chunk-HXST7RJB.js +1 -0
- package/dist/{chunk-BYZAD3XN.cjs → chunk-HXTACM3O.cjs} +1 -1
- package/dist/chunk-IJTZWWRJ.cjs +1 -0
- package/dist/chunk-ISJ33O2J.cjs +1 -0
- package/dist/chunk-JISH2VGG.js +1 -0
- package/dist/{chunk-FF76ISQ2.js → chunk-JQZUWBIX.js} +1 -1
- package/dist/{chunk-XH6MCRLP.js → chunk-K4PLGD7C.js} +1 -1
- package/dist/chunk-KZQB7H4E.cjs +1 -0
- package/dist/chunk-LUVV5KSD.cjs +2 -0
- package/dist/chunk-LVUSFXQS.cjs +1 -0
- package/dist/chunk-ME5OV5HN.js +1 -0
- package/dist/chunk-MF5Y5K4N.cjs +1 -0
- package/dist/chunk-MJAW5RAK.js +1 -0
- package/dist/chunk-MWLEM7ED.js +1 -0
- package/dist/chunk-NSVLG7NY.js +4 -0
- package/dist/chunk-NUHOOAUN.cjs +1 -0
- package/dist/chunk-NUVGETPD.js +2 -0
- package/dist/chunk-O5VXBNUQ.cjs +4 -0
- package/dist/chunk-O7SJR4CY.cjs +1 -0
- package/dist/chunk-OX6RLS2F.cjs +1 -0
- package/dist/chunk-PFLNHD4B.cjs +1 -0
- package/dist/chunk-PSWITZK5.js +1 -0
- package/dist/chunk-PYUVKHUF.cjs +1 -0
- package/dist/chunk-REFMEB4A.js +1 -0
- package/dist/chunk-RHE3M2NJ.cjs +1 -0
- package/dist/chunk-RHIBYOFQ.js +1 -0
- package/dist/chunk-S7GMG4TB.js +1 -0
- package/dist/chunk-TQMZ2LPI.js +1 -0
- package/dist/{chunk-RN3TP3S3.js → chunk-U4TZO7WV.js} +1 -1
- package/dist/chunk-UUMKL74S.js +1 -0
- package/dist/{chunk-EXZ47NOW.js → chunk-VQLAPEL3.js} +1 -1
- package/dist/chunk-VTR75UID.cjs +1 -0
- package/dist/chunk-XFCJDSB2.cjs +1 -0
- package/dist/chunk-XOYX4PLZ.cjs +1 -0
- package/dist/chunk-Z6FLCEN6.js +1 -0
- package/dist/chunk-ZO5364A6.cjs +1 -0
- package/dist/conversions/index.cjs +1 -1
- package/dist/conversions/index.d.ts +396 -593
- package/dist/conversions/index.js +1 -1
- package/dist/env/index.d.ts +5 -8
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.d.ts +80 -77
- package/dist/events/index.js +1 -1
- package/dist/{array-CIZRbqTF.d.ts → extends-Bk_SBGdT.d.ts} +145 -1
- package/dist/formatting/index.cjs +1 -1
- package/dist/formatting/index.d.ts +478 -440
- package/dist/formatting/index.js +1 -1
- package/dist/generator/index.cjs +1 -1
- package/dist/generator/index.d.ts +135 -112
- package/dist/generator/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{is-array-Ckm_47hw.d.ts → is-array--YjXV-Wx.d.ts} +2 -352
- package/dist/{isPlainObject-BKYaI6a8.d.ts → isPlainObject-BVhBAPHX.d.ts} +49 -62
- package/dist/next/index.cjs +6 -6
- package/dist/next/index.d.ts +125 -105
- package/dist/next/index.js +5 -5
- package/dist/next/server/index.cjs +1 -1
- package/dist/next/server/index.d.ts +8 -22
- package/dist/next/server/index.js +1 -1
- package/dist/operations/index.cjs +1 -1
- package/dist/operations/index.d.ts +72 -127
- package/dist/operations/index.js +1 -1
- package/dist/parsers/index.cjs +1 -1
- package/dist/parsers/index.d.ts +26 -27
- package/dist/parsers/index.js +1 -1
- package/dist/predicates/index.cjs +1 -1
- package/dist/predicates/index.d.ts +686 -660
- package/dist/predicates/index.js +1 -1
- package/dist/promise/index.cjs +1 -1
- package/dist/promise/index.d.ts +14 -23
- package/dist/promise/index.js +1 -1
- package/dist/rzl-utils.global.js +3 -3
- package/dist/string-XA-til3C.d.ts +351 -0
- package/dist/strings/index.cjs +1 -1
- package/dist/strings/index.d.ts +301 -376
- package/dist/strings/index.js +1 -1
- package/dist/stylings/index.cjs +1 -1
- package/dist/stylings/index.d.ts +15 -23
- package/dist/stylings/index.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/urls/index.cjs +1 -1
- package/dist/urls/index.d.ts +279 -302
- package/dist/urls/index.js +1 -1
- package/package.json +53 -11
- package/dist/chunk-2TRAPBZ7.cjs +0 -1
- package/dist/chunk-4DK3RCC4.js +0 -2
- package/dist/chunk-4JOQ45HL.js +0 -1
- package/dist/chunk-55CZALRS.js +0 -1
- package/dist/chunk-62HX5Z45.cjs +0 -1
- package/dist/chunk-7NA6DUHR.cjs +0 -2
- package/dist/chunk-BVPMMWDL.cjs +0 -1
- package/dist/chunk-CEFYHEM4.cjs +0 -1
- package/dist/chunk-CN53M4QZ.cjs +0 -1
- package/dist/chunk-D47MHBSD.cjs +0 -1
- package/dist/chunk-DGH75GJD.js +0 -1
- package/dist/chunk-E5NUI7PN.js +0 -1
- package/dist/chunk-FDITZ5C6.cjs +0 -1
- package/dist/chunk-FSSV24W7.cjs +0 -1
- package/dist/chunk-GCGU2WB7.js +0 -1
- package/dist/chunk-GECI2YBP.js +0 -1
- package/dist/chunk-GQE4OVHC.cjs +0 -1
- package/dist/chunk-GRVZXQXL.cjs +0 -1
- package/dist/chunk-I4AVNHPA.cjs +0 -1
- package/dist/chunk-KBKYG3IY.cjs +0 -1
- package/dist/chunk-KCQDDZJE.cjs +0 -1
- package/dist/chunk-LVKAYEZ4.js +0 -1
- package/dist/chunk-MBDWTK54.cjs +0 -1
- package/dist/chunk-MNGGDB2G.js +0 -1
- package/dist/chunk-MY7BA4GI.cjs +0 -1
- package/dist/chunk-N2IJPIND.cjs +0 -1
- package/dist/chunk-NIMNTEGV.js +0 -1
- package/dist/chunk-POCPQYZS.js +0 -1
- package/dist/chunk-PVJF2JHM.js +0 -1
- package/dist/chunk-QCFXEUKL.js +0 -1
- package/dist/chunk-QFCGBBSY.js +0 -1
- package/dist/chunk-QQYAUPSK.cjs +0 -1
- package/dist/chunk-TC4VBE4Y.cjs +0 -1
- package/dist/chunk-TUXDINHF.cjs +0 -1
- package/dist/chunk-U5Y2FXMN.cjs +0 -1
- package/dist/chunk-UUPQI6ND.cjs +0 -1
- package/dist/chunk-VYCGZ2S6.js +0 -1
- package/dist/chunk-W5EDKJK3.js +0 -1
- package/dist/chunk-WHAVUFEU.js +0 -1
- package/dist/chunk-X3GTRVVK.cjs +0 -4
- package/dist/chunk-XCFIOTCV.js +0 -1
- package/dist/chunk-XE27XPJR.js +0 -1
- package/dist/chunk-XVB3ZZEB.js +0 -1
- package/dist/chunk-YEERJDOF.js +0 -4
- package/dist/chunk-ZBSIGJFO.cjs +0 -1
- package/dist/chunk-ZYAML74V.js +0 -1
- package/dist/extends-Mp81Hq9-.d.ts +0 -145
package/dist/formatting/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{h as censorEmail,i as chunkString,a as formatCurrency,f as formatDateFns,e as formatDateIntl,d as formatDateTime,b as formatNumber,c as formatPhoneNumber,g as getGMTOffset,j as truncateString}from'../chunk-
|
|
1
|
+
export{h as censorEmail,i as chunkString,a as formatCurrency,f as formatDateFns,e as formatDateIntl,d as formatDateTime,b as formatNumber,c as formatPhoneNumber,g as getGMTOffset,j as truncateString}from'../chunk-25G6B35W.js';import'../chunk-K4PLGD7C.js';import'../chunk-GAJTFCUA.js';import'../chunk-HXST7RJB.js';import'../chunk-Z6FLCEN6.js';import'../chunk-JISH2VGG.js';import'../chunk-ELDDNERR.js';import'../chunk-467VEMJH.js';import'../chunk-5SZUSNGZ.js';import'../chunk-MJAW5RAK.js';
|
package/dist/generator/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkNUHOOAUN_cjs=require('../chunk-NUHOOAUN.cjs'),chunkRV2VULM7_cjs=require('../chunk-RV2VULM7.cjs');require('../chunk-PUQXRLZH.cjs'),require('../chunk-O7SJR4CY.cjs'),require('../chunk-7YWAQOA4.cjs'),require('../chunk-LVUSFXQS.cjs');Object.defineProperty(exports,"getRandomItem",{enumerable:true,get:function(){return chunkNUHOOAUN_cjs.a}});Object.defineProperty(exports,"randomInt",{enumerable:true,get:function(){return chunkNUHOOAUN_cjs.b}});Object.defineProperty(exports,"randomIntByLength",{enumerable:true,get:function(){return chunkNUHOOAUN_cjs.c}});Object.defineProperty(exports,"randomStr",{enumerable:true,get:function(){return chunkNUHOOAUN_cjs.d}});Object.defineProperty(exports,"noop",{enumerable:true,get:function(){return chunkRV2VULM7_cjs.a}});
|
|
@@ -1,163 +1,186 @@
|
|
|
1
|
-
import{
|
|
2
|
-
/** Ensures no whitespace characters in the generated string
|
|
1
|
+
import{f as IfNonEmptyArray,E as Extends}from'../extends-Bk_SBGdT.js';import{F as FixNeverArrayRecursive}from'../arrays-normalize-recursive-CnjYJ9xg.js';import{g as NullToUndefined}from'../nils-DMz3kU7M.js';import'../if-CvT4R7Kh.js';import'../never-BfayMBF9.js';type OptionsRandomStr={
|
|
2
|
+
/** Ensures no whitespace characters in the generated string, defaultValue: `true`.
|
|
3
|
+
*
|
|
4
|
+
* @default true
|
|
5
|
+
*/
|
|
3
6
|
avoidWhiteSpace?:boolean;
|
|
4
|
-
/** Custom characters to replace the default number set if `type` is "number"
|
|
7
|
+
/** Custom characters to replace the default number set if `type` is `"number"`, defaultValue: `undefined`.
|
|
8
|
+
*
|
|
9
|
+
* @default undefined
|
|
10
|
+
*/
|
|
5
11
|
replaceGenInt?:string;
|
|
6
|
-
/** Custom characters to replace the default string set if `type` is "string"
|
|
12
|
+
/** Custom characters to replace the default string set if `type` is `"string"`, defaultValue: `undefined`.
|
|
13
|
+
*
|
|
14
|
+
* @default undefined
|
|
15
|
+
*/
|
|
7
16
|
replaceGenStr?:string;
|
|
8
|
-
/** Additional characters to include in the generated string
|
|
17
|
+
/** Additional characters to include in the generated string, defaultValue: `undefined`.
|
|
18
|
+
*
|
|
19
|
+
* @default undefined
|
|
20
|
+
*/
|
|
9
21
|
addChar?:string;
|
|
10
|
-
/** Minimum length of the generated string (1 to 5000)
|
|
22
|
+
/** Minimum length of the generated string (1 to 5000), defaultValue: `40`.
|
|
23
|
+
*
|
|
24
|
+
* @default 40
|
|
25
|
+
*/
|
|
11
26
|
minLength?:number;
|
|
12
|
-
/** Maximum length of the generated string (1 to 5000)
|
|
27
|
+
/** Maximum length of the generated string (1 to 5000), defaultValue: `40`.
|
|
28
|
+
*
|
|
29
|
+
* @default 40
|
|
30
|
+
*/
|
|
13
31
|
maxLength?:number;
|
|
14
|
-
/** Type of output: "string"
|
|
32
|
+
/** Type of output: `"string"` or `"number"`, defaultValue: `"string"`.
|
|
33
|
+
*
|
|
34
|
+
* @default "string"
|
|
35
|
+
*/
|
|
15
36
|
type?:"string"|"number";};
|
|
16
37
|
/** ---------------------------------
|
|
17
38
|
* * ***Returns a random element from a given array.***
|
|
18
39
|
* ---------------------------------
|
|
19
|
-
*
|
|
20
40
|
* @template T - The type of the input array.
|
|
21
|
-
*
|
|
22
|
-
* @param array - The input array. Can be `null`, `undefined`, or an empty array.
|
|
41
|
+
* @param {*} array - The input array. Can be `null`, `undefined`, or an empty array.
|
|
23
42
|
* @returns
|
|
24
43
|
* - If `array` is a non-empty tuple, returns one of its elements.
|
|
25
44
|
* - If `array` is empty, `null`, or `undefined`, returns `undefined`.
|
|
26
|
-
*
|
|
27
45
|
* @example
|
|
28
|
-
* getRandomItem([]);
|
|
29
|
-
*
|
|
30
|
-
* getRandomItem(
|
|
31
|
-
*
|
|
32
|
-
* getRandomItem(
|
|
33
|
-
*
|
|
34
|
-
* getRandomItem([
|
|
35
|
-
*
|
|
46
|
+
* getRandomItem([]);
|
|
47
|
+
* // ➔ undefined
|
|
48
|
+
* getRandomItem(null);
|
|
49
|
+
* // ➔ undefined
|
|
50
|
+
* getRandomItem(undefined);
|
|
51
|
+
* // ➔ undefined
|
|
52
|
+
* getRandomItem([1, 2, 3, 4]);
|
|
53
|
+
* // ➔ number
|
|
54
|
+
* getRandomItem(["apple", "banana", "cherry"]);
|
|
55
|
+
* // ➔ string
|
|
56
|
+
* getRandomItem(["apple", 123, true]);
|
|
57
|
+
* // ➔ string | number | boolean
|
|
58
|
+
* getRandomItem(["apple", 123, true, null]);
|
|
59
|
+
* // ➔ string | number | boolean | undefined
|
|
60
|
+
* getRandomItem(["apple", 123, true, undefined]);
|
|
61
|
+
* // ➔ string | number | boolean | undefined
|
|
36
62
|
*
|
|
37
63
|
* // Tuple example:
|
|
38
64
|
* const tuple = [1, "two", true] as const;
|
|
39
65
|
* getRandomItem(tuple); // 1 | "two" | true
|
|
40
66
|
*/
|
|
41
|
-
declare function getRandomItem(array
|
|
42
|
-
/**
|
|
67
|
+
declare function getRandomItem(array:undefined):undefined;declare function getRandomItem(array:null):undefined;declare function getRandomItem(array:[]):undefined;declare function getRandomItem<T extends readonly unknown[]>(array:T):T extends never[][]?[]:number extends T["length"]?NullToUndefined<FixNeverArrayRecursive<T[number]>>:IfNonEmptyArray<T,NullToUndefined<FixNeverArrayRecursive<T[number]>>,undefined>;declare function getRandomItem<T extends readonly unknown[]|undefined|null>(array:T):T extends readonly unknown[]?NullToUndefined<FixNeverArrayRecursive<T[number]>>|undefined:undefined;declare function getRandomItem<T>(array:T):unknown extends T?unknown:Extends<any[]|readonly any[],T>extends true?Extract<T,unknown[]|readonly unknown[]>[number]|undefined:Extends<any[],T>extends true?Extract<T,unknown[]|readonly unknown[]>[number]|undefined:Extends<readonly any[],T>extends true?Extract<T,unknown[]|readonly unknown[]>[number]|undefined:undefined;
|
|
68
|
+
/** -----------------------------------------------------------------------
|
|
43
69
|
* * ***Generates a random integer within a specified range (inclusive).***
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* @description
|
|
47
|
-
* Generates a random integer between `min` and `max` (inclusive),
|
|
48
|
-
* with safety constraints:
|
|
70
|
+
* ------------------------------------------------------------------------
|
|
71
|
+
* Generates a random integer between `min` and `max` (inclusive), with safety constraints:
|
|
49
72
|
* - `min` will be forced to be at least `1`.
|
|
50
73
|
* - `max` will be capped at `Number.MAX_SAFE_INTEGER`.
|
|
51
74
|
*
|
|
52
75
|
* Validates input parameters to ensure robust behavior.
|
|
53
|
-
*
|
|
54
|
-
* @param {number}
|
|
55
|
-
* @param {number} max - The maximum value (inclusive). Must be an integer.
|
|
56
|
-
*
|
|
76
|
+
* @param {number} min - The minimum value (inclusive), must be an integer.
|
|
77
|
+
* @param {number} max - The maximum value (inclusive), must be an integer.
|
|
57
78
|
* @returns {number} A random integer N where `min ≤ N ≤ max`.
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* - `min` or `max` is not an integer and value is Number.MIN_VALUE.
|
|
79
|
+
* @throws {TypeError} If:
|
|
80
|
+
* - `min` or `max` is not an integer and value is `Number.MIN_VALUE`.
|
|
61
81
|
* - `min` is greater than `max`.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* randomInt(1, 10); // → returns 1 to 10
|
|
65
|
-
* randomInt(50, 100); // → returns 50 to 100
|
|
66
|
-
* randomInt(5, 5); // → always returns 5
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* randomInt(-5, 3); // → always returns ≥ 1, since min is adjusted
|
|
70
|
-
*
|
|
71
82
|
* @example
|
|
83
|
+
* randomInt(1, 10); // ➔ returns 1 to 10
|
|
84
|
+
* randomInt(50, 100); // ➔ returns 50 to 100
|
|
85
|
+
* randomInt(5, 5); // ➔ always returns 5
|
|
86
|
+
* randomInt(-5, 3); // ➔ always returns ≥ 1, since min is adjusted
|
|
72
87
|
* randomInt(1, Number.MAX_SAFE_INTEGER + 10000);
|
|
73
|
-
* //
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* randomInt(Number.MIN_VALUE, 3); // → Error, min or max cant be as `Number.MIN_VALUE` value.
|
|
88
|
+
* // ➔ still safely capped at MAX_SAFE_INTEGER
|
|
89
|
+
* randomInt(Number.MIN_VALUE, 3);
|
|
90
|
+
* // ➔ Error, min or max cant be as `Number.MIN_VALUE` value.
|
|
77
91
|
*/
|
|
78
|
-
declare const randomInt:(min:number,max:number)=>number;
|
|
79
|
-
/**
|
|
80
|
-
* * ***Generates a random integer within a specified range of digit lengths.***
|
|
81
|
-
* ----------------------------------------------------------
|
|
82
|
-
*
|
|
83
|
-
* @description
|
|
84
|
-
* This function allows generating random integers that strictly conform to
|
|
85
|
-
* a specified minimum and maximum digit length. It is useful for scenarios
|
|
86
|
-
* such as generating realistic-looking IDs, codes, or random test data.
|
|
87
|
-
*
|
|
88
|
-
* The function ensures:
|
|
89
|
-
* - `minLength` is at least 1 and not greater than `maxLength`.
|
|
90
|
-
* - `maxLength` is no more than 16 (due to JavaScript's Number.MAX_SAFE_INTEGER).
|
|
91
|
-
* - If `avoidZero` is `true`, ensures that `0` is never returned.
|
|
92
|
-
*
|
|
93
|
-
* @param {object} [options] - Configuration options.
|
|
94
|
-
* @param {number} [options.minLength=1] - Minimum number of digits (must be ≥1 and ≤ `maxLength`).
|
|
95
|
-
* @param {number} [options.maxLength=16] - Maximum number of digits (must be ≤16).
|
|
96
|
-
* @param {boolean} [options.avoidZero=false] - If true, will ensure the result is never zero.
|
|
97
|
-
*
|
|
98
|
-
* @returns {number} A randomly generated integer within the specified constraints.
|
|
92
|
+
declare const randomInt:(min:number,max:number)=>number;type OptionsRandomIntByLength={
|
|
93
|
+
/** * Minimum length of the random number, the `allowed minimal value` `integer` is `1` `and not bigger than value of` `maxLength`, defaultValue: `1`.
|
|
99
94
|
*
|
|
100
|
-
* @throws {Error} If parameters are invalid, such as:
|
|
101
|
-
* - `minLength` < 1
|
|
102
|
-
* - `maxLength` > 16
|
|
103
|
-
* - `minLength` > `maxLength`
|
|
104
|
-
* - non-integer values for `minLength` or `maxLength`
|
|
105
|
-
*
|
|
106
|
-
* @example
|
|
107
|
-
* randomIntByLength({ minLength: 3, maxLength: 5 }); // → (`4829` << random), (`192` << random) or (`71492` << random).
|
|
108
|
-
* randomIntByLength({ minLength: 4, maxLength: 4 }); // → `5930` (exact 4 digits)
|
|
109
|
-
* randomIntByLength({ avoidZero: true }); // → never 0
|
|
110
|
-
*/
|
|
111
|
-
declare const randomIntByLength:(options?:{
|
|
112
|
-
/** * Minimum length of the random number, the `allowed` `minimal` `value` `integer` is `1` `and` `not` `bigger` `than` `value` `of` `maxLength`.
|
|
113
95
|
* @default 1
|
|
114
96
|
*/
|
|
115
97
|
minLength?:number;
|
|
116
|
-
/** * Maximum length of the random number, the `allowed
|
|
98
|
+
/** * Maximum length of the random number, the `allowed maximal value` `integer` is `16`, defaultValue: `16`.
|
|
117
99
|
*
|
|
118
100
|
* @default 16
|
|
119
101
|
*/
|
|
120
102
|
maxLength?:number;
|
|
121
|
-
/** * If true, prevents the result from being zero
|
|
103
|
+
/** * If true, prevents the result from being zero, defaultValue: `false`.
|
|
104
|
+
*
|
|
122
105
|
* @default false
|
|
123
106
|
*/
|
|
124
|
-
avoidZero?:boolean;}
|
|
107
|
+
avoidZero?:boolean;};
|
|
108
|
+
/** ----------------------------------------------------------------------------
|
|
109
|
+
* * ***Generates a random integer within a specified range of digit lengths.***
|
|
110
|
+
* -----------------------------------------------------------------------------
|
|
111
|
+
* **This function allows generating random integers that strictly conform to a specified minimum and
|
|
112
|
+
* maximum digit length, it is useful for scenarios such as generating realistic-looking IDs, codes,
|
|
113
|
+
* or random test data.**
|
|
114
|
+
* - **The function ensures:**
|
|
115
|
+
* - `minLength` is at least 1 and not greater than `maxLength`.
|
|
116
|
+
* - `maxLength` is no more than 16 (due to JavaScript's Number.MAX_SAFE_INTEGER).
|
|
117
|
+
* - If `avoidZero` is `true`, ensures that `0` is never returned.
|
|
118
|
+
* @param {OptionsRandomIntByLength} [options] - Configuration options.
|
|
119
|
+
* @param {OptionsRandomIntByLength["minLength"]} [options.minLength=1] - Minimum number of digits (must be ≥1 and ≤ `maxLength`).
|
|
120
|
+
* @param {OptionsRandomIntByLength["maxLength"]} [options.maxLength=16] - Maximum number of digits (must be ≤16).
|
|
121
|
+
* @param {OptionsRandomIntByLength["avoidZero"]} [options.avoidZero=false] - If true, will ensure the result is never zero.
|
|
122
|
+
* @returns {number} A randomly generated integer within the specified constraints.
|
|
123
|
+
* @throws {TypeError} If parameters are invalid, such as:
|
|
124
|
+
* - `minLength` < `1`
|
|
125
|
+
* - `maxLength` > `16`
|
|
126
|
+
* - `minLength` > `maxLength`
|
|
127
|
+
* - non-integer values for `minLength` or `maxLength`
|
|
128
|
+
* @example
|
|
129
|
+
* randomIntByLength({ minLength: 3, maxLength: 5 });
|
|
130
|
+
* // ➔ (`4829` << random), (`192` << random) or (`71492` << random).
|
|
131
|
+
* randomIntByLength({ minLength: 4, maxLength: 4 });
|
|
132
|
+
* // ➔ `5930` (exact 4 digits)
|
|
133
|
+
* randomIntByLength({ avoidZero: true });
|
|
134
|
+
* // ➔ never 0
|
|
135
|
+
*/
|
|
136
|
+
declare const randomIntByLength:(options?:OptionsRandomIntByLength)=>number;
|
|
125
137
|
/** ---------------------------------------------------------------------------------
|
|
126
138
|
* * ***Generates a random alphanumeric string or number with a specified length range.***
|
|
127
139
|
* ---------------------------------------------------------------------------------
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* @param {
|
|
134
|
-
* @param {
|
|
135
|
-
* @param {
|
|
136
|
-
* @param {"
|
|
137
|
-
* @param {
|
|
138
|
-
* @param {
|
|
139
|
-
* @param {string} [options.replaceGenInt] - A custom character set to use when `type` is `"number"`.
|
|
140
|
-
* @param {string} [options.addChar] - Additional characters to always include in the character set.
|
|
141
|
-
*
|
|
140
|
+
* **This function allows you to generate random strings or numbers with fully
|
|
141
|
+
* customizable options, such as length range, character sets, inclusion of
|
|
142
|
+
* additional characters, and whether to avoid whitespace.**
|
|
143
|
+
* @param {OptionsRandomStr} [options] - Configuration options for generating the string.
|
|
144
|
+
* @param {OptionsRandomStr["minLength"]} [options.minLength=40] - Minimum length of the generated string (must be `≥` `1`).
|
|
145
|
+
* @param {OptionsRandomStr["maxLength"]} [options.maxLength=40] - Maximum length of the generated string (must be `≤` `5000`).
|
|
146
|
+
* @param {OptionsRandomStr["type"]} [options.type="string"] - Whether to generate a general alphanumeric string or purely numeric string.
|
|
147
|
+
* @param {OptionsRandomStr["avoidWhiteSpace"]} [options.avoidWhiteSpace=true] - If true, removes all whitespace, tabs, and newlines from the character set before generating.
|
|
148
|
+
* @param {OptionsRandomStr["replaceGenStr"]} [options.replaceGenStr] - A custom character set to use when `type` is `"string"`.
|
|
149
|
+
* @param {OptionsRandomStr["replaceGenInt"]} [options.replaceGenInt] - A custom character set to use when `type` is `"number"`.
|
|
150
|
+
* @param {OptionsRandomStr["addChar"]} [options.addChar] - Additional characters to always include in the character set.
|
|
142
151
|
* @returns {string} The randomly generated string or numeric string of the desired length.
|
|
143
|
-
*
|
|
144
|
-
* @throws {Error} If provided options are invalid (such as minLength > maxLength, invalid type, or empty character set).
|
|
145
|
-
*
|
|
152
|
+
* @throws {TypeError} If provided options are invalid (such as minLength > maxLength, invalid type, or empty character set).
|
|
146
153
|
* @example
|
|
147
|
-
* randomStr();
|
|
148
|
-
*
|
|
149
|
-
* randomStr({
|
|
150
|
-
*
|
|
151
|
-
* randomStr({
|
|
154
|
+
* randomStr();
|
|
155
|
+
* // ➔ Generates a 40-character random alphanumeric string
|
|
156
|
+
* randomStr({ minLength: 10, maxLength: 20 });
|
|
157
|
+
* // ➔ Generates a string between 10 and 20 characters
|
|
158
|
+
* randomStr({ type: "number", minLength: 5, maxLength: 5 });
|
|
159
|
+
* // ➔ "48302"
|
|
160
|
+
* randomStr({ replaceGenStr: "ABC ", avoidWhiteSpace: false });
|
|
161
|
+
* // ➔ String using A, B, C and space
|
|
162
|
+
* randomStr({ addChar: "!@#", minLength: 15, maxLength: 15 });
|
|
163
|
+
* // ➔ Guaranteed to include !@# in the set
|
|
152
164
|
*/
|
|
153
|
-
declare const randomStr:(options?:
|
|
165
|
+
declare const randomStr:(options?:OptionsRandomStr)=>string;
|
|
154
166
|
/** --------------------------------------------------
|
|
155
|
-
* * ***
|
|
167
|
+
* * ***A no-operation function that always returns `undefined`.***
|
|
156
168
|
* --------------------------------------------------
|
|
157
|
-
*
|
|
169
|
+
* **Useful as a default callback, placeholder, or stub function.**
|
|
170
|
+
* @returns {undefined} Always returns `undefined`.
|
|
158
171
|
* @example
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
172
|
+
* // Direct call returns undefined
|
|
173
|
+
* noop();
|
|
174
|
+
* // ➔ undefined
|
|
175
|
+
*
|
|
176
|
+
* // Can be used with type-checking helpers
|
|
177
|
+
* isUndefined(noop()); // ➔ true
|
|
178
|
+
* isFunction(noop); // ➔ true
|
|
179
|
+
* isFunction(noop()); // ➔ false
|
|
180
|
+
*
|
|
181
|
+
* // Often used as a default function
|
|
182
|
+
* const callback = noop;
|
|
183
|
+
* callback();
|
|
184
|
+
* // ➔ undefined
|
|
162
185
|
*/
|
|
163
186
|
declare const noop:()=>void;export{getRandomItem,noop,randomInt,randomIntByLength,randomStr};
|
package/dist/generator/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as getRandomItem,b as randomInt,c as randomIntByLength,d as randomStr}from'../chunk-
|
|
1
|
+
export{a as getRandomItem,b as randomInt,c as randomIntByLength,d as randomStr}from'../chunk-CK3BZGEU.js';export{a as noop}from'../chunk-SYJC7UAW.js';import'../chunk-ELDDNERR.js';import'../chunk-467VEMJH.js';import'../chunk-5SZUSNGZ.js';import'../chunk-MJAW5RAK.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkFSSV24W7_cjs=require('./chunk-FSSV24W7.cjs'),chunkBYZAD3XN_cjs=require('./chunk-BYZAD3XN.cjs'),chunk7NA6DUHR_cjs=require('./chunk-7NA6DUHR.cjs'),chunkCEFYHEM4_cjs=require('./chunk-CEFYHEM4.cjs'),chunkTUXDINHF_cjs=require('./chunk-TUXDINHF.cjs'),chunkMY7BA4GI_cjs=require('./chunk-MY7BA4GI.cjs'),chunkKBKYG3IY_cjs=require('./chunk-KBKYG3IY.cjs'),chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkI4AVNHPA_cjs=require('./chunk-I4AVNHPA.cjs'),chunkMBDWTK54_cjs=require('./chunk-MBDWTK54.cjs'),chunkGRVZXQXL_cjs=require('./chunk-GRVZXQXL.cjs'),chunkD47MHBSD_cjs=require('./chunk-D47MHBSD.cjs'),chunkTC4VBE4Y_cjs=require('./chunk-TC4VBE4Y.cjs'),chunkUUPQI6ND_cjs=require('./chunk-UUPQI6ND.cjs'),chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs');require('./chunk-MMSYCIJ2.cjs');var chunkGQE4OVHC_cjs=require('./chunk-GQE4OVHC.cjs'),chunkSW6HYEW7_cjs=require('./chunk-SW6HYEW7.cjs'),chunkZBSIGJFO_cjs=require('./chunk-ZBSIGJFO.cjs'),chunkJWHM3WZQ_cjs=require('./chunk-JWHM3WZQ.cjs'),chunkFDITZ5C6_cjs=require('./chunk-FDITZ5C6.cjs'),chunkQQYAUPSK_cjs=require('./chunk-QQYAUPSK.cjs'),chunkRV2VULM7_cjs=require('./chunk-RV2VULM7.cjs'),chunkX3GTRVVK_cjs=require('./chunk-X3GTRVVK.cjs'),chunkN2IJPIND_cjs=require('./chunk-N2IJPIND.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkBVPMMWDL_cjs=require('./chunk-BVPMMWDL.cjs'),chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');Object.defineProperty(exports,"findDuplicates",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.a}});Object.defineProperty(exports,"omitKeys",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.b}});Object.defineProperty(exports,"omitKeysDeep",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.c}});Object.defineProperty(exports,"omitProps",{enumerable:true,get:function(){return chunkFSSV24W7_cjs.d}});Object.defineProperty(exports,"extractFileName",{enumerable:true,get:function(){return chunkBYZAD3XN_cjs.a}});Object.defineProperty(exports,"areArraysEqual",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.a}});Object.defineProperty(exports,"areObjectsEqual",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.b}});Object.defineProperty(exports,"areURLsEqualPath",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.c}});Object.defineProperty(exports,"areURLsIdentical",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.d}});Object.defineProperty(exports,"arrayHasAnyMatch",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.h}});Object.defineProperty(exports,"doesKeyExist",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.g}});Object.defineProperty(exports,"isArguments",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.i}});Object.defineProperty(exports,"isArrayLike",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.k}});Object.defineProperty(exports,"isArrayLikeObject",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.l}});Object.defineProperty(exports,"isCurrencyLike",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.m}});Object.defineProperty(exports,"isDeepEqual",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.n}});Object.defineProperty(exports,"isElement",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.o}});Object.defineProperty(exports,"isEmpty",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.p}});Object.defineProperty(exports,"isEmptyDeep",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.q}});Object.defineProperty(exports,"isEqualWith",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.r}});Object.defineProperty(exports,"isLength",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.j}});Object.defineProperty(exports,"isMatch",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.t}});Object.defineProperty(exports,"isMatchWith",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.s}});Object.defineProperty(exports,"isNative",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.u}});Object.defineProperty(exports,"isObjectLoose",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.v}});Object.defineProperty(exports,"isSafeInteger",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.w}});Object.defineProperty(exports,"isValidURL",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.x}});Object.defineProperty(exports,"isWeakMap",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.y}});Object.defineProperty(exports,"textContainsAll",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.e}});Object.defineProperty(exports,"textContainsAny",{enumerable:true,get:function(){return chunk7NA6DUHR_cjs.f}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunkCEFYHEM4_cjs.a}});Object.defineProperty(exports,"getInitialsName",{enumerable:true,get:function(){return chunkTUXDINHF_cjs.b}});Object.defineProperty(exports,"replaceAt",{enumerable:true,get:function(){return chunkTUXDINHF_cjs.a}});Object.defineProperty(exports,"shouldForwardProp",{enumerable:true,get:function(){return chunkMY7BA4GI_cjs.a}});Object.defineProperty(exports,"constructURL",{enumerable:true,get:function(){return chunkKBKYG3IY_cjs.a}});Object.defineProperty(exports,"extractURLs",{enumerable:true,get:function(){return chunkKBKYG3IY_cjs.b}});Object.defineProperty(exports,"isURL",{enumerable:true,get:function(){return chunkFIEZKTAZ_cjs.a}});Object.defineProperty(exports,"assertIsBigInt",{enumerable:true,get:function(){return chunkI4AVNHPA_cjs.a}});Object.defineProperty(exports,"assertIsNumber",{enumerable:true,get:function(){return chunkI4AVNHPA_cjs.b}});Object.defineProperty(exports,"convertType",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.f}});Object.defineProperty(exports,"removeObjectPaths",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.g}});Object.defineProperty(exports,"toBooleanContent",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.b}});Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.c}});Object.defineProperty(exports,"toBooleanExplicit",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.d}});Object.defineProperty(exports,"toBooleanLoose",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.e}});Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.a}});Object.defineProperty(exports,"toNumberDeep",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.h}});Object.defineProperty(exports,"toStringDeep",{enumerable:true,get:function(){return chunkMBDWTK54_cjs.i}});Object.defineProperty(exports,"cleanParsedData",{enumerable:true,get:function(){return chunkGRVZXQXL_cjs.b}});Object.defineProperty(exports,"extractDigits",{enumerable:true,get:function(){return chunkGRVZXQXL_cjs.a}});Object.defineProperty(exports,"parseCustomDate",{enumerable:true,get:function(){return chunkGRVZXQXL_cjs.c}});Object.defineProperty(exports,"safeJsonParse",{enumerable:true,get:function(){return chunkGRVZXQXL_cjs.d}});Object.defineProperty(exports,"isNonEmptyValue",{enumerable:true,get:function(){return chunkD47MHBSD_cjs.a}});Object.defineProperty(exports,"isTypedArray",{enumerable:true,get:function(){return chunkD47MHBSD_cjs.b}});Object.defineProperty(exports,"dedupeArray",{enumerable:true,get:function(){return chunkTC4VBE4Y_cjs.d}});Object.defineProperty(exports,"filterNilArray",{enumerable:true,get:function(){return chunkTC4VBE4Y_cjs.b}});Object.defineProperty(exports,"filterNullArray",{enumerable:true,get:function(){return chunkTC4VBE4Y_cjs.c}});Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:true,get:function(){return chunkTC4VBE4Y_cjs.e}});Object.defineProperty(exports,"toStringDeepForce",{enumerable:true,get:function(){return chunkTC4VBE4Y_cjs.a}});Object.defineProperty(exports,"isEmptyValue",{enumerable:true,get:function(){return chunkUUPQI6ND_cjs.a}});Object.defineProperty(exports,"isArrayBuffer",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.b}});Object.defineProperty(exports,"isEmptyArray",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.e}});Object.defineProperty(exports,"isEmptyObject",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.f}});Object.defineProperty(exports,"isEqual",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.d}});Object.defineProperty(exports,"isRegExp",{enumerable:true,get:function(){return chunkKCQDDZJE_cjs.a}});Object.defineProperty(exports,"assertIsArray",{enumerable:true,get:function(){return chunk62HX5Z45_cjs.a}});Object.defineProperty(exports,"disableUserInteraction",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.a}});Object.defineProperty(exports,"enableUserInteraction",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.b}});Object.defineProperty(exports,"removeElementFocus",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.c}});Object.defineProperty(exports,"scrollToTop",{enumerable:true,get:function(){return chunkGQE4OVHC_cjs.d}});Object.defineProperty(exports,"isServer",{enumerable:true,get:function(){return chunkSW6HYEW7_cjs.a}});Object.defineProperty(exports,"censorEmail",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.h}});Object.defineProperty(exports,"chunkString",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.i}});Object.defineProperty(exports,"formatCurrency",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.a}});Object.defineProperty(exports,"formatDateFns",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.f}});Object.defineProperty(exports,"formatDateIntl",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.e}});Object.defineProperty(exports,"formatDateTime",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.d}});Object.defineProperty(exports,"formatNumber",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.b}});Object.defineProperty(exports,"formatPhoneNumber",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.c}});Object.defineProperty(exports,"getGMTOffset",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.g}});Object.defineProperty(exports,"truncateString",{enumerable:true,get:function(){return chunkZBSIGJFO_cjs.j}});Object.defineProperty(exports,"parseCurrencyString",{enumerable:true,get:function(){return chunkJWHM3WZQ_cjs.a}});Object.defineProperty(exports,"isFinite",{enumerable:true,get:function(){return chunkFDITZ5C6_cjs.a}});Object.defineProperty(exports,"getRandomItem",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.a}});Object.defineProperty(exports,"randomInt",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.b}});Object.defineProperty(exports,"randomIntByLength",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.c}});Object.defineProperty(exports,"randomStr",{enumerable:true,get:function(){return chunkQQYAUPSK_cjs.d}});Object.defineProperty(exports,"noop",{enumerable:true,get:function(){return chunkRV2VULM7_cjs.a}});Object.defineProperty(exports,"formatEnvPort",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.d}});Object.defineProperty(exports,"getFirstPrefixPathname",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.b}});Object.defineProperty(exports,"getPrefixPathname",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.a}});Object.defineProperty(exports,"normalizePathname",{enumerable:true,get:function(){return chunkX3GTRVVK_cjs.c}});Object.defineProperty(exports,"normalizeSpaces",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.a}});Object.defineProperty(exports,"normalizeString",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.b}});Object.defineProperty(exports,"removeSpaces",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.c}});Object.defineProperty(exports,"stripHtmlTags",{enumerable:true,get:function(){return chunkN2IJPIND_cjs.d}});Object.defineProperty(exports,"isEmptyString",{enumerable:true,get:function(){return chunk2TRAPBZ7_cjs.a}});Object.defineProperty(exports,"assertIsString",{enumerable:true,get:function(){return chunkBVPMMWDL_cjs.a}});Object.defineProperty(exports,"isInteger",{enumerable:true,get:function(){return chunkPUQXRLZH_cjs.a}});Object.defineProperty(exports,"isDate",{enumerable:true,get:function(){return chunkU5Y2FXMN_cjs.b}});Object.defineProperty(exports,"isMap",{enumerable:true,get:function(){return chunkU5Y2FXMN_cjs.a}});Object.defineProperty(exports,"safeStableStringify",{enumerable:true,get:function(){return chunkU5Y2FXMN_cjs.c}});Object.defineProperty(exports,"isBigInt",{enumerable:true,get:function(){return chunk7YWAQOA4_cjs.a}});Object.defineProperty(exports,"assertIsBoolean",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.G}});Object.defineProperty(exports,"assertIsPlainObject",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.m}});Object.defineProperty(exports,"capitalizeFirst",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.s}});Object.defineProperty(exports,"capitalizeWords",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.t}});Object.defineProperty(exports,"getPreciseType",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.E}});Object.defineProperty(exports,"hasOwnProp",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.o}});Object.defineProperty(exports,"isArray",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.d}});Object.defineProperty(exports,"isBoolean",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.a}});Object.defineProperty(exports,"isBuffer",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.C}});Object.defineProperty(exports,"isError",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.D}});Object.defineProperty(exports,"isFunction",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.b}});Object.defineProperty(exports,"isNaN",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.n}});Object.defineProperty(exports,"isNil",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.c}});Object.defineProperty(exports,"isNonEmptyArray",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.r}});Object.defineProperty(exports,"isNonEmptyString",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.p}});Object.defineProperty(exports,"isNull",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.g}});Object.defineProperty(exports,"isNumber",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.i}});Object.defineProperty(exports,"isObject",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.e}});Object.defineProperty(exports,"isObjectOrArray",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.l}});Object.defineProperty(exports,"isPlainObject",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.f}});Object.defineProperty(exports,"isSet",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.q}});Object.defineProperty(exports,"isString",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.h}});Object.defineProperty(exports,"isSymbol",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.j}});Object.defineProperty(exports,"isUndefined",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.k}});Object.defineProperty(exports,"slugify",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.B}});Object.defineProperty(exports,"toCamelCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.u}});Object.defineProperty(exports,"toDotCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.A}});Object.defineProperty(exports,"toKebabCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.y}});Object.defineProperty(exports,"toLowerCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.x}});Object.defineProperty(exports,"toPascalCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.w}});Object.defineProperty(exports,"toPascalCaseSpace",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.v}});Object.defineProperty(exports,"toSnakeCase",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.z}});
|
|
1
|
+
'use strict';var chunkPYUVKHUF_cjs=require('./chunk-PYUVKHUF.cjs'),chunkHXTACM3O_cjs=require('./chunk-HXTACM3O.cjs'),chunkLUVV5KSD_cjs=require('./chunk-LUVV5KSD.cjs'),chunkOX6RLS2F_cjs=require('./chunk-OX6RLS2F.cjs'),chunkXOYX4PLZ_cjs=require('./chunk-XOYX4PLZ.cjs'),chunkGOJNH55O_cjs=require('./chunk-GOJNH55O.cjs'),chunkKZQB7H4E_cjs=require('./chunk-KZQB7H4E.cjs'),chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkDFSTVQFI_cjs=require('./chunk-DFSTVQFI.cjs'),chunkXFCJDSB2_cjs=require('./chunk-XFCJDSB2.cjs'),chunkIJTZWWRJ_cjs=require('./chunk-IJTZWWRJ.cjs'),chunkRHE3M2NJ_cjs=require('./chunk-RHE3M2NJ.cjs'),chunkZO5364A6_cjs=require('./chunk-ZO5364A6.cjs'),chunk6SMJMZ7G_cjs=require('./chunk-6SMJMZ7G.cjs'),chunkPFLNHD4B_cjs=require('./chunk-PFLNHD4B.cjs'),chunkISJ33O2J_cjs=require('./chunk-ISJ33O2J.cjs');require('./chunk-MMSYCIJ2.cjs');var chunkEXXLUO7L_cjs=require('./chunk-EXXLUO7L.cjs'),chunkSW6HYEW7_cjs=require('./chunk-SW6HYEW7.cjs'),chunkVTR75UID_cjs=require('./chunk-VTR75UID.cjs'),chunkD43GV6EF_cjs=require('./chunk-D43GV6EF.cjs'),chunkMF5Y5K4N_cjs=require('./chunk-MF5Y5K4N.cjs'),chunkNUHOOAUN_cjs=require('./chunk-NUHOOAUN.cjs'),chunkRV2VULM7_cjs=require('./chunk-RV2VULM7.cjs'),chunkO5VXBNUQ_cjs=require('./chunk-O5VXBNUQ.cjs'),chunk445TAVT4_cjs=require('./chunk-445TAVT4.cjs'),chunk6Q4I2RPC_cjs=require('./chunk-6Q4I2RPC.cjs'),chunkDYRDBYPF_cjs=require('./chunk-DYRDBYPF.cjs'),chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunkO7SJR4CY_cjs=require('./chunk-O7SJR4CY.cjs'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');Object.defineProperty(exports,"findDuplicates",{enumerable:true,get:function(){return chunkPYUVKHUF_cjs.a}});Object.defineProperty(exports,"omitKeys",{enumerable:true,get:function(){return chunkPYUVKHUF_cjs.b}});Object.defineProperty(exports,"omitKeysDeep",{enumerable:true,get:function(){return chunkPYUVKHUF_cjs.c}});Object.defineProperty(exports,"extractFileName",{enumerable:true,get:function(){return chunkHXTACM3O_cjs.a}});Object.defineProperty(exports,"areArraysEqual",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.a}});Object.defineProperty(exports,"areObjectsEqual",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.b}});Object.defineProperty(exports,"areURLsEqualPath",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.c}});Object.defineProperty(exports,"areURLsIdentical",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.d}});Object.defineProperty(exports,"arrayHasAnyMatch",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.i}});Object.defineProperty(exports,"doesKeyExist",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.h}});Object.defineProperty(exports,"isArguments",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.j}});Object.defineProperty(exports,"isArrayLike",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.l}});Object.defineProperty(exports,"isArrayLikeObject",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.m}});Object.defineProperty(exports,"isCurrencyLike",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.n}});Object.defineProperty(exports,"isDeepEqual",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.o}});Object.defineProperty(exports,"isElement",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.p}});Object.defineProperty(exports,"isEmpty",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.q}});Object.defineProperty(exports,"isEmptyDeep",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.r}});Object.defineProperty(exports,"isEqualWith",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.s}});Object.defineProperty(exports,"isLength",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.k}});Object.defineProperty(exports,"isMatch",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.u}});Object.defineProperty(exports,"isMatchWith",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.t}});Object.defineProperty(exports,"isNative",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.v}});Object.defineProperty(exports,"isObjectLoose",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.w}});Object.defineProperty(exports,"isPropertyKey",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.g}});Object.defineProperty(exports,"isSafeInteger",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.x}});Object.defineProperty(exports,"isValidURL",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.y}});Object.defineProperty(exports,"isWeakMap",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.z}});Object.defineProperty(exports,"textContainsAll",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.e}});Object.defineProperty(exports,"textContainsAny",{enumerable:true,get:function(){return chunkLUVV5KSD_cjs.f}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunkOX6RLS2F_cjs.a}});Object.defineProperty(exports,"getInitialsName",{enumerable:true,get:function(){return chunkXOYX4PLZ_cjs.b}});Object.defineProperty(exports,"replaceAt",{enumerable:true,get:function(){return chunkXOYX4PLZ_cjs.a}});Object.defineProperty(exports,"shouldForwardProp",{enumerable:true,get:function(){return chunkGOJNH55O_cjs.a}});Object.defineProperty(exports,"constructURL",{enumerable:true,get:function(){return chunkKZQB7H4E_cjs.a}});Object.defineProperty(exports,"extractURLs",{enumerable:true,get:function(){return chunkKZQB7H4E_cjs.b}});Object.defineProperty(exports,"isURL",{enumerable:true,get:function(){return chunkFIEZKTAZ_cjs.a}});Object.defineProperty(exports,"assertIsBigInt",{enumerable:true,get:function(){return chunkDFSTVQFI_cjs.a}});Object.defineProperty(exports,"assertIsNumber",{enumerable:true,get:function(){return chunkDFSTVQFI_cjs.b}});Object.defineProperty(exports,"convertType",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.f}});Object.defineProperty(exports,"removeObjectPaths",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.g}});Object.defineProperty(exports,"toBooleanContent",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.b}});Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.c}});Object.defineProperty(exports,"toBooleanExplicit",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.d}});Object.defineProperty(exports,"toBooleanLoose",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.e}});Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.a}});Object.defineProperty(exports,"toNumberDeep",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.h}});Object.defineProperty(exports,"toStringDeep",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.i}});Object.defineProperty(exports,"cleanParsedData",{enumerable:true,get:function(){return chunkIJTZWWRJ_cjs.b}});Object.defineProperty(exports,"extractDigits",{enumerable:true,get:function(){return chunkIJTZWWRJ_cjs.a}});Object.defineProperty(exports,"parseCustomDate",{enumerable:true,get:function(){return chunkIJTZWWRJ_cjs.c}});Object.defineProperty(exports,"safeJsonParse",{enumerable:true,get:function(){return chunkIJTZWWRJ_cjs.d}});Object.defineProperty(exports,"isNonEmptyValue",{enumerable:true,get:function(){return chunkRHE3M2NJ_cjs.a}});Object.defineProperty(exports,"isTypedArray",{enumerable:true,get:function(){return chunkRHE3M2NJ_cjs.b}});Object.defineProperty(exports,"dedupeArray",{enumerable:true,get:function(){return chunkZO5364A6_cjs.c}});Object.defineProperty(exports,"filterNilArray",{enumerable:true,get:function(){return chunkZO5364A6_cjs.b}});Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:true,get:function(){return chunkZO5364A6_cjs.d}});Object.defineProperty(exports,"toStringDeepForce",{enumerable:true,get:function(){return chunkZO5364A6_cjs.a}});Object.defineProperty(exports,"isEmptyValue",{enumerable:true,get:function(){return chunk6SMJMZ7G_cjs.a}});Object.defineProperty(exports,"isArrayBuffer",{enumerable:true,get:function(){return chunkPFLNHD4B_cjs.b}});Object.defineProperty(exports,"isEmptyArray",{enumerable:true,get:function(){return chunkPFLNHD4B_cjs.e}});Object.defineProperty(exports,"isEmptyObject",{enumerable:true,get:function(){return chunkPFLNHD4B_cjs.f}});Object.defineProperty(exports,"isEqual",{enumerable:true,get:function(){return chunkPFLNHD4B_cjs.d}});Object.defineProperty(exports,"isRegExp",{enumerable:true,get:function(){return chunkPFLNHD4B_cjs.a}});Object.defineProperty(exports,"assertIsArray",{enumerable:true,get:function(){return chunkISJ33O2J_cjs.a}});Object.defineProperty(exports,"disableUserInteraction",{enumerable:true,get:function(){return chunkEXXLUO7L_cjs.a}});Object.defineProperty(exports,"enableUserInteraction",{enumerable:true,get:function(){return chunkEXXLUO7L_cjs.b}});Object.defineProperty(exports,"removeElementFocus",{enumerable:true,get:function(){return chunkEXXLUO7L_cjs.c}});Object.defineProperty(exports,"scrollToTop",{enumerable:true,get:function(){return chunkEXXLUO7L_cjs.d}});Object.defineProperty(exports,"isServer",{enumerable:true,get:function(){return chunkSW6HYEW7_cjs.a}});Object.defineProperty(exports,"censorEmail",{enumerable:true,get:function(){return chunkVTR75UID_cjs.h}});Object.defineProperty(exports,"chunkString",{enumerable:true,get:function(){return chunkVTR75UID_cjs.i}});Object.defineProperty(exports,"formatCurrency",{enumerable:true,get:function(){return chunkVTR75UID_cjs.a}});Object.defineProperty(exports,"formatDateFns",{enumerable:true,get:function(){return chunkVTR75UID_cjs.f}});Object.defineProperty(exports,"formatDateIntl",{enumerable:true,get:function(){return chunkVTR75UID_cjs.e}});Object.defineProperty(exports,"formatDateTime",{enumerable:true,get:function(){return chunkVTR75UID_cjs.d}});Object.defineProperty(exports,"formatNumber",{enumerable:true,get:function(){return chunkVTR75UID_cjs.b}});Object.defineProperty(exports,"formatPhoneNumber",{enumerable:true,get:function(){return chunkVTR75UID_cjs.c}});Object.defineProperty(exports,"getGMTOffset",{enumerable:true,get:function(){return chunkVTR75UID_cjs.g}});Object.defineProperty(exports,"truncateString",{enumerable:true,get:function(){return chunkVTR75UID_cjs.j}});Object.defineProperty(exports,"parseCurrencyString",{enumerable:true,get:function(){return chunkD43GV6EF_cjs.a}});Object.defineProperty(exports,"isFinite",{enumerable:true,get:function(){return chunkMF5Y5K4N_cjs.a}});Object.defineProperty(exports,"getRandomItem",{enumerable:true,get:function(){return chunkNUHOOAUN_cjs.a}});Object.defineProperty(exports,"randomInt",{enumerable:true,get:function(){return chunkNUHOOAUN_cjs.b}});Object.defineProperty(exports,"randomIntByLength",{enumerable:true,get:function(){return chunkNUHOOAUN_cjs.c}});Object.defineProperty(exports,"randomStr",{enumerable:true,get:function(){return chunkNUHOOAUN_cjs.d}});Object.defineProperty(exports,"noop",{enumerable:true,get:function(){return chunkRV2VULM7_cjs.a}});Object.defineProperty(exports,"formatEnvPort",{enumerable:true,get:function(){return chunkO5VXBNUQ_cjs.d}});Object.defineProperty(exports,"getFirstPrefixPathname",{enumerable:true,get:function(){return chunkO5VXBNUQ_cjs.b}});Object.defineProperty(exports,"getPrefixPathname",{enumerable:true,get:function(){return chunkO5VXBNUQ_cjs.a}});Object.defineProperty(exports,"normalizePathname",{enumerable:true,get:function(){return chunkO5VXBNUQ_cjs.c}});Object.defineProperty(exports,"normalizeSpaces",{enumerable:true,get:function(){return chunk445TAVT4_cjs.a}});Object.defineProperty(exports,"normalizeString",{enumerable:true,get:function(){return chunk445TAVT4_cjs.b}});Object.defineProperty(exports,"removeSpaces",{enumerable:true,get:function(){return chunk445TAVT4_cjs.c}});Object.defineProperty(exports,"stripHtmlTags",{enumerable:true,get:function(){return chunk445TAVT4_cjs.d}});Object.defineProperty(exports,"isEmptyString",{enumerable:true,get:function(){return chunk6Q4I2RPC_cjs.a}});Object.defineProperty(exports,"assertIsString",{enumerable:true,get:function(){return chunkDYRDBYPF_cjs.a}});Object.defineProperty(exports,"isInteger",{enumerable:true,get:function(){return chunkPUQXRLZH_cjs.a}});Object.defineProperty(exports,"isDate",{enumerable:true,get:function(){return chunkO7SJR4CY_cjs.b}});Object.defineProperty(exports,"isMap",{enumerable:true,get:function(){return chunkO7SJR4CY_cjs.a}});Object.defineProperty(exports,"safeStableStringify",{enumerable:true,get:function(){return chunkO7SJR4CY_cjs.c}});Object.defineProperty(exports,"isBigInt",{enumerable:true,get:function(){return chunk7YWAQOA4_cjs.a}});Object.defineProperty(exports,"assertIsBoolean",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.G}});Object.defineProperty(exports,"assertIsPlainObject",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.j}});Object.defineProperty(exports,"capitalizeFirst",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.s}});Object.defineProperty(exports,"capitalizeWords",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.t}});Object.defineProperty(exports,"getPreciseType",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.E}});Object.defineProperty(exports,"hasOwnProp",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.o}});Object.defineProperty(exports,"isArray",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.d}});Object.defineProperty(exports,"isBoolean",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.a}});Object.defineProperty(exports,"isBuffer",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.D}});Object.defineProperty(exports,"isError",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.C}});Object.defineProperty(exports,"isFunction",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.b}});Object.defineProperty(exports,"isNaN",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.h}});Object.defineProperty(exports,"isNil",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.c}});Object.defineProperty(exports,"isNonEmptyArray",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.r}});Object.defineProperty(exports,"isNonEmptyString",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.p}});Object.defineProperty(exports,"isNull",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.i}});Object.defineProperty(exports,"isNumber",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.k}});Object.defineProperty(exports,"isObject",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.e}});Object.defineProperty(exports,"isObjectOrArray",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.n}});Object.defineProperty(exports,"isPlainObject",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.f}});Object.defineProperty(exports,"isSet",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.q}});Object.defineProperty(exports,"isString",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.g}});Object.defineProperty(exports,"isSymbol",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.l}});Object.defineProperty(exports,"isUndefined",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.m}});Object.defineProperty(exports,"slugify",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.B}});Object.defineProperty(exports,"toCamelCase",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.u}});Object.defineProperty(exports,"toDotCase",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.A}});Object.defineProperty(exports,"toKebabCase",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.y}});Object.defineProperty(exports,"toLowerCase",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.x}});Object.defineProperty(exports,"toPascalCase",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.w}});Object.defineProperty(exports,"toPascalCaseSpace",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.v}});Object.defineProperty(exports,"toSnakeCase",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.z}});
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{assertIsArray,assertIsBigInt,assertIsBoolean,assertIsNumber,assertIsPlainObject,assertIsString}from'./assertions/index.js';export{cleanParsedData,convertType,dedupeArray,extractDigits,filterNilArray,
|
|
1
|
+
export{assertIsArray,assertIsBigInt,assertIsBoolean,assertIsNumber,assertIsPlainObject,assertIsString}from'./assertions/index.js';export{cleanParsedData,convertType,dedupeArray,extractDigits,filterNilArray,parseCurrencyString,parseCustomDate,removeObjectPaths,safeJsonParse,safeStableStringify,toBooleanContent,toBooleanContentDeep,toBooleanExplicit,toBooleanLoose,toNumberArrayUnRecursive,toNumberDeep,toStringArrayUnRecursive,toStringDeep,toStringDeepForce}from'./conversions/index.js';export{isServer}from'./env/index.js';export{disableUserInteraction,enableUserInteraction,removeElementFocus,scrollToTop}from'./events/index.js';export{censorEmail,chunkString,formatCurrency,formatDateFns,formatDateIntl,formatDateTime,formatNumber,formatPhoneNumber,getGMTOffset,truncateString}from'./formatting/index.js';export{getRandomItem,noop,randomInt,randomIntByLength,randomStr}from'./generator/index.js';export{findDuplicates,omitKeys,omitKeysDeep}from'./operations/index.js';export{extractFileName}from'./parsers/index.js';export{IsArrayResult,areArraysEqual,areObjectsEqual,areURLsEqualPath,areURLsIdentical,arrayHasAnyMatch,doesKeyExist,hasOwnProp,isArguments,isArray,isArrayBuffer,isArrayLike,isArrayLikeObject,isBigInt,isBoolean,isBuffer,isCurrencyLike,isDate,isDeepEqual,isElement,isEmpty,isEmptyArray,isEmptyDeep,isEmptyObject,isEmptyString,isEmptyValue,isEqual,isEqualWith,isError,isFinite,isFunction,isInteger,isLength,isMap,isMatch,isMatchWith,isNaN,isNative,isNil,isNonEmptyArray,isNonEmptyString,isNonEmptyValue,isNull,isObject,isObjectLoose,isObjectOrArray,isPropertyKey,isRegExp,isSafeInteger,isSet,isString,isSymbol,isTypedArray,isURL,isUndefined,isValidURL,isWeakMap,textContainsAll,textContainsAny}from'./predicates/index.js';export{G as GetPreciseTypeOptions,I as IsNumberOptions,a as IsPlainObjectResult,g as getPreciseType,i as isNumber,b as isPlainObject}from'./isPlainObject-BVhBAPHX.js';export{delay}from'./promise/index.js';export{capitalizeFirst,capitalizeWords,getInitialsName,normalizeSpaces,normalizeString,removeSpaces,replaceAt,slugify,stripHtmlTags,toCamelCase,toDotCase,toKebabCase,toLowerCase,toPascalCase,toPascalCaseSpace,toSnakeCase}from'./strings/index.js';export{shouldForwardProp}from'./stylings/index.js';export{QueryParamPairs,constructURL,extractURLs,formatEnvPort,getFirstPrefixPathname,getPrefixPathname,normalizePathname}from'./urls/index.js';import'./type-data-DDs-u2kq.js';import'./arrays-normalize-recursive-CnjYJ9xg.js';import'./nils-DMz3kU7M.js';import'./any-BmdI8UbK.js';import'./if-CvT4R7Kh.js';import'./extends-Bk_SBGdT.js';import'./never-BfayMBF9.js';import'./prettify-C4xLcYOP.js';import'./NumberRangeUnion-DC-C3_Kq.js';import'./omit-VvmIsZmX.js';import'date-fns';import'./string-XA-til3C.js';import'./is-array--YjXV-Wx.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as findDuplicates,b as omitKeys,c as omitKeysDeep
|
|
1
|
+
export{a as findDuplicates,b as omitKeys,c as omitKeysDeep}from'./chunk-UUMKL74S.js';export{a as extractFileName}from'./chunk-VQLAPEL3.js';export{a as areArraysEqual,b as areObjectsEqual,c as areURLsEqualPath,d as areURLsIdentical,i as arrayHasAnyMatch,h as doesKeyExist,j as isArguments,l as isArrayLike,m as isArrayLikeObject,n as isCurrencyLike,o as isDeepEqual,p as isElement,q as isEmpty,r as isEmptyDeep,s as isEqualWith,k as isLength,u as isMatch,t as isMatchWith,v as isNative,w as isObjectLoose,g as isPropertyKey,x as isSafeInteger,y as isValidURL,z as isWeakMap,e as textContainsAll,f as textContainsAny}from'./chunk-NUVGETPD.js';export{a as delay}from'./chunk-BLCANGFS.js';export{b as getInitialsName,a as replaceAt}from'./chunk-TQMZ2LPI.js';export{a as shouldForwardProp}from'./chunk-JQZUWBIX.js';export{a as constructURL,b as extractURLs}from'./chunk-S7GMG4TB.js';export{a as isURL}from'./chunk-NNM7QCNB.js';export{a as assertIsBigInt,b as assertIsNumber}from'./chunk-2AUUPGMN.js';export{f as convertType,g as removeObjectPaths,b as toBooleanContent,c as toBooleanContentDeep,d as toBooleanExplicit,e as toBooleanLoose,a as toNumberArrayUnRecursive,h as toNumberDeep,i as toStringDeep}from'./chunk-G72VSVGO.js';export{b as cleanParsedData,a as extractDigits,c as parseCustomDate,d as safeJsonParse}from'./chunk-MWLEM7ED.js';export{a as isNonEmptyValue,b as isTypedArray}from'./chunk-RHIBYOFQ.js';export{c as dedupeArray,b as filterNilArray,d as toStringArrayUnRecursive,a as toStringDeepForce}from'./chunk-PSWITZK5.js';export{a as isEmptyValue}from'./chunk-REFMEB4A.js';export{b as isArrayBuffer,e as isEmptyArray,f as isEmptyObject,d as isEqual,a as isRegExp}from'./chunk-ME5OV5HN.js';export{a as assertIsArray}from'./chunk-2JQQQ625.js';import'./chunk-G5LXIEFO.js';export{a as disableUserInteraction,b as enableUserInteraction,c as removeElementFocus,d as scrollToTop}from'./chunk-U4TZO7WV.js';export{a as isServer}from'./chunk-56QBKKRE.js';export{h as censorEmail,i as chunkString,a as formatCurrency,f as formatDateFns,e as formatDateIntl,d as formatDateTime,b as formatNumber,c as formatPhoneNumber,g as getGMTOffset,j as truncateString}from'./chunk-25G6B35W.js';export{a as parseCurrencyString}from'./chunk-K4PLGD7C.js';export{a as isFinite}from'./chunk-GAJTFCUA.js';export{a as getRandomItem,b as randomInt,c as randomIntByLength,d as randomStr}from'./chunk-CK3BZGEU.js';export{a as noop}from'./chunk-SYJC7UAW.js';export{d as formatEnvPort,b as getFirstPrefixPathname,a as getPrefixPathname,c as normalizePathname}from'./chunk-NSVLG7NY.js';export{a as normalizeSpaces,b as normalizeString,c as removeSpaces,d as stripHtmlTags}from'./chunk-HXST7RJB.js';export{a as isEmptyString}from'./chunk-Z6FLCEN6.js';export{a as assertIsString}from'./chunk-JISH2VGG.js';export{a as isInteger}from'./chunk-ELDDNERR.js';export{b as isDate,a as isMap,c as safeStableStringify}from'./chunk-467VEMJH.js';export{a as isBigInt}from'./chunk-5SZUSNGZ.js';export{G as assertIsBoolean,j as assertIsPlainObject,s as capitalizeFirst,t as capitalizeWords,E as getPreciseType,o as hasOwnProp,d as isArray,a as isBoolean,D as isBuffer,C as isError,b as isFunction,h as isNaN,c as isNil,r as isNonEmptyArray,p as isNonEmptyString,i as isNull,k as isNumber,e as isObject,n as isObjectOrArray,f as isPlainObject,q as isSet,g as isString,l as isSymbol,m as isUndefined,B as slugify,u as toCamelCase,A as toDotCase,y as toKebabCase,x as toLowerCase,w as toPascalCase,v as toPascalCaseSpace,z as toSnakeCase}from'./chunk-MJAW5RAK.js';
|