zcw-shared 1.7.0 → 1.9.0

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 (434) hide show
  1. package/README.md +512 -512
  2. package/assets/logo-colorful.svg +18 -18
  3. package/assets/logo-name.svg +7 -7
  4. package/assets/logo-transparent.svg +14 -14
  5. package/assets/logo.svg +8 -8
  6. package/dist/constants/softwareConfigs.d.ts +14 -0
  7. package/dist/constants/softwareConfigs.js +156 -0
  8. package/dist/constants/softwareConfigs.js.map +1 -0
  9. package/dist/functions/ag-grid/generateLicense.d.ts +3 -0
  10. package/dist/functions/ag-grid/generateLicense.js +12 -0
  11. package/dist/functions/ag-grid/generateLicense.js.map +1 -0
  12. package/dist/functions/altool/createAltoolClient.d.ts +21 -0
  13. package/dist/functions/altool/createAltoolClient.js +53 -0
  14. package/dist/functions/altool/createAltoolClient.js.map +1 -0
  15. package/dist/functions/altool/getAltoolAuth.d.ts +2 -0
  16. package/dist/functions/altool/getAltoolAuth.js +8 -0
  17. package/dist/functions/altool/getAltoolAuth.js.map +1 -0
  18. package/dist/functions/altool/getAppInfo.d.ts +13 -0
  19. package/dist/functions/altool/getAppInfo.js +39 -0
  20. package/dist/functions/altool/getAppInfo.js.map +1 -0
  21. package/dist/functions/altool/index.d.ts +10 -0
  22. package/dist/functions/altool/index.js +6 -0
  23. package/dist/functions/altool/index.js.map +1 -0
  24. package/dist/functions/altool/isApiKeyAuth.d.ts +2 -0
  25. package/dist/functions/altool/isApiKeyAuth.js +4 -0
  26. package/dist/functions/altool/isApiKeyAuth.js.map +1 -0
  27. package/dist/functions/altool/isCredentialsAuth.d.ts +2 -0
  28. package/dist/functions/altool/isCredentialsAuth.js +4 -0
  29. package/dist/functions/altool/isCredentialsAuth.js.map +1 -0
  30. package/dist/functions/altool/parseAppInfoOutput.d.ts +2 -0
  31. package/dist/functions/altool/parseAppInfoOutput.js +55 -0
  32. package/dist/functions/altool/parseAppInfoOutput.js.map +1 -0
  33. package/dist/functions/altool/parseValidationOutput.d.ts +6 -0
  34. package/dist/functions/altool/parseValidationOutput.js +21 -0
  35. package/dist/functions/altool/parseValidationOutput.js.map +1 -0
  36. package/dist/functions/altool/types.d.ts +26 -0
  37. package/dist/functions/altool/types.js +7 -0
  38. package/dist/functions/altool/types.js.map +1 -0
  39. package/dist/functions/altool/uploadApp.d.ts +6 -0
  40. package/dist/functions/altool/uploadApp.js +36 -0
  41. package/dist/functions/altool/uploadApp.js.map +1 -0
  42. package/dist/functions/altool/validateApp.d.ts +17 -0
  43. package/dist/functions/altool/validateApp.js +40 -0
  44. package/dist/functions/altool/validateApp.js.map +1 -0
  45. package/dist/functions/android/buildProject.d.ts +2 -1
  46. package/dist/functions/android/buildProject.js +32 -6
  47. package/dist/functions/android/buildProject.js.map +1 -1
  48. package/dist/functions/android/modifyGradle.js +10 -10
  49. package/dist/functions/base64/strToBase64.d.ts +2 -0
  50. package/dist/functions/base64/strToBase64.js +6 -0
  51. package/dist/functions/base64/strToBase64.js.map +1 -0
  52. package/dist/functions/color-converter/COLOR_PATTERNS.d.ts +2 -0
  53. package/dist/functions/color-converter/COLOR_PATTERNS.js +9 -0
  54. package/dist/functions/color-converter/COLOR_PATTERNS.js.map +1 -0
  55. package/dist/functions/color-converter/colorPatterns.d.ts +4 -0
  56. package/dist/functions/color-converter/colorPatterns.js +41 -0
  57. package/dist/functions/color-converter/colorPatterns.js.map +1 -0
  58. package/dist/functions/color-converter/convertColor.d.ts +6 -0
  59. package/dist/functions/color-converter/convertColor.js +12 -0
  60. package/dist/functions/color-converter/convertColor.js.map +1 -0
  61. package/dist/functions/color-converter/createColorReference.d.ts +2 -0
  62. package/dist/functions/color-converter/createColorReference.js +12 -0
  63. package/dist/functions/color-converter/createColorReference.js.map +1 -0
  64. package/dist/functions/color-converter/detectColorFormat.d.ts +2 -0
  65. package/dist/functions/color-converter/detectColorFormat.js +19 -0
  66. package/dist/functions/color-converter/detectColorFormat.js.map +1 -0
  67. package/dist/functions/color-converter/extractColors.d.ts +3 -0
  68. package/dist/functions/color-converter/extractColors.js +16 -0
  69. package/dist/functions/color-converter/extractColors.js.map +1 -0
  70. package/dist/functions/color-converter/extractColorsFromLine.d.ts +2 -0
  71. package/dist/functions/color-converter/extractColorsFromLine.js +18 -0
  72. package/dist/functions/color-converter/extractColorsFromLine.js.map +1 -0
  73. package/dist/functions/color-converter/extractColorsGeneric.d.ts +2 -0
  74. package/dist/functions/color-converter/extractColorsGeneric.js +12 -0
  75. package/dist/functions/color-converter/extractColorsGeneric.js.map +1 -0
  76. package/dist/functions/color-converter/extractCssVariableReferences.d.ts +2 -0
  77. package/dist/functions/color-converter/extractCssVariableReferences.js +15 -0
  78. package/dist/functions/color-converter/extractCssVariableReferences.js.map +1 -0
  79. package/dist/functions/color-converter/extractThirdPartyVariableReferences.d.ts +2 -0
  80. package/dist/functions/color-converter/extractThirdPartyVariableReferences.js +15 -0
  81. package/dist/functions/color-converter/extractThirdPartyVariableReferences.js.map +1 -0
  82. package/dist/functions/color-converter/formatColorOutput.d.ts +5 -0
  83. package/dist/functions/color-converter/formatColorOutput.js +48 -0
  84. package/dist/functions/color-converter/formatColorOutput.js.map +1 -0
  85. package/dist/functions/color-converter/getColorPatterns.d.ts +2 -0
  86. package/dist/functions/color-converter/getColorPatterns.js +11 -0
  87. package/dist/functions/color-converter/getColorPatterns.js.map +1 -0
  88. package/dist/functions/color-converter/getNamedColorMap.d.ts +2 -0
  89. package/dist/functions/color-converter/getNamedColorMap.js +19 -0
  90. package/dist/functions/color-converter/getNamedColorMap.js.map +1 -0
  91. package/dist/functions/color-converter/hexToRgb.d.ts +2 -0
  92. package/dist/functions/color-converter/hexToRgb.js +42 -0
  93. package/dist/functions/color-converter/hexToRgb.js.map +1 -0
  94. package/dist/functions/color-converter/hslToRgb.d.ts +2 -0
  95. package/dist/functions/color-converter/hslToRgb.js +78 -0
  96. package/dist/functions/color-converter/hslToRgb.js.map +1 -0
  97. package/dist/functions/color-converter/hslToRgbInternal.d.ts +2 -0
  98. package/dist/functions/color-converter/hslToRgbInternal.js +24 -0
  99. package/dist/functions/color-converter/hslToRgbInternal.js.map +1 -0
  100. package/dist/functions/color-converter/hueToRgb.d.ts +1 -0
  101. package/dist/functions/color-converter/hueToRgb.js +14 -0
  102. package/dist/functions/color-converter/hueToRgb.js.map +1 -0
  103. package/dist/functions/color-converter/isColorValue.d.ts +2 -0
  104. package/dist/functions/color-converter/isColorValue.js +79 -0
  105. package/dist/functions/color-converter/isColorValue.js.map +1 -0
  106. package/dist/functions/color-converter/isValidColorValue.d.ts +1 -0
  107. package/dist/functions/color-converter/isValidColorValue.js +4 -0
  108. package/dist/functions/color-converter/isValidColorValue.js.map +1 -0
  109. package/dist/functions/color-converter/isValidHslColor.d.ts +2 -0
  110. package/dist/functions/color-converter/isValidHslColor.js +14 -0
  111. package/dist/functions/color-converter/isValidHslColor.js.map +1 -0
  112. package/dist/functions/color-converter/isValidRgbColor.d.ts +2 -0
  113. package/dist/functions/color-converter/isValidRgbColor.js +14 -0
  114. package/dist/functions/color-converter/isValidRgbColor.js.map +1 -0
  115. package/dist/functions/color-converter/normalizeColor.d.ts +1 -0
  116. package/dist/functions/color-converter/normalizeColor.js +49 -0
  117. package/dist/functions/color-converter/normalizeColor.js.map +1 -0
  118. package/dist/functions/color-converter/normalizeColorInput.d.ts +6 -0
  119. package/dist/functions/color-converter/normalizeColorInput.js +94 -0
  120. package/dist/functions/color-converter/normalizeColorInput.js.map +1 -0
  121. package/dist/functions/color-converter/parseColorString.d.ts +12 -0
  122. package/dist/functions/color-converter/parseColorString.js +89 -0
  123. package/dist/functions/color-converter/parseColorString.js.map +1 -0
  124. package/dist/functions/color-converter/parseCssVariables.d.ts +2 -0
  125. package/dist/functions/color-converter/parseCssVariables.js +19 -0
  126. package/dist/functions/color-converter/parseCssVariables.js.map +1 -0
  127. package/dist/functions/color-converter/parseHexColor.d.ts +6 -0
  128. package/dist/functions/color-converter/parseHexColor.js +42 -0
  129. package/dist/functions/color-converter/parseHexColor.js.map +1 -0
  130. package/dist/functions/color-converter/rgbToHex.d.ts +2 -0
  131. package/dist/functions/color-converter/rgbToHex.js +65 -0
  132. package/dist/functions/color-converter/rgbToHex.js.map +1 -0
  133. package/dist/functions/color-converter/rgbToHslInternal.d.ts +2 -0
  134. package/dist/functions/color-converter/rgbToHslInternal.js +31 -0
  135. package/dist/functions/color-converter/rgbToHslInternal.js.map +1 -0
  136. package/dist/functions/color-converter/standardizeColor.d.ts +1 -0
  137. package/dist/functions/color-converter/standardizeColor.js +147 -0
  138. package/dist/functions/color-converter/standardizeColor.js.map +1 -0
  139. package/dist/functions/desensitize/desensitizeName.d.ts +1 -0
  140. package/dist/functions/desensitize/desensitizeName.js +8 -0
  141. package/dist/functions/desensitize/desensitizeName.js.map +1 -0
  142. package/dist/functions/desensitize/desensitizePhone.d.ts +1 -0
  143. package/dist/functions/desensitize/desensitizePhone.js +8 -0
  144. package/dist/functions/desensitize/desensitizePhone.js.map +1 -0
  145. package/dist/functions/dom/getViewportSize.d.ts +5 -0
  146. package/dist/functions/dom/getViewportSize.js +7 -0
  147. package/dist/functions/dom/getViewportSize.js.map +1 -0
  148. package/dist/functions/software/buildPathExecutables.d.ts +1 -0
  149. package/dist/functions/software/buildPathExecutables.js +14 -0
  150. package/dist/functions/software/buildPathExecutables.js.map +1 -0
  151. package/dist/functions/software/buildSoftwarePaths.d.ts +2 -0
  152. package/dist/functions/software/buildSoftwarePaths.js +22 -0
  153. package/dist/functions/software/buildSoftwarePaths.js.map +1 -0
  154. package/dist/functions/software/createConfigGenerator.d.ts +8 -0
  155. package/dist/functions/software/createConfigGenerator.js +13 -0
  156. package/dist/functions/software/createConfigGenerator.js.map +1 -0
  157. package/dist/functions/software/detectPlatform.d.ts +2 -0
  158. package/dist/functions/software/detectPlatform.js +9 -0
  159. package/dist/functions/software/detectPlatform.js.map +1 -0
  160. package/dist/functions/software/find.d.ts +2 -0
  161. package/dist/functions/software/find.js +12 -0
  162. package/dist/functions/software/find.js.map +1 -0
  163. package/dist/functions/software/findSoftware.js.map +1 -1
  164. package/dist/functions/software/findSoftwareWithGenerator.d.ts +3 -0
  165. package/dist/functions/software/findSoftwareWithGenerator.js +8 -0
  166. package/dist/functions/software/findSoftwareWithGenerator.js.map +1 -0
  167. package/dist/functions/software/getConfigGenerator.d.ts +2 -0
  168. package/dist/functions/software/getConfigGenerator.js +10 -0
  169. package/dist/functions/software/getConfigGenerator.js.map +1 -0
  170. package/dist/functions/software/getEnvironmentSoftwarePath.d.ts +1 -0
  171. package/dist/functions/software/getEnvironmentSoftwarePath.js +8 -0
  172. package/dist/functions/software/getEnvironmentSoftwarePath.js.map +1 -0
  173. package/dist/functions/software/getSupportedSoftware.d.ts +1 -0
  174. package/dist/functions/software/getSupportedSoftware.js +5 -0
  175. package/dist/functions/software/getSupportedSoftware.js.map +1 -0
  176. package/dist/functions/software/parseEnvironmentPaths.d.ts +1 -0
  177. package/dist/functions/software/parseEnvironmentPaths.js +11 -0
  178. package/dist/functions/software/parseEnvironmentPaths.js.map +1 -0
  179. package/dist/functions/software/softwareConfigs.d.ts +2 -0
  180. package/dist/functions/software/softwareConfigs.js +148 -0
  181. package/dist/functions/software/softwareConfigs.js.map +1 -0
  182. package/dist/functions/software/softwareNameMap.d.ts +1 -0
  183. package/dist/functions/software/softwareNameMap.js +9 -0
  184. package/dist/functions/software/softwareNameMap.js.map +1 -0
  185. package/dist/functions/software/types.d.ts +11 -0
  186. package/dist/functions/software/types.js +2 -0
  187. package/dist/functions/software/types.js.map +1 -0
  188. package/dist/functions/string/base64.d.ts +2 -0
  189. package/dist/functions/string/base64.js +6 -0
  190. package/dist/functions/string/base64.js.map +1 -0
  191. package/dist/functions/string/camelCase.d.ts +1 -0
  192. package/dist/functions/string/camelCase.js +8 -0
  193. package/dist/functions/string/camelCase.js.map +1 -0
  194. package/dist/functions/string/capitalize.d.ts +1 -0
  195. package/dist/functions/string/capitalize.js +6 -0
  196. package/dist/functions/string/capitalize.js.map +1 -0
  197. package/dist/functions/string/caseConverter.d.ts +19 -0
  198. package/dist/functions/string/caseConverter.js +94 -0
  199. package/dist/functions/string/caseConverter.js.map +1 -0
  200. package/dist/functions/string/desensitize.d.ts +13 -0
  201. package/dist/functions/string/desensitize.js +107 -0
  202. package/dist/functions/string/desensitize.js.map +1 -0
  203. package/dist/functions/string/escape.d.ts +1 -0
  204. package/dist/functions/string/escape.js +13 -0
  205. package/dist/functions/string/escape.js.map +1 -0
  206. package/dist/functions/string/htmlEscape.d.ts +20 -0
  207. package/dist/functions/string/htmlEscape.js +80 -0
  208. package/dist/functions/string/htmlEscape.js.map +1 -0
  209. package/dist/functions/string/kebabCase.d.ts +1 -0
  210. package/dist/functions/string/kebabCase.js +10 -0
  211. package/dist/functions/string/kebabCase.js.map +1 -0
  212. package/dist/functions/string/levenshtein.d.ts +1 -0
  213. package/dist/functions/string/levenshtein.js +27 -0
  214. package/dist/functions/string/levenshtein.js.map +1 -0
  215. package/dist/functions/string/mask.d.ts +1 -0
  216. package/dist/functions/string/mask.js +40 -0
  217. package/dist/functions/string/mask.js.map +1 -0
  218. package/dist/functions/string/normalize.d.ts +8 -0
  219. package/dist/functions/string/normalize.js +37 -0
  220. package/dist/functions/string/normalize.js.map +1 -0
  221. package/dist/functions/string/pad.d.ts +13 -0
  222. package/dist/functions/string/pad.js +50 -0
  223. package/dist/functions/string/pad.js.map +1 -0
  224. package/dist/functions/string/padEnd.d.ts +1 -0
  225. package/dist/functions/string/padEnd.js +8 -0
  226. package/dist/functions/string/padEnd.js.map +1 -0
  227. package/dist/functions/string/padStart.d.ts +1 -0
  228. package/dist/functions/string/padStart.js +8 -0
  229. package/dist/functions/string/padStart.js.map +1 -0
  230. package/dist/functions/string/palindrome.d.ts +3 -0
  231. package/dist/functions/string/palindrome.js +15 -0
  232. package/dist/functions/string/palindrome.js.map +1 -0
  233. package/dist/functions/string/pascalCase.d.ts +1 -0
  234. package/dist/functions/string/pascalCase.js +8 -0
  235. package/dist/functions/string/pascalCase.js.map +1 -0
  236. package/dist/functions/string/similarity.d.ts +1 -0
  237. package/dist/functions/string/similarity.js +13 -0
  238. package/dist/functions/string/similarity.js.map +1 -0
  239. package/dist/functions/string/snakeCase.d.ts +1 -0
  240. package/dist/functions/string/snakeCase.js +10 -0
  241. package/dist/functions/string/snakeCase.js.map +1 -0
  242. package/dist/functions/string/template.d.ts +4 -0
  243. package/dist/functions/string/template.js +21 -0
  244. package/dist/functions/string/template.js.map +1 -0
  245. package/dist/functions/string/unescape.d.ts +1 -0
  246. package/dist/functions/string/unescape.js +13 -0
  247. package/dist/functions/string/unescape.js.map +1 -0
  248. package/dist/functions/string/wordCount.d.ts +5 -0
  249. package/dist/functions/string/wordCount.js +11 -0
  250. package/dist/functions/string/wordCount.js.map +1 -0
  251. package/dist/functions/tencent-cloud/getSecret.d.ts +6 -0
  252. package/dist/functions/tencent-cloud/getSecret.js +18 -0
  253. package/dist/functions/tencent-cloud/getSecret.js.map +1 -0
  254. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.d.ts +13 -0
  255. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js +175 -0
  256. package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js.map +1 -0
  257. package/dist/functions/uniapp/app-plus/androidProjectStrategy.d.ts +19 -0
  258. package/dist/functions/uniapp/app-plus/androidProjectStrategy.js +55 -0
  259. package/dist/functions/uniapp/app-plus/androidProjectStrategy.js.map +1 -0
  260. package/dist/functions/uniapp/app-plus/buildAndroidApp.d.ts +2 -2
  261. package/dist/functions/uniapp/app-plus/buildAndroidApp.js +1 -0
  262. package/dist/functions/uniapp/app-plus/buildAndroidApp.js.map +1 -1
  263. package/dist/functions/uniapp/app-plus/buildAndroidProject.d.ts +3 -0
  264. package/dist/functions/uniapp/app-plus/buildAndroidProject.js +60 -0
  265. package/dist/functions/uniapp/app-plus/buildAndroidProject.js.map +1 -0
  266. package/dist/functions/uniapp/app-plus/configureAndroidManifest.d.ts +5 -0
  267. package/dist/functions/uniapp/app-plus/configureAndroidManifest.js +51 -0
  268. package/dist/functions/uniapp/app-plus/configureAndroidManifest.js.map +1 -0
  269. package/dist/functions/uniapp/app-plus/configureAndroidProject.d.ts +3 -0
  270. package/dist/functions/uniapp/app-plus/configureAndroidProject.js +63 -0
  271. package/dist/functions/uniapp/app-plus/configureAndroidProject.js.map +1 -0
  272. package/dist/functions/uniapp/app-plus/configureBuildGradle.d.ts +9 -0
  273. package/dist/functions/uniapp/app-plus/configureBuildGradle.js +57 -0
  274. package/dist/functions/uniapp/app-plus/configureBuildGradle.js.map +1 -0
  275. package/dist/functions/uniapp/app-plus/configureDcloudControl.d.ts +5 -0
  276. package/dist/functions/uniapp/app-plus/configureDcloudControl.js +34 -0
  277. package/dist/functions/uniapp/app-plus/configureDcloudControl.js.map +1 -0
  278. package/dist/functions/uniapp/app-plus/configureStrings.d.ts +5 -0
  279. package/dist/functions/uniapp/app-plus/configureStrings.js +42 -0
  280. package/dist/functions/uniapp/app-plus/configureStrings.js.map +1 -0
  281. package/dist/functions/uniapp/app-plus/copyAppResources.d.ts +8 -0
  282. package/dist/functions/uniapp/app-plus/copyAppResources.js +25 -0
  283. package/dist/functions/uniapp/app-plus/copyAppResources.js.map +1 -0
  284. package/dist/functions/uniapp/app-plus/copyDirectory.d.ts +2 -0
  285. package/dist/functions/uniapp/app-plus/copyDirectory.js +18 -0
  286. package/dist/functions/uniapp/app-plus/copyDirectory.js.map +1 -0
  287. package/dist/functions/uniapp/app-plus/generateUniAppResources.d.ts +2 -0
  288. package/dist/functions/uniapp/app-plus/generateUniAppResources.js +35 -0
  289. package/dist/functions/uniapp/app-plus/generateUniAppResources.js.map +1 -0
  290. package/dist/functions/uniapp/app-plus/parseManifest.d.ts +14 -0
  291. package/dist/functions/uniapp/app-plus/parseManifest.js +44 -0
  292. package/dist/functions/uniapp/app-plus/parseManifest.js.map +1 -0
  293. package/dist/functions/uniapp/app-plus/validateOptions.d.ts +3 -0
  294. package/dist/functions/uniapp/app-plus/validateOptions.js +10 -0
  295. package/dist/functions/uniapp/app-plus/validateOptions.js.map +1 -0
  296. package/dist/functions/uniapp/waitForPages.d.ts +3 -0
  297. package/dist/functions/uniapp/waitForPages.js +20 -0
  298. package/dist/functions/uniapp/waitForPages.js.map +1 -0
  299. package/dist/functions/utils/compose.d.ts +1 -0
  300. package/dist/functions/utils/compose.js +10 -0
  301. package/dist/functions/utils/compose.js.map +1 -0
  302. package/dist/functions/utils/cond.d.ts +1 -0
  303. package/dist/functions/utils/cond.js +15 -0
  304. package/dist/functions/utils/cond.js.map +1 -0
  305. package/dist/functions/utils/curry.d.ts +1 -0
  306. package/dist/functions/utils/curry.js +13 -0
  307. package/dist/functions/utils/curry.js.map +1 -0
  308. package/dist/functions/utils/debounce.d.ts +1 -0
  309. package/dist/functions/utils/debounce.js +13 -0
  310. package/dist/functions/utils/debounce.js.map +1 -0
  311. package/dist/functions/utils/evolve.d.ts +3 -0
  312. package/dist/functions/utils/evolve.js +15 -0
  313. package/dist/functions/utils/evolve.js.map +1 -0
  314. package/dist/functions/utils/flow.d.ts +1 -0
  315. package/dist/functions/utils/flow.js +14 -0
  316. package/dist/functions/utils/flow.js.map +1 -0
  317. package/dist/functions/utils/generateExports.js +1 -1
  318. package/dist/functions/utils/generateExports.js.map +1 -1
  319. package/dist/functions/utils/isType.d.ts +11 -0
  320. package/dist/functions/utils/isType.js +30 -0
  321. package/dist/functions/utils/isType.js.map +1 -0
  322. package/dist/functions/utils/memoize.d.ts +1 -0
  323. package/dist/functions/utils/memoize.js +13 -0
  324. package/dist/functions/utils/memoize.js.map +1 -0
  325. package/dist/functions/utils/once.d.ts +1 -0
  326. package/dist/functions/utils/once.js +13 -0
  327. package/dist/functions/utils/once.js.map +1 -0
  328. package/dist/functions/utils/partial.d.ts +1 -0
  329. package/dist/functions/utils/partial.js +13 -0
  330. package/dist/functions/utils/partial.js.map +1 -0
  331. package/dist/functions/utils/pipe.d.ts +1 -0
  332. package/dist/functions/utils/pipe.js +10 -0
  333. package/dist/functions/utils/pipe.js.map +1 -0
  334. package/dist/functions/utils/retryWithBackoff.d.ts +9 -0
  335. package/dist/functions/utils/retryWithBackoff.js +30 -0
  336. package/dist/functions/utils/retryWithBackoff.js.map +1 -0
  337. package/dist/functions/utils/tap.d.ts +1 -0
  338. package/dist/functions/utils/tap.js +14 -0
  339. package/dist/functions/utils/tap.js.map +1 -0
  340. package/dist/functions/utils/throttle.d.ts +1 -0
  341. package/dist/functions/utils/throttle.js +11 -0
  342. package/dist/functions/utils/throttle.js.map +1 -0
  343. package/dist/functions/utils/until.d.ts +1 -0
  344. package/dist/functions/utils/until.js +10 -0
  345. package/dist/functions/utils/until.js.map +1 -0
  346. package/dist/functions/utils/validate.d.ts +8 -0
  347. package/dist/functions/utils/validate.js +45 -0
  348. package/dist/functions/utils/validate.js.map +1 -0
  349. package/dist/functions/utils/walk.d.ts +11 -0
  350. package/dist/functions/utils/walk.js +27 -0
  351. package/dist/functions/utils/walk.js.map +1 -0
  352. package/dist/functions/vue/checkVueType.d.ts +8 -0
  353. package/dist/functions/vue/checkVueType.js +29 -0
  354. package/dist/functions/vue/checkVueType.js.map +1 -0
  355. package/dist/functions/vue/deduplicateColors.d.ts +2 -0
  356. package/dist/functions/vue/deduplicateColors.js +13 -0
  357. package/dist/functions/vue/deduplicateColors.js.map +1 -0
  358. package/dist/functions/vue/dynamicMount.d.ts +15 -0
  359. package/dist/functions/vue/dynamicMount.js +25 -0
  360. package/dist/functions/vue/dynamicMount.js.map +1 -0
  361. package/dist/functions/vue/filterSections.js +11 -0
  362. package/dist/functions/vue/filterSections.js.map +1 -0
  363. package/dist/functions/vue/isVNode.d.ts +2 -0
  364. package/dist/functions/vue/isVNode.js +6 -0
  365. package/dist/functions/vue/isVNode.js.map +1 -0
  366. package/dist/functions/vue/isVueComponent.d.ts +2 -0
  367. package/dist/functions/vue/isVueComponent.js +6 -0
  368. package/dist/functions/vue/isVueComponent.js.map +1 -0
  369. package/dist/functions/vue/parseVueFile.js +53 -0
  370. package/dist/functions/vue/parseVueFile.js.map +1 -0
  371. package/dist/functions/vue/processVueFile.d.ts +3 -0
  372. package/dist/functions/vue/processVueFile.js +26 -0
  373. package/dist/functions/vue/processVueFile.js.map +1 -0
  374. package/dist/functions/vue/saveVueSection.d.ts +2 -0
  375. package/dist/functions/vue/saveVueSection.js +11 -0
  376. package/dist/functions/vue/saveVueSection.js.map +1 -0
  377. package/dist/functions/wechat/miniapp/downloadFile.d.ts +2 -0
  378. package/dist/functions/wechat/miniapp/downloadFile.js +39 -0
  379. package/dist/functions/wechat/miniapp/downloadFile.js.map +1 -0
  380. package/dist/hooks/useAi.d.ts +27 -0
  381. package/dist/hooks/useAi.js +163 -0
  382. package/dist/hooks/useAi.js.map +1 -0
  383. package/dist/hooks/useCache.d.ts +18 -0
  384. package/dist/hooks/useCache.js +82 -0
  385. package/dist/hooks/useCache.js.map +1 -0
  386. package/dist/hooks/useFetch.d.ts +3 -0
  387. package/dist/hooks/useFetch.js +154 -0
  388. package/dist/hooks/useFetch.js.map +1 -0
  389. package/dist/hooks/usePluginSystem.d.ts +11 -0
  390. package/dist/hooks/usePluginSystem.js +34 -0
  391. package/dist/hooks/usePluginSystem.js.map +1 -0
  392. package/dist/hooks/useRequest.d.ts +3 -0
  393. package/dist/hooks/useRequest.js +139 -0
  394. package/dist/hooks/useRequest.js.map +1 -0
  395. package/dist/hooks/useStorageWithIndexedDB.d.ts +2 -1
  396. package/dist/hooks/useStorageWithIndexedDB.js +1 -1
  397. package/dist/hooks/useStorageWithIndexedDB.js.map +1 -1
  398. package/dist/hooks/useWASM.d.ts +4 -0
  399. package/dist/hooks/useWASM.js +263 -0
  400. package/dist/hooks/useWASM.js.map +1 -0
  401. package/dist/hooks/useWorkerFunction.js +27 -27
  402. package/package.json +1 -1
  403. package/references/arraybuffer.d.ts +108 -108
  404. package/references/blob.d.ts +36 -36
  405. package/references/browser.d.ts +69 -69
  406. package/references/chrome.extension.d.ts +82 -82
  407. package/references/console.d.ts +24 -24
  408. package/references/crypto-js.d.ts +57 -57
  409. package/references/dom.d.ts +40 -40
  410. package/references/encoding.d.ts +23 -23
  411. package/references/fetch.d.ts +123 -123
  412. package/references/indexeddb.d.ts +48 -48
  413. package/references/json5.d.ts +21 -21
  414. package/references/location.d.ts +15 -15
  415. package/references/node.d.ts +121 -115
  416. package/references/sharp.d.ts +18 -18
  417. package/references/storage.d.ts +17 -17
  418. package/references/timer.d.ts +44 -44
  419. package/references/uniapp.d.ts +50 -50
  420. package/references/url.d.ts +55 -55
  421. package/references/vue.d.ts +85 -85
  422. package/references/webassembly.d.ts +100 -100
  423. package/references/wechat.d.ts +48 -48
  424. package/references/worker.d.ts +152 -152
  425. package/references/xml.d.ts +87 -88
  426. package/types/android-build.d.ts +60 -60
  427. package/types/color.d.ts +72 -72
  428. package/types/geometry.d.ts +28 -28
  429. package/types/platform.d.ts +3 -3
  430. package/types/software.d.ts +14 -14
  431. package/types/storage.d.ts +50 -50
  432. package/types/uniapp-android-build.d.ts +48 -48
  433. package/types/vue.d.ts +29 -29
  434. package/types/worker.d.ts +177 -177
@@ -1,19 +1,19 @@
1
- import type { NodeBuffer } from './node.d'
2
-
3
- /**
4
- * Sharp 图像处理库的类型定义
5
- */
6
-
7
- export interface SharpInstance {
8
- metadata(): Promise<{ width?: number; height?: number }>;
9
- resize(width: number, height: number): SharpInstance;
10
- composite(images: Array<{ input: NodeBuffer; top: number; left: number; blend?: string }>): SharpInstance;
11
- extend(options: { top: number; bottom: number; left: number; right: number; background: { r: number; g: number; b: number; alpha: number } }): SharpInstance;
12
- flatten(options?: { background?: string | { r: number; g: number; b: number } }): SharpInstance;
13
- negate(options?: boolean): SharpInstance;
14
- toBuffer(): Promise<NodeBuffer>;
15
- }
16
-
17
- export interface Sharp {
18
- (input: NodeBuffer): SharpInstance;
1
+ import type { NodeBuffer } from './node.d'
2
+
3
+ /**
4
+ * Sharp 图像处理库的类型定义
5
+ */
6
+
7
+ export interface SharpInstance {
8
+ metadata(): Promise<{ width?: number; height?: number }>;
9
+ resize(width: number, height: number): SharpInstance;
10
+ composite(images: Array<{ input: NodeBuffer; top: number; left: number; blend?: string }>): SharpInstance;
11
+ extend(options: { top: number; bottom: number; left: number; right: number; background: { r: number; g: number; b: number; alpha: number } }): SharpInstance;
12
+ flatten(options?: { background?: string | { r: number; g: number; b: number } }): SharpInstance;
13
+ negate(options?: boolean): SharpInstance;
14
+ toBuffer(): Promise<NodeBuffer>;
15
+ }
16
+
17
+ export interface Sharp {
18
+ (input: NodeBuffer): SharpInstance;
19
19
  }
@@ -1,18 +1,18 @@
1
- /**
2
- * 存储环境类型定义
3
- * 包含浏览器和其他环境的存储 API 类型支持
4
- */
5
-
6
- /**
7
- * 基础存储接口
8
- * 对应浏览器的 localStorage 和 sessionStorage API
9
- */
10
- export interface Storage {
11
- readonly length: number
12
- clear(): void
13
- getItem(key: string): string | null
14
- key(index: number): string | null
15
- removeItem(key: string): void
16
- setItem(key: string, value: string): void
17
- [name: string]: any
1
+ /**
2
+ * 存储环境类型定义
3
+ * 包含浏览器和其他环境的存储 API 类型支持
4
+ */
5
+
6
+ /**
7
+ * 基础存储接口
8
+ * 对应浏览器的 localStorage 和 sessionStorage API
9
+ */
10
+ export interface Storage {
11
+ readonly length: number
12
+ clear(): void
13
+ getItem(key: string): string | null
14
+ key(index: number): string | null
15
+ removeItem(key: string): void
16
+ setItem(key: string, value: string): void
17
+ [name: string]: any
18
18
  }
@@ -1,45 +1,45 @@
1
- /**
2
- * 定时器 API 类型定义
3
- * 包含浏览器和 Node.js 环境都支持的定时器相关 API
4
- */
5
-
6
- /**
7
- * 设置定时器
8
- * @param callback 回调函数
9
- * @param ms 延迟时间(毫秒)
10
- * @param args 传递给回调函数的参数
11
- * @returns 定时器 ID
12
- */
13
- export declare const setTimeout: (callback: (...args: any[]) => void, ms?: number, ...args: any[]) => any
14
-
15
- /**
16
- * 清除定时器
17
- * @param timeoutId 定时器 ID
18
- */
19
- export declare const clearTimeout: (timeoutId: any) => void
20
-
21
- /**
22
- * 设置间隔定时器
23
- * @param callback 回调函数
24
- * @param ms 间隔时间(毫秒)
25
- * @param args 传递给回调函数的参数
26
- * @returns 间隔定时器 ID
27
- */
28
- export declare const setInterval: (callback: (...args: any[]) => void, ms?: number, ...args: any[]) => any
29
-
30
- /**
31
- * 清除间隔定时器
32
- * @param intervalId 间隔定时器 ID
33
- */
34
- export declare const clearInterval: (intervalId: any) => void
35
-
36
- /**
37
- * 定时器环境接口
38
- * 包含所有定时器相关的 API
39
- */
40
- export interface Timer {
41
- setTimeout: typeof setTimeout
42
- clearTimeout: typeof clearTimeout
43
- setInterval: typeof setInterval
44
- clearInterval: typeof clearInterval
1
+ /**
2
+ * 定时器 API 类型定义
3
+ * 包含浏览器和 Node.js 环境都支持的定时器相关 API
4
+ */
5
+
6
+ /**
7
+ * 设置定时器
8
+ * @param callback 回调函数
9
+ * @param ms 延迟时间(毫秒)
10
+ * @param args 传递给回调函数的参数
11
+ * @returns 定时器 ID
12
+ */
13
+ export declare const setTimeout: (callback: (...args: any[]) => void, ms?: number, ...args: any[]) => any
14
+
15
+ /**
16
+ * 清除定时器
17
+ * @param timeoutId 定时器 ID
18
+ */
19
+ export declare const clearTimeout: (timeoutId: any) => void
20
+
21
+ /**
22
+ * 设置间隔定时器
23
+ * @param callback 回调函数
24
+ * @param ms 间隔时间(毫秒)
25
+ * @param args 传递给回调函数的参数
26
+ * @returns 间隔定时器 ID
27
+ */
28
+ export declare const setInterval: (callback: (...args: any[]) => void, ms?: number, ...args: any[]) => any
29
+
30
+ /**
31
+ * 清除间隔定时器
32
+ * @param intervalId 间隔定时器 ID
33
+ */
34
+ export declare const clearInterval: (intervalId: any) => void
35
+
36
+ /**
37
+ * 定时器环境接口
38
+ * 包含所有定时器相关的 API
39
+ */
40
+ export interface Timer {
41
+ setTimeout: typeof setTimeout
42
+ clearTimeout: typeof clearTimeout
43
+ setInterval: typeof setInterval
44
+ clearInterval: typeof clearInterval
45
45
  }
@@ -1,51 +1,51 @@
1
- // UniApp 环境类型声明
2
-
3
- /**
4
- * UniApp 页面实例接口
5
- */
6
- export interface UniPage {
7
- route: string
8
- options: Record<string, any>
9
- $vm: any
10
- }
11
-
12
- /**
13
- * UniApp 全局对象
14
- * 定义 UniApp 框架的完整能力
15
- */
16
- export interface UniApp {
17
- // 页面管理
18
- getCurrentPages(): any[]
19
-
20
- // 路由导航
21
- navigateTo(options: { url: string; success?: () => void; fail?: () => void }): void
22
- redirectTo(options: { url: string; success?: () => void; fail?: () => void }): void
23
- switchTab(options: { url: string; success?: () => void; fail?: () => void }): void
24
- navigateBack(options?: { delta?: number; success?: () => void; fail?: () => void }): void
25
- reLaunch(options: { url: string; success?: () => void; fail?: () => void }): void
26
-
27
- // UI 交互
28
- showToast(options: { title: string; icon?: 'success' | 'loading' | 'none'; duration?: number }): void
29
- hideToast(): void
30
- showModal(options: { title?: string; content: string; showCancel?: boolean; success?: (res: { confirm: boolean; cancel: boolean }) => void }): void
31
- showActionSheet(options: { itemList: string[]; success?: (res: { tapIndex: number }) => void }): void
32
-
33
- // 系统信息
34
- getSystemInfo(options: { success?: (res: any) => void; fail?: () => void }): void
35
-
36
- // 本地存储
37
- getStorageSync(key: string): any
38
- setStorageSync(key: string, data: any): void
39
- removeStorageSync(key: string): void
40
- clearStorageSync(): void
41
-
42
- // 网络请求
43
- request(options: {
44
- url: string
45
- method?: 'GET' | 'POST' | 'PUT' | 'DELETE'
46
- data?: any
47
- header?: Record<string, string>
48
- success?: (res: any) => void
49
- fail?: () => void
50
- }): void
1
+ // UniApp 环境类型声明
2
+
3
+ /**
4
+ * UniApp 页面实例接口
5
+ */
6
+ export interface UniPage {
7
+ route: string
8
+ options: Record<string, any>
9
+ $vm: any
10
+ }
11
+
12
+ /**
13
+ * UniApp 全局对象
14
+ * 定义 UniApp 框架的完整能力
15
+ */
16
+ export interface UniApp {
17
+ // 页面管理
18
+ getCurrentPages(): any[]
19
+
20
+ // 路由导航
21
+ navigateTo(options: { url: string; success?: () => void; fail?: () => void }): void
22
+ redirectTo(options: { url: string; success?: () => void; fail?: () => void }): void
23
+ switchTab(options: { url: string; success?: () => void; fail?: () => void }): void
24
+ navigateBack(options?: { delta?: number; success?: () => void; fail?: () => void }): void
25
+ reLaunch(options: { url: string; success?: () => void; fail?: () => void }): void
26
+
27
+ // UI 交互
28
+ showToast(options: { title: string; icon?: 'success' | 'loading' | 'none'; duration?: number }): void
29
+ hideToast(): void
30
+ showModal(options: { title?: string; content: string; showCancel?: boolean; success?: (res: { confirm: boolean; cancel: boolean }) => void }): void
31
+ showActionSheet(options: { itemList: string[]; success?: (res: { tapIndex: number }) => void }): void
32
+
33
+ // 系统信息
34
+ getSystemInfo(options: { success?: (res: any) => void; fail?: () => void }): void
35
+
36
+ // 本地存储
37
+ getStorageSync(key: string): any
38
+ setStorageSync(key: string, data: any): void
39
+ removeStorageSync(key: string): void
40
+ clearStorageSync(): void
41
+
42
+ // 网络请求
43
+ request(options: {
44
+ url: string
45
+ method?: 'GET' | 'POST' | 'PUT' | 'DELETE'
46
+ data?: any
47
+ header?: Record<string, string>
48
+ success?: (res: any) => void
49
+ fail?: () => void
50
+ }): void
51
51
  }
@@ -1,56 +1,56 @@
1
- // URL API 类型定义
2
-
3
- /**
4
- * URL 解析和构造类
5
- */
6
- declare class URL {
7
- constructor(url: string, base?: string | URL)
8
-
9
- // URL 组成部分
10
- href: string
11
- origin: string
12
- protocol: string
13
- hostname: string
14
- port: string
15
- pathname: string
16
- search: string
17
- hash: string
18
- username: string
19
- password: string
20
- host: string
21
-
22
- // 查询参数
23
- searchParams: URLSearchParams
24
-
25
- // 序列化方法
26
- toString(): string
27
- toJSON(): string
28
- }
29
-
30
- /**
31
- * URL 查询参数处理类
32
- */
33
- declare class URLSearchParams {
34
- constructor(init?: string | string[][] | Record<string, string> | URLSearchParams)
35
-
36
- // 参数操作
37
- append(name: string, value: string): void
38
- delete(name: string): void
39
- get(name: string): string | null
40
- getAll(name: string): string[]
41
- has(name: string): boolean
42
- set(name: string, value: string): void
43
- sort(): void
44
-
45
- // 序列化
46
- toString(): string
47
-
48
- // 迭代器
49
- [Symbol.iterator](): IterableIterator<[string, string]>
50
- keys(): IterableIterator<string>
51
- values(): IterableIterator<string>
52
- entries(): IterableIterator<[string, string]>
53
- forEach(callback: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void
54
- }
55
-
1
+ // URL API 类型定义
2
+
3
+ /**
4
+ * URL 解析和构造类
5
+ */
6
+ declare class URL {
7
+ constructor(url: string, base?: string | URL)
8
+
9
+ // URL 组成部分
10
+ href: string
11
+ origin: string
12
+ protocol: string
13
+ hostname: string
14
+ port: string
15
+ pathname: string
16
+ search: string
17
+ hash: string
18
+ username: string
19
+ password: string
20
+ host: string
21
+
22
+ // 查询参数
23
+ searchParams: URLSearchParams
24
+
25
+ // 序列化方法
26
+ toString(): string
27
+ toJSON(): string
28
+ }
29
+
30
+ /**
31
+ * URL 查询参数处理类
32
+ */
33
+ declare class URLSearchParams {
34
+ constructor(init?: string | string[][] | Record<string, string> | URLSearchParams)
35
+
36
+ // 参数操作
37
+ append(name: string, value: string): void
38
+ delete(name: string): void
39
+ get(name: string): string | null
40
+ getAll(name: string): string[]
41
+ has(name: string): boolean
42
+ set(name: string, value: string): void
43
+ sort(): void
44
+
45
+ // 序列化
46
+ toString(): string
47
+
48
+ // 迭代器
49
+ [Symbol.iterator](): IterableIterator<[string, string]>
50
+ keys(): IterableIterator<string>
51
+ values(): IterableIterator<string>
52
+ entries(): IterableIterator<[string, string]>
53
+ forEach(callback: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void
54
+ }
55
+
56
56
  export { URL, URLSearchParams }
@@ -1,86 +1,86 @@
1
- // Vue 类型定义
2
-
3
- /**
4
- * Vue 虚拟节点
5
- */
6
- export interface VNode {
7
- type: Component | string | symbol
8
- props: Record<string, any> | null
9
- children: VNode[] | string | null
10
- key: string | number | symbol | null
11
- ref: ((el: any) => void) | string | null
12
- el: Element | null
13
- appContext?: AppContext
14
- }
15
-
16
- /**
17
- * Vue 组件定义
18
- */
19
- export interface Component {
20
- name?: string
21
- setup?: (props: any, ctx: any) => any
22
- render?: (ctx: any) => VNode | VNode[]
23
- template?: string
24
- components?: Record<string, Component>
25
- props?: string[] | Record<string, any>
26
- emits?: string[] | Record<string, any>
27
- }
28
-
29
- /**
30
- * Vue 组件实例
31
- */
32
- export interface ComponentInstance {
33
- type: Component
34
- parent: ComponentInstance | null
35
- appContext: AppContext
36
- }
37
-
38
- /**
39
- * Vue 应用上下文
40
- */
41
- export interface AppContext {
42
- app: App
43
- config: AppConfig
44
- components: Record<string, Component>
45
- provides: Record<string | symbol, any>
46
- }
47
-
48
- /**
49
- * Vue 应用实例
50
- */
51
- export interface App {
52
- version: string
53
- config: AppConfig
54
- use(plugin: any, ...options: any[]): App
55
- component(name: string): Component | undefined
56
- component(name: string, component: Component): App
57
- mount(rootContainer: Element | string): ComponentInstance
58
- unmount(): void
59
- provide<T>(key: string | symbol, value: T): App
60
- }
61
-
62
- /**
63
- * Vue 应用配置
64
- */
65
- export interface AppConfig {
66
- errorHandler?: (err: any, instance: ComponentInstance | null, info: string) => void
67
- warnHandler?: (msg: string, instance: ComponentInstance | null, trace: string) => void
68
- globalProperties?: Record<string, any>
69
- }
70
-
71
- /**
72
- * Vue 响应式引用
73
- */
74
- export interface Ref<T> {
75
- value: T
76
- }
77
-
78
- /**
79
- * Vue 运行时函数
80
- */
81
- export interface VueRuntime {
82
- createVNode: (type: any, props?: any, children?: any) => VNode
83
- render: (vnode: VNode | null, container: any) => void
84
- ref: <T>(value: T) => Ref<T>
85
- onUnmounted: (fn: () => void) => void
1
+ // Vue 类型定义
2
+
3
+ /**
4
+ * Vue 虚拟节点
5
+ */
6
+ export interface VNode {
7
+ type: Component | string | symbol
8
+ props: Record<string, any> | null
9
+ children: VNode[] | string | null
10
+ key: string | number | symbol | null
11
+ ref: ((el: any) => void) | string | null
12
+ el: Element | null
13
+ appContext?: AppContext
14
+ }
15
+
16
+ /**
17
+ * Vue 组件定义
18
+ */
19
+ export interface Component {
20
+ name?: string
21
+ setup?: (props: any, ctx: any) => any
22
+ render?: (ctx: any) => VNode | VNode[]
23
+ template?: string
24
+ components?: Record<string, Component>
25
+ props?: string[] | Record<string, any>
26
+ emits?: string[] | Record<string, any>
27
+ }
28
+
29
+ /**
30
+ * Vue 组件实例
31
+ */
32
+ export interface ComponentInstance {
33
+ type: Component
34
+ parent: ComponentInstance | null
35
+ appContext: AppContext
36
+ }
37
+
38
+ /**
39
+ * Vue 应用上下文
40
+ */
41
+ export interface AppContext {
42
+ app: App
43
+ config: AppConfig
44
+ components: Record<string, Component>
45
+ provides: Record<string | symbol, any>
46
+ }
47
+
48
+ /**
49
+ * Vue 应用实例
50
+ */
51
+ export interface App {
52
+ version: string
53
+ config: AppConfig
54
+ use(plugin: any, ...options: any[]): App
55
+ component(name: string): Component | undefined
56
+ component(name: string, component: Component): App
57
+ mount(rootContainer: Element | string): ComponentInstance
58
+ unmount(): void
59
+ provide<T>(key: string | symbol, value: T): App
60
+ }
61
+
62
+ /**
63
+ * Vue 应用配置
64
+ */
65
+ export interface AppConfig {
66
+ errorHandler?: (err: any, instance: ComponentInstance | null, info: string) => void
67
+ warnHandler?: (msg: string, instance: ComponentInstance | null, trace: string) => void
68
+ globalProperties?: Record<string, any>
69
+ }
70
+
71
+ /**
72
+ * Vue 响应式引用
73
+ */
74
+ export interface Ref<T> {
75
+ value: T
76
+ }
77
+
78
+ /**
79
+ * Vue 运行时函数
80
+ */
81
+ export interface VueRuntime {
82
+ createVNode: (type: any, props?: any, children?: any) => VNode
83
+ render: (vnode: VNode | null, container: any) => void
84
+ ref: <T>(value: T) => Ref<T>
85
+ onUnmounted: (fn: () => void) => void
86
86
  }