@rzl-zone/utils-js 3.5.0 → 3.5.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/LICENSE.md +1 -1
- package/dist/assertions/index.cjs +11 -4
- package/dist/assertions/index.d.ts +9 -0
- package/dist/assertions/index.js +9 -0
- package/dist/chunk-2CQX5CBG.js +15 -0
- package/dist/chunk-2IOOEY45.cjs +10 -0
- package/dist/chunk-2WA36TC5.cjs +13 -0
- package/dist/chunk-3IBQ5MOM.js +10 -0
- package/dist/chunk-3VA554KW.js +11 -0
- package/dist/chunk-5757UBXJ.cjs +13 -0
- package/dist/chunk-5IGC6PBH.js +11 -0
- package/dist/chunk-5KJFVIQT.cjs +10 -0
- package/dist/chunk-6JFCSH7J.js +11 -0
- package/dist/chunk-6JFZL7YE.cjs +10 -0
- package/dist/chunk-7ODAAXX5.cjs +36 -0
- package/dist/chunk-BAV5T2E3.cjs +10 -0
- package/dist/chunk-CAH33WOQ.cjs +11 -0
- package/dist/chunk-CDCERIZ2.js +13 -0
- package/dist/chunk-CKTLUNWX.js +10 -0
- package/dist/chunk-CMW2TBOQ.js +45 -0
- package/dist/chunk-D3ENH7H6.cjs +14 -0
- package/dist/chunk-DEZZUYE2.js +13 -0
- package/dist/chunk-DVMHRLKP.cjs +10 -0
- package/dist/chunk-DWF2R5GD.cjs +13 -0
- package/dist/chunk-E55EQK2U.cjs +10 -0
- package/dist/chunk-E74U6CYP.cjs +10 -0
- package/dist/chunk-EL6A35UR.cjs +13 -0
- package/dist/chunk-F6IPNNSJ.cjs +23 -0
- package/dist/chunk-FJZGG54N.cjs +15 -0
- package/dist/chunk-FWCKOJZM.js +23 -0
- package/dist/chunk-FWHNWL2P.cjs +10 -0
- package/dist/chunk-GGEADHZO.js +12 -0
- package/dist/chunk-GQR4R5WY.js +10 -0
- package/dist/chunk-H66AC7GK.cjs +12 -0
- package/dist/chunk-HQWOFR56.cjs +10 -0
- package/dist/chunk-HYRQMTRH.cjs +10 -0
- package/dist/chunk-IRFL4MAX.js +10 -0
- package/dist/chunk-IVL7CKVH.cjs +11 -0
- package/dist/chunk-IZPBKKPO.js +10 -0
- package/dist/chunk-JBQMXC5I.cjs +13 -0
- package/dist/chunk-JEQEF5WD.js +14 -0
- package/dist/chunk-JMJQCN74.js +36 -0
- package/dist/chunk-KHO2SBNA.cjs +10 -0
- package/dist/chunk-KVAL5PAG.cjs +10 -0
- package/dist/chunk-L5RDAVVH.js +9 -0
- package/dist/chunk-LS6U7FAY.cjs +12 -0
- package/dist/chunk-NBZWMBO6.js +13 -0
- package/dist/chunk-NRF6LWBC.cjs +11 -0
- package/dist/chunk-OI5XKNZO.js +11 -0
- package/dist/chunk-ONZFBJVW.js +9 -0
- package/dist/chunk-OYTYSY7G.js +12 -0
- package/dist/chunk-PET42Z7W.js +12 -0
- package/dist/chunk-PZQ6I4JJ.cjs +46 -0
- package/dist/chunk-QBKAEVYG.js +11 -0
- package/dist/chunk-QNKGP5DY.js +9 -0
- package/dist/chunk-RIPKY4RU.js +10 -0
- package/dist/chunk-RZW35UN5.cjs +11 -0
- package/dist/chunk-SBFNXGTJ.js +13 -0
- package/dist/chunk-SBKGWRS5.js +10 -0
- package/dist/chunk-SIM77PU4.js +13 -0
- package/dist/chunk-T2T7K3KR.js +10 -0
- package/dist/chunk-T7PU2V7X.cjs +12 -0
- package/dist/chunk-UDA26MCU.cjs +10 -0
- package/dist/chunk-V45XJKHW.cjs +10 -0
- package/dist/chunk-VJDDGRIK.cjs +10 -0
- package/dist/chunk-W2WNBUDE.js +10 -0
- package/dist/chunk-WVSPXFTY.js +9 -0
- package/dist/chunk-XABCB3Y7.cjs +19 -0
- package/dist/chunk-XEDXFSGI.js +10 -0
- package/dist/chunk-YKPSRP5G.js +19 -0
- package/dist/chunk-YWHHVDT4.js +9 -0
- package/dist/chunk-ZETAZZLD.cjs +11 -0
- package/dist/conversions/index.cjs +11 -4
- package/dist/conversions/index.d.ts +9 -0
- package/dist/conversions/index.js +9 -0
- package/dist/events/index.cjs +11 -4
- package/dist/events/index.d.ts +9 -0
- package/dist/events/index.js +9 -0
- package/dist/formatters/index.cjs +11 -4
- package/dist/formatters/index.d.ts +9 -0
- package/dist/formatters/index.js +9 -0
- package/dist/generators/index.cjs +11 -4
- package/dist/generators/index.d.ts +9 -0
- package/dist/generators/index.js +9 -0
- package/dist/index.d.ts +34 -11
- package/dist/isPlainObject-FWmcJF6k.d.ts +9 -0
- package/dist/next/index.cjs +13 -0
- package/dist/next/index.d.ts +9 -0
- package/dist/next/index.js +13 -0
- package/dist/next/server/index.cjs +9 -0
- package/dist/next/server/index.d.ts +9 -0
- package/dist/next/server/index.js +9 -0
- package/dist/operations/index.cjs +11 -4
- package/dist/operations/index.d.ts +9 -0
- package/dist/operations/index.js +9 -0
- package/dist/parsers/index.cjs +11 -4
- package/dist/parsers/index.d.ts +9 -0
- package/dist/parsers/index.js +9 -0
- package/dist/predicates/index.cjs +11 -4
- package/dist/predicates/index.d.ts +9 -0
- package/dist/predicates/index.js +9 -0
- package/dist/promises/index.cjs +11 -4
- package/dist/promises/index.d.ts +9 -0
- package/dist/promises/index.js +9 -0
- package/dist/rzl-utils.global.js +23 -14
- package/dist/strings/index.cjs +11 -4
- package/dist/strings/index.d.ts +9 -0
- package/dist/strings/index.js +9 -0
- package/dist/tailwind/index.cjs +11 -4
- package/dist/tailwind/index.d.ts +9 -0
- package/dist/tailwind/index.js +9 -0
- package/dist/urls/index.cjs +11 -4
- package/dist/urls/index.d.ts +9 -0
- package/dist/urls/index.js +9 -0
- package/package.json +50 -166
package/dist/strings/index.cjs
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ====================================================
|
|
3
|
+
* Rzl Utils-JS.
|
|
4
|
+
* ----------------------------------------------------
|
|
5
|
+
* Version: 3.5.2.
|
|
6
|
+
* Author: Rizalvin Dwiky.
|
|
7
|
+
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
+
* ====================================================
|
|
9
|
+
*/
|
|
1
10
|
'use strict';
|
|
2
11
|
|
|
3
12
|
var chunkD3ENH7H6_cjs = require('../chunk-D3ENH7H6.cjs');
|
|
@@ -5,10 +14,8 @@ var chunkE74U6CYP_cjs = require('../chunk-E74U6CYP.cjs');
|
|
|
5
14
|
var chunk2IOOEY45_cjs = require('../chunk-2IOOEY45.cjs');
|
|
6
15
|
var chunkKVAL5PAG_cjs = require('../chunk-KVAL5PAG.cjs');
|
|
7
16
|
require('../chunk-E55EQK2U.cjs');
|
|
8
|
-
var chunkPZQ6I4JJ_cjs = require('../chunk-PZQ6I4JJ.cjs');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
var chunkPZQ6I4JJ_cjs = require('../chunk-PZQ6I4JJ.cjs');
|
|
18
|
+
|
|
12
19
|
Object.defineProperty(exports, "capitalizeFirst", {
|
|
13
20
|
enumerable: true,
|
|
14
21
|
get: function () { return chunkD3ENH7H6_cjs.capitalizeFirst; }
|
package/dist/strings/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ====================================================
|
|
3
|
+
* Rzl Utils-JS.
|
|
4
|
+
* ----------------------------------------------------
|
|
5
|
+
* Version: 3.5.2.
|
|
6
|
+
* Author: Rizalvin Dwiky.
|
|
7
|
+
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
+
* ====================================================
|
|
9
|
+
*/
|
|
1
10
|
import{Nilable,Extends}from'@rzl-zone/ts-types-plus';type CapitalizeFirstOptions={
|
|
2
11
|
/** If true **(default)**, the rest of the string will be converted to lowercase after capitalizing the first letter.
|
|
3
12
|
*
|
package/dist/strings/index.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ====================================================
|
|
3
|
+
* Rzl Utils-JS.
|
|
4
|
+
* ----------------------------------------------------
|
|
5
|
+
* Version: 3.5.2.
|
|
6
|
+
* Author: Rizalvin Dwiky.
|
|
7
|
+
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
+
* ====================================================
|
|
9
|
+
*/
|
|
1
10
|
export { capitalizeFirst, capitalizeWords, getInitialsName, replaceAt, stripHtmlTags } from '../chunk-JEQEF5WD.js';
|
|
2
11
|
export { normalizeString } from '../chunk-IZPBKKPO.js';
|
|
3
12
|
export { normalizeSpaces } from '../chunk-T2T7K3KR.js';
|
package/dist/tailwind/index.cjs
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ====================================================
|
|
3
|
+
* Rzl Utils-JS.
|
|
4
|
+
* ----------------------------------------------------
|
|
5
|
+
* Version: 3.5.2.
|
|
6
|
+
* Author: Rizalvin Dwiky.
|
|
7
|
+
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
+
* ====================================================
|
|
9
|
+
*/
|
|
1
10
|
'use strict';
|
|
2
11
|
|
|
3
12
|
var chunk2WA36TC5_cjs = require('../chunk-2WA36TC5.cjs');
|
|
4
13
|
require('../chunk-6JFZL7YE.cjs');
|
|
5
|
-
require('../chunk-PZQ6I4JJ.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
14
|
+
require('../chunk-PZQ6I4JJ.cjs');
|
|
15
|
+
|
|
9
16
|
Object.defineProperty(exports, "cnV3", {
|
|
10
17
|
enumerable: true,
|
|
11
18
|
get: function () { return chunk2WA36TC5_cjs.cnV3; }
|
package/dist/tailwind/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ====================================================
|
|
3
|
+
* Rzl Utils-JS.
|
|
4
|
+
* ----------------------------------------------------
|
|
5
|
+
* Version: 3.5.2.
|
|
6
|
+
* Author: Rizalvin Dwiky.
|
|
7
|
+
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
+
* ====================================================
|
|
9
|
+
*/
|
|
1
10
|
import{ClassValue}from'clsx';import{Config}from'tailwindcss';import{ClassNameValue as ClassNameValue$1,ConfigExtension as ConfigExtension$1}from'tailwind-merge-v3';import{ClassNameValue,ConfigExtension}from'tailwind-merge-v4';type ClassesValue=ClassValue[];
|
|
2
11
|
/** -------------------------------------------------------------
|
|
3
12
|
* * ***Default `cnV3` utility (Tailwind v3).***
|
package/dist/tailwind/index.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ====================================================
|
|
3
|
+
* Rzl Utils-JS.
|
|
4
|
+
* ----------------------------------------------------
|
|
5
|
+
* Version: 3.5.2.
|
|
6
|
+
* Author: Rizalvin Dwiky.
|
|
7
|
+
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
+
* ====================================================
|
|
9
|
+
*/
|
|
1
10
|
export { cnV3, cnV4, customCnV3, customCnV4, shouldForwardProp, twMergeDefaultV3, twMergeDefaultV4 } from '../chunk-CDCERIZ2.js';
|
|
2
11
|
import '../chunk-CKTLUNWX.js';
|
|
3
12
|
import '../chunk-CMW2TBOQ.js';
|
package/dist/urls/index.cjs
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ====================================================
|
|
3
|
+
* Rzl Utils-JS.
|
|
4
|
+
* ----------------------------------------------------
|
|
5
|
+
* Version: 3.5.2.
|
|
6
|
+
* Author: Rizalvin Dwiky.
|
|
7
|
+
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
+
* ====================================================
|
|
9
|
+
*/
|
|
1
10
|
'use strict';
|
|
2
11
|
|
|
3
12
|
var chunkDWF2R5GD_cjs = require('../chunk-DWF2R5GD.cjs');
|
|
@@ -14,10 +23,8 @@ require('../chunk-ZETAZZLD.cjs');
|
|
|
14
23
|
require('../chunk-6JFZL7YE.cjs');
|
|
15
24
|
require('../chunk-T7PU2V7X.cjs');
|
|
16
25
|
require('../chunk-UDA26MCU.cjs');
|
|
17
|
-
require('../chunk-PZQ6I4JJ.cjs');
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
require('../chunk-PZQ6I4JJ.cjs');
|
|
27
|
+
|
|
21
28
|
Object.defineProperty(exports, "constructURL", {
|
|
22
29
|
enumerable: true,
|
|
23
30
|
get: function () { return chunkDWF2R5GD_cjs.constructURL; }
|
package/dist/urls/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ====================================================
|
|
3
|
+
* Rzl Utils-JS.
|
|
4
|
+
* ----------------------------------------------------
|
|
5
|
+
* Version: 3.5.2.
|
|
6
|
+
* Author: Rizalvin Dwiky.
|
|
7
|
+
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
+
* ====================================================
|
|
9
|
+
*/
|
|
1
10
|
/** ----------------------------------------------------------
|
|
2
11
|
* * ***Type-Utility: `QueryParamPairs`.***
|
|
3
12
|
* ----------------------------------------------------------
|
package/dist/urls/index.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ====================================================
|
|
3
|
+
* Rzl Utils-JS.
|
|
4
|
+
* ----------------------------------------------------
|
|
5
|
+
* Version: 3.5.2.
|
|
6
|
+
* Author: Rizalvin Dwiky.
|
|
7
|
+
* Repository: https://github.com/rzl-zone/utils-js.
|
|
8
|
+
* ====================================================
|
|
9
|
+
*/
|
|
1
10
|
export { constructURL, extractURLs, getFirstPrefixPathname, getPrefixPathname } from '../chunk-SBFNXGTJ.js';
|
|
2
11
|
import '../chunk-ONZFBJVW.js';
|
|
3
12
|
import '../chunk-IZPBKKPO.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rzl-zone/utils-js",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"engineStrict": true,
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"url": "https://github.com/rzl-zone/utils-js/issues"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@rzl-zone/ts-types-plus": "
|
|
21
|
+
"@rzl-zone/ts-types-plus": "latest",
|
|
22
22
|
"clsx": "^2.1.1",
|
|
23
23
|
"date-fns": "^4.1.0",
|
|
24
24
|
"libphonenumber-js": "^1.12.17",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"tsc-alias": "^1.8.16",
|
|
44
44
|
"tsup": "^8.5.0",
|
|
45
45
|
"tsx": "^4.20.3",
|
|
46
|
+
"type-fest": "^5.0.1",
|
|
46
47
|
"typescript": "^5.9.2",
|
|
47
48
|
"typescript-eslint": "^8.41.0",
|
|
48
49
|
"vitest": "^3.2.4"
|
|
@@ -63,193 +64,74 @@
|
|
|
63
64
|
"types": "./dist/index.d.ts"
|
|
64
65
|
},
|
|
65
66
|
"./assertions": {
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
"require": {
|
|
71
|
-
"types": "./dist/assertions/index.d.ts",
|
|
72
|
-
"default": "./dist/assertions/index.cjs"
|
|
73
|
-
}
|
|
67
|
+
"types": "./dist/assertions/index.d.ts",
|
|
68
|
+
"import": "./dist/assertions/index.js",
|
|
69
|
+
"require": "./dist/assertions/index.cjs"
|
|
74
70
|
},
|
|
75
71
|
"./conversions": {
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
"require": {
|
|
81
|
-
"types": "./dist/conversions/index.d.ts",
|
|
82
|
-
"default": "./dist/conversions/index.cjs"
|
|
83
|
-
}
|
|
72
|
+
"types": "./dist/conversions/index.d.ts",
|
|
73
|
+
"import": "./dist/conversions/index.js",
|
|
74
|
+
"require": "./dist/conversions/index.cjs"
|
|
84
75
|
},
|
|
85
76
|
"./events": {
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
"require": {
|
|
91
|
-
"types": "./dist/events/index.d.ts",
|
|
92
|
-
"default": "./dist/events/index.cjs"
|
|
93
|
-
}
|
|
77
|
+
"types": "./dist/events/index.d.ts",
|
|
78
|
+
"import": "./dist/events/index.js",
|
|
79
|
+
"require": "./dist/events/index.cjs"
|
|
94
80
|
},
|
|
95
81
|
"./formatters": {
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
"require": {
|
|
101
|
-
"types": "./dist/formatters/index.d.ts",
|
|
102
|
-
"default": "./dist/formatters/index.cjs"
|
|
103
|
-
}
|
|
82
|
+
"types": "./dist/formatters/index.d.ts",
|
|
83
|
+
"import": "./dist/formatters/index.js",
|
|
84
|
+
"require": "./dist/formatters/index.cjs"
|
|
104
85
|
},
|
|
105
86
|
"./generators": {
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
"require": {
|
|
111
|
-
"types": "./dist/generators/index.d.ts",
|
|
112
|
-
"default": "./dist/generators/index.cjs"
|
|
113
|
-
}
|
|
87
|
+
"types": "./dist/generators/index.d.ts",
|
|
88
|
+
"import": "./dist/generators/index.js",
|
|
89
|
+
"require": "./dist/generators/index.cjs"
|
|
114
90
|
},
|
|
115
91
|
"./next": {
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
},
|
|
120
|
-
"require": {
|
|
121
|
-
"types": "./dist/next/index.d.ts",
|
|
122
|
-
"default": "./dist/next/index.cjs"
|
|
123
|
-
}
|
|
92
|
+
"types": "./dist/next/index.d.ts",
|
|
93
|
+
"import": "./dist/next/index.js",
|
|
94
|
+
"require": "./dist/next/index.cjs"
|
|
124
95
|
},
|
|
125
96
|
"./next/server": {
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
"require": {
|
|
131
|
-
"types": "./dist/next/server/index.d.ts",
|
|
132
|
-
"default": "./dist/next/server/index.cjs"
|
|
133
|
-
}
|
|
97
|
+
"types": "./dist/next/server/index.d.ts",
|
|
98
|
+
"import": "./dist/next/server/index.js",
|
|
99
|
+
"require": "./dist/next/server/index.cjs"
|
|
134
100
|
},
|
|
135
101
|
"./operations": {
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
"require": {
|
|
141
|
-
"types": "./dist/operations/index.d.ts",
|
|
142
|
-
"default": "./dist/operations/index.cjs"
|
|
143
|
-
}
|
|
102
|
+
"types": "./dist/operations/index.d.ts",
|
|
103
|
+
"import": "./dist/operations/index.js",
|
|
104
|
+
"require": "./dist/operations/index.cjs"
|
|
144
105
|
},
|
|
145
106
|
"./parsers": {
|
|
146
|
-
"
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
},
|
|
150
|
-
"require": {
|
|
151
|
-
"types": "./dist/parsers/index.d.ts",
|
|
152
|
-
"default": "./dist/parsers/index.cjs"
|
|
153
|
-
}
|
|
107
|
+
"types": "./dist/parsers/index.d.ts",
|
|
108
|
+
"import": "./dist/parsers/index.js",
|
|
109
|
+
"require": "./dist/parsers/index.cjs"
|
|
154
110
|
},
|
|
155
111
|
"./predicates": {
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
},
|
|
160
|
-
"require": {
|
|
161
|
-
"types": "./dist/predicates/index.d.ts",
|
|
162
|
-
"default": "./dist/predicates/index.cjs"
|
|
163
|
-
}
|
|
112
|
+
"types": "./dist/predicates/index.d.ts",
|
|
113
|
+
"import": "./dist/predicates/index.js",
|
|
114
|
+
"require": "./dist/predicates/index.cjs"
|
|
164
115
|
},
|
|
165
116
|
"./promises": {
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
},
|
|
170
|
-
"require": {
|
|
171
|
-
"types": "./dist/promises/index.d.ts",
|
|
172
|
-
"default": "./dist/promises/index.cjs"
|
|
173
|
-
}
|
|
117
|
+
"types": "./dist/promises/index.d.ts",
|
|
118
|
+
"import": "./dist/promises/index.js",
|
|
119
|
+
"require": "./dist/promises/index.cjs"
|
|
174
120
|
},
|
|
175
121
|
"./strings": {
|
|
176
|
-
"
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
},
|
|
180
|
-
"require": {
|
|
181
|
-
"types": "./dist/strings/index.d.ts",
|
|
182
|
-
"default": "./dist/strings/index.cjs"
|
|
183
|
-
}
|
|
122
|
+
"types": "./dist/strings/index.d.ts",
|
|
123
|
+
"import": "./dist/strings/index.js",
|
|
124
|
+
"require": "./dist/strings/index.cjs"
|
|
184
125
|
},
|
|
185
126
|
"./tailwind": {
|
|
186
|
-
"
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
},
|
|
190
|
-
"require": {
|
|
191
|
-
"types": "./dist/tailwind/index.d.ts",
|
|
192
|
-
"default": "./dist/tailwind/index.cjs"
|
|
193
|
-
}
|
|
127
|
+
"types": "./dist/tailwind/index.d.ts",
|
|
128
|
+
"import": "./dist/tailwind/index.js",
|
|
129
|
+
"require": "./dist/tailwind/index.cjs"
|
|
194
130
|
},
|
|
195
131
|
"./urls": {
|
|
196
|
-
"
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
"require": {
|
|
201
|
-
"types": "./dist/urls/index.d.ts",
|
|
202
|
-
"default": "./dist/urls/index.cjs"
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
"typesVersions": {
|
|
207
|
-
"*": {
|
|
208
|
-
".": [
|
|
209
|
-
"./dist/index.d.ts"
|
|
210
|
-
],
|
|
211
|
-
"assertions": [
|
|
212
|
-
"dist/assertions/index.d.ts"
|
|
213
|
-
],
|
|
214
|
-
"conversions": [
|
|
215
|
-
"dist/conversions/index.d.ts"
|
|
216
|
-
],
|
|
217
|
-
"events": [
|
|
218
|
-
"dist/events/index.d.ts"
|
|
219
|
-
],
|
|
220
|
-
"formatters": [
|
|
221
|
-
"dist/formatters/index.d.ts"
|
|
222
|
-
],
|
|
223
|
-
"generators": [
|
|
224
|
-
"dist/generators/index.d.ts"
|
|
225
|
-
],
|
|
226
|
-
"next": [
|
|
227
|
-
"dist/next/index.d.ts"
|
|
228
|
-
],
|
|
229
|
-
"next/server": [
|
|
230
|
-
"dist/next/server/index.d.ts"
|
|
231
|
-
],
|
|
232
|
-
"operations": [
|
|
233
|
-
"dist/operations/index.d.ts"
|
|
234
|
-
],
|
|
235
|
-
"parsers": [
|
|
236
|
-
"dist/parsers/index.d.ts"
|
|
237
|
-
],
|
|
238
|
-
"predicates": [
|
|
239
|
-
"dist/predicates/index.d.ts"
|
|
240
|
-
],
|
|
241
|
-
"promises": [
|
|
242
|
-
"dist/promises/index.d.ts"
|
|
243
|
-
],
|
|
244
|
-
"strings": [
|
|
245
|
-
"dist/strings/index.d.ts"
|
|
246
|
-
],
|
|
247
|
-
"tailwind": [
|
|
248
|
-
"dist/tailwind/index.d.ts"
|
|
249
|
-
],
|
|
250
|
-
"urls": [
|
|
251
|
-
"dist/urls/index.d.ts"
|
|
252
|
-
]
|
|
132
|
+
"types": "./dist/urls/index.d.ts",
|
|
133
|
+
"import": "./dist/urls/index.js",
|
|
134
|
+
"require": "./dist/urls/index.cjs"
|
|
253
135
|
}
|
|
254
136
|
},
|
|
255
137
|
"files": [
|
|
@@ -283,15 +165,17 @@
|
|
|
283
165
|
"barrel:generate": "npx barrelsby --config barrelsby.config.json",
|
|
284
166
|
"barrel:remove-comment-dist": "tsx scripts/removeBarrelsbyComment.ts",
|
|
285
167
|
"barrel": "npm run barrel:generate && npm run barrel:generate && npm run barrel:remove-comment-dist",
|
|
168
|
+
"inject:banner": "tsx scripts/injectBanner",
|
|
169
|
+
"normalize:new-lines": "tsx scripts/normalizeNewLineDistFiles",
|
|
286
170
|
"clean-dist": "del-cli \"dist/*\"",
|
|
287
171
|
"clean-dist:types-cts": "del-cli \"dist/**/*.d.{cts,mts}\"",
|
|
288
172
|
"clean-dist:js-comments": "tsx scripts/cleanDistJsComments.ts",
|
|
289
173
|
"delete-dist:index-runtime": "del-cli \"dist/index.{js,js.map,cjs,cjs.map}\" \"dist/index.d.{ts,cts,mts,esm}\"",
|
|
290
|
-
"minify:dist": "tsx scripts/
|
|
174
|
+
"minify:dts-dist": "tsx scripts/minifyDtsDist.ts",
|
|
291
175
|
"build:types-dts": "dts-bundle-generator --config dts-config.cjs --silent --external-imports next",
|
|
292
176
|
"generate:reference-index": "tsx scripts/generateReferenceIndex.ts",
|
|
293
|
-
"postbuild": "
|
|
294
|
-
"build": "npm run clean-dist && npm run barrel && tsup && npm run minify:dist && npm run
|
|
177
|
+
"postbuild": "",
|
|
178
|
+
"build": "npm run clean-dist && npm run barrel && tsup && npm run minify:dts-dist && npm run clean-dist:js-comments && npm run normalize:new-lines && npm run clean-dist:types-cts && npm run delete-dist:index-runtime && npm run generate:reference-index && npm run inject:banner",
|
|
295
179
|
"format": "prettier --check .",
|
|
296
180
|
"lint": "eslint . --ext .ts,.js",
|
|
297
181
|
"lint:fix": "eslint . --ext .ts,.js --fix",
|