@fangzhongya/utils 0.0.7 → 0.0.8-3

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 (179) hide show
  1. package/LICENSE +25 -25
  2. package/README.md +5 -3
  3. package/dist/basic/array/asyncMergeArray.cjs +7 -0
  4. package/dist/basic/array/asyncMergeArray.d.ts +9 -0
  5. package/dist/basic/array/asyncMergeArray.js +7 -0
  6. package/dist/basic/array/duplicateRemoval.cjs +7 -0
  7. package/dist/basic/array/duplicateRemoval.d.ts +9 -0
  8. package/dist/basic/array/duplicateRemoval.js +7 -0
  9. package/dist/basic/array/index.cjs +15 -3
  10. package/dist/basic/array/index.d.ts +3 -0
  11. package/dist/basic/array/index.js +14 -2
  12. package/dist/basic/array/replaceAfter.cjs +7 -0
  13. package/dist/basic/array/replaceAfter.d.ts +10 -0
  14. package/dist/basic/array/replaceAfter.js +7 -0
  15. package/dist/basic/array/toggleArray.cjs +2 -2
  16. package/dist/basic/array/toggleArray.d.ts +4 -7
  17. package/dist/basic/array/toggleArray.js +1 -1
  18. package/dist/basic/index.cjs +16 -11
  19. package/dist/basic/index.d.ts +13 -8
  20. package/dist/basic/index.js +15 -10
  21. package/dist/basic/object/index.cjs +7 -3
  22. package/dist/basic/object/index.d.ts +2 -1
  23. package/dist/basic/object/index.js +7 -3
  24. package/dist/basic/object/isObject.cjs +2 -3
  25. package/dist/basic/object/isObject.js +1 -2
  26. package/dist/basic/object/isObjectArray.cjs +9 -0
  27. package/dist/basic/object/isObjectArray.d.ts +8 -0
  28. package/dist/basic/object/isObjectArray.js +9 -0
  29. package/dist/basic/string/index.cjs +8 -4
  30. package/dist/basic/string/index.d.ts +3 -2
  31. package/dist/basic/string/index.js +10 -6
  32. package/dist/basic/string/splitUpper.cjs +7 -0
  33. package/dist/basic/string/splitUpper.d.ts +8 -0
  34. package/dist/basic/string/splitUpper.js +7 -0
  35. package/dist/{chunk-O6GUK5PL.cjs → chunk-27WA7EI2.cjs} +2 -2
  36. package/dist/chunk-2SOGI5PH.js +40 -0
  37. package/dist/{chunk-G3AKL6ST.js → chunk-2W7EPKCY.js} +6 -6
  38. package/dist/chunk-3ERQHPTD.cjs +13 -0
  39. package/dist/chunk-3NFJ3TZL.js +32 -0
  40. package/dist/chunk-43VE3KXL.cjs +27 -0
  41. package/dist/{chunk-XZDG4EDX.js → chunk-4TVFBKXC.js} +5 -5
  42. package/dist/{chunk-R7G5MSGO.cjs → chunk-5JCMM6YG.cjs} +6 -2
  43. package/dist/chunk-5RZYHE3X.js +16 -0
  44. package/dist/{chunk-N6OX2U6W.cjs → chunk-5U2ZV4MK.cjs} +6 -2
  45. package/dist/{chunk-IMCJXCTH.cjs → chunk-5UV36ZIW.cjs} +4 -4
  46. package/dist/chunk-6A6EAFGL.cjs +13 -0
  47. package/dist/{chunk-MWVRSPS5.js → chunk-6MGCPTRE.js} +9 -5
  48. package/dist/{chunk-P3YVE7JK.cjs → chunk-77SI5VSS.cjs} +5 -2
  49. package/dist/chunk-7B2HWFLC.cjs +20 -0
  50. package/dist/chunk-AM67P3W7.js +15 -0
  51. package/dist/{chunk-LFC6RYSS.js → chunk-AWC672JW.js} +13 -0
  52. package/dist/chunk-AXAVKIR3.cjs +20 -0
  53. package/dist/{chunk-3BKSZA3U.cjs → chunk-AXMOZZCM.cjs} +4 -3
  54. package/dist/chunk-BDJORZRC.js +13 -0
  55. package/dist/{chunk-VHMUSGCJ.js → chunk-BWNLZJJG.js} +4 -4
  56. package/dist/{chunk-MAIGGOA4.js → chunk-C5A37VUQ.js} +5 -1
  57. package/dist/{chunk-DILKJQYV.cjs → chunk-CP2ZSRMU.cjs} +1 -1
  58. package/dist/chunk-FP5ETUFZ.cjs +21 -0
  59. package/dist/chunk-GD3OA7GU.cjs +18 -0
  60. package/dist/chunk-GOH6G74S.js +17 -0
  61. package/dist/{chunk-HULCI3SJ.js → chunk-GOJN3OQ4.js} +4 -3
  62. package/dist/chunk-HCEAYQHS.cjs +40 -0
  63. package/dist/{chunk-YK7WI6H7.cjs → chunk-IRKWYW5B.cjs} +13 -0
  64. package/dist/chunk-ISSZY3JI.cjs +24 -0
  65. package/dist/chunk-JLEIVV37.cjs +32 -0
  66. package/dist/chunk-LG7MY5KL.cjs +17 -0
  67. package/dist/chunk-LPDYEUMB.cjs +48 -0
  68. package/dist/chunk-MIC3W2VY.cjs +8 -0
  69. package/dist/{chunk-FESWCW7T.js → chunk-MXLYIZIX.js} +4 -4
  70. package/dist/chunk-MXY4W3K5.js +8 -0
  71. package/dist/{chunk-L45SIOB3.js → chunk-MYS6DR74.js} +22 -6
  72. package/dist/chunk-O2RP4UZQ.cjs +45 -0
  73. package/dist/chunk-P3HC3D2H.cjs +32 -0
  74. package/dist/{chunk-JSU6KHXP.cjs → chunk-PAJDTMC5.cjs} +6 -6
  75. package/dist/{chunk-HRECTLZO.js → chunk-QIK5MQUL.js} +7 -3
  76. package/dist/chunk-QKLVFB74.js +45 -0
  77. package/dist/chunk-QLBOPNV4.cjs +15 -0
  78. package/dist/chunk-RFUD3TOQ.cjs +30 -0
  79. package/dist/chunk-RU4PMJQS.js +21 -0
  80. package/dist/chunk-RWKZ6ZKW.js +20 -0
  81. package/dist/chunk-SRR2GWC7.js +15 -0
  82. package/dist/{chunk-AS3WKQP7.js → chunk-TP5BP64T.js} +5 -2
  83. package/dist/chunk-UCZBNN4I.cjs +19 -0
  84. package/dist/chunk-UGS2F6DK.cjs +16 -0
  85. package/dist/chunk-UOADEBDH.js +13 -0
  86. package/dist/chunk-VNVG4BJ4.cjs +23 -0
  87. package/dist/{chunk-3OME5O5G.cjs → chunk-WI55O3IV.cjs} +2 -2
  88. package/dist/{chunk-G6FL4SSB.js → chunk-XBZX5YZW.js} +1 -1
  89. package/dist/{chunk-2PY55D6T.js → chunk-XCDKXZFR.js} +3 -3
  90. package/dist/chunk-XCTPS2CO.js +20 -0
  91. package/dist/{chunk-2B742V22.cjs → chunk-XHR36FJK.cjs} +2 -6
  92. package/dist/chunk-XQB2HUHZ.js +23 -0
  93. package/dist/{chunk-ZEXHP7HI.js → chunk-YWL2IWBT.js} +1 -1
  94. package/dist/chunk-YYWENXJO.js +27 -0
  95. package/dist/chunk-Z6NS6N32.js +19 -0
  96. package/dist/chunk-ZJHRAMCL.js +30 -0
  97. package/dist/{chunk-62JF75OY.cjs → chunk-ZMG2MHGS.cjs} +7 -3
  98. package/dist/chunk-ZVBCHJA5.js +18 -0
  99. package/dist/css/fetchUnitValue.cjs +7 -0
  100. package/dist/css/fetchUnitValue.d.ts +10 -0
  101. package/dist/css/fetchUnitValue.js +7 -0
  102. package/dist/css/getCss.cjs +7 -0
  103. package/dist/css/getCss.d.ts +3 -0
  104. package/dist/css/getCss.js +7 -0
  105. package/dist/css/index.cjs +12 -0
  106. package/dist/css/index.d.ts +2 -0
  107. package/dist/css/index.js +12 -0
  108. package/dist/{index-24872dab.d.ts → index-09cd203a.d.ts} +3 -0
  109. package/dist/index-2c4dacd2.d.ts +13 -0
  110. package/dist/{index-f8e894a2.d.ts → index-39c0a1ca.d.ts} +5 -2
  111. package/dist/index-42672b09.d.ts +36 -0
  112. package/dist/index-84b0c6c3.d.ts +13 -0
  113. package/dist/index-b16b81dc.d.ts +22 -0
  114. package/dist/index-c661bc0a.d.ts +13 -0
  115. package/dist/{index-8473d4b5.d.ts → index-fab49d44.d.ts} +4 -1
  116. package/dist/index.cjs +46 -25
  117. package/dist/index.d.ts +30 -15
  118. package/dist/index.js +46 -25
  119. package/dist/iss/index.cjs +7 -3
  120. package/dist/iss/index.d.ts +1 -0
  121. package/dist/iss/index.js +8 -4
  122. package/dist/load/getSynch.cjs +7 -0
  123. package/dist/load/getSynch.d.ts +8 -0
  124. package/dist/load/getSynch.js +7 -0
  125. package/dist/load/index.cjs +12 -0
  126. package/dist/load/index.d.ts +2 -0
  127. package/dist/load/index.js +12 -0
  128. package/dist/load/loadScript.cjs +7 -0
  129. package/dist/load/loadScript.d.ts +3 -0
  130. package/dist/load/loadScript.js +7 -0
  131. package/dist/name/getComponentNames.cjs +5 -5
  132. package/dist/name/getComponentNames.js +4 -4
  133. package/dist/name/getNames.cjs +5 -5
  134. package/dist/name/getNames.js +4 -4
  135. package/dist/name/index.cjs +7 -7
  136. package/dist/name/index.d.ts +2 -2
  137. package/dist/name/index.js +8 -8
  138. package/dist/name/lineToLargeHump.cjs +3 -3
  139. package/dist/name/lineToLargeHump.js +2 -2
  140. package/dist/name/lineToSmallHump.cjs +4 -3
  141. package/dist/name/lineToSmallHump.d.ts +1 -1
  142. package/dist/name/lineToSmallHump.js +3 -2
  143. package/dist/urls/getImportUrl.cjs +2 -2
  144. package/dist/urls/getImportUrl.js +1 -1
  145. package/dist/urls/getImportUrlSuffix.cjs +3 -3
  146. package/dist/urls/getImportUrlSuffix.js +2 -2
  147. package/dist/urls/getNewFileName.cjs +8 -0
  148. package/dist/urls/getNewFileName.d.ts +8 -0
  149. package/dist/urls/getNewFileName.js +8 -0
  150. package/dist/urls/getReplaceImportUrl.cjs +8 -0
  151. package/dist/urls/getReplaceImportUrl.d.ts +9 -0
  152. package/dist/urls/getReplaceImportUrl.js +8 -0
  153. package/dist/urls/getSuffix.cjs +7 -0
  154. package/dist/urls/getSuffix.d.ts +8 -0
  155. package/dist/urls/getSuffix.js +7 -0
  156. package/dist/urls/getUrlCatalogue.cjs +2 -2
  157. package/dist/urls/getUrlCatalogue.js +1 -1
  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 +2 -2
  162. package/dist/urls/getUrlCatalogueObj.d.ts +4 -3
  163. package/dist/urls/getUrlCatalogueObj.js +1 -1
  164. package/dist/urls/index.cjs +22 -6
  165. package/dist/urls/index.d.ts +5 -1
  166. package/dist/urls/index.js +23 -7
  167. package/package.json +308 -233
  168. package/dist/chunk-3VG3A2GM.cjs +0 -24
  169. package/dist/chunk-6ADW34CB.cjs +0 -32
  170. package/dist/chunk-ETPPNXJN.cjs +0 -20
  171. package/dist/chunk-O3RJ5M35.js +0 -19
  172. package/dist/chunk-UL24YTNH.cjs +0 -32
  173. package/dist/chunk-WO6JQRTD.js +0 -16
  174. package/dist/chunk-XRGLFTH2.cjs +0 -16
  175. package/dist/chunk-YMC5G5SU.js +0 -20
  176. package/dist/index-cee90650.d.ts +0 -22
  177. package/dist/index-dfd59fc4.d.ts +0 -13
  178. package/dist/index-ee246de3.d.ts +0 -13
  179. package/dist/{index-dddef964.d.ts → index-f6ea5a6a.d.ts} +2 -2
package/LICENSE CHANGED
@@ -1,25 +1,25 @@
1
- MIT License
2
-
3
- Copyright (c) 2022-2024 fangzhongya
4
-
5
- Permission is hereby granted, free of charge, to any person
6
- obtaining a copy of this software and associated
7
- documentation files (the "Software"), to deal in the
8
- Software without restriction, including without limitation
9
- the rights to use, copy, modify, merge, publish, distribute,
10
- sublicense, and/or sell copies of the Software, and to
11
- permit persons to whom the Software is furnished to do so,
12
- subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall
15
- be included in all copies or substantial portions of the
16
- Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
19
- KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
20
- WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21
- PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
22
- OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
23
- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2022-2024 fangzhongya
4
+
5
+ Permission is hereby granted, free of charge, to any person
6
+ obtaining a copy of this software and associated
7
+ documentation files (the "Software"), to deal in the
8
+ Software without restriction, including without limitation
9
+ the rights to use, copy, modify, merge, publish, distribute,
10
+ sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so,
12
+ subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall
15
+ be included in all copies or substantial portions of the
16
+ Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
19
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
20
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
22
+ OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
23
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
- # utils
2
-
3
- 个人工具库
1
+ # utils
2
+
3
+ 个人工具库
4
+
5
+ 测试 自动提交2
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkVNVG4BJ4cjs = require('../../chunk-VNVG4BJ4.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.asyncMergeArray = _chunkVNVG4BJ4cjs.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-XQB2HUHZ.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-P3HC3D2H.cjs');
2
2
 
3
3
 
4
- var _chunk3BKSZA3Ucjs = require('../../chunk-3BKSZA3U.cjs');
4
+ var _chunkVNVG4BJ4cjs = require('../../chunk-VNVG4BJ4.cjs');
5
+
6
+
7
+ var _chunkGD3OA7GUcjs = require('../../chunk-GD3OA7GU.cjs');
8
+
9
+
10
+ var _chunkLG7MY5KLcjs = require('../../chunk-LG7MY5KL.cjs');
11
+
12
+
13
+ var _chunkAXMOZZCMcjs = require('../../chunk-AXMOZZCM.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 = _chunkVNVG4BJ4cjs.asyncMergeArray; exports.duplicateRemoval = _chunkGD3OA7GUcjs.duplicateRemoval; exports.isArray = _chunkISHLY7WMcjs.isArray; exports.replaceAfter = _chunkLG7MY5KLcjs.replaceAfter; exports.toggleArray = _chunkAXMOZZCMcjs.toggleArray;
@@ -1,2 +1,5 @@
1
+ export { asyncMergeArray } from './asyncMergeArray.js';
2
+ export { duplicateRemoval } from './duplicateRemoval.js';
1
3
  export { isArray } from './isArray.js';
4
+ export { replaceAfter } from './replaceAfter.js';
2
5
  export { toggleArray } from './toggleArray.js';
@@ -1,12 +1,24 @@
1
- import "../../chunk-YMC5G5SU.js";
1
+ import "../../chunk-3NFJ3TZL.js";
2
+ import {
3
+ asyncMergeArray
4
+ } from "../../chunk-XQB2HUHZ.js";
5
+ import {
6
+ duplicateRemoval
7
+ } from "../../chunk-ZVBCHJA5.js";
8
+ import {
9
+ replaceAfter
10
+ } from "../../chunk-GOH6G74S.js";
2
11
  import {
3
12
  toggleArray
4
- } from "../../chunk-HULCI3SJ.js";
13
+ } from "../../chunk-GOJN3OQ4.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-3VG3A2GM.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ISSZY3JI.cjs');
2
2
 
3
3
 
4
- var _chunk62JF75OYcjs = require('../chunk-62JF75OY.cjs');
4
+ var _chunkZMG2MHGScjs = require('../chunk-ZMG2MHGS.cjs');
5
+ require('../chunk-UCZBNN4I.cjs');
5
6
  require('../chunk-J7S3KBHL.cjs');
6
7
 
7
8
 
8
- var _chunkR7G5MSGOcjs = require('../chunk-R7G5MSGO.cjs');
9
+ var _chunkP3HC3D2Hcjs = require('../chunk-P3HC3D2H.cjs');
10
+ require('../chunk-VNVG4BJ4.cjs');
11
+ require('../chunk-GD3OA7GU.cjs');
12
+ require('../chunk-LG7MY5KL.cjs');
13
+ require('../chunk-AXMOZZCM.cjs');
14
+
15
+
16
+ var _chunk5JCMM6YGcjs = require('../chunk-5JCMM6YG.cjs');
9
17
  require('../chunk-NRJPCN4J.cjs');
10
18
  require('../chunk-3VYRYSWK.cjs');
11
19
  require('../chunk-3HXQ7TGV.cjs');
12
20
  require('../chunk-JR6ZN6QD.cjs');
13
- require('../chunk-PW7RP73J.cjs');
14
-
15
-
16
- var _chunkETPPNXJNcjs = require('../chunk-ETPPNXJN.cjs');
17
- require('../chunk-3BKSZA3U.cjs');
18
- require('../chunk-OQL4GIEJ.cjs');
19
21
  require('../chunk-UEVMS6QD.cjs');
20
- require('../chunk-XRGLFTH2.cjs');
22
+ require('../chunk-OQL4GIEJ.cjs');
23
+ require('../chunk-PW7RP73J.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 = _chunk62JF75OYcjs.string_exports;
32
+ exports.array = _chunkP3HC3D2Hcjs.array_exports; exports.object = _chunk5JCMM6YGcjs.object_exports; exports.string = _chunkZMG2MHGScjs.string_exports;
@@ -1,14 +1,19 @@
1
- export { i as array } from '../index-ee246de3.js';
2
- export { i as object } from '../index-8473d4b5.js';
3
- export { i as string } from '../index-f8e894a2.js';
1
+ export { i as array } from '../index-b16b81dc.js';
2
+ export { i as string } from '../index-39c0a1ca.js';
3
+ export { i as object } from '../index-fab49d44.js';
4
+ import './array/asyncMergeArray.js';
5
+ import './array/duplicateRemoval.js';
4
6
  import './array/isArray.js';
7
+ import './array/replaceAfter.js';
5
8
  import './array/toggleArray.js';
6
- import './object/mergeObject.js';
7
- import './object/isObject.js';
8
- import './object/unmergeObject.js';
9
9
  import './string/appearNum.js';
10
- import './string/appearNumSeat.js';
11
- import './string/firstLower.js';
12
10
  import './string/firstUpper.js';
11
+ import './string/firstLower.js';
12
+ import './string/appearNumSeat.js';
13
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-XZDG4EDX.js";
1
+ import "../chunk-4TVFBKXC.js";
2
2
  import {
3
3
  string_exports
4
- } from "../chunk-MWVRSPS5.js";
4
+ } from "../chunk-6MGCPTRE.js";
5
+ import "../chunk-Z6NS6N32.js";
5
6
  import "../chunk-7DTHADVK.js";
7
+ import {
8
+ array_exports
9
+ } from "../chunk-3NFJ3TZL.js";
10
+ import "../chunk-XQB2HUHZ.js";
11
+ import "../chunk-ZVBCHJA5.js";
12
+ import "../chunk-GOH6G74S.js";
13
+ import "../chunk-GOJN3OQ4.js";
6
14
  import {
7
15
  object_exports
8
- } from "../chunk-MAIGGOA4.js";
16
+ } from "../chunk-C5A37VUQ.js";
9
17
  import "../chunk-RD4EP3M5.js";
10
18
  import "../chunk-A6J46LQK.js";
11
19
  import "../chunk-SNABGVNO.js";
12
20
  import "../chunk-DMZP4RPN.js";
13
- import "../chunk-A276ZDLP.js";
14
- import {
15
- array_exports
16
- } from "../chunk-YMC5G5SU.js";
17
- import "../chunk-HULCI3SJ.js";
18
- import "../chunk-EWJJKQIO.js";
19
21
  import "../chunk-4OBNLDTJ.js";
20
- import "../chunk-WO6JQRTD.js";
22
+ import "../chunk-EWJJKQIO.js";
23
+ import "../chunk-A276ZDLP.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,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-R7G5MSGO.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-5JCMM6YG.cjs');
2
2
 
3
3
 
4
4
  var _chunkNRJPCN4Jcjs = require('../../chunk-NRJPCN4J.cjs');
@@ -7,11 +7,15 @@ var _chunkNRJPCN4Jcjs = require('../../chunk-NRJPCN4J.cjs');
7
7
  var _chunk3VYRYSWKcjs = require('../../chunk-3VYRYSWK.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,4 +1,4 @@
1
- import "../../chunk-MAIGGOA4.js";
1
+ import "../../chunk-C5A37VUQ.js";
2
2
  import {
3
3
  mergeObject
4
4
  } from "../../chunk-RD4EP3M5.js";
@@ -6,12 +6,16 @@ import {
6
6
  unmergeObject
7
7
  } from "../../chunk-A6J46LQK.js";
8
8
  import {
9
- isObject
10
- } from "../../chunk-WO6JQRTD.js";
9
+ isObjectArray
10
+ } from "../../chunk-SRR2GWC7.js";
11
11
  import "../../chunk-5PX3AFSC.js";
12
+ import {
13
+ isObject
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-62JF75OY.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-ZMG2MHGS.cjs');
2
+
3
+
4
+ var _chunkUCZBNN4Icjs = require('../../chunk-UCZBNN4I.cjs');
2
5
 
3
6
 
4
7
  var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
@@ -10,13 +13,13 @@ var _chunk3HXQ7TGVcjs = require('../../chunk-3HXQ7TGV.cjs');
10
13
  var _chunkJR6ZN6QDcjs = require('../../chunk-JR6ZN6QD.cjs');
11
14
 
12
15
 
13
- var _chunkPW7RP73Jcjs = require('../../chunk-PW7RP73J.cjs');
16
+ var _chunkUEVMS6QDcjs = require('../../chunk-UEVMS6QD.cjs');
14
17
 
15
18
 
16
19
  var _chunkOQL4GIEJcjs = require('../../chunk-OQL4GIEJ.cjs');
17
20
 
18
21
 
19
- var _chunkUEVMS6QDcjs = require('../../chunk-UEVMS6QD.cjs');
22
+ var _chunkPW7RP73Jcjs = require('../../chunk-PW7RP73J.cjs');
20
23
  require('../../chunk-5AZGAKWR.cjs');
21
24
 
22
25
 
@@ -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
- export { firstLower } from './firstLower.js';
4
2
  export { firstUpper } from './firstUpper.js';
3
+ export { firstLower } from './firstLower.js';
4
+ export { appearNumSeat } from './appearNumSeat.js';
5
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-MWVRSPS5.js";
1
+ import "../../chunk-6MGCPTRE.js";
2
+ import {
3
+ splitUpper
4
+ } from "../../chunk-Z6NS6N32.js";
2
5
  import {
3
6
  getStartSame
4
7
  } from "../../chunk-7DTHADVK.js";
@@ -9,14 +12,14 @@ import {
9
12
  appearNumSeat
10
13
  } from "../../chunk-DMZP4RPN.js";
11
14
  import {
12
- getStartSames
13
- } from "../../chunk-A276ZDLP.js";
15
+ firstLower
16
+ } from "../../chunk-4OBNLDTJ.js";
14
17
  import {
15
18
  firstUpper
16
19
  } from "../../chunk-EWJJKQIO.js";
17
20
  import {
18
- firstLower
19
- } from "../../chunk-4OBNLDTJ.js";
21
+ getStartSames
22
+ } from "../../chunk-A276ZDLP.js";
20
23
  import "../../chunk-UICA3PK6.js";
21
24
  export {
22
25
  appearNum,
@@ -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
  );
@@ -0,0 +1,40 @@
1
+ // packages/load/getSynch.ts
2
+ function getSynch() {
3
+ const synchLoads = [];
4
+ let adds = [];
5
+ let is = true;
6
+ let value;
7
+ const setLoad = (v) => {
8
+ v[0](...v[1]).then((v2) => {
9
+ adds = [];
10
+ value = v2;
11
+ for (; synchLoads.length > 0; ) {
12
+ const c = synchLoads.shift();
13
+ if (c) {
14
+ c(value);
15
+ }
16
+ }
17
+ }).catch(() => {
18
+ adds.shift();
19
+ if (adds.length > 0) {
20
+ setLoad(adds[0]);
21
+ }
22
+ });
23
+ };
24
+ return (callback, add, ...arr) => {
25
+ if (value) {
26
+ callback(value);
27
+ } else {
28
+ synchLoads.push(callback);
29
+ adds.push([add, arr]);
30
+ if (is) {
31
+ is = null;
32
+ setLoad(adds[0]);
33
+ }
34
+ }
35
+ };
36
+ }
37
+
38
+ export {
39
+ getSynch
40
+ };