@fangzhongya/utils 0.0.6 → 0.0.7-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/basic/array/asyncMergeArray.cjs +7 -0
  2. package/dist/basic/array/asyncMergeArray.d.ts +9 -0
  3. package/dist/basic/array/asyncMergeArray.js +7 -0
  4. package/dist/basic/array/duplicateRemoval.cjs +7 -0
  5. package/dist/basic/array/duplicateRemoval.d.ts +9 -0
  6. package/dist/basic/array/duplicateRemoval.js +7 -0
  7. package/dist/basic/array/index.cjs +10 -4
  8. package/dist/basic/array/index.d.ts +3 -1
  9. package/dist/basic/array/index.js +12 -6
  10. package/dist/basic/array/isArray.d.ts +2 -1
  11. package/dist/basic/array/toggleArray.cjs +2 -4
  12. package/dist/basic/array/toggleArray.d.ts +7 -14
  13. package/dist/basic/array/toggleArray.js +1 -3
  14. package/dist/basic/index.cjs +17 -10
  15. package/dist/basic/index.d.ts +13 -6
  16. package/dist/basic/index.js +16 -9
  17. package/dist/basic/object/index.d.ts +1 -1
  18. package/dist/basic/object/isObject.d.ts +2 -1
  19. package/dist/basic/object/mergeObject.d.ts +5 -5
  20. package/dist/basic/object/unmergeObject.d.ts +6 -6
  21. package/dist/basic/string/appearNum.cjs +7 -0
  22. package/dist/basic/string/appearNum.d.ts +9 -0
  23. package/dist/basic/string/appearNum.js +7 -0
  24. package/dist/basic/string/appearNumSeat.cjs +7 -0
  25. package/dist/basic/string/appearNumSeat.d.ts +10 -0
  26. package/dist/basic/string/appearNumSeat.js +7 -0
  27. package/dist/basic/string/firstLower.cjs +7 -0
  28. package/dist/basic/string/firstLower.d.ts +8 -0
  29. package/dist/basic/string/firstLower.js +7 -0
  30. package/dist/basic/string/firstUpper.cjs +7 -0
  31. package/dist/basic/string/firstUpper.d.ts +8 -0
  32. package/dist/basic/string/firstUpper.js +7 -0
  33. package/dist/basic/string/getStartSame.cjs +7 -0
  34. package/dist/basic/string/getStartSame.d.ts +9 -0
  35. package/dist/basic/string/getStartSame.js +7 -0
  36. package/dist/basic/string/getStartSames.cjs +7 -0
  37. package/dist/basic/string/getStartSames.d.ts +9 -0
  38. package/dist/basic/string/getStartSames.js +7 -0
  39. package/dist/basic/string/index.cjs +19 -3
  40. package/dist/basic/string/index.d.ts +6 -1
  41. package/dist/basic/string/index.js +22 -6
  42. package/dist/chunk-27WA7EI2.cjs +15 -0
  43. package/dist/chunk-2BY5RQHU.cjs +23 -0
  44. package/dist/chunk-2W7EPKCY.js +32 -0
  45. package/dist/chunk-3ERQHPTD.cjs +13 -0
  46. package/dist/chunk-3HXQ7TGV.cjs +14 -0
  47. package/dist/{chunk-YBUHXX5U.cjs → chunk-4ALAS6RC.cjs} +5 -5
  48. package/dist/chunk-4OBNLDTJ.js +8 -0
  49. package/dist/chunk-5UV36ZIW.cjs +21 -0
  50. package/dist/chunk-6GMDGF3F.js +36 -0
  51. package/dist/chunk-6RIGEV6G.cjs +25 -0
  52. package/dist/chunk-7DTHADVK.js +18 -0
  53. package/dist/{chunk-ED5PJTG5.js → chunk-7ZORBK43.js} +11 -5
  54. package/dist/chunk-A276ZDLP.js +19 -0
  55. package/dist/chunk-AM67P3W7.js +15 -0
  56. package/dist/chunk-AS3WKQP7.js +21 -0
  57. package/dist/chunk-ASN2EUM7.cjs +36 -0
  58. package/dist/chunk-AWC672JW.js +34 -0
  59. package/dist/chunk-AXMOZZCM.cjs +22 -0
  60. package/dist/chunk-BDJORZRC.js +13 -0
  61. package/dist/chunk-BWNLZJJG.js +21 -0
  62. package/dist/chunk-CBQE3I5S.cjs +36 -0
  63. package/dist/chunk-DILKJQYV.cjs +9 -0
  64. package/dist/chunk-DMZP4RPN.js +23 -0
  65. package/dist/chunk-EWJJKQIO.js +8 -0
  66. package/dist/chunk-GD3OA7GU.cjs +18 -0
  67. package/dist/{chunk-75TBDXR6.js → chunk-GHEA6X2Q.js} +5 -5
  68. package/dist/chunk-GOJN3OQ4.js +22 -0
  69. package/dist/chunk-H2LFD53G.js +36 -0
  70. package/dist/{chunk-JNC5JEFB.cjs → chunk-IGL4Y66V.cjs} +10 -4
  71. package/dist/chunk-IRGCP7KH.js +23 -0
  72. package/dist/chunk-IRKWYW5B.cjs +34 -0
  73. package/dist/{chunk-DEENZC5X.js → chunk-J7CICTHH.js} +3 -11
  74. package/dist/chunk-J7S3KBHL.cjs +18 -0
  75. package/dist/chunk-JLEIVV37.cjs +32 -0
  76. package/dist/chunk-JR6ZN6QD.cjs +23 -0
  77. package/dist/{chunk-BEQYORII.cjs → chunk-LTVXRDTD.cjs} +3 -11
  78. package/dist/chunk-MXLYIZIX.js +38 -0
  79. package/dist/chunk-OQL4GIEJ.cjs +8 -0
  80. package/dist/chunk-P3YVE7JK.cjs +21 -0
  81. package/dist/chunk-PAJDTMC5.cjs +38 -0
  82. package/dist/chunk-PW7RP73J.cjs +19 -0
  83. package/dist/chunk-S6JRKYPY.js +23 -0
  84. package/dist/chunk-SNABGVNO.js +14 -0
  85. package/dist/chunk-SYXWQKOO.cjs +28 -0
  86. package/dist/chunk-T22I7TJQ.cjs +25 -0
  87. package/dist/chunk-T2QKEABG.js +25 -0
  88. package/dist/chunk-UEVMS6QD.cjs +8 -0
  89. package/dist/chunk-VNVG4BJ4.cjs +23 -0
  90. package/dist/chunk-WI55O3IV.cjs +16 -0
  91. package/dist/chunk-XBZX5YZW.js +15 -0
  92. package/dist/chunk-XCDKXZFR.js +16 -0
  93. package/dist/chunk-XHR36FJK.cjs +15 -0
  94. package/dist/chunk-XQB2HUHZ.js +23 -0
  95. package/dist/chunk-YGJOBIEO.cjs +23 -0
  96. package/dist/chunk-YNOFNHEK.js +23 -0
  97. package/dist/chunk-ZEXHP7HI.js +9 -0
  98. package/dist/chunk-ZQX2TYQB.js +28 -0
  99. package/dist/chunk-ZRZ5HATA.js +25 -0
  100. package/dist/chunk-ZVBCHJA5.js +18 -0
  101. package/dist/chunk-ZZEFL2TE.cjs +23 -0
  102. package/dist/index-2eb19d38.d.ts +27 -0
  103. package/dist/{index-8473d4b5.d.ts → index-3062a21e.d.ts} +1 -1
  104. package/dist/index-445fe401.d.ts +19 -0
  105. package/dist/index-7563997b.d.ts +25 -0
  106. package/dist/index-ab13c58f.d.ts +19 -0
  107. package/dist/index-bbc4ee5e.d.ts +13 -0
  108. package/dist/index-f9cc2ca2.d.ts +22 -0
  109. package/dist/index.cjs +43 -9
  110. package/dist/index.d.ts +32 -7
  111. package/dist/index.js +44 -10
  112. package/dist/judge/index.cjs +20 -0
  113. package/dist/judge/index.d.ts +4 -0
  114. package/dist/judge/index.js +20 -0
  115. package/dist/judge/matchs.cjs +10 -0
  116. package/dist/judge/matchs.d.ts +10 -0
  117. package/dist/judge/matchs.js +10 -0
  118. package/dist/judge/matchsEnd.cjs +7 -0
  119. package/dist/judge/matchsEnd.d.ts +9 -0
  120. package/dist/judge/matchsEnd.js +7 -0
  121. package/dist/judge/matchsStart.cjs +7 -0
  122. package/dist/judge/matchsStart.d.ts +9 -0
  123. package/dist/judge/matchsStart.js +7 -0
  124. package/dist/judge/matchsWhole.cjs +7 -0
  125. package/dist/judge/matchsWhole.d.ts +9 -0
  126. package/dist/judge/matchsWhole.js +7 -0
  127. package/dist/log/styleLog.d.ts +22 -0
  128. package/dist/name/getComponentNames.cjs +12 -0
  129. package/dist/name/getComponentNames.d.ts +8 -0
  130. package/dist/name/getComponentNames.js +12 -0
  131. package/dist/name/getNames.cjs +12 -0
  132. package/dist/name/getNames.d.ts +8 -0
  133. package/dist/name/getNames.js +12 -0
  134. package/dist/name/humpToLine.cjs +7 -0
  135. package/dist/name/humpToLine.d.ts +8 -0
  136. package/dist/name/humpToLine.js +7 -0
  137. package/dist/name/index.cjs +26 -0
  138. package/dist/name/index.d.ts +5 -0
  139. package/dist/name/index.js +26 -0
  140. package/dist/name/lineToLargeHump.cjs +8 -0
  141. package/dist/name/lineToLargeHump.d.ts +8 -0
  142. package/dist/name/lineToLargeHump.js +8 -0
  143. package/dist/name/lineToSmallHump.cjs +10 -0
  144. package/dist/name/lineToSmallHump.d.ts +8 -0
  145. package/dist/name/lineToSmallHump.js +10 -0
  146. package/dist/urls/getImportUrl.cjs +8 -0
  147. package/dist/urls/getImportUrl.d.ts +9 -0
  148. package/dist/urls/getImportUrl.js +8 -0
  149. package/dist/urls/getImportUrlSuffix.cjs +9 -0
  150. package/dist/urls/getImportUrlSuffix.d.ts +9 -0
  151. package/dist/urls/getImportUrlSuffix.js +9 -0
  152. package/dist/urls/getReplaceUrl.cjs +10 -0
  153. package/dist/urls/getReplaceUrl.d.ts +9 -0
  154. package/dist/urls/getReplaceUrl.js +10 -0
  155. package/dist/urls/getUrlCatalogue.cjs +7 -0
  156. package/dist/urls/getUrlCatalogue.d.ts +8 -0
  157. package/dist/urls/getUrlCatalogue.js +7 -0
  158. package/dist/urls/getUrlCatalogueLast.cjs +7 -0
  159. package/dist/urls/getUrlCatalogueLast.d.ts +8 -0
  160. package/dist/urls/getUrlCatalogueLast.js +7 -0
  161. package/dist/urls/getUrlCatalogueObj.cjs +7 -0
  162. package/dist/urls/getUrlCatalogueObj.d.ts +16 -0
  163. package/dist/urls/getUrlCatalogueObj.js +7 -0
  164. package/dist/urls/index.cjs +31 -0
  165. package/dist/urls/index.d.ts +6 -0
  166. package/dist/urls/index.js +31 -0
  167. package/package.json +158 -25
  168. package/dist/basic/string/index2.cjs +0 -11
  169. package/dist/basic/string/index2.d.ts +0 -20
  170. package/dist/basic/string/index2.js +0 -11
  171. package/dist/chunk-4PBAZ73I.cjs +0 -20
  172. package/dist/chunk-BL4KF5G4.cjs +0 -25
  173. package/dist/chunk-OX5EXWS2.js +0 -25
  174. package/dist/chunk-YYNHNLVW.js +0 -20
  175. package/dist/index-5691335a.d.ts +0 -14
  176. package/dist/index-56b2efa3.d.ts +0 -13
  177. package/dist/index-6be6487f.d.ts +0 -15
@@ -0,0 +1,23 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/judge/matchsStart.ts
2
+ function matchsStart(key, matchs) {
3
+ if (matchs && matchs.length > 0) {
4
+ for (const value of matchs) {
5
+ if (typeof value == "string") {
6
+ if (key.startsWith(value)) {
7
+ return true;
8
+ }
9
+ } else {
10
+ if (value.test(key)) {
11
+ return true;
12
+ }
13
+ }
14
+ }
15
+ return false;
16
+ } else {
17
+ return true;
18
+ }
19
+ }
20
+
21
+
22
+
23
+ exports.matchsStart = matchsStart;
@@ -0,0 +1,27 @@
1
+ import { getImportUrl } from './urls/getImportUrl.js';
2
+ import { getReplaceUrl } from './urls/getReplaceUrl.js';
3
+ import { getImportUrlSuffix } from './urls/getImportUrlSuffix.js';
4
+ import { getUrlCatalogue } from './urls/getUrlCatalogue.js';
5
+ import { getUrlCatalogueLast } from './urls/getUrlCatalogueLast.js';
6
+ import { UrlCatalogue, getUrlCatalogueObj } from './urls/getUrlCatalogueObj.js';
7
+
8
+ declare const index_UrlCatalogue: typeof UrlCatalogue;
9
+ declare const index_getImportUrl: typeof getImportUrl;
10
+ declare const index_getImportUrlSuffix: typeof getImportUrlSuffix;
11
+ declare const index_getReplaceUrl: typeof getReplaceUrl;
12
+ declare const index_getUrlCatalogue: typeof getUrlCatalogue;
13
+ declare const index_getUrlCatalogueLast: typeof getUrlCatalogueLast;
14
+ declare const index_getUrlCatalogueObj: typeof getUrlCatalogueObj;
15
+ declare namespace index {
16
+ export {
17
+ index_UrlCatalogue as UrlCatalogue,
18
+ index_getImportUrl as getImportUrl,
19
+ index_getImportUrlSuffix as getImportUrlSuffix,
20
+ index_getReplaceUrl as getReplaceUrl,
21
+ index_getUrlCatalogue as getUrlCatalogue,
22
+ index_getUrlCatalogueLast as getUrlCatalogueLast,
23
+ index_getUrlCatalogueObj as getUrlCatalogueObj,
24
+ };
25
+ }
26
+
27
+ export { index as i };
@@ -1,5 +1,5 @@
1
- import { mergeObject } from './basic/object/mergeObject.js';
2
1
  import { isObject } from './basic/object/isObject.js';
2
+ import { mergeObject } from './basic/object/mergeObject.js';
3
3
  import { unmergeObject } from './basic/object/unmergeObject.js';
4
4
 
5
5
  declare const index_isObject: typeof isObject;
@@ -0,0 +1,19 @@
1
+ import { matchs } from './judge/matchs.js';
2
+ import { matchsEnd } from './judge/matchsEnd.js';
3
+ import { matchsStart } from './judge/matchsStart.js';
4
+ import { matchsWhole } from './judge/matchsWhole.js';
5
+
6
+ declare const index_matchs: typeof matchs;
7
+ declare const index_matchsEnd: typeof matchsEnd;
8
+ declare const index_matchsStart: typeof matchsStart;
9
+ declare const index_matchsWhole: typeof matchsWhole;
10
+ declare namespace index {
11
+ export {
12
+ index_matchs as matchs,
13
+ index_matchsEnd as matchsEnd,
14
+ index_matchsStart as matchsStart,
15
+ index_matchsWhole as matchsWhole,
16
+ };
17
+ }
18
+
19
+ export { index as i };
@@ -0,0 +1,25 @@
1
+ import { appearNumSeat } from './basic/string/appearNumSeat.js';
2
+ import { appearNum } from './basic/string/appearNum.js';
3
+ import { firstLower } from './basic/string/firstLower.js';
4
+ import { firstUpper } from './basic/string/firstUpper.js';
5
+ import { getStartSame } from './basic/string/getStartSame.js';
6
+ import { getStartSames } from './basic/string/getStartSames.js';
7
+
8
+ declare const index_appearNum: typeof appearNum;
9
+ declare const index_appearNumSeat: typeof appearNumSeat;
10
+ declare const index_firstLower: typeof firstLower;
11
+ declare const index_firstUpper: typeof firstUpper;
12
+ declare const index_getStartSame: typeof getStartSame;
13
+ declare const index_getStartSames: typeof getStartSames;
14
+ declare namespace index {
15
+ export {
16
+ index_appearNum as appearNum,
17
+ index_appearNumSeat as appearNumSeat,
18
+ index_firstLower as firstLower,
19
+ index_firstUpper as firstUpper,
20
+ index_getStartSame as getStartSame,
21
+ index_getStartSames as getStartSames,
22
+ };
23
+ }
24
+
25
+ export { index as i };
@@ -0,0 +1,19 @@
1
+ import { asyncMergeArray } from './basic/array/asyncMergeArray.js';
2
+ import { duplicateRemoval } from './basic/array/duplicateRemoval.js';
3
+ import { toggleArray } from './basic/array/toggleArray.js';
4
+ import { isArray } from './basic/array/isArray.js';
5
+
6
+ declare const index_asyncMergeArray: typeof asyncMergeArray;
7
+ declare const index_duplicateRemoval: typeof duplicateRemoval;
8
+ declare const index_isArray: typeof isArray;
9
+ declare const index_toggleArray: typeof toggleArray;
10
+ declare namespace index {
11
+ export {
12
+ index_asyncMergeArray as asyncMergeArray,
13
+ index_duplicateRemoval as duplicateRemoval,
14
+ index_isArray as isArray,
15
+ index_toggleArray as toggleArray,
16
+ };
17
+ }
18
+
19
+ export { index as i };
@@ -0,0 +1,13 @@
1
+ import { i as index$1 } from './index-ab13c58f.js';
2
+ import { i as index$2 } from './index-3062a21e.js';
3
+ import { i as index$3 } from './index-7563997b.js';
4
+
5
+ declare namespace index {
6
+ export {
7
+ index$1 as array,
8
+ index$2 as object,
9
+ index$3 as string,
10
+ };
11
+ }
12
+
13
+ export { index as i };
@@ -0,0 +1,22 @@
1
+ import { getNames } from './name/getNames.js';
2
+ import { getComponentNames } from './name/getComponentNames.js';
3
+ import { humpToLine } from './name/humpToLine.js';
4
+ import { lineToLargeHump } from './name/lineToLargeHump.js';
5
+ import { lineToSmallHump } from './name/lineToSmallHump.js';
6
+
7
+ declare const index_getComponentNames: typeof getComponentNames;
8
+ declare const index_getNames: typeof getNames;
9
+ declare const index_humpToLine: typeof humpToLine;
10
+ declare const index_lineToLargeHump: typeof lineToLargeHump;
11
+ declare const index_lineToSmallHump: typeof lineToSmallHump;
12
+ declare namespace index {
13
+ export {
14
+ index_getComponentNames as getComponentNames,
15
+ index_getNames as getNames,
16
+ index_humpToLine as humpToLine,
17
+ index_lineToLargeHump as lineToLargeHump,
18
+ index_lineToSmallHump as lineToSmallHump,
19
+ };
20
+ }
21
+
22
+ export { index as i };
package/dist/index.cjs CHANGED
@@ -1,25 +1,59 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYBUHXX5Ucjs = require('./chunk-YBUHXX5U.cjs');
3
+ var _chunkCBQE3I5Scjs = require('./chunk-CBQE3I5S.cjs');
4
+ require('./chunk-27WA7EI2.cjs');
5
+ require('./chunk-IRKWYW5B.cjs');
6
+ require('./chunk-6RIGEV6G.cjs');
7
+ require('./chunk-DILKJQYV.cjs');
8
+ require('./chunk-3ERQHPTD.cjs');
9
+ require('./chunk-P3YVE7JK.cjs');
10
+
11
+
12
+ var _chunkJ7SPTSZMcjs = require('./chunk-J7SPTSZM.cjs');
13
+ require('./chunk-5VQ4EAJZ.cjs');
14
+
15
+
16
+ var _chunkJLEIVV37cjs = require('./chunk-JLEIVV37.cjs');
17
+ require('./chunk-PAJDTMC5.cjs');
18
+ require('./chunk-5UV36ZIW.cjs');
19
+ require('./chunk-LTVXRDTD.cjs');
20
+ require('./chunk-XHR36FJK.cjs');
21
+ require('./chunk-WI55O3IV.cjs');
22
+
23
+
24
+ var _chunk4ALAS6RCcjs = require('./chunk-4ALAS6RC.cjs');
25
+ require('./chunk-ASN2EUM7.cjs');
26
+ require('./chunk-J7S3KBHL.cjs');
27
+ require('./chunk-IGL4Y66V.cjs');
28
+ require('./chunk-GD3OA7GU.cjs');
29
+ require('./chunk-AXMOZZCM.cjs');
4
30
  require('./chunk-R7G5MSGO.cjs');
5
31
  require('./chunk-NRJPCN4J.cjs');
6
32
  require('./chunk-3VYRYSWK.cjs');
7
- require('./chunk-4PBAZ73I.cjs');
8
- require('./chunk-BEQYORII.cjs');
33
+ require('./chunk-3HXQ7TGV.cjs');
34
+ require('./chunk-JR6ZN6QD.cjs');
35
+ require('./chunk-PW7RP73J.cjs');
36
+ require('./chunk-VNVG4BJ4.cjs');
37
+ require('./chunk-UEVMS6QD.cjs');
38
+ require('./chunk-OQL4GIEJ.cjs');
9
39
 
10
40
 
11
41
  var _chunkN6OX2U6Wcjs = require('./chunk-N6OX2U6W.cjs');
12
42
  require('./chunk-XRGLFTH2.cjs');
43
+ require('./chunk-ISHLY7WM.cjs');
13
44
 
14
45
 
15
- var _chunkJ7SPTSZMcjs = require('./chunk-J7SPTSZM.cjs');
16
- require('./chunk-5VQ4EAJZ.cjs');
17
- require('./chunk-JNC5JEFB.cjs');
18
- require('./chunk-ISHLY7WM.cjs');
19
- require('./chunk-BL4KF5G4.cjs');
46
+ var _chunkSYXWQKOOcjs = require('./chunk-SYXWQKOO.cjs');
47
+ require('./chunk-T22I7TJQ.cjs');
48
+ require('./chunk-YGJOBIEO.cjs');
49
+ require('./chunk-ZZEFL2TE.cjs');
50
+ require('./chunk-2BY5RQHU.cjs');
20
51
  require('./chunk-5AZGAKWR.cjs');
21
52
 
22
53
 
23
54
 
24
55
 
25
- exports.basic = _chunkYBUHXX5Ucjs.basic_exports; exports.iss = _chunkN6OX2U6Wcjs.iss_exports; exports.log = _chunkJ7SPTSZMcjs.log_exports;
56
+
57
+
58
+
59
+ exports.basic = _chunk4ALAS6RCcjs.basic_exports; exports.iss = _chunkN6OX2U6Wcjs.iss_exports; exports.judge = _chunkSYXWQKOOcjs.judge_exports; exports.log = _chunkJ7SPTSZMcjs.log_exports; exports.name = _chunkJLEIVV37cjs.name_exports; exports.urls = _chunkCBQE3I5Scjs.urls_exports;
package/dist/index.d.ts CHANGED
@@ -1,13 +1,38 @@
1
- export { i as basic } from './index-56b2efa3.js';
1
+ export { i as basic } from './index-bbc4ee5e.js';
2
2
  export { i as iss } from './index-24872dab.js';
3
+ export { i as judge } from './index-445fe401.js';
3
4
  export { i as log } from './index-ef15848a.js';
4
- import './index-6be6487f.js';
5
- import './basic/array/isArray.js';
5
+ export { i as name } from './index-f9cc2ca2.js';
6
+ export { i as urls } from './index-2eb19d38.js';
7
+ import './index-ab13c58f.js';
8
+ import './basic/array/asyncMergeArray.js';
9
+ import './basic/array/duplicateRemoval.js';
6
10
  import './basic/array/toggleArray.js';
7
- import './index-8473d4b5.js';
8
- import './basic/object/mergeObject.js';
11
+ import './basic/array/isArray.js';
12
+ import './index-3062a21e.js';
9
13
  import './basic/object/isObject.js';
14
+ import './basic/object/mergeObject.js';
10
15
  import './basic/object/unmergeObject.js';
11
- import './index-5691335a.js';
12
- import './basic/string/index2.js';
16
+ import './index-7563997b.js';
17
+ import './basic/string/appearNumSeat.js';
18
+ import './basic/string/appearNum.js';
19
+ import './basic/string/firstLower.js';
20
+ import './basic/string/firstUpper.js';
21
+ import './basic/string/getStartSame.js';
22
+ import './basic/string/getStartSames.js';
23
+ import './judge/matchs.js';
24
+ import './judge/matchsEnd.js';
25
+ import './judge/matchsStart.js';
26
+ import './judge/matchsWhole.js';
13
27
  import './log/styleLog.js';
28
+ import './name/getNames.js';
29
+ import './name/getComponentNames.js';
30
+ import './name/humpToLine.js';
31
+ import './name/lineToLargeHump.js';
32
+ import './name/lineToSmallHump.js';
33
+ import './urls/getImportUrl.js';
34
+ import './urls/getReplaceUrl.js';
35
+ import './urls/getImportUrlSuffix.js';
36
+ import './urls/getUrlCatalogue.js';
37
+ import './urls/getUrlCatalogueLast.js';
38
+ import './urls/getUrlCatalogueObj.js';
package/dist/index.js CHANGED
@@ -1,25 +1,59 @@
1
+ import {
2
+ urls_exports
3
+ } from "./chunk-6GMDGF3F.js";
4
+ import "./chunk-XBZX5YZW.js";
5
+ import "./chunk-AWC672JW.js";
6
+ import "./chunk-ZRZ5HATA.js";
7
+ import "./chunk-ZEXHP7HI.js";
8
+ import "./chunk-BDJORZRC.js";
9
+ import "./chunk-AS3WKQP7.js";
10
+ import {
11
+ log_exports
12
+ } from "./chunk-MPKGL6EV.js";
13
+ import "./chunk-HVQG2IGJ.js";
14
+ import {
15
+ name_exports
16
+ } from "./chunk-2W7EPKCY.js";
17
+ import "./chunk-MXLYIZIX.js";
18
+ import "./chunk-BWNLZJJG.js";
19
+ import "./chunk-J7CICTHH.js";
20
+ import "./chunk-AM67P3W7.js";
21
+ import "./chunk-XCDKXZFR.js";
1
22
  import {
2
23
  basic_exports
3
- } from "./chunk-75TBDXR6.js";
24
+ } from "./chunk-GHEA6X2Q.js";
25
+ import "./chunk-H2LFD53G.js";
26
+ import "./chunk-7DTHADVK.js";
27
+ import "./chunk-7ZORBK43.js";
28
+ import "./chunk-ZVBCHJA5.js";
29
+ import "./chunk-GOJN3OQ4.js";
4
30
  import "./chunk-MAIGGOA4.js";
5
31
  import "./chunk-RD4EP3M5.js";
6
32
  import "./chunk-A6J46LQK.js";
7
- import "./chunk-YYNHNLVW.js";
8
- import "./chunk-DEENZC5X.js";
33
+ import "./chunk-SNABGVNO.js";
34
+ import "./chunk-DMZP4RPN.js";
35
+ import "./chunk-A276ZDLP.js";
36
+ import "./chunk-XQB2HUHZ.js";
37
+ import "./chunk-4OBNLDTJ.js";
38
+ import "./chunk-EWJJKQIO.js";
9
39
  import {
10
40
  iss_exports
11
41
  } from "./chunk-HRECTLZO.js";
12
42
  import "./chunk-WO6JQRTD.js";
13
- import {
14
- log_exports
15
- } from "./chunk-MPKGL6EV.js";
16
- import "./chunk-HVQG2IGJ.js";
17
- import "./chunk-ED5PJTG5.js";
18
43
  import "./chunk-5PX3AFSC.js";
19
- import "./chunk-OX5EXWS2.js";
44
+ import {
45
+ judge_exports
46
+ } from "./chunk-ZQX2TYQB.js";
47
+ import "./chunk-T2QKEABG.js";
48
+ import "./chunk-YNOFNHEK.js";
49
+ import "./chunk-S6JRKYPY.js";
50
+ import "./chunk-IRGCP7KH.js";
20
51
  import "./chunk-UICA3PK6.js";
21
52
  export {
22
53
  basic_exports as basic,
23
54
  iss_exports as iss,
24
- log_exports as log
55
+ judge_exports as judge,
56
+ log_exports as log,
57
+ name_exports as name,
58
+ urls_exports as urls
25
59
  };
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-SYXWQKOO.cjs');
2
+
3
+
4
+ var _chunkT22I7TJQcjs = require('../chunk-T22I7TJQ.cjs');
5
+
6
+
7
+ var _chunkYGJOBIEOcjs = require('../chunk-YGJOBIEO.cjs');
8
+
9
+
10
+ var _chunkZZEFL2TEcjs = require('../chunk-ZZEFL2TE.cjs');
11
+
12
+
13
+ var _chunk2BY5RQHUcjs = require('../chunk-2BY5RQHU.cjs');
14
+ require('../chunk-5AZGAKWR.cjs');
15
+
16
+
17
+
18
+
19
+
20
+ exports.matchs = _chunkT22I7TJQcjs.matchs; exports.matchsEnd = _chunkYGJOBIEOcjs.matchsEnd; exports.matchsStart = _chunkZZEFL2TEcjs.matchsStart; exports.matchsWhole = _chunk2BY5RQHUcjs.matchsWhole;
@@ -0,0 +1,4 @@
1
+ export { matchs } from './matchs.js';
2
+ export { matchsEnd } from './matchsEnd.js';
3
+ export { matchsStart } from './matchsStart.js';
4
+ export { matchsWhole } from './matchsWhole.js';
@@ -0,0 +1,20 @@
1
+ import "../chunk-ZQX2TYQB.js";
2
+ import {
3
+ matchs
4
+ } from "../chunk-T2QKEABG.js";
5
+ import {
6
+ matchsEnd
7
+ } from "../chunk-YNOFNHEK.js";
8
+ import {
9
+ matchsStart
10
+ } from "../chunk-S6JRKYPY.js";
11
+ import {
12
+ matchsWhole
13
+ } from "../chunk-IRGCP7KH.js";
14
+ import "../chunk-UICA3PK6.js";
15
+ export {
16
+ matchs,
17
+ matchsEnd,
18
+ matchsStart,
19
+ matchsWhole
20
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkT22I7TJQcjs = require('../chunk-T22I7TJQ.cjs');
4
+ require('../chunk-YGJOBIEO.cjs');
5
+ require('../chunk-ZZEFL2TE.cjs');
6
+ require('../chunk-2BY5RQHU.cjs');
7
+ require('../chunk-5AZGAKWR.cjs');
8
+
9
+
10
+ exports.matchs = _chunkT22I7TJQcjs.matchs;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 判断字符串是否匹配 总方法
3
+ * @param {string} key 当前字符串
4
+ * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
+ * @param {string} type 类型 'end' 后匹配,'start' 前匹配, 其他是全匹配
6
+ * @returns {boolean} 空数组 true
7
+ */
8
+ declare function matchs(key: string, matchs?: Array<string | RegExp>, type?: string): boolean;
9
+
10
+ export { matchs };
@@ -0,0 +1,10 @@
1
+ import {
2
+ matchs
3
+ } from "../chunk-T2QKEABG.js";
4
+ import "../chunk-YNOFNHEK.js";
5
+ import "../chunk-S6JRKYPY.js";
6
+ import "../chunk-IRGCP7KH.js";
7
+ import "../chunk-UICA3PK6.js";
8
+ export {
9
+ matchs
10
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkYGJOBIEOcjs = require('../chunk-YGJOBIEO.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.matchsEnd = _chunkYGJOBIEOcjs.matchsEnd;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 判断字符串是否匹配 字符串采用后匹配
3
+ * @param {string} key 当前字符串
4
+ * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
+ * @returns {boolean} 空数组 true
6
+ */
7
+ declare function matchsEnd(key: string, matchs?: Array<string | RegExp>): boolean;
8
+
9
+ export { matchsEnd };
@@ -0,0 +1,7 @@
1
+ import {
2
+ matchsEnd
3
+ } from "../chunk-YNOFNHEK.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ matchsEnd
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkZZEFL2TEcjs = require('../chunk-ZZEFL2TE.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.matchsStart = _chunkZZEFL2TEcjs.matchsStart;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 判断字符串是否匹配 字符串采用前匹配
3
+ * @param {string} key 当前字符串
4
+ * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
+ * @returns {boolean} 空数组 true
6
+ */
7
+ declare function matchsStart(key: string, matchs?: Array<string | RegExp>): boolean;
8
+
9
+ export { matchsStart };
@@ -0,0 +1,7 @@
1
+ import {
2
+ matchsStart
3
+ } from "../chunk-S6JRKYPY.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ matchsStart
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk2BY5RQHUcjs = require('../chunk-2BY5RQHU.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.matchsWhole = _chunk2BY5RQHUcjs.matchsWhole;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 判断字符串是否匹配 字符串采用全匹配
3
+ * @param {string} key 当前字符串
4
+ * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
+ * @returns {boolean} 空数组 true
6
+ */
7
+ declare function matchsWhole(key: string, matchs?: Array<string | RegExp>): boolean;
8
+
9
+ export { matchsWhole };
@@ -0,0 +1,7 @@
1
+ import {
2
+ matchsWhole
3
+ } from "../chunk-IRGCP7KH.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ matchsWhole
7
+ };
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * 颜色
2
3
  * 0 黑色 'black'
3
4
  * 1 红色 'red'
4
5
  * 2 绿色 'green'
@@ -41,6 +42,27 @@ interface StyleLogObj {
41
42
  */
42
43
  revert?: boolean;
43
44
  }
45
+ /**
46
+ * 日志输出样式
47
+ * 颜色值 背景色 0 是白色 7是黑色 其他一样:
48
+ * 0 黑色 'black'
49
+ * 1 红色 'red'
50
+ * 2 绿色 'green'
51
+ * 3 黄色 'yellow'
52
+ * 4 蓝色 'blue'
53
+ * 5 洋红色 'magenta'
54
+ * 6 青色 'cyan'
55
+ * 7 白色 'white'
56
+ * @param {string} msg 要输出的日志字符串
57
+ * @param {StyleLogObj} obj 日志样式对象
58
+ * @param {string | number} obj.bag 背景颜色
59
+ * @param {string | number} obj.text 文字颜色
60
+ * @param {boolean } obj.bold 是否是粗体
61
+ * @param {boolean} obj.italic 是否是斜体
62
+ * @param {boolean} obj.lineThrough 中线
63
+ * @param {boolean} obj.revert 下线
64
+ * @returns {string} 带样式的日志
65
+ */
44
66
  declare function styleLog(msg?: string, obj?: StyleLogObj): string;
45
67
 
46
68
  export { styleLog };
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPAJDTMC5cjs = require('../chunk-PAJDTMC5.cjs');
4
+ require('../chunk-LTVXRDTD.cjs');
5
+ require('../chunk-XHR36FJK.cjs');
6
+ require('../chunk-WI55O3IV.cjs');
7
+ require('../chunk-UEVMS6QD.cjs');
8
+ require('../chunk-OQL4GIEJ.cjs');
9
+ require('../chunk-5AZGAKWR.cjs');
10
+
11
+
12
+ exports.getComponentNames = _chunkPAJDTMC5cjs.getComponentNames;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 组件 获取三种方式名称 el-input ElInput elInput
3
+ * @param { string } name 要转换的字符串
4
+ * @returns { Array<string> } 转换后的数组
5
+ */
6
+ declare function getComponentNames(name: string): Array<string>;
7
+
8
+ export { getComponentNames };
@@ -0,0 +1,12 @@
1
+ import {
2
+ getComponentNames
3
+ } from "../chunk-MXLYIZIX.js";
4
+ import "../chunk-J7CICTHH.js";
5
+ import "../chunk-AM67P3W7.js";
6
+ import "../chunk-XCDKXZFR.js";
7
+ import "../chunk-4OBNLDTJ.js";
8
+ import "../chunk-EWJJKQIO.js";
9
+ import "../chunk-UICA3PK6.js";
10
+ export {
11
+ getComponentNames
12
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk5UV36ZIWcjs = require('../chunk-5UV36ZIW.cjs');
4
+ require('../chunk-LTVXRDTD.cjs');
5
+ require('../chunk-XHR36FJK.cjs');
6
+ require('../chunk-WI55O3IV.cjs');
7
+ require('../chunk-UEVMS6QD.cjs');
8
+ require('../chunk-OQL4GIEJ.cjs');
9
+ require('../chunk-5AZGAKWR.cjs');
10
+
11
+
12
+ exports.getNames = _chunk5UV36ZIWcjs.getNames;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 获取三种方式名称 el-input ElInput elInput
3
+ * @param { string } name 要转换的字符串
4
+ * @returns { Array<string> } 转换后的数组 [-, 大驼峰, 小驼峰]
5
+ */
6
+ declare function getNames(name: string): Array<string>;
7
+
8
+ export { getNames };
@@ -0,0 +1,12 @@
1
+ import {
2
+ getNames
3
+ } from "../chunk-BWNLZJJG.js";
4
+ import "../chunk-J7CICTHH.js";
5
+ import "../chunk-AM67P3W7.js";
6
+ import "../chunk-XCDKXZFR.js";
7
+ import "../chunk-4OBNLDTJ.js";
8
+ import "../chunk-EWJJKQIO.js";
9
+ import "../chunk-UICA3PK6.js";
10
+ export {
11
+ getNames
12
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkLTVXRDTDcjs = require('../chunk-LTVXRDTD.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.humpToLine = _chunkLTVXRDTDcjs.humpToLine;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 驼峰命名转 - 方式
3
+ * @param { string } name 要转换的字符串
4
+ * @returns { string } 转换后字符串
5
+ */
6
+ declare function humpToLine(name: string): string;
7
+
8
+ export { humpToLine };
@@ -0,0 +1,7 @@
1
+ import {
2
+ humpToLine
3
+ } from "../chunk-J7CICTHH.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ humpToLine
7
+ };