@fangzhongya/utils 0.0.6 → 0.0.7-1

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 (158) hide show
  1. package/dist/basic/array/index.cjs +4 -6
  2. package/dist/basic/array/index.d.ts +1 -1
  3. package/dist/basic/array/index.js +4 -6
  4. package/dist/basic/array/isArray.d.ts +2 -1
  5. package/dist/basic/array/toggleArray.cjs +2 -4
  6. package/dist/basic/array/toggleArray.d.ts +7 -11
  7. package/dist/basic/array/toggleArray.js +1 -3
  8. package/dist/basic/index.cjs +13 -8
  9. package/dist/basic/index.d.ts +9 -4
  10. package/dist/basic/index.js +13 -8
  11. package/dist/basic/object/isObject.d.ts +2 -1
  12. package/dist/basic/object/mergeObject.d.ts +5 -5
  13. package/dist/basic/object/unmergeObject.d.ts +6 -6
  14. package/dist/basic/string/appearNum.cjs +7 -0
  15. package/dist/basic/string/appearNum.d.ts +9 -0
  16. package/dist/basic/string/appearNum.js +7 -0
  17. package/dist/basic/string/appearNumSeat.cjs +7 -0
  18. package/dist/basic/string/appearNumSeat.d.ts +10 -0
  19. package/dist/basic/string/appearNumSeat.js +7 -0
  20. package/dist/basic/string/firstLower.cjs +7 -0
  21. package/dist/basic/string/firstLower.d.ts +8 -0
  22. package/dist/basic/string/firstLower.js +7 -0
  23. package/dist/basic/string/firstUpper.cjs +7 -0
  24. package/dist/basic/string/firstUpper.d.ts +8 -0
  25. package/dist/basic/string/firstUpper.js +7 -0
  26. package/dist/basic/string/getStartSame.cjs +7 -0
  27. package/dist/basic/string/getStartSame.d.ts +9 -0
  28. package/dist/basic/string/getStartSame.js +7 -0
  29. package/dist/basic/string/getStartSames.cjs +7 -0
  30. package/dist/basic/string/getStartSames.d.ts +9 -0
  31. package/dist/basic/string/getStartSames.js +7 -0
  32. package/dist/basic/string/index.cjs +19 -3
  33. package/dist/basic/string/index.d.ts +6 -1
  34. package/dist/basic/string/index.js +22 -6
  35. package/dist/chunk-2BY5RQHU.cjs +23 -0
  36. package/dist/chunk-2W7EPKCY.js +32 -0
  37. package/dist/chunk-3BKSZA3U.cjs +21 -0
  38. package/dist/chunk-3HXQ7TGV.cjs +14 -0
  39. package/dist/chunk-4OBNLDTJ.js +8 -0
  40. package/dist/chunk-5UV36ZIW.cjs +21 -0
  41. package/dist/chunk-6ADW34CB.cjs +32 -0
  42. package/dist/chunk-6RIGEV6G.cjs +25 -0
  43. package/dist/chunk-7DTHADVK.js +18 -0
  44. package/dist/chunk-A276ZDLP.js +19 -0
  45. package/dist/chunk-AM67P3W7.js +15 -0
  46. package/dist/chunk-AS3WKQP7.js +21 -0
  47. package/dist/chunk-BWNLZJJG.js +21 -0
  48. package/dist/chunk-DILKJQYV.cjs +9 -0
  49. package/dist/chunk-DMZP4RPN.js +23 -0
  50. package/dist/{chunk-JNC5JEFB.cjs → chunk-ETPPNXJN.cjs} +3 -5
  51. package/dist/chunk-EWJJKQIO.js +8 -0
  52. package/dist/chunk-FRGDQOX4.js +25 -0
  53. package/dist/chunk-G6FL4SSB.js +15 -0
  54. package/dist/chunk-HULCI3SJ.js +21 -0
  55. package/dist/chunk-IRGCP7KH.js +23 -0
  56. package/dist/{chunk-DEENZC5X.js → chunk-J7CICTHH.js} +3 -11
  57. package/dist/chunk-J7S3KBHL.cjs +18 -0
  58. package/dist/chunk-JLEIVV37.cjs +32 -0
  59. package/dist/chunk-JR6ZN6QD.cjs +23 -0
  60. package/dist/{chunk-75TBDXR6.js → chunk-KNAYR3UF.js} +4 -4
  61. package/dist/chunk-L45SIOB3.js +32 -0
  62. package/dist/chunk-LFC6RYSS.js +21 -0
  63. package/dist/{chunk-BEQYORII.cjs → chunk-LTVXRDTD.cjs} +3 -11
  64. package/dist/chunk-MXLYIZIX.js +38 -0
  65. package/dist/chunk-NGQKVTCR.cjs +25 -0
  66. package/dist/chunk-O6GUK5PL.cjs +15 -0
  67. package/dist/chunk-OQL4GIEJ.cjs +8 -0
  68. package/dist/chunk-P3YVE7JK.cjs +21 -0
  69. package/dist/chunk-PAJDTMC5.cjs +38 -0
  70. package/dist/chunk-PW7RP73J.cjs +19 -0
  71. package/dist/chunk-S5OH3TT3.cjs +36 -0
  72. package/dist/chunk-S6JRKYPY.js +23 -0
  73. package/dist/chunk-SNABGVNO.js +14 -0
  74. package/dist/chunk-UEVMS6QD.cjs +8 -0
  75. package/dist/chunk-V3AYCU2W.js +28 -0
  76. package/dist/chunk-WI55O3IV.cjs +16 -0
  77. package/dist/chunk-WVFJLRR5.js +36 -0
  78. package/dist/{chunk-YBUHXX5U.cjs → chunk-X3I53PJC.cjs} +5 -5
  79. package/dist/chunk-XCDKXZFR.js +16 -0
  80. package/dist/chunk-XHR36FJK.cjs +15 -0
  81. package/dist/chunk-YGJOBIEO.cjs +23 -0
  82. package/dist/chunk-YK7WI6H7.cjs +21 -0
  83. package/dist/{chunk-ED5PJTG5.js → chunk-YMC5G5SU.js} +3 -5
  84. package/dist/chunk-YNOFNHEK.js +23 -0
  85. package/dist/chunk-ZEXHP7HI.js +9 -0
  86. package/dist/chunk-ZLCUSADU.cjs +28 -0
  87. package/dist/chunk-ZRZ5HATA.js +25 -0
  88. package/dist/chunk-ZZEFL2TE.cjs +23 -0
  89. package/dist/{index-56b2efa3.d.ts → index-0fa8abe5.d.ts} +2 -2
  90. package/dist/index-172cff2e.d.ts +22 -0
  91. package/dist/index-82dfd1d9.d.ts +25 -0
  92. package/dist/{index-6be6487f.d.ts → index-b1455ca1.d.ts} +1 -3
  93. package/dist/index-ceb2f683.d.ts +19 -0
  94. package/dist/index-e2af3c0a.d.ts +22 -0
  95. package/dist/index.cjs +38 -7
  96. package/dist/index.d.ts +27 -5
  97. package/dist/index.js +38 -7
  98. package/dist/judge/index.cjs +20 -0
  99. package/dist/judge/index.d.ts +4 -0
  100. package/dist/judge/index.js +20 -0
  101. package/dist/judge/matchs.cjs +10 -0
  102. package/dist/judge/matchs.d.ts +10 -0
  103. package/dist/judge/matchs.js +10 -0
  104. package/dist/judge/matchsEnd.cjs +7 -0
  105. package/dist/judge/matchsEnd.d.ts +9 -0
  106. package/dist/judge/matchsEnd.js +7 -0
  107. package/dist/judge/matchsStart.cjs +7 -0
  108. package/dist/judge/matchsStart.d.ts +9 -0
  109. package/dist/judge/matchsStart.js +7 -0
  110. package/dist/judge/matchsWhole.cjs +7 -0
  111. package/dist/judge/matchsWhole.d.ts +9 -0
  112. package/dist/judge/matchsWhole.js +7 -0
  113. package/dist/log/styleLog.d.ts +22 -0
  114. package/dist/name/getComponentNames.cjs +12 -0
  115. package/dist/name/getComponentNames.d.ts +8 -0
  116. package/dist/name/getComponentNames.js +12 -0
  117. package/dist/name/getNames.cjs +12 -0
  118. package/dist/name/getNames.d.ts +8 -0
  119. package/dist/name/getNames.js +12 -0
  120. package/dist/name/humpToLine.cjs +7 -0
  121. package/dist/name/humpToLine.d.ts +8 -0
  122. package/dist/name/humpToLine.js +7 -0
  123. package/dist/name/index.cjs +26 -0
  124. package/dist/name/index.d.ts +5 -0
  125. package/dist/name/index.js +26 -0
  126. package/dist/name/lineToLargeHump.cjs +8 -0
  127. package/dist/name/lineToLargeHump.d.ts +8 -0
  128. package/dist/name/lineToLargeHump.js +8 -0
  129. package/dist/name/lineToSmallHump.cjs +10 -0
  130. package/dist/name/lineToSmallHump.d.ts +8 -0
  131. package/dist/name/lineToSmallHump.js +10 -0
  132. package/dist/urls/getImportUrl.cjs +8 -0
  133. package/dist/urls/getImportUrl.d.ts +9 -0
  134. package/dist/urls/getImportUrl.js +8 -0
  135. package/dist/urls/getImportUrlSuffix.cjs +9 -0
  136. package/dist/urls/getImportUrlSuffix.d.ts +9 -0
  137. package/dist/urls/getImportUrlSuffix.js +9 -0
  138. package/dist/urls/getReplaceUrl.cjs +10 -0
  139. package/dist/urls/getReplaceUrl.d.ts +9 -0
  140. package/dist/urls/getReplaceUrl.js +10 -0
  141. package/dist/urls/getUrlCatalogue.cjs +7 -0
  142. package/dist/urls/getUrlCatalogue.d.ts +8 -0
  143. package/dist/urls/getUrlCatalogue.js +7 -0
  144. package/dist/urls/getUrlCatalogueObj.cjs +7 -0
  145. package/dist/urls/getUrlCatalogueObj.d.ts +16 -0
  146. package/dist/urls/getUrlCatalogueObj.js +7 -0
  147. package/dist/urls/index.cjs +27 -0
  148. package/dist/urls/index.d.ts +5 -0
  149. package/dist/urls/index.js +27 -0
  150. package/package.json +147 -29
  151. package/dist/basic/string/index2.cjs +0 -11
  152. package/dist/basic/string/index2.d.ts +0 -20
  153. package/dist/basic/string/index2.js +0 -11
  154. package/dist/chunk-4PBAZ73I.cjs +0 -20
  155. package/dist/chunk-BL4KF5G4.cjs +0 -25
  156. package/dist/chunk-OX5EXWS2.js +0 -25
  157. package/dist/chunk-YYNHNLVW.js +0 -20
  158. package/dist/index-5691335a.d.ts +0 -14
@@ -0,0 +1,36 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkJ7S3KBHLcjs = require('./chunk-J7S3KBHL.cjs');
4
+
5
+
6
+ var _chunkUEVMS6QDcjs = require('./chunk-UEVMS6QD.cjs');
7
+
8
+
9
+ var _chunkOQL4GIEJcjs = require('./chunk-OQL4GIEJ.cjs');
10
+
11
+
12
+ var _chunk3HXQ7TGVcjs = require('./chunk-3HXQ7TGV.cjs');
13
+
14
+
15
+ var _chunkJR6ZN6QDcjs = require('./chunk-JR6ZN6QD.cjs');
16
+
17
+
18
+ var _chunkPW7RP73Jcjs = require('./chunk-PW7RP73J.cjs');
19
+
20
+
21
+ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
22
+
23
+ // packages/basic/string/index.ts
24
+ var string_exports = {};
25
+ _chunk5AZGAKWRcjs.__export.call(void 0, string_exports, {
26
+ appearNum: () => _chunk3HXQ7TGVcjs.appearNum,
27
+ appearNumSeat: () => _chunkJR6ZN6QDcjs.appearNumSeat,
28
+ firstLower: () => _chunkUEVMS6QDcjs.firstLower,
29
+ firstUpper: () => _chunkOQL4GIEJcjs.firstUpper,
30
+ getStartSame: () => _chunkJ7S3KBHLcjs.getStartSame,
31
+ getStartSames: () => _chunkPW7RP73Jcjs.getStartSames
32
+ });
33
+
34
+
35
+
36
+ exports.string_exports = string_exports;
@@ -0,0 +1,23 @@
1
+ // 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
+ export {
22
+ matchsStart
23
+ };
@@ -0,0 +1,14 @@
1
+ // packages/basic/string/appearNum.ts
2
+ function appearNum(str, t) {
3
+ let reg = t;
4
+ if (typeof t == "string") {
5
+ reg = new RegExp(t, "g");
6
+ }
7
+ let arr = str.match(reg);
8
+ let c = arr ? arr.length : 0;
9
+ return c;
10
+ }
11
+
12
+ export {
13
+ appearNum
14
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/firstLower.ts
2
+ function firstLower(str) {
3
+ return str.slice(0, 1).toLowerCase() + str.slice(1);
4
+ }
5
+
6
+
7
+
8
+ exports.firstLower = firstLower;
@@ -0,0 +1,28 @@
1
+ import {
2
+ matchs
3
+ } from "./chunk-FRGDQOX4.js";
4
+ import {
5
+ matchsStart
6
+ } from "./chunk-S6JRKYPY.js";
7
+ import {
8
+ matchsWhole
9
+ } from "./chunk-IRGCP7KH.js";
10
+ import {
11
+ matchsEnd
12
+ } from "./chunk-YNOFNHEK.js";
13
+ import {
14
+ __export
15
+ } from "./chunk-UICA3PK6.js";
16
+
17
+ // packages/judge/index.ts
18
+ var judge_exports = {};
19
+ __export(judge_exports, {
20
+ matchs: () => matchs,
21
+ matchsEnd: () => matchsEnd,
22
+ matchsStart: () => matchsStart,
23
+ matchsWhole: () => matchsWhole
24
+ });
25
+
26
+ export {
27
+ judge_exports
28
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkOQL4GIEJcjs = require('./chunk-OQL4GIEJ.cjs');
4
+
5
+ // packages/name/lineToLargeHump.ts
6
+ function lineToLargeHump(name) {
7
+ let arr = name.split("-");
8
+ arr = arr.map((vs) => {
9
+ return _chunkOQL4GIEJcjs.firstUpper.call(void 0, vs);
10
+ });
11
+ return arr.join("");
12
+ }
13
+
14
+
15
+
16
+ exports.lineToLargeHump = lineToLargeHump;
@@ -0,0 +1,36 @@
1
+ import {
2
+ getStartSame
3
+ } from "./chunk-7DTHADVK.js";
4
+ import {
5
+ firstLower
6
+ } from "./chunk-4OBNLDTJ.js";
7
+ import {
8
+ firstUpper
9
+ } from "./chunk-EWJJKQIO.js";
10
+ import {
11
+ appearNum
12
+ } from "./chunk-SNABGVNO.js";
13
+ import {
14
+ appearNumSeat
15
+ } from "./chunk-DMZP4RPN.js";
16
+ import {
17
+ getStartSames
18
+ } from "./chunk-A276ZDLP.js";
19
+ import {
20
+ __export
21
+ } from "./chunk-UICA3PK6.js";
22
+
23
+ // packages/basic/string/index.ts
24
+ var string_exports = {};
25
+ __export(string_exports, {
26
+ appearNum: () => appearNum,
27
+ appearNumSeat: () => appearNumSeat,
28
+ firstLower: () => firstLower,
29
+ firstUpper: () => firstUpper,
30
+ getStartSame: () => getStartSame,
31
+ getStartSames: () => getStartSames
32
+ });
33
+
34
+ export {
35
+ string_exports
36
+ };
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkR7G5MSGOcjs = require('./chunk-R7G5MSGO.cjs');
3
+ var _chunkS5OH3TT3cjs = require('./chunk-S5OH3TT3.cjs');
4
4
 
5
5
 
6
- var _chunk4PBAZ73Icjs = require('./chunk-4PBAZ73I.cjs');
6
+ var _chunkR7G5MSGOcjs = require('./chunk-R7G5MSGO.cjs');
7
7
 
8
8
 
9
- var _chunkJNC5JEFBcjs = require('./chunk-JNC5JEFB.cjs');
9
+ var _chunkETPPNXJNcjs = require('./chunk-ETPPNXJN.cjs');
10
10
 
11
11
 
12
12
  var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
@@ -14,9 +14,9 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
14
14
  // packages/basic/index.ts
15
15
  var basic_exports = {};
16
16
  _chunk5AZGAKWRcjs.__export.call(void 0, basic_exports, {
17
- array: () => _chunkJNC5JEFBcjs.array_exports,
17
+ array: () => _chunkETPPNXJNcjs.array_exports,
18
18
  object: () => _chunkR7G5MSGOcjs.object_exports,
19
- string: () => _chunk4PBAZ73Icjs.string_exports
19
+ string: () => _chunkS5OH3TT3cjs.string_exports
20
20
  });
21
21
 
22
22
 
@@ -0,0 +1,16 @@
1
+ import {
2
+ firstUpper
3
+ } from "./chunk-EWJJKQIO.js";
4
+
5
+ // packages/name/lineToLargeHump.ts
6
+ function lineToLargeHump(name) {
7
+ let arr = name.split("-");
8
+ arr = arr.map((vs) => {
9
+ return firstUpper(vs);
10
+ });
11
+ return arr.join("");
12
+ }
13
+
14
+ export {
15
+ lineToLargeHump
16
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkWI55O3IVcjs = require('./chunk-WI55O3IV.cjs');
4
+
5
+
6
+ var _chunkUEVMS6QDcjs = require('./chunk-UEVMS6QD.cjs');
7
+
8
+ // packages/name/lineToSmallHump.ts
9
+ function lineToSmallHump(name) {
10
+ return _chunkUEVMS6QDcjs.firstLower.call(void 0, _chunkWI55O3IVcjs.lineToLargeHump.call(void 0, name));
11
+ }
12
+
13
+
14
+
15
+ exports.lineToSmallHump = lineToSmallHump;
@@ -0,0 +1,23 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/judge/matchsEnd.ts
2
+ function matchsEnd(key, matchs) {
3
+ if (matchs && matchs.length > 0) {
4
+ for (const value of matchs) {
5
+ if (typeof value == "string") {
6
+ if (key.endsWith(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.matchsEnd = matchsEnd;
@@ -0,0 +1,21 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPW7RP73Jcjs = require('./chunk-PW7RP73J.cjs');
4
+
5
+ // packages/urls/getImportUrl.ts
6
+ function getImportUrl(url, imp) {
7
+ const arr = _chunkPW7RP73Jcjs.getStartSames.call(void 0, url, imp);
8
+ const l = arr[1].split(/\\|\//).length - 1;
9
+ let ds = ["./"];
10
+ if (l > 0) {
11
+ ds = [];
12
+ for (let index = 0; index < l; index++) {
13
+ ds.push("../");
14
+ }
15
+ }
16
+ return ds.join("") + arr[2].replace(/\\/g, "/");
17
+ }
18
+
19
+
20
+
21
+ exports.getImportUrl = getImportUrl;
@@ -1,10 +1,9 @@
1
+ import {
2
+ toggleArray
3
+ } from "./chunk-HULCI3SJ.js";
1
4
  import {
2
5
  isArray
3
6
  } from "./chunk-5PX3AFSC.js";
4
- import {
5
- firstLower,
6
- toggleArray
7
- } from "./chunk-OX5EXWS2.js";
8
7
  import {
9
8
  __export
10
9
  } from "./chunk-UICA3PK6.js";
@@ -12,7 +11,6 @@ import {
12
11
  // packages/basic/array/index.ts
13
12
  var array_exports = {};
14
13
  __export(array_exports, {
15
- firstLower: () => firstLower,
16
14
  isArray: () => isArray,
17
15
  toggleArray: () => toggleArray
18
16
  });
@@ -0,0 +1,23 @@
1
+ // packages/judge/matchsEnd.ts
2
+ function matchsEnd(key, matchs) {
3
+ if (matchs && matchs.length > 0) {
4
+ for (const value of matchs) {
5
+ if (typeof value == "string") {
6
+ if (key.endsWith(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
+ export {
22
+ matchsEnd
23
+ };
@@ -0,0 +1,9 @@
1
+ // packages/urls/getUrlCatalogue.ts
2
+ function getUrlCatalogue(str) {
3
+ const reg = /((\\|\/)([^\\|\/]+)(\.[a-z|A-Z]+))$/g;
4
+ return str.replace(reg, "");
5
+ }
6
+
7
+ export {
8
+ getUrlCatalogue
9
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNGQKVTCRcjs = require('./chunk-NGQKVTCR.cjs');
4
+
5
+
6
+ var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.cjs');
7
+
8
+
9
+ var _chunk2BY5RQHUcjs = require('./chunk-2BY5RQHU.cjs');
10
+
11
+
12
+ var _chunkYGJOBIEOcjs = require('./chunk-YGJOBIEO.cjs');
13
+
14
+
15
+ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
16
+
17
+ // packages/judge/index.ts
18
+ var judge_exports = {};
19
+ _chunk5AZGAKWRcjs.__export.call(void 0, judge_exports, {
20
+ matchs: () => _chunkNGQKVTCRcjs.matchs,
21
+ matchsEnd: () => _chunkYGJOBIEOcjs.matchsEnd,
22
+ matchsStart: () => _chunkZZEFL2TEcjs.matchsStart,
23
+ matchsWhole: () => _chunk2BY5RQHUcjs.matchsWhole
24
+ });
25
+
26
+
27
+
28
+ exports.judge_exports = judge_exports;
@@ -0,0 +1,25 @@
1
+ import {
2
+ appearNum
3
+ } from "./chunk-SNABGVNO.js";
4
+ import {
5
+ appearNumSeat
6
+ } from "./chunk-DMZP4RPN.js";
7
+ import {
8
+ getStartSames
9
+ } from "./chunk-A276ZDLP.js";
10
+
11
+ // packages/urls/getReplaceUrl.ts
12
+ function getReplaceUrl(url, add) {
13
+ const reg = /[\\|\/]/g;
14
+ const arr = getStartSames(url, add);
15
+ const uz = appearNumSeat(
16
+ arr[1],
17
+ reg,
18
+ appearNum(arr[2], reg) + 1
19
+ );
20
+ return add + arr[1].substring(uz);
21
+ }
22
+
23
+ export {
24
+ getReplaceUrl
25
+ };
@@ -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;
@@ -1,6 +1,6 @@
1
- import { i as index$1 } from './index-6be6487f.js';
1
+ import { i as index$1 } from './index-b1455ca1.js';
2
2
  import { i as index$2 } from './index-8473d4b5.js';
3
- import { i as index$3 } from './index-5691335a.js';
3
+ import { i as index$3 } from './index-82dfd1d9.js';
4
4
 
5
5
  declare namespace index {
6
6
  export {
@@ -0,0 +1,22 @@
1
+ import { getComponentNames } from './name/getComponentNames.js';
2
+ import { getNames } from './name/getNames.js';
3
+ import { lineToSmallHump } from './name/lineToSmallHump.js';
4
+ import { humpToLine } from './name/humpToLine.js';
5
+ import { lineToLargeHump } from './name/lineToLargeHump.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 };
@@ -0,0 +1,25 @@
1
+ import { appearNum } from './basic/string/appearNum.js';
2
+ import { appearNumSeat } from './basic/string/appearNumSeat.js';
3
+ import { firstLower } from './basic/string/firstLower.js';
4
+ import { getStartSame } from './basic/string/getStartSame.js';
5
+ import { firstUpper } from './basic/string/firstUpper.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 };
@@ -1,12 +1,10 @@
1
+ import { toggleArray } from './basic/array/toggleArray.js';
1
2
  import { isArray } from './basic/array/isArray.js';
2
- import { firstLower, toggleArray } from './basic/array/toggleArray.js';
3
3
 
4
- declare const index_firstLower: typeof firstLower;
5
4
  declare const index_isArray: typeof isArray;
6
5
  declare const index_toggleArray: typeof toggleArray;
7
6
  declare namespace index {
8
7
  export {
9
- index_firstLower as firstLower,
10
8
  index_isArray as isArray,
11
9
  index_toggleArray as toggleArray,
12
10
  };
@@ -0,0 +1,19 @@
1
+ import { matchsEnd } from './judge/matchsEnd.js';
2
+ import { matchsWhole } from './judge/matchsWhole.js';
3
+ import { matchsStart } from './judge/matchsStart.js';
4
+ import { matchs } from './judge/matchs.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,22 @@
1
+ import { getImportUrlSuffix } from './urls/getImportUrlSuffix.js';
2
+ import { getImportUrl } from './urls/getImportUrl.js';
3
+ import { getReplaceUrl } from './urls/getReplaceUrl.js';
4
+ import { getUrlCatalogue } from './urls/getUrlCatalogue.js';
5
+ import { getUrlCatalogueObj } from './urls/getUrlCatalogueObj.js';
6
+
7
+ declare const index_getImportUrl: typeof getImportUrl;
8
+ declare const index_getImportUrlSuffix: typeof getImportUrlSuffix;
9
+ declare const index_getReplaceUrl: typeof getReplaceUrl;
10
+ declare const index_getUrlCatalogue: typeof getUrlCatalogue;
11
+ declare const index_getUrlCatalogueObj: typeof getUrlCatalogueObj;
12
+ declare namespace index {
13
+ export {
14
+ index_getImportUrl as getImportUrl,
15
+ index_getImportUrlSuffix as getImportUrlSuffix,
16
+ index_getReplaceUrl as getReplaceUrl,
17
+ index_getUrlCatalogue as getUrlCatalogue,
18
+ index_getUrlCatalogueObj as getUrlCatalogueObj,
19
+ };
20
+ }
21
+
22
+ export { index as i };
package/dist/index.cjs CHANGED
@@ -1,25 +1,56 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYBUHXX5Ucjs = require('./chunk-YBUHXX5U.cjs');
3
+ var _chunkJLEIVV37cjs = require('./chunk-JLEIVV37.cjs');
4
+ require('./chunk-PAJDTMC5.cjs');
5
+ require('./chunk-5UV36ZIW.cjs');
6
+ require('./chunk-LTVXRDTD.cjs');
7
+ require('./chunk-XHR36FJK.cjs');
8
+ require('./chunk-WI55O3IV.cjs');
9
+
10
+
11
+ var _chunk6ADW34CBcjs = require('./chunk-6ADW34CB.cjs');
12
+ require('./chunk-O6GUK5PL.cjs');
13
+ require('./chunk-YK7WI6H7.cjs');
14
+ require('./chunk-6RIGEV6G.cjs');
15
+ require('./chunk-DILKJQYV.cjs');
16
+ require('./chunk-P3YVE7JK.cjs');
17
+
18
+
19
+ var _chunkX3I53PJCcjs = require('./chunk-X3I53PJC.cjs');
20
+ require('./chunk-S5OH3TT3.cjs');
21
+ require('./chunk-J7S3KBHL.cjs');
4
22
  require('./chunk-R7G5MSGO.cjs');
5
23
  require('./chunk-NRJPCN4J.cjs');
6
24
  require('./chunk-3VYRYSWK.cjs');
7
- require('./chunk-4PBAZ73I.cjs');
8
- require('./chunk-BEQYORII.cjs');
25
+ require('./chunk-UEVMS6QD.cjs');
26
+ require('./chunk-OQL4GIEJ.cjs');
27
+ require('./chunk-ETPPNXJN.cjs');
28
+ require('./chunk-3BKSZA3U.cjs');
29
+ require('./chunk-3HXQ7TGV.cjs');
30
+ require('./chunk-JR6ZN6QD.cjs');
31
+ require('./chunk-PW7RP73J.cjs');
9
32
 
10
33
 
11
34
  var _chunkN6OX2U6Wcjs = require('./chunk-N6OX2U6W.cjs');
12
35
  require('./chunk-XRGLFTH2.cjs');
36
+ require('./chunk-ISHLY7WM.cjs');
13
37
 
14
38
 
15
39
  var _chunkJ7SPTSZMcjs = require('./chunk-J7SPTSZM.cjs');
16
40
  require('./chunk-5VQ4EAJZ.cjs');
17
- require('./chunk-JNC5JEFB.cjs');
18
- require('./chunk-ISHLY7WM.cjs');
19
- require('./chunk-BL4KF5G4.cjs');
41
+
42
+
43
+ var _chunkZLCUSADUcjs = require('./chunk-ZLCUSADU.cjs');
44
+ require('./chunk-NGQKVTCR.cjs');
45
+ require('./chunk-ZZEFL2TE.cjs');
46
+ require('./chunk-2BY5RQHU.cjs');
47
+ require('./chunk-YGJOBIEO.cjs');
20
48
  require('./chunk-5AZGAKWR.cjs');
21
49
 
22
50
 
23
51
 
24
52
 
25
- exports.basic = _chunkYBUHXX5Ucjs.basic_exports; exports.iss = _chunkN6OX2U6Wcjs.iss_exports; exports.log = _chunkJ7SPTSZMcjs.log_exports;
53
+
54
+
55
+
56
+ exports.basic = _chunkX3I53PJCcjs.basic_exports; exports.iss = _chunkN6OX2U6Wcjs.iss_exports; exports.judge = _chunkZLCUSADUcjs.judge_exports; exports.log = _chunkJ7SPTSZMcjs.log_exports; exports.name = _chunkJLEIVV37cjs.name_exports; exports.urls = _chunk6ADW34CBcjs.urls_exports;
package/dist/index.d.ts CHANGED
@@ -1,13 +1,35 @@
1
- export { i as basic } from './index-56b2efa3.js';
1
+ export { i as basic } from './index-0fa8abe5.js';
2
2
  export { i as iss } from './index-24872dab.js';
3
+ export { i as judge } from './index-ceb2f683.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-172cff2e.js';
6
+ export { i as urls } from './index-e2af3c0a.js';
7
+ import './index-b1455ca1.js';
6
8
  import './basic/array/toggleArray.js';
9
+ import './basic/array/isArray.js';
7
10
  import './index-8473d4b5.js';
8
11
  import './basic/object/mergeObject.js';
9
12
  import './basic/object/isObject.js';
10
13
  import './basic/object/unmergeObject.js';
11
- import './index-5691335a.js';
12
- import './basic/string/index2.js';
14
+ import './index-82dfd1d9.js';
15
+ import './basic/string/appearNum.js';
16
+ import './basic/string/appearNumSeat.js';
17
+ import './basic/string/firstLower.js';
18
+ import './basic/string/getStartSame.js';
19
+ import './basic/string/firstUpper.js';
20
+ import './basic/string/getStartSames.js';
21
+ import './judge/matchsEnd.js';
22
+ import './judge/matchsWhole.js';
23
+ import './judge/matchsStart.js';
24
+ import './judge/matchs.js';
13
25
  import './log/styleLog.js';
26
+ import './name/getComponentNames.js';
27
+ import './name/getNames.js';
28
+ import './name/lineToSmallHump.js';
29
+ import './name/humpToLine.js';
30
+ import './name/lineToLargeHump.js';
31
+ import './urls/getImportUrlSuffix.js';
32
+ import './urls/getImportUrl.js';
33
+ import './urls/getReplaceUrl.js';
34
+ import './urls/getUrlCatalogue.js';
35
+ import './urls/getUrlCatalogueObj.js';