@fangzhongya/utils 0.0.33 → 0.0.34

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 (268) hide show
  1. package/dist/basic/array/compareArray.cjs +1 -0
  2. package/dist/basic/array/compareArray.js +1 -0
  3. package/dist/basic/array/index.cjs +6 -5
  4. package/dist/basic/array/index.js +7 -6
  5. package/dist/basic/index.cjs +13 -12
  6. package/dist/basic/index.js +12 -11
  7. package/dist/basic/object/index.cjs +8 -8
  8. package/dist/basic/object/index.js +8 -8
  9. package/dist/basic/string/index.cjs +10 -10
  10. package/dist/basic/string/index.js +11 -11
  11. package/dist/chunk-4SFMC3WS.cjs +24 -0
  12. package/dist/{chunk-LD6JU2VP.cjs → chunk-JZQA6OH4.cjs} +12 -12
  13. package/dist/chunk-M53E7HJ2.js +0 -0
  14. package/dist/{chunk-L2KRZ4TC.js → chunk-QBGA4H7C.js} +3 -3
  15. package/dist/{chunk-W2FTHPGA.js → chunk-TQGXHFVK.js} +16 -16
  16. package/dist/chunk-UC2AI4QC.cjs +1 -0
  17. package/dist/html/index.cjs +5 -5
  18. package/dist/html/index.js +7 -7
  19. package/dist/index.cjs +39 -38
  20. package/dist/index.js +41 -40
  21. package/dist/urls/getReplaceUrls.cjs +3 -3
  22. package/dist/urls/getReplaceUrls.js +2 -2
  23. package/dist/urls/index.cjs +15 -15
  24. package/dist/urls/index.js +19 -19
  25. package/package.json +6 -1
  26. package/dist/basic/array/asyncMergeArray.d.cts +0 -9
  27. package/dist/basic/array/asyncMergeArray.d.ts +0 -9
  28. package/dist/basic/array/deleteArray.d.cts +0 -6
  29. package/dist/basic/array/deleteArray.d.ts +0 -6
  30. package/dist/basic/array/duplicateRemoval.d.cts +0 -9
  31. package/dist/basic/array/duplicateRemoval.d.ts +0 -9
  32. package/dist/basic/array/index.d.cts +0 -7
  33. package/dist/basic/array/index.d.ts +0 -7
  34. package/dist/basic/array/isArray.d.cts +0 -8
  35. package/dist/basic/array/isArray.d.ts +0 -8
  36. package/dist/basic/array/replaceAfter.d.cts +0 -11
  37. package/dist/basic/array/replaceAfter.d.ts +0 -11
  38. package/dist/basic/array/sortObj.d.cts +0 -10
  39. package/dist/basic/array/sortObj.d.ts +0 -10
  40. package/dist/basic/array/toggleArray.d.cts +0 -10
  41. package/dist/basic/array/toggleArray.d.ts +0 -10
  42. package/dist/basic/index.d.cts +0 -37
  43. package/dist/basic/index.d.ts +0 -37
  44. package/dist/basic/object/attrValueSort.d.cts +0 -12
  45. package/dist/basic/object/attrValueSort.d.ts +0 -12
  46. package/dist/basic/object/deepCopy.d.cts +0 -8
  47. package/dist/basic/object/deepCopy.d.ts +0 -8
  48. package/dist/basic/object/filterObject.d.cts +0 -14
  49. package/dist/basic/object/filterObject.d.ts +0 -14
  50. package/dist/basic/object/getSort.d.cts +0 -10
  51. package/dist/basic/object/getSort.d.ts +0 -10
  52. package/dist/basic/object/hasOwn.d.cts +0 -9
  53. package/dist/basic/object/hasOwn.d.ts +0 -9
  54. package/dist/basic/object/index.d.cts +0 -12
  55. package/dist/basic/object/index.d.ts +0 -12
  56. package/dist/basic/object/isObject.d.cts +0 -8
  57. package/dist/basic/object/isObject.d.ts +0 -8
  58. package/dist/basic/object/isObjectArray.d.cts +0 -8
  59. package/dist/basic/object/isObjectArray.d.ts +0 -8
  60. package/dist/basic/object/mergeObject.d.cts +0 -11
  61. package/dist/basic/object/mergeObject.d.ts +0 -11
  62. package/dist/basic/object/objValue.d.cts +0 -7
  63. package/dist/basic/object/objValue.d.ts +0 -7
  64. package/dist/basic/object/reverseObj.d.cts +0 -9
  65. package/dist/basic/object/reverseObj.d.ts +0 -9
  66. package/dist/basic/object/setSort.d.cts +0 -7
  67. package/dist/basic/object/setSort.d.ts +0 -7
  68. package/dist/basic/object/unmergeObject.d.cts +0 -11
  69. package/dist/basic/object/unmergeObject.d.ts +0 -11
  70. package/dist/basic/string/appearNum.d.cts +0 -9
  71. package/dist/basic/string/appearNum.d.ts +0 -9
  72. package/dist/basic/string/appearNumSeat.d.cts +0 -10
  73. package/dist/basic/string/appearNumSeat.d.ts +0 -10
  74. package/dist/basic/string/deComment.d.cts +0 -7
  75. package/dist/basic/string/deComment.d.ts +0 -7
  76. package/dist/basic/string/firstLower.d.cts +0 -8
  77. package/dist/basic/string/firstLower.d.ts +0 -8
  78. package/dist/basic/string/firstUpper.d.cts +0 -8
  79. package/dist/basic/string/firstUpper.d.ts +0 -8
  80. package/dist/basic/string/getImports.d.cts +0 -22
  81. package/dist/basic/string/getImports.d.ts +0 -22
  82. package/dist/basic/string/getStartSame.d.cts +0 -9
  83. package/dist/basic/string/getStartSame.d.ts +0 -9
  84. package/dist/basic/string/getStartSames.d.cts +0 -9
  85. package/dist/basic/string/getStartSames.d.ts +0 -9
  86. package/dist/basic/string/getStrNunPosit.d.cts +0 -10
  87. package/dist/basic/string/getStrNunPosit.d.ts +0 -10
  88. package/dist/basic/string/index.d.cts +0 -15
  89. package/dist/basic/string/index.d.ts +0 -15
  90. package/dist/basic/string/splitUpper.d.cts +0 -8
  91. package/dist/basic/string/splitUpper.d.ts +0 -8
  92. package/dist/basic/string/startsNum.d.cts +0 -9
  93. package/dist/basic/string/startsNum.d.ts +0 -9
  94. package/dist/basic/string/toFunction.d.cts +0 -19
  95. package/dist/basic/string/toFunction.d.ts +0 -19
  96. package/dist/basic/string/toJson.d.cts +0 -4
  97. package/dist/basic/string/toJson.d.ts +0 -4
  98. package/dist/basic/string/toJsons.d.cts +0 -60
  99. package/dist/basic/string/toJsons.d.ts +0 -60
  100. package/dist/basic/string/toStringParse.d.cts +0 -6
  101. package/dist/basic/string/toStringParse.d.ts +0 -6
  102. package/dist/chunk-PDNDFLZB.cjs +0 -24
  103. package/dist/css/fetchUnitValue.d.cts +0 -10
  104. package/dist/css/fetchUnitValue.d.ts +0 -10
  105. package/dist/css/getAttrObj.d.cts +0 -11
  106. package/dist/css/getAttrObj.d.ts +0 -11
  107. package/dist/css/getCss.d.cts +0 -9
  108. package/dist/css/getCss.d.ts +0 -9
  109. package/dist/css/getPositionRelative.d.cts +0 -7
  110. package/dist/css/getPositionRelative.d.ts +0 -7
  111. package/dist/css/getPrentClass.d.cts +0 -7
  112. package/dist/css/getPrentClass.d.ts +0 -7
  113. package/dist/css/getPrentCorres.d.cts +0 -7
  114. package/dist/css/getPrentCorres.d.ts +0 -7
  115. package/dist/css/getSVG.d.cts +0 -14
  116. package/dist/css/getSVG.d.ts +0 -14
  117. package/dist/css/getScssImports.d.cts +0 -8
  118. package/dist/css/getScssImports.d.ts +0 -8
  119. package/dist/css/index.d.cts +0 -11
  120. package/dist/css/index.d.ts +0 -11
  121. package/dist/css/setClassName.d.cts +0 -6
  122. package/dist/css/setClassName.d.ts +0 -6
  123. package/dist/css/setCss.d.cts +0 -11
  124. package/dist/css/setCss.d.ts +0 -11
  125. package/dist/css/setObjStyle.d.cts +0 -12
  126. package/dist/css/setObjStyle.d.ts +0 -12
  127. package/dist/date/format.d.cts +0 -3
  128. package/dist/date/format.d.ts +0 -3
  129. package/dist/date/index.d.cts +0 -1
  130. package/dist/date/index.d.ts +0 -1
  131. package/dist/dom/getLocus.d.cts +0 -14
  132. package/dist/dom/getLocus.d.ts +0 -14
  133. package/dist/dom/getShiftEvent.d.cts +0 -25
  134. package/dist/dom/getShiftEvent.d.ts +0 -25
  135. package/dist/dom/index.d.cts +0 -2
  136. package/dist/dom/index.d.ts +0 -2
  137. package/dist/html/analysisHtml.d.cts +0 -13
  138. package/dist/html/analysisHtml.d.ts +0 -13
  139. package/dist/html/generateHtml.d.cts +0 -5
  140. package/dist/html/generateHtml.d.ts +0 -5
  141. package/dist/html/getVueText.d.cts +0 -16
  142. package/dist/html/getVueText.d.ts +0 -16
  143. package/dist/html/htmlEscape.d.cts +0 -8
  144. package/dist/html/htmlEscape.d.ts +0 -8
  145. package/dist/html/index.d.cts +0 -4
  146. package/dist/html/index.d.ts +0 -4
  147. package/dist/index--yFTfMpc.d.cts +0 -29
  148. package/dist/index-B7gdHwF9.d.cts +0 -40
  149. package/dist/index-BU0xla6v.d.cts +0 -31
  150. package/dist/index-BbrWO_KD.d.cts +0 -16
  151. package/dist/index-BiHaQlE9.d.cts +0 -14
  152. package/dist/index-BocAlCa8.d.ts +0 -8
  153. package/dist/index-Bq6WKjlK.d.ts +0 -29
  154. package/dist/index-BqhKBGyX.d.ts +0 -14
  155. package/dist/index-Br7o4Zbz.d.ts +0 -9
  156. package/dist/index-Bta_eezz.d.ts +0 -12
  157. package/dist/index-C0q7yBX5.d.cts +0 -29
  158. package/dist/index-C1rfQdS-.d.ts +0 -8
  159. package/dist/index-C29DFVeC.d.ts +0 -20
  160. package/dist/index-CK2c-6vv.d.cts +0 -8
  161. package/dist/index-CLnASTZ5.d.ts +0 -29
  162. package/dist/index-CPO1AFVg.d.ts +0 -14
  163. package/dist/index-CS54GrWo.d.ts +0 -16
  164. package/dist/index-CdRz4xJD.d.ts +0 -15
  165. package/dist/index-CmiMKPSL.d.ts +0 -43
  166. package/dist/index-CnrmwHvE.d.cts +0 -15
  167. package/dist/index-Cqj4dm5n.d.ts +0 -8
  168. package/dist/index-CsYVH5m1.d.cts +0 -8
  169. package/dist/index-D1xTdh0f.d.cts +0 -8
  170. package/dist/index-DAi9PP0w.d.cts +0 -13
  171. package/dist/index-DOq59RNr.d.ts +0 -31
  172. package/dist/index-DPrdy8Ms.d.ts +0 -40
  173. package/dist/index-DaryquSt.d.cts +0 -43
  174. package/dist/index-Dmv6PGiQ.d.cts +0 -9
  175. package/dist/index-Dvp25i1P.d.cts +0 -10
  176. package/dist/index-cuR7l2XV.d.cts +0 -14
  177. package/dist/index-qUiGxoy_.d.cts +0 -20
  178. package/dist/index-syb18q2f.d.ts +0 -10
  179. package/dist/index-v-06_rNI.d.cts +0 -12
  180. package/dist/index-vCPDFXBq.d.ts +0 -13
  181. package/dist/index.d.cts +0 -98
  182. package/dist/index.d.ts +0 -98
  183. package/dist/iss/index.d.cts +0 -3
  184. package/dist/iss/index.d.ts +0 -3
  185. package/dist/judge/index.d.cts +0 -5
  186. package/dist/judge/index.d.ts +0 -5
  187. package/dist/judge/judge.d.cts +0 -155
  188. package/dist/judge/judge.d.ts +0 -155
  189. package/dist/judge/matchs.d.cts +0 -10
  190. package/dist/judge/matchs.d.ts +0 -10
  191. package/dist/judge/matchsEnd.d.cts +0 -9
  192. package/dist/judge/matchsEnd.d.ts +0 -9
  193. package/dist/judge/matchsStart.d.cts +0 -9
  194. package/dist/judge/matchsStart.d.ts +0 -9
  195. package/dist/judge/matchsWhole.d.cts +0 -9
  196. package/dist/judge/matchsWhole.d.ts +0 -9
  197. package/dist/load/getSynch.d.cts +0 -8
  198. package/dist/load/getSynch.d.ts +0 -8
  199. package/dist/load/index.d.cts +0 -2
  200. package/dist/load/index.d.ts +0 -2
  201. package/dist/load/loadScript.d.cts +0 -3
  202. package/dist/load/loadScript.d.ts +0 -3
  203. package/dist/log/index.d.cts +0 -1
  204. package/dist/log/index.d.ts +0 -1
  205. package/dist/log/styleLog.d.cts +0 -68
  206. package/dist/log/styleLog.d.ts +0 -68
  207. package/dist/name/getComponentNames.d.cts +0 -8
  208. package/dist/name/getComponentNames.d.ts +0 -8
  209. package/dist/name/getNames.d.cts +0 -8
  210. package/dist/name/getNames.d.ts +0 -8
  211. package/dist/name/humpToLine.d.cts +0 -8
  212. package/dist/name/humpToLine.d.ts +0 -8
  213. package/dist/name/index.d.cts +0 -5
  214. package/dist/name/index.d.ts +0 -5
  215. package/dist/name/lineToLargeHump.d.cts +0 -8
  216. package/dist/name/lineToLargeHump.d.ts +0 -8
  217. package/dist/name/lineToSmallHump.d.cts +0 -8
  218. package/dist/name/lineToSmallHump.d.ts +0 -8
  219. package/dist/node/getPort.d.cts +0 -13
  220. package/dist/node/getPort.d.ts +0 -13
  221. package/dist/node/index.d.cts +0 -1
  222. package/dist/node/index.d.ts +0 -1
  223. package/dist/tree/getTreeObj.d.cts +0 -26
  224. package/dist/tree/getTreeObj.d.ts +0 -26
  225. package/dist/tree/index.d.cts +0 -2
  226. package/dist/tree/index.d.ts +0 -2
  227. package/dist/tree/splitGroup.d.cts +0 -15
  228. package/dist/tree/splitGroup.d.ts +0 -15
  229. package/dist/urls/getImportUrl.d.cts +0 -9
  230. package/dist/urls/getImportUrl.d.ts +0 -9
  231. package/dist/urls/getImportUrlSuffix.d.cts +0 -9
  232. package/dist/urls/getImportUrlSuffix.d.ts +0 -9
  233. package/dist/urls/getNewFileName.d.cts +0 -8
  234. package/dist/urls/getNewFileName.d.ts +0 -8
  235. package/dist/urls/getReplaceCompleteUrl.d.cts +0 -9
  236. package/dist/urls/getReplaceCompleteUrl.d.ts +0 -9
  237. package/dist/urls/getReplaceImportUrl.d.cts +0 -9
  238. package/dist/urls/getReplaceImportUrl.d.ts +0 -9
  239. package/dist/urls/getReplaceUrl.d.cts +0 -9
  240. package/dist/urls/getReplaceUrl.d.ts +0 -9
  241. package/dist/urls/getReplaceUrls.d.cts +0 -9
  242. package/dist/urls/getReplaceUrls.d.ts +0 -9
  243. package/dist/urls/getSuffix.d.cts +0 -8
  244. package/dist/urls/getSuffix.d.ts +0 -8
  245. package/dist/urls/getUrlCatalogue.d.cts +0 -8
  246. package/dist/urls/getUrlCatalogue.d.ts +0 -8
  247. package/dist/urls/getUrlCatalogueLast.d.cts +0 -8
  248. package/dist/urls/getUrlCatalogueLast.d.ts +0 -8
  249. package/dist/urls/getUrlCatalogueObj.d.cts +0 -17
  250. package/dist/urls/getUrlCatalogueObj.d.ts +0 -17
  251. package/dist/urls/index.d.cts +0 -11
  252. package/dist/urls/index.d.ts +0 -11
  253. package/dist/window/copy.d.cts +0 -3
  254. package/dist/window/copy.d.ts +0 -3
  255. package/dist/window/getParam.d.cts +0 -9
  256. package/dist/window/getParam.d.ts +0 -9
  257. package/dist/window/index.d.cts +0 -2
  258. package/dist/window/index.d.ts +0 -2
  259. package/dist/{chunk-JFBFU6CT.cjs → chunk-3SJOLMSI.cjs} +8 -8
  260. package/dist/{chunk-UKUXUB64.cjs → chunk-4E4OWBN7.cjs} +7 -7
  261. package/dist/{chunk-X3YWX7YQ.js → chunk-7UVIWZ2J.js} +5 -5
  262. package/dist/{chunk-6K32ZUJG.js → chunk-EJZIISBA.js} +6 -6
  263. package/dist/{chunk-FB52NA2U.cjs → chunk-F4IWIVCD.cjs} +4 -4
  264. package/dist/{chunk-FSFT4EKE.js → chunk-GHJWTV6H.js} +3 -3
  265. package/dist/{chunk-UOQMDO75.cjs → chunk-HMAAC5QA.cjs} +3 -3
  266. package/dist/{chunk-MECBPLFH.js → chunk-IY346OU3.js} +7 -7
  267. package/dist/{chunk-WFPPLFOR.js → chunk-KDSELPFY.js} +10 -10
  268. package/dist/{chunk-SGYFZFWD.cjs → chunk-QN6KZWKM.cjs} +4 -4
@@ -1,37 +0,0 @@
1
- export { i as array } from '../index-qUiGxoy_.cjs';
2
- export { i as object } from '../index-BU0xla6v.cjs';
3
- export { i as string } from '../index-DaryquSt.cjs';
4
- import './array/asyncMergeArray.cjs';
5
- import './array/deleteArray.cjs';
6
- import './array/duplicateRemoval.cjs';
7
- import './array/isArray.cjs';
8
- import './array/replaceAfter.cjs';
9
- import './array/sortObj.cjs';
10
- import './array/toggleArray.cjs';
11
- import './object/attrValueSort.cjs';
12
- import './object/deepCopy.cjs';
13
- import './object/filterObject.cjs';
14
- import './object/getSort.cjs';
15
- import './object/hasOwn.cjs';
16
- import './object/isObject.cjs';
17
- import './object/isObjectArray.cjs';
18
- import './object/mergeObject.cjs';
19
- import './object/objValue.cjs';
20
- import './object/reverseObj.cjs';
21
- import './object/setSort.cjs';
22
- import './object/unmergeObject.cjs';
23
- import './string/appearNum.cjs';
24
- import './string/appearNumSeat.cjs';
25
- import './string/deComment.cjs';
26
- import './string/firstLower.cjs';
27
- import './string/firstUpper.cjs';
28
- import './string/getImports.cjs';
29
- import './string/getStartSame.cjs';
30
- import './string/getStartSames.cjs';
31
- import './string/getStrNunPosit.cjs';
32
- import './string/splitUpper.cjs';
33
- import './string/startsNum.cjs';
34
- import './string/toFunction.cjs';
35
- import './string/toJson.cjs';
36
- import './string/toJsons.cjs';
37
- import './string/toStringParse.cjs';
@@ -1,37 +0,0 @@
1
- export { i as array } from '../index-C29DFVeC.js';
2
- export { i as object } from '../index-DOq59RNr.js';
3
- export { i as string } from '../index-CmiMKPSL.js';
4
- import './array/asyncMergeArray.js';
5
- import './array/deleteArray.js';
6
- import './array/duplicateRemoval.js';
7
- import './array/isArray.js';
8
- import './array/replaceAfter.js';
9
- import './array/sortObj.js';
10
- import './array/toggleArray.js';
11
- import './object/attrValueSort.js';
12
- import './object/deepCopy.js';
13
- import './object/filterObject.js';
14
- import './object/getSort.js';
15
- import './object/hasOwn.js';
16
- import './object/isObject.js';
17
- import './object/isObjectArray.js';
18
- import './object/mergeObject.js';
19
- import './object/objValue.js';
20
- import './object/reverseObj.js';
21
- import './object/setSort.js';
22
- import './object/unmergeObject.js';
23
- import './string/appearNum.js';
24
- import './string/appearNumSeat.js';
25
- import './string/deComment.js';
26
- import './string/firstLower.js';
27
- import './string/firstUpper.js';
28
- import './string/getImports.js';
29
- import './string/getStartSame.js';
30
- import './string/getStartSames.js';
31
- import './string/getStrNunPosit.js';
32
- import './string/splitUpper.js';
33
- import './string/startsNum.js';
34
- import './string/toFunction.js';
35
- import './string/toJson.js';
36
- import './string/toJsons.js';
37
- import './string/toStringParse.js';
@@ -1,12 +0,0 @@
1
- /**
2
- * 按照属性值排序
3
- * @param obj 排序对象
4
- * @param arr 要排序的属性
5
- * @param sort 排序方法
6
- * @returns
7
- */
8
- declare function attrValueSort(obj: {
9
- [key: string]: any;
10
- }, arr?: string[], sort?: Function): string[];
11
-
12
- export { attrValueSort };
@@ -1,12 +0,0 @@
1
- /**
2
- * 按照属性值排序
3
- * @param obj 排序对象
4
- * @param arr 要排序的属性
5
- * @param sort 排序方法
6
- * @returns
7
- */
8
- declare function attrValueSort(obj: {
9
- [key: string]: any;
10
- }, arr?: string[], sort?: Function): string[];
11
-
12
- export { attrValueSort };
@@ -1,8 +0,0 @@
1
- /**
2
- * 深拷贝
3
- * @param obj
4
- * @returns
5
- */
6
- declare function deepCopy<T>(obj: T): T;
7
-
8
- export { deepCopy };
@@ -1,8 +0,0 @@
1
- /**
2
- * 深拷贝
3
- * @param obj
4
- * @returns
5
- */
6
- declare function deepCopy<T>(obj: T): T;
7
-
8
- export { deepCopy };
@@ -1,14 +0,0 @@
1
- /**
2
- * 去掉不要的属性
3
- * @param obj
4
- * @param arr
5
- */
6
- declare function filterObject(obj: {
7
- [key: string | number | symbol]: any;
8
- }, arr: Array<string | number | symbol>): {
9
- [key: string]: any;
10
- [key: number]: any;
11
- [key: symbol]: any;
12
- };
13
-
14
- export { filterObject };
@@ -1,14 +0,0 @@
1
- /**
2
- * 去掉不要的属性
3
- * @param obj
4
- * @param arr
5
- */
6
- declare function filterObject(obj: {
7
- [key: string | number | symbol]: any;
8
- }, arr: Array<string | number | symbol>): {
9
- [key: string]: any;
10
- [key: number]: any;
11
- [key: symbol]: any;
12
- };
13
-
14
- export { filterObject };
@@ -1,10 +0,0 @@
1
- type ObjAny = {
2
- [key: string]: any;
3
- };
4
- type SortFun = <T>(a: T, b: T) => number;
5
- /**
6
- * 对对象数据进行排序
7
- */
8
- declare function getSort<T extends ObjAny>(obj: T, sort?: SortFun): T;
9
-
10
- export { getSort };
@@ -1,10 +0,0 @@
1
- type ObjAny = {
2
- [key: string]: any;
3
- };
4
- type SortFun = <T>(a: T, b: T) => number;
5
- /**
6
- * 对对象数据进行排序
7
- */
8
- declare function getSort<T extends ObjAny>(obj: T, sort?: SortFun): T;
9
-
10
- export { getSort };
@@ -1,9 +0,0 @@
1
- /**
2
- * 检查对象的属性是否存在
3
- * @param obj
4
- * @param propName
5
- * @returns
6
- */
7
- declare function hasOwn(obj: object, propName: string | number | symbol): boolean;
8
-
9
- export { hasOwn };
@@ -1,9 +0,0 @@
1
- /**
2
- * 检查对象的属性是否存在
3
- * @param obj
4
- * @param propName
5
- * @returns
6
- */
7
- declare function hasOwn(obj: object, propName: string | number | symbol): boolean;
8
-
9
- export { hasOwn };
@@ -1,12 +0,0 @@
1
- export { attrValueSort } from './attrValueSort.cjs';
2
- export { deepCopy } from './deepCopy.cjs';
3
- export { filterObject } from './filterObject.cjs';
4
- export { getSort } from './getSort.cjs';
5
- export { hasOwn } from './hasOwn.cjs';
6
- export { isObject } from './isObject.cjs';
7
- export { isObjectArray } from './isObjectArray.cjs';
8
- export { mergeObject } from './mergeObject.cjs';
9
- export { getObjValue, setObjValue } from './objValue.cjs';
10
- export { reverseObj } from './reverseObj.cjs';
11
- export { setSort } from './setSort.cjs';
12
- export { unmergeObject } from './unmergeObject.cjs';
@@ -1,12 +0,0 @@
1
- export { attrValueSort } from './attrValueSort.js';
2
- export { deepCopy } from './deepCopy.js';
3
- export { filterObject } from './filterObject.js';
4
- export { getSort } from './getSort.js';
5
- export { hasOwn } from './hasOwn.js';
6
- export { isObject } from './isObject.js';
7
- export { isObjectArray } from './isObjectArray.js';
8
- export { mergeObject } from './mergeObject.js';
9
- export { getObjValue, setObjValue } from './objValue.js';
10
- export { reverseObj } from './reverseObj.js';
11
- export { setSort } from './setSort.js';
12
- export { unmergeObject } from './unmergeObject.js';
@@ -1,8 +0,0 @@
1
- /**
2
- * 是否是对象
3
- * @param {any} obj 判断值
4
- * @returns {boolean}
5
- */
6
- declare function isObject(obj: any): boolean;
7
-
8
- export { isObject };
@@ -1,8 +0,0 @@
1
- /**
2
- * 是否是对象
3
- * @param {any} obj 判断值
4
- * @returns {boolean}
5
- */
6
- declare function isObject(obj: any): boolean;
7
-
8
- export { isObject };
@@ -1,8 +0,0 @@
1
- /**
2
- * 是否 是对象并且不是数组
3
- * @param {any} obj 判断值
4
- * @returns {boolean}
5
- */
6
- declare function isObjectArray(obj: any): boolean;
7
-
8
- export { isObjectArray };
@@ -1,8 +0,0 @@
1
- /**
2
- * 是否 是对象并且不是数组
3
- * @param {any} obj 判断值
4
- * @returns {boolean}
5
- */
6
- declare function isObjectArray(obj: any): boolean;
7
-
8
- export { isObjectArray };
@@ -1,11 +0,0 @@
1
- /**
2
- * 合并两个对象的值
3
- * @param {T} a 合并到的对象
4
- * @param {T} b 合并对象
5
- * @param {number} j 合并级别
6
- * @param {boolean} i 是否合并数组
7
- * @returns {T} 合并的对象
8
- */
9
- declare function mergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
10
-
11
- export { mergeObject };
@@ -1,11 +0,0 @@
1
- /**
2
- * 合并两个对象的值
3
- * @param {T} a 合并到的对象
4
- * @param {T} b 合并对象
5
- * @param {number} j 合并级别
6
- * @param {boolean} i 是否合并数组
7
- * @returns {T} 合并的对象
8
- */
9
- declare function mergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
10
-
11
- export { mergeObject };
@@ -1,7 +0,0 @@
1
- type ObjAny = {
2
- [key: string | number | symbol]: any;
3
- };
4
- declare function getObjValue(key: string, locale: ObjAny): any;
5
- declare function setObjValue(locale: ObjAny, key: string, value: any): any;
6
-
7
- export { getObjValue, setObjValue };
@@ -1,7 +0,0 @@
1
- type ObjAny = {
2
- [key: string | number | symbol]: any;
3
- };
4
- declare function getObjValue(key: string, locale: ObjAny): any;
5
- declare function setObjValue(locale: ObjAny, key: string, value: any): any;
6
-
7
- export { getObjValue, setObjValue };
@@ -1,9 +0,0 @@
1
- /**
2
- * 颠倒key 与 value 值
3
- */
4
- type ObjUnkn = {
5
- [key: string | number | symbol]: string | number | symbol;
6
- };
7
- declare function reverseObj(obj: ObjUnkn): ObjUnkn;
8
-
9
- export { reverseObj };
@@ -1,9 +0,0 @@
1
- /**
2
- * 颠倒key 与 value 值
3
- */
4
- type ObjUnkn = {
5
- [key: string | number | symbol]: string | number | symbol;
6
- };
7
- declare function reverseObj(obj: ObjUnkn): ObjUnkn;
8
-
9
- export { reverseObj };
@@ -1,7 +0,0 @@
1
- type ObjUnkn = {
2
- [key: string]: unknown;
3
- };
4
- type SortFun = <T>(a: T, b: T) => number;
5
- declare function setSort(obj: ObjUnkn, sort: SortFun | undefined, ...arr: Array<undefined | string | string[]>): void;
6
-
7
- export { setSort };
@@ -1,7 +0,0 @@
1
- type ObjUnkn = {
2
- [key: string]: unknown;
3
- };
4
- type SortFun = <T>(a: T, b: T) => number;
5
- declare function setSort(obj: ObjUnkn, sort: SortFun | undefined, ...arr: Array<undefined | string | string[]>): void;
6
-
7
- export { setSort };
@@ -1,11 +0,0 @@
1
- /**
2
- * 合并两个对象不改原对象的值
3
- * @param {T} a 合并对象
4
- * @param {T} b 合并对象
5
- * @param {number} j 合并级别
6
- * @param {boolean} i 是否合并数组
7
- * @returns {T} 合并的对象
8
- */
9
- declare function unmergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
10
-
11
- export { unmergeObject };
@@ -1,11 +0,0 @@
1
- /**
2
- * 合并两个对象不改原对象的值
3
- * @param {T} a 合并对象
4
- * @param {T} b 合并对象
5
- * @param {number} j 合并级别
6
- * @param {boolean} i 是否合并数组
7
- * @returns {T} 合并的对象
8
- */
9
- declare function unmergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
10
-
11
- export { unmergeObject };
@@ -1,9 +0,0 @@
1
- /**
2
- * 查询字符串出现次数
3
- * @param {string} str 被查询的字符串
4
- * @param {string | RegExp} t 查询的字符串 或者 正则表达式
5
- * @returns {number} 出现的次数
6
- */
7
- declare function appearNum(str: string, t: string | RegExp): number;
8
-
9
- export { appearNum };
@@ -1,9 +0,0 @@
1
- /**
2
- * 查询字符串出现次数
3
- * @param {string} str 被查询的字符串
4
- * @param {string | RegExp} t 查询的字符串 或者 正则表达式
5
- * @returns {number} 出现的次数
6
- */
7
- declare function appearNum(str: string, t: string | RegExp): number;
8
-
9
- export { appearNum };
@@ -1,10 +0,0 @@
1
- /**
2
- * 查询字符串出现第n次数的位置
3
- * @param {string} str 被查询的字符串
4
- * @param {string | RegExp} t 查询的字符串 或者 正则表达式
5
- * @param {number} n 第几次出现
6
- * @returns {number} 第n次出现时在字符串的位置 -1 表示没有查询到
7
- */
8
- declare function appearNumSeat(str: string, t: string | RegExp, n: number): number;
9
-
10
- export { appearNumSeat };
@@ -1,10 +0,0 @@
1
- /**
2
- * 查询字符串出现第n次数的位置
3
- * @param {string} str 被查询的字符串
4
- * @param {string | RegExp} t 查询的字符串 或者 正则表达式
5
- * @param {number} n 第几次出现
6
- * @returns {number} 第n次出现时在字符串的位置 -1 表示没有查询到
7
- */
8
- declare function appearNumSeat(str: string, t: string | RegExp, n: number): number;
9
-
10
- export { appearNumSeat };
@@ -1,7 +0,0 @@
1
- /**
2
- * 去掉注释代码
3
- * @param text
4
- */
5
- declare function deComment(code: string): string;
6
-
7
- export { deComment };
@@ -1,7 +0,0 @@
1
- /**
2
- * 去掉注释代码
3
- * @param text
4
- */
5
- declare function deComment(code: string): string;
6
-
7
- export { deComment };
@@ -1,8 +0,0 @@
1
- /**
2
- * 首字母小写
3
- * @param {string} str 处理字符串
4
- * @returns {string}
5
- */
6
- declare function firstLower(str: string): string;
7
-
8
- export { firstLower };
@@ -1,8 +0,0 @@
1
- /**
2
- * 首字母小写
3
- * @param {string} str 处理字符串
4
- * @returns {string}
5
- */
6
- declare function firstLower(str: string): string;
7
-
8
- export { firstLower };
@@ -1,8 +0,0 @@
1
- /**
2
- * 首字母大写
3
- * @param {string} str 处理字符串
4
- * @returns {string}
5
- */
6
- declare function firstUpper(str: string): string;
7
-
8
- export { firstUpper };
@@ -1,8 +0,0 @@
1
- /**
2
- * 首字母大写
3
- * @param {string} str 处理字符串
4
- * @returns {string}
5
- */
6
- declare function firstUpper(str: string): string;
7
-
8
- export { firstUpper };
@@ -1,22 +0,0 @@
1
- /**
2
- * 获取代码中的所有导入/导出路径
3
- * 支持以下语法:
4
- * 1. 静态导入:
5
- * - import 'module'
6
- * - import x from 'module'
7
- * - import { x } from 'module'
8
- * - import * as x from 'module'
9
- * - import type ... from 'module'
10
- * 2. 动态导入:
11
- * - import('module')
12
- * 3. 导出:
13
- * - export 'module' (无效语法,忽略)
14
- * - export ... from 'module'
15
- * - export * from 'module'
16
- * - export * as x from 'module'
17
- * - export type ... from 'module'
18
- */
19
- declare function getImportss(code: string): string[];
20
- declare function getImports(code: string, includeType?: boolean): string[];
21
-
22
- export { getImports, getImportss };
@@ -1,22 +0,0 @@
1
- /**
2
- * 获取代码中的所有导入/导出路径
3
- * 支持以下语法:
4
- * 1. 静态导入:
5
- * - import 'module'
6
- * - import x from 'module'
7
- * - import { x } from 'module'
8
- * - import * as x from 'module'
9
- * - import type ... from 'module'
10
- * 2. 动态导入:
11
- * - import('module')
12
- * 3. 导出:
13
- * - export 'module' (无效语法,忽略)
14
- * - export ... from 'module'
15
- * - export * from 'module'
16
- * - export * as x from 'module'
17
- * - export type ... from 'module'
18
- */
19
- declare function getImportss(code: string): string[];
20
- declare function getImports(code: string, includeType?: boolean): string[];
21
-
22
- export { getImports, getImportss };
@@ -1,9 +0,0 @@
1
- /**
2
- * 比较两个字符串,获取前面一样的值
3
- * @param {string} str 比较字符串1
4
- * @param {string} val 比较字符串2
5
- * @returns {string} 前面一样的值
6
- */
7
- declare function getStartSame(str: string, val: string): string;
8
-
9
- export { getStartSame };
@@ -1,9 +0,0 @@
1
- /**
2
- * 比较两个字符串,获取前面一样的值
3
- * @param {string} str 比较字符串1
4
- * @param {string} val 比较字符串2
5
- * @returns {string} 前面一样的值
6
- */
7
- declare function getStartSame(str: string, val: string): string;
8
-
9
- export { getStartSame };
@@ -1,9 +0,0 @@
1
- /**
2
- * 比较两个字符串,获取前面一样的值
3
- * @param {string} str 比较字符串1
4
- * @param {string} val 比较字符串2
5
- * @returns {Array<string>} [前面一样的值, 字符串1不一样的值, 字符串2不一样的值]
6
- */
7
- declare function getStartSames(str: string, val: string): Array<string>;
8
-
9
- export { getStartSames };
@@ -1,9 +0,0 @@
1
- /**
2
- * 比较两个字符串,获取前面一样的值
3
- * @param {string} str 比较字符串1
4
- * @param {string} val 比较字符串2
5
- * @returns {Array<string>} [前面一样的值, 字符串1不一样的值, 字符串2不一样的值]
6
- */
7
- declare function getStartSames(str: string, val: string): Array<string>;
8
-
9
- export { getStartSames };
@@ -1,10 +0,0 @@
1
- /**
2
- * JS获取字符串倒数第n次出现位置
3
- * @param str
4
- * @param subStr
5
- * @param n
6
- * @returns
7
- */
8
- declare function getStrNunPosit(str: string, subStr: string, n: number): number;
9
-
10
- export { getStrNunPosit };
@@ -1,10 +0,0 @@
1
- /**
2
- * JS获取字符串倒数第n次出现位置
3
- * @param str
4
- * @param subStr
5
- * @param n
6
- * @returns
7
- */
8
- declare function getStrNunPosit(str: string, subStr: string, n: number): number;
9
-
10
- export { getStrNunPosit };
@@ -1,15 +0,0 @@
1
- export { appearNum } from './appearNum.cjs';
2
- export { appearNumSeat } from './appearNumSeat.cjs';
3
- export { deComment } from './deComment.cjs';
4
- export { firstLower } from './firstLower.cjs';
5
- export { firstUpper } from './firstUpper.cjs';
6
- export { getImports, getImportss } from './getImports.cjs';
7
- export { getStartSame } from './getStartSame.cjs';
8
- export { getStartSames } from './getStartSames.cjs';
9
- export { getStrNunPosit } from './getStrNunPosit.cjs';
10
- export { splitUpper } from './splitUpper.cjs';
11
- export { startsNum } from './startsNum.cjs';
12
- export { getFunctionFormat, toFunction } from './toFunction.cjs';
13
- export { toJSONParse, toJSONStringify } from './toJson.cjs';
14
- export { CodeBlock, serializeCodeBlock, serializeFunctionRef, toJSONSParse, toJSONSStringify } from './toJsons.cjs';
15
- export { toStringParse } from './toStringParse.cjs';
@@ -1,15 +0,0 @@
1
- export { appearNum } from './appearNum.js';
2
- export { appearNumSeat } from './appearNumSeat.js';
3
- export { deComment } from './deComment.js';
4
- export { firstLower } from './firstLower.js';
5
- export { firstUpper } from './firstUpper.js';
6
- export { getImports, getImportss } from './getImports.js';
7
- export { getStartSame } from './getStartSame.js';
8
- export { getStartSames } from './getStartSames.js';
9
- export { getStrNunPosit } from './getStrNunPosit.js';
10
- export { splitUpper } from './splitUpper.js';
11
- export { startsNum } from './startsNum.js';
12
- export { getFunctionFormat, toFunction } from './toFunction.js';
13
- export { toJSONParse, toJSONStringify } from './toJson.js';
14
- export { CodeBlock, serializeCodeBlock, serializeFunctionRef, toJSONSParse, toJSONSStringify } from './toJsons.js';
15
- export { toStringParse } from './toStringParse.js';
@@ -1,8 +0,0 @@
1
- /**
2
- * 按照大写字母分割
3
- * @param {string} name
4
- * @returns { Array }
5
- */
6
- declare function splitUpper(name: string): string[];
7
-
8
- export { splitUpper };
@@ -1,8 +0,0 @@
1
- /**
2
- * 按照大写字母分割
3
- * @param {string} name
4
- * @returns { Array }
5
- */
6
- declare function splitUpper(name: string): string[];
7
-
8
- export { splitUpper };