@fangzhongya/utils 0.0.7-2 → 0.0.7-20

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 (142) 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 +15 -3
  8. package/dist/basic/array/index.d.ts +4 -1
  9. package/dist/basic/array/index.js +14 -2
  10. package/dist/basic/array/replaceAfter.cjs +7 -0
  11. package/dist/basic/array/replaceAfter.d.ts +10 -0
  12. package/dist/basic/array/replaceAfter.js +7 -0
  13. package/dist/basic/array/toggleArray.cjs +2 -2
  14. package/dist/basic/array/toggleArray.d.ts +4 -7
  15. package/dist/basic/array/toggleArray.js +1 -1
  16. package/dist/basic/index.cjs +15 -10
  17. package/dist/basic/index.d.ts +14 -9
  18. package/dist/basic/index.js +14 -9
  19. package/dist/basic/object/index.cjs +9 -5
  20. package/dist/basic/object/index.d.ts +2 -1
  21. package/dist/basic/object/index.js +9 -5
  22. package/dist/basic/object/isObject.cjs +2 -3
  23. package/dist/basic/object/isObject.js +1 -2
  24. package/dist/basic/object/isObjectArray.cjs +9 -0
  25. package/dist/basic/object/isObjectArray.d.ts +8 -0
  26. package/dist/basic/object/isObjectArray.js +9 -0
  27. package/dist/basic/string/index.cjs +6 -2
  28. package/dist/basic/string/index.d.ts +3 -2
  29. package/dist/basic/string/index.js +6 -2
  30. package/dist/basic/string/splitUpper.cjs +7 -0
  31. package/dist/basic/string/splitUpper.d.ts +8 -0
  32. package/dist/basic/string/splitUpper.js +7 -0
  33. package/dist/{chunk-O6GUK5PL.cjs → chunk-27WA7EI2.cjs} +2 -2
  34. package/dist/{chunk-MAIGGOA4.js → chunk-36PHYPTV.js} +7 -3
  35. package/dist/chunk-3ERQHPTD.cjs +13 -0
  36. package/dist/chunk-3T5SHCYK.js +30 -0
  37. package/dist/{chunk-L45SIOB3.js → chunk-3XQKNIVL.js} +23 -7
  38. package/dist/chunk-4O7YOSS7.cjs +32 -0
  39. package/dist/{chunk-N6OX2U6W.cjs → chunk-5U2ZV4MK.cjs} +6 -2
  40. package/dist/chunk-5V52TYPZ.cjs +30 -0
  41. package/dist/chunk-6A6EAFGL.cjs +13 -0
  42. package/dist/chunk-7LMEBJPQ.js +16 -0
  43. package/dist/{chunk-LFC6RYSS.js → chunk-AWC672JW.js} +13 -0
  44. package/dist/{chunk-3BKSZA3U.cjs → chunk-AXMOZZCM.cjs} +4 -3
  45. package/dist/chunk-BDJORZRC.js +13 -0
  46. package/dist/{chunk-H2LFD53G.js → chunk-BVWHSNDI.js} +5 -1
  47. package/dist/chunk-CWNSXHMU.js +33 -0
  48. package/dist/chunk-DKQWP2SZ.cjs +33 -0
  49. package/dist/chunk-E75NHLNL.js +32 -0
  50. package/dist/chunk-EWXBN4VG.cjs +21 -0
  51. package/dist/chunk-GD3OA7GU.cjs +18 -0
  52. package/dist/chunk-GOH6G74S.js +17 -0
  53. package/dist/{chunk-HULCI3SJ.js → chunk-GOJN3OQ4.js} +4 -3
  54. package/dist/{chunk-YK7WI6H7.cjs → chunk-IRKWYW5B.cjs} +13 -0
  55. package/dist/chunk-JVM3OE63.cjs +48 -0
  56. package/dist/chunk-LG7MY5KL.cjs +17 -0
  57. package/dist/chunk-LHSOIOCS.cjs +16 -0
  58. package/dist/chunk-MIC3W2VY.cjs +8 -0
  59. package/dist/chunk-MXY4W3K5.js +8 -0
  60. package/dist/chunk-NCSN3MC5.js +21 -0
  61. package/dist/chunk-O2RP4UZQ.cjs +45 -0
  62. package/dist/{chunk-ASN2EUM7.cjs → chunk-OVWID444.cjs} +5 -1
  63. package/dist/chunk-Q6FMBSK4.js +27 -0
  64. package/dist/{chunk-HRECTLZO.js → chunk-QIK5MQUL.js} +7 -3
  65. package/dist/chunk-QKLVFB74.js +45 -0
  66. package/dist/chunk-QLBOPNV4.cjs +15 -0
  67. package/dist/chunk-QN3FHV6S.cjs +24 -0
  68. package/dist/chunk-SRR2GWC7.js +15 -0
  69. package/dist/chunk-TCMJPIRM.cjs +27 -0
  70. package/dist/chunk-UCZBNN4I.cjs +19 -0
  71. package/dist/chunk-UOADEBDH.js +13 -0
  72. package/dist/{chunk-R7G5MSGO.cjs → chunk-UU2ZF6GC.cjs} +7 -3
  73. package/dist/chunk-VYMN4FOM.cjs +16 -0
  74. package/dist/chunk-XAQM2IVP.js +16 -0
  75. package/dist/{chunk-G6FL4SSB.js → chunk-XBZX5YZW.js} +1 -1
  76. package/dist/{chunk-AS3WKQP7.js → chunk-XUUIYV6X.js} +3 -0
  77. package/dist/{chunk-P3YVE7JK.cjs → chunk-YAML5YPL.cjs} +3 -0
  78. package/dist/{chunk-MPDCMTGO.js → chunk-YAV4Z2HU.js} +5 -5
  79. package/dist/chunk-Z6NS6N32.js +19 -0
  80. package/dist/chunk-ZVBCHJA5.js +18 -0
  81. package/dist/css/fetchUnitValue.cjs +7 -0
  82. package/dist/css/fetchUnitValue.d.ts +10 -0
  83. package/dist/css/fetchUnitValue.js +7 -0
  84. package/dist/css/index.cjs +8 -0
  85. package/dist/css/index.d.ts +1 -0
  86. package/dist/css/index.js +8 -0
  87. package/dist/html/htmlEscape.cjs +7 -0
  88. package/dist/html/htmlEscape.d.ts +8 -0
  89. package/dist/html/htmlEscape.js +7 -0
  90. package/dist/html/index.cjs +8 -0
  91. package/dist/html/index.d.ts +1 -0
  92. package/dist/html/index.js +8 -0
  93. package/dist/{index-24872dab.d.ts → index-09cd203a.d.ts} +3 -0
  94. package/dist/{index-82dfd1d9.d.ts → index-1d6e286f.d.ts} +5 -2
  95. package/dist/index-42672b09.d.ts +36 -0
  96. package/dist/index-64b035f5.d.ts +13 -0
  97. package/dist/index-8b70f9ee.d.ts +10 -0
  98. package/dist/index-b16b81dc.d.ts +22 -0
  99. package/dist/index-da501f98.d.ts +10 -0
  100. package/dist/{index-8473d4b5.d.ts → index-fab49d44.d.ts} +4 -1
  101. package/dist/index.cjs +35 -16
  102. package/dist/index.d.ts +31 -18
  103. package/dist/index.js +34 -15
  104. package/dist/iss/index.cjs +7 -3
  105. package/dist/iss/index.d.ts +1 -0
  106. package/dist/iss/index.js +8 -4
  107. package/dist/judge/index.d.ts +2 -2
  108. package/dist/name/index.d.ts +1 -1
  109. package/dist/urls/getImportUrl.cjs +2 -2
  110. package/dist/urls/getImportUrl.js +1 -1
  111. package/dist/urls/getImportUrlSuffix.cjs +3 -3
  112. package/dist/urls/getImportUrlSuffix.js +2 -2
  113. package/dist/urls/getNewFileName.cjs +8 -0
  114. package/dist/urls/getNewFileName.d.ts +8 -0
  115. package/dist/urls/getNewFileName.js +8 -0
  116. package/dist/urls/getReplaceImportUrl.cjs +8 -0
  117. package/dist/urls/getReplaceImportUrl.d.ts +9 -0
  118. package/dist/urls/getReplaceImportUrl.js +8 -0
  119. package/dist/urls/getSuffix.cjs +7 -0
  120. package/dist/urls/getSuffix.d.ts +8 -0
  121. package/dist/urls/getSuffix.js +7 -0
  122. package/dist/urls/getUrlCatalogueLast.cjs +7 -0
  123. package/dist/urls/getUrlCatalogueLast.d.ts +8 -0
  124. package/dist/urls/getUrlCatalogueLast.js +7 -0
  125. package/dist/urls/getUrlCatalogueObj.cjs +2 -2
  126. package/dist/urls/getUrlCatalogueObj.d.ts +5 -4
  127. package/dist/urls/getUrlCatalogueObj.js +1 -1
  128. package/dist/urls/index.cjs +23 -7
  129. package/dist/urls/index.d.ts +6 -2
  130. package/dist/urls/index.js +24 -8
  131. package/package.json +293 -234
  132. package/dist/chunk-4J3S27XY.cjs +0 -24
  133. package/dist/chunk-6ADW34CB.cjs +0 -32
  134. package/dist/chunk-ETPPNXJN.cjs +0 -20
  135. package/dist/chunk-WO6JQRTD.js +0 -16
  136. package/dist/chunk-XRGLFTH2.cjs +0 -16
  137. package/dist/chunk-YMC5G5SU.js +0 -20
  138. package/dist/index-0fa8abe5.d.ts +0 -13
  139. package/dist/index-b1455ca1.d.ts +0 -13
  140. package/dist/index-e2af3c0a.d.ts +0 -22
  141. package/dist/{index-172cff2e.d.ts → index-2f15b7ed.d.ts} +1 -1
  142. package/dist/{index-ceb2f683.d.ts → index-445fe401.d.ts} +2 -2
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkTCMJPIRMcjs = require('../../chunk-TCMJPIRM.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.asyncMergeArray = _chunkTCMJPIRMcjs.asyncMergeArray;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 处理数组遍历问题
3
+ * @param <Array> arr 遍历数组
4
+ * @param callback 处理方法
5
+ * @returns
6
+ */
7
+ declare function asyncMergeArray<T>(arr: Array<T>, callback: (resolve: () => void, reject: (reason?: any) => void, value: T, index: number, array: T[]) => void): Promise<unknown>;
8
+
9
+ export { asyncMergeArray };
@@ -0,0 +1,7 @@
1
+ import {
2
+ asyncMergeArray
3
+ } from "../../chunk-Q6FMBSK4.js";
4
+ import "../../chunk-UICA3PK6.js";
5
+ export {
6
+ asyncMergeArray
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGD3OA7GUcjs = require('../../chunk-GD3OA7GU.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.duplicateRemoval = _chunkGD3OA7GUcjs.duplicateRemoval;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 数组对象去重
3
+ * @param {Array} arr 要去重数组
4
+ * @param {string} key 对象中的唯一key
5
+ * @returns {Array }
6
+ */
7
+ declare function duplicateRemoval<T>(arr: Array<T>, key: string): Array<T>;
8
+
9
+ export { duplicateRemoval };
@@ -0,0 +1,7 @@
1
+ import {
2
+ duplicateRemoval
3
+ } from "../../chunk-ZVBCHJA5.js";
4
+ import "../../chunk-UICA3PK6.js";
5
+ export {
6
+ duplicateRemoval
7
+ };
@@ -1,7 +1,16 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-ETPPNXJN.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-4O7YOSS7.cjs');
2
2
 
3
3
 
4
- var _chunk3BKSZA3Ucjs = require('../../chunk-3BKSZA3U.cjs');
4
+ var _chunkLG7MY5KLcjs = require('../../chunk-LG7MY5KL.cjs');
5
+
6
+
7
+ var _chunkAXMOZZCMcjs = require('../../chunk-AXMOZZCM.cjs');
8
+
9
+
10
+ var _chunkTCMJPIRMcjs = require('../../chunk-TCMJPIRM.cjs');
11
+
12
+
13
+ var _chunkGD3OA7GUcjs = require('../../chunk-GD3OA7GU.cjs');
5
14
 
6
15
 
7
16
  var _chunkISHLY7WMcjs = require('../../chunk-ISHLY7WM.cjs');
@@ -9,4 +18,7 @@ require('../../chunk-5AZGAKWR.cjs');
9
18
 
10
19
 
11
20
 
12
- exports.isArray = _chunkISHLY7WMcjs.isArray; exports.toggleArray = _chunk3BKSZA3Ucjs.toggleArray;
21
+
22
+
23
+
24
+ exports.asyncMergeArray = _chunkTCMJPIRMcjs.asyncMergeArray; exports.duplicateRemoval = _chunkGD3OA7GUcjs.duplicateRemoval; exports.isArray = _chunkISHLY7WMcjs.isArray; exports.replaceAfter = _chunkLG7MY5KLcjs.replaceAfter; exports.toggleArray = _chunkAXMOZZCMcjs.toggleArray;
@@ -1,2 +1,5 @@
1
- export { toggleArray } from './toggleArray.js';
1
+ export { asyncMergeArray } from './asyncMergeArray.js';
2
+ export { duplicateRemoval } from './duplicateRemoval.js';
2
3
  export { isArray } from './isArray.js';
4
+ export { replaceAfter } from './replaceAfter.js';
5
+ export { toggleArray } from './toggleArray.js';
@@ -1,12 +1,24 @@
1
- import "../../chunk-YMC5G5SU.js";
1
+ import "../../chunk-E75NHLNL.js";
2
+ import {
3
+ replaceAfter
4
+ } from "../../chunk-GOH6G74S.js";
2
5
  import {
3
6
  toggleArray
4
- } from "../../chunk-HULCI3SJ.js";
7
+ } from "../../chunk-GOJN3OQ4.js";
8
+ import {
9
+ asyncMergeArray
10
+ } from "../../chunk-Q6FMBSK4.js";
11
+ import {
12
+ duplicateRemoval
13
+ } from "../../chunk-ZVBCHJA5.js";
5
14
  import {
6
15
  isArray
7
16
  } from "../../chunk-5PX3AFSC.js";
8
17
  import "../../chunk-UICA3PK6.js";
9
18
  export {
19
+ asyncMergeArray,
20
+ duplicateRemoval,
10
21
  isArray,
22
+ replaceAfter,
11
23
  toggleArray
12
24
  };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkLG7MY5KLcjs = require('../../chunk-LG7MY5KL.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.replaceAfter = _chunkLG7MY5KLcjs.replaceAfter;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 判断数组值,如果存在就删除,如果没有就添加
3
+ * @param {Array<T>} arr 当前数组
4
+ * @param {Object} obj 要处理的对象
5
+ * @param {string} id 比对的对应属性名称
6
+ * @returns {Array<T>} 判断后的数组值
7
+ */
8
+ declare function replaceAfter<T>(arr: Array<T>, obj: T, id: string): Array<T>;
9
+
10
+ export { replaceAfter };
@@ -0,0 +1,7 @@
1
+ import {
2
+ replaceAfter
3
+ } from "../../chunk-GOH6G74S.js";
4
+ import "../../chunk-UICA3PK6.js";
5
+ export {
6
+ replaceAfter
7
+ };
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3BKSZA3Ucjs = require('../../chunk-3BKSZA3U.cjs');
3
+ var _chunkAXMOZZCMcjs = require('../../chunk-AXMOZZCM.cjs');
4
4
  require('../../chunk-5AZGAKWR.cjs');
5
5
 
6
6
 
7
- exports.toggleArray = _chunk3BKSZA3Ucjs.toggleArray;
7
+ exports.toggleArray = _chunkAXMOZZCMcjs.toggleArray;
@@ -1,13 +1,10 @@
1
- interface Objunkn {
2
- [key: string]: any;
3
- }
4
1
  /**
5
2
  * 判断数组值,如果存在就删除,如果没有就添加
6
- * @param {Array<Objunkn>} arr 当前数组
7
- * @param {Objunkn} obj 要处理的对象
3
+ * @param {Array<T>} arr 当前数组
4
+ * @param {Object} obj 要处理的对象
8
5
  * @param {string} id 比对的对应属性名称
9
- * @returns {Array<Objunkn>} 判断后的数组值
6
+ * @returns {Array<T>} 判断后的数组值
10
7
  */
11
- declare function toggleArray(arr: Array<Objunkn>, obj: Objunkn, id: string): Array<Objunkn>;
8
+ declare function toggleArray<T>(arr: Array<T>, obj: T, id: string): Array<T>;
12
9
 
13
10
  export { toggleArray };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toggleArray
3
- } from "../../chunk-HULCI3SJ.js";
3
+ } from "../../chunk-GOJN3OQ4.js";
4
4
  import "../../chunk-UICA3PK6.js";
5
5
  export {
6
6
  toggleArray
@@ -1,27 +1,32 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-4J3S27XY.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-QN3FHV6S.cjs');
2
2
 
3
3
 
4
- var _chunkASN2EUM7cjs = require('../chunk-ASN2EUM7.cjs');
4
+ var _chunkOVWID444cjs = require('../chunk-OVWID444.cjs');
5
+ require('../chunk-UCZBNN4I.cjs');
5
6
  require('../chunk-J7S3KBHL.cjs');
6
7
 
7
8
 
8
- var _chunkR7G5MSGOcjs = require('../chunk-R7G5MSGO.cjs');
9
- require('../chunk-NRJPCN4J.cjs');
9
+ var _chunk4O7YOSS7cjs = require('../chunk-4O7YOSS7.cjs');
10
+ require('../chunk-LG7MY5KL.cjs');
11
+ require('../chunk-AXMOZZCM.cjs');
12
+
13
+
14
+ var _chunkUU2ZF6GCcjs = require('../chunk-UU2ZF6GC.cjs');
10
15
  require('../chunk-3VYRYSWK.cjs');
16
+ require('../chunk-NRJPCN4J.cjs');
11
17
  require('../chunk-3HXQ7TGV.cjs');
12
18
  require('../chunk-JR6ZN6QD.cjs');
19
+ require('../chunk-TCMJPIRM.cjs');
20
+ require('../chunk-GD3OA7GU.cjs');
13
21
  require('../chunk-PW7RP73J.cjs');
14
-
15
-
16
- var _chunkETPPNXJNcjs = require('../chunk-ETPPNXJN.cjs');
17
- require('../chunk-3BKSZA3U.cjs');
18
22
  require('../chunk-UEVMS6QD.cjs');
19
23
  require('../chunk-OQL4GIEJ.cjs');
20
- require('../chunk-XRGLFTH2.cjs');
24
+ require('../chunk-QLBOPNV4.cjs');
21
25
  require('../chunk-ISHLY7WM.cjs');
26
+ require('../chunk-MIC3W2VY.cjs');
22
27
  require('../chunk-5AZGAKWR.cjs');
23
28
 
24
29
 
25
30
 
26
31
 
27
- exports.array = _chunkETPPNXJNcjs.array_exports; exports.object = _chunkR7G5MSGOcjs.object_exports; exports.string = _chunkASN2EUM7cjs.string_exports;
32
+ exports.array = _chunk4O7YOSS7cjs.array_exports; exports.object = _chunkUU2ZF6GCcjs.object_exports; exports.string = _chunkOVWID444cjs.string_exports;
@@ -1,14 +1,19 @@
1
- export { i as array } from '../index-b1455ca1.js';
2
- export { i as object } from '../index-8473d4b5.js';
3
- export { i as string } from '../index-82dfd1d9.js';
4
- import './array/toggleArray.js';
1
+ export { i as array } from '../index-b16b81dc.js';
2
+ export { i as string } from '../index-1d6e286f.js';
3
+ export { i as object } from '../index-fab49d44.js';
4
+ import './array/asyncMergeArray.js';
5
+ import './array/duplicateRemoval.js';
5
6
  import './array/isArray.js';
6
- import './object/mergeObject.js';
7
- import './object/isObject.js';
8
- import './object/unmergeObject.js';
7
+ import './array/replaceAfter.js';
8
+ import './array/toggleArray.js';
9
9
  import './string/appearNum.js';
10
- import './string/appearNumSeat.js';
11
10
  import './string/firstLower.js';
12
- import './string/getStartSame.js';
11
+ import './string/appearNumSeat.js';
13
12
  import './string/firstUpper.js';
13
+ import './string/getStartSame.js';
14
14
  import './string/getStartSames.js';
15
+ import './string/splitUpper.js';
16
+ import './object/isObject.js';
17
+ import './object/isObjectArray.js';
18
+ import './object/mergeObject.js';
19
+ import './object/unmergeObject.js';
@@ -1,24 +1,29 @@
1
- import "../chunk-MPDCMTGO.js";
1
+ import "../chunk-YAV4Z2HU.js";
2
2
  import {
3
3
  string_exports
4
- } from "../chunk-H2LFD53G.js";
4
+ } from "../chunk-BVWHSNDI.js";
5
+ import "../chunk-Z6NS6N32.js";
5
6
  import "../chunk-7DTHADVK.js";
7
+ import {
8
+ array_exports
9
+ } from "../chunk-E75NHLNL.js";
10
+ import "../chunk-GOH6G74S.js";
11
+ import "../chunk-GOJN3OQ4.js";
6
12
  import {
7
13
  object_exports
8
- } from "../chunk-MAIGGOA4.js";
9
- import "../chunk-RD4EP3M5.js";
14
+ } from "../chunk-36PHYPTV.js";
10
15
  import "../chunk-A6J46LQK.js";
16
+ import "../chunk-RD4EP3M5.js";
11
17
  import "../chunk-SNABGVNO.js";
12
18
  import "../chunk-DMZP4RPN.js";
19
+ import "../chunk-Q6FMBSK4.js";
20
+ import "../chunk-ZVBCHJA5.js";
13
21
  import "../chunk-A276ZDLP.js";
14
- import {
15
- array_exports
16
- } from "../chunk-YMC5G5SU.js";
17
- import "../chunk-HULCI3SJ.js";
18
22
  import "../chunk-4OBNLDTJ.js";
19
23
  import "../chunk-EWJJKQIO.js";
20
- import "../chunk-WO6JQRTD.js";
24
+ import "../chunk-SRR2GWC7.js";
21
25
  import "../chunk-5PX3AFSC.js";
26
+ import "../chunk-MXY4W3K5.js";
22
27
  import "../chunk-UICA3PK6.js";
23
28
  export {
24
29
  array_exports as array,
@@ -1,17 +1,21 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-R7G5MSGO.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-UU2ZF6GC.cjs');
2
2
 
3
3
 
4
- var _chunkNRJPCN4Jcjs = require('../../chunk-NRJPCN4J.cjs');
4
+ var _chunk3VYRYSWKcjs = require('../../chunk-3VYRYSWK.cjs');
5
5
 
6
6
 
7
- var _chunk3VYRYSWKcjs = require('../../chunk-3VYRYSWK.cjs');
7
+ var _chunkNRJPCN4Jcjs = require('../../chunk-NRJPCN4J.cjs');
8
8
 
9
9
 
10
- var _chunkXRGLFTH2cjs = require('../../chunk-XRGLFTH2.cjs');
10
+ var _chunkQLBOPNV4cjs = require('../../chunk-QLBOPNV4.cjs');
11
11
  require('../../chunk-ISHLY7WM.cjs');
12
+
13
+
14
+ var _chunkMIC3W2VYcjs = require('../../chunk-MIC3W2VY.cjs');
12
15
  require('../../chunk-5AZGAKWR.cjs');
13
16
 
14
17
 
15
18
 
16
19
 
17
- exports.isObject = _chunkXRGLFTH2cjs.isObject; exports.mergeObject = _chunkNRJPCN4Jcjs.mergeObject; exports.unmergeObject = _chunk3VYRYSWKcjs.unmergeObject;
20
+
21
+ exports.isObject = _chunkMIC3W2VYcjs.isObject; exports.isObjectArray = _chunkQLBOPNV4cjs.isObjectArray; exports.mergeObject = _chunkNRJPCN4Jcjs.mergeObject; exports.unmergeObject = _chunk3VYRYSWKcjs.unmergeObject;
@@ -1,3 +1,4 @@
1
- export { mergeObject } from './mergeObject.js';
2
1
  export { isObject } from './isObject.js';
2
+ export { isObjectArray } from './isObjectArray.js';
3
+ export { mergeObject } from './mergeObject.js';
3
4
  export { unmergeObject } from './unmergeObject.js';
@@ -1,17 +1,21 @@
1
- import "../../chunk-MAIGGOA4.js";
1
+ import "../../chunk-36PHYPTV.js";
2
+ import {
3
+ unmergeObject
4
+ } from "../../chunk-A6J46LQK.js";
2
5
  import {
3
6
  mergeObject
4
7
  } from "../../chunk-RD4EP3M5.js";
5
8
  import {
6
- unmergeObject
7
- } from "../../chunk-A6J46LQK.js";
9
+ isObjectArray
10
+ } from "../../chunk-SRR2GWC7.js";
11
+ import "../../chunk-5PX3AFSC.js";
8
12
  import {
9
13
  isObject
10
- } from "../../chunk-WO6JQRTD.js";
11
- import "../../chunk-5PX3AFSC.js";
14
+ } from "../../chunk-MXY4W3K5.js";
12
15
  import "../../chunk-UICA3PK6.js";
13
16
  export {
14
17
  isObject,
18
+ isObjectArray,
15
19
  mergeObject,
16
20
  unmergeObject
17
21
  };
@@ -1,8 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXRGLFTH2cjs = require('../../chunk-XRGLFTH2.cjs');
4
- require('../../chunk-ISHLY7WM.cjs');
3
+ var _chunkMIC3W2VYcjs = require('../../chunk-MIC3W2VY.cjs');
5
4
  require('../../chunk-5AZGAKWR.cjs');
6
5
 
7
6
 
8
- exports.isObject = _chunkXRGLFTH2cjs.isObject;
7
+ exports.isObject = _chunkMIC3W2VYcjs.isObject;
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  isObject
3
- } from "../../chunk-WO6JQRTD.js";
4
- import "../../chunk-5PX3AFSC.js";
3
+ } from "../../chunk-MXY4W3K5.js";
5
4
  import "../../chunk-UICA3PK6.js";
6
5
  export {
7
6
  isObject
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkQLBOPNV4cjs = require('../../chunk-QLBOPNV4.cjs');
4
+ require('../../chunk-ISHLY7WM.cjs');
5
+ require('../../chunk-MIC3W2VY.cjs');
6
+ require('../../chunk-5AZGAKWR.cjs');
7
+
8
+
9
+ exports.isObjectArray = _chunkQLBOPNV4cjs.isObjectArray;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 是否 是对象并且不是数组
3
+ * @param {any} obj 判断值
4
+ * @returns {boolean}
5
+ */
6
+ declare function isObjectArray(obj: any): boolean;
7
+
8
+ export { isObjectArray };
@@ -0,0 +1,9 @@
1
+ import {
2
+ isObjectArray
3
+ } from "../../chunk-SRR2GWC7.js";
4
+ import "../../chunk-5PX3AFSC.js";
5
+ import "../../chunk-MXY4W3K5.js";
6
+ import "../../chunk-UICA3PK6.js";
7
+ export {
8
+ isObjectArray
9
+ };
@@ -1,4 +1,7 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-ASN2EUM7.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-OVWID444.cjs');
2
+
3
+
4
+ var _chunkUCZBNN4Icjs = require('../../chunk-UCZBNN4I.cjs');
2
5
 
3
6
 
4
7
  var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
@@ -25,4 +28,5 @@ require('../../chunk-5AZGAKWR.cjs');
25
28
 
26
29
 
27
30
 
28
- exports.appearNum = _chunk3HXQ7TGVcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames;
31
+
32
+ exports.appearNum = _chunk3HXQ7TGVcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.splitUpper = _chunkUCZBNN4Icjs.splitUpper;
@@ -1,6 +1,7 @@
1
1
  export { appearNum } from './appearNum.js';
2
- export { appearNumSeat } from './appearNumSeat.js';
3
2
  export { firstLower } from './firstLower.js';
4
- export { getStartSame } from './getStartSame.js';
3
+ export { appearNumSeat } from './appearNumSeat.js';
5
4
  export { firstUpper } from './firstUpper.js';
5
+ export { getStartSame } from './getStartSame.js';
6
6
  export { getStartSames } from './getStartSames.js';
7
+ export { splitUpper } from './splitUpper.js';
@@ -1,4 +1,7 @@
1
- import "../../chunk-H2LFD53G.js";
1
+ import "../../chunk-BVWHSNDI.js";
2
+ import {
3
+ splitUpper
4
+ } from "../../chunk-Z6NS6N32.js";
2
5
  import {
3
6
  getStartSame
4
7
  } from "../../chunk-7DTHADVK.js";
@@ -24,5 +27,6 @@ export {
24
27
  firstLower,
25
28
  firstUpper,
26
29
  getStartSame,
27
- getStartSames
30
+ getStartSames,
31
+ splitUpper
28
32
  };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkUCZBNN4Icjs = require('../../chunk-UCZBNN4I.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.splitUpper = _chunkUCZBNN4Icjs.splitUpper;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 按照大写字母分割
3
+ * @param {string} name
4
+ * @returns { Array }
5
+ */
6
+ declare function splitUpper(name: string): string[];
7
+
8
+ export { splitUpper };
@@ -0,0 +1,7 @@
1
+ import {
2
+ splitUpper
3
+ } from "../../chunk-Z6NS6N32.js";
4
+ import "../../chunk-UICA3PK6.js";
5
+ export {
6
+ splitUpper
7
+ };
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYK7WI6H7cjs = require('./chunk-YK7WI6H7.cjs');
3
+ var _chunkIRKWYW5Bcjs = require('./chunk-IRKWYW5B.cjs');
4
4
 
5
5
  // packages/urls/getImportUrlSuffix.ts
6
6
  function getImportUrlSuffix(url, imp) {
7
- return _chunkYK7WI6H7cjs.getImportUrl.call(void 0, url, imp).replace(
7
+ return _chunkIRKWYW5Bcjs.getImportUrl.call(void 0, url, imp).replace(
8
8
  /\.([a-z|A-Z]+)$/,
9
9
  ""
10
10
  );
@@ -1,12 +1,15 @@
1
+ import {
2
+ unmergeObject
3
+ } from "./chunk-A6J46LQK.js";
1
4
  import {
2
5
  mergeObject
3
6
  } from "./chunk-RD4EP3M5.js";
4
7
  import {
5
- unmergeObject
6
- } from "./chunk-A6J46LQK.js";
8
+ isObjectArray
9
+ } from "./chunk-SRR2GWC7.js";
7
10
  import {
8
11
  isObject
9
- } from "./chunk-WO6JQRTD.js";
12
+ } from "./chunk-MXY4W3K5.js";
10
13
  import {
11
14
  __export
12
15
  } from "./chunk-UICA3PK6.js";
@@ -15,6 +18,7 @@ import {
15
18
  var object_exports = {};
16
19
  __export(object_exports, {
17
20
  isObject: () => isObject,
21
+ isObjectArray: () => isObjectArray,
18
22
  mergeObject: () => mergeObject,
19
23
  unmergeObject: () => unmergeObject
20
24
  });
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/urls/getUrlCatalogueLast.ts
2
+ function getUrlCatalogueLast(str) {
3
+ const reg = /(\\|\/)([^\\|\/]+)(\\|\/)?(([^\\|\/]+)(\.[a-z|A-Z]+))?$/g;
4
+ const arr = reg.exec(str);
5
+ if (arr && arr.length > 0) {
6
+ return arr[2];
7
+ }
8
+ return "";
9
+ }
10
+
11
+
12
+
13
+ exports.getUrlCatalogueLast = getUrlCatalogueLast;
@@ -0,0 +1,30 @@
1
+ import {
2
+ getUrlCatalogueObj
3
+ } from "./chunk-XUUIYV6X.js";
4
+
5
+ // packages/urls/getNewFileName.ts
6
+ function getNewFileName(url) {
7
+ const obj = getUrlCatalogueObj(url);
8
+ let wb = obj.name;
9
+ if (wb) {
10
+ const reg = /([0-9]+)$/g;
11
+ const regs = reg.exec(wb);
12
+ if (regs && regs.length > 0) {
13
+ const sl = Number(regs[1]) + 1;
14
+ const reg1 = new RegExp(regs[1] + "$");
15
+ wb = wb.replace(
16
+ reg1,
17
+ (sl + "").padStart(regs[1].length, "0")
18
+ );
19
+ } else {
20
+ wb = wb + "1";
21
+ }
22
+ return obj.catalogue + obj.apart + wb + "." + obj.suffix;
23
+ } else {
24
+ return "";
25
+ }
26
+ }
27
+
28
+ export {
29
+ getNewFileName
30
+ };
@@ -1,18 +1,30 @@
1
- import {
2
- getImportUrlSuffix
3
- } from "./chunk-G6FL4SSB.js";
4
- import {
5
- getImportUrl
6
- } from "./chunk-LFC6RYSS.js";
7
1
  import {
8
2
  getReplaceUrl
9
3
  } from "./chunk-ZRZ5HATA.js";
4
+ import {
5
+ getSuffix
6
+ } from "./chunk-UOADEBDH.js";
10
7
  import {
11
8
  getUrlCatalogue
12
9
  } from "./chunk-ZEXHP7HI.js";
10
+ import {
11
+ getUrlCatalogueLast
12
+ } from "./chunk-BDJORZRC.js";
13
+ import {
14
+ getImportUrlSuffix
15
+ } from "./chunk-XBZX5YZW.js";
16
+ import {
17
+ getImportUrl
18
+ } from "./chunk-AWC672JW.js";
19
+ import {
20
+ getNewFileName
21
+ } from "./chunk-3T5SHCYK.js";
13
22
  import {
14
23
  getUrlCatalogueObj
15
- } from "./chunk-AS3WKQP7.js";
24
+ } from "./chunk-XUUIYV6X.js";
25
+ import {
26
+ getReplaceImportUrl
27
+ } from "./chunk-CWNSXHMU.js";
16
28
  import {
17
29
  __export
18
30
  } from "./chunk-UICA3PK6.js";
@@ -22,8 +34,12 @@ var urls_exports = {};
22
34
  __export(urls_exports, {
23
35
  getImportUrl: () => getImportUrl,
24
36
  getImportUrlSuffix: () => getImportUrlSuffix,
37
+ getNewFileName: () => getNewFileName,
38
+ getReplaceImportUrl: () => getReplaceImportUrl,
25
39
  getReplaceUrl: () => getReplaceUrl,
40
+ getSuffix: () => getSuffix,
26
41
  getUrlCatalogue: () => getUrlCatalogue,
42
+ getUrlCatalogueLast: () => getUrlCatalogueLast,
27
43
  getUrlCatalogueObj: () => getUrlCatalogueObj
28
44
  });
29
45