miniprogram-ci 2.1.34 → 2.1.35

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 (514) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +2 -0
  3. package/dist/@types/common/code-analyse/index.d.ts +2 -0
  4. package/dist/@types/config/config.d.ts +1 -1
  5. package/dist/@types/modules/corecompiler/original/workerThread/config.d.ts +4 -3
  6. package/dist/@types/modules/corecompiler/summerCompiler.d.ts +1 -0
  7. package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +2 -0
  8. package/dist/@types/schema/@types/appjson.d.ts +3 -0
  9. package/dist/@types/utils/asar.d.ts +1 -0
  10. package/dist/@types/utils/customError.d.ts +1 -1
  11. package/dist/@types/utils/packOptionsHelper.d.ts +1 -1
  12. package/dist/common/code-analyse/index.js +1 -1
  13. package/dist/config/config.js +1 -1
  14. package/dist/modules/corecompiler/original/workerThread/config.js +1 -1
  15. package/dist/modules/corecompiler/original/workerThread/worker.js +1 -1
  16. package/dist/modules/corecompiler/original/workerThread/workerManager.js +1 -1
  17. package/dist/modules/corecompiler/summer/graph/appconf.js +1 -1
  18. package/dist/modules/corecompiler/summer/plugins/script_task/swc_task.js +1 -1
  19. package/dist/modules/corecompiler/summer/worker.js +1 -1
  20. package/dist/modules/corecompiler/summerCompiler.js +1 -1
  21. package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
  22. package/dist/schema/dist/app.js +18 -0
  23. package/dist/services/common/getservice.js +1 -1
  24. package/dist/services/multiTaskManager/electron/multiTaskManager.js +1 -1
  25. package/dist/utils/asar.js +1 -0
  26. package/dist/utils/codesign.js +1 -1
  27. package/dist/utils/customError.js +1 -1
  28. package/dist/utils/packOptionsHelper.js +1 -1
  29. package/dist/utils/swc_config.js +1 -1
  30. package/dist/vendor/swc_runtime/_apply_decorated_descriptor.js +1 -1
  31. package/dist/vendor/swc_runtime/_apply_decs_2203_r.js +1 -1
  32. package/dist/vendor/swc_runtime/_array_like_to_array.js +1 -1
  33. package/dist/vendor/swc_runtime/_array_with_holes.js +1 -1
  34. package/dist/vendor/swc_runtime/_array_without_holes.js +1 -1
  35. package/dist/vendor/swc_runtime/_assert_this_initialized.js +1 -1
  36. package/dist/vendor/swc_runtime/_async_generator.js +1 -1
  37. package/dist/vendor/swc_runtime/_async_generator_delegate.js +1 -1
  38. package/dist/vendor/swc_runtime/_async_iterator.js +1 -1
  39. package/dist/vendor/swc_runtime/_async_to_generator.js +1 -1
  40. package/dist/vendor/swc_runtime/_await_async_generator.js +1 -1
  41. package/dist/vendor/swc_runtime/_await_value.js +1 -1
  42. package/dist/vendor/swc_runtime/_call_super.js +1 -0
  43. package/dist/vendor/swc_runtime/_check_private_redeclaration.js +1 -1
  44. package/dist/vendor/swc_runtime/_class_apply_descriptor_destructure.js +1 -1
  45. package/dist/vendor/swc_runtime/_class_apply_descriptor_get.js +1 -1
  46. package/dist/vendor/swc_runtime/_class_apply_descriptor_set.js +1 -1
  47. package/dist/vendor/swc_runtime/_class_apply_descriptor_update.js +1 -1
  48. package/dist/vendor/swc_runtime/_class_call_check.js +1 -1
  49. package/dist/vendor/swc_runtime/_class_check_private_static_access.js +1 -1
  50. package/dist/vendor/swc_runtime/_class_check_private_static_field_descriptor.js +1 -1
  51. package/dist/vendor/swc_runtime/_class_extract_field_descriptor.js +1 -1
  52. package/dist/vendor/swc_runtime/_class_name_tdz_error.js +1 -1
  53. package/dist/vendor/swc_runtime/_class_private_field_destructure.js +1 -1
  54. package/dist/vendor/swc_runtime/_class_private_field_get.js +1 -1
  55. package/dist/vendor/swc_runtime/_class_private_field_init.js +1 -1
  56. package/dist/vendor/swc_runtime/_class_private_field_loose_base.js +1 -1
  57. package/dist/vendor/swc_runtime/_class_private_field_loose_key.js +1 -1
  58. package/dist/vendor/swc_runtime/_class_private_field_set.js +1 -1
  59. package/dist/vendor/swc_runtime/_class_private_field_update.js +1 -1
  60. package/dist/vendor/swc_runtime/_class_private_method_get.js +1 -1
  61. package/dist/vendor/swc_runtime/_class_private_method_init.js +1 -1
  62. package/dist/vendor/swc_runtime/_class_private_method_set.js +1 -1
  63. package/dist/vendor/swc_runtime/_class_static_private_field_destructure.js +1 -1
  64. package/dist/vendor/swc_runtime/_class_static_private_field_spec_get.js +1 -1
  65. package/dist/vendor/swc_runtime/_class_static_private_field_spec_set.js +1 -1
  66. package/dist/vendor/swc_runtime/_class_static_private_field_update.js +1 -1
  67. package/dist/vendor/swc_runtime/_class_static_private_method_get.js +1 -1
  68. package/dist/vendor/swc_runtime/_construct.js +1 -1
  69. package/dist/vendor/swc_runtime/_create_class.js +1 -1
  70. package/dist/vendor/swc_runtime/_create_for_of_iterator_helper_loose.js +1 -1
  71. package/dist/vendor/swc_runtime/_create_super.js +1 -1
  72. package/dist/vendor/swc_runtime/_decorate.js +1 -1
  73. package/dist/vendor/swc_runtime/_defaults.js +1 -1
  74. package/dist/vendor/swc_runtime/_define_enumerable_properties.js +1 -1
  75. package/dist/vendor/swc_runtime/_define_property.js +1 -1
  76. package/dist/vendor/swc_runtime/_dispose.js +1 -1
  77. package/dist/vendor/swc_runtime/_export_star.js +1 -1
  78. package/dist/vendor/swc_runtime/_extends.js +1 -1
  79. package/dist/vendor/swc_runtime/_get.js +1 -1
  80. package/dist/vendor/swc_runtime/_get_prototype_of.js +1 -1
  81. package/dist/vendor/swc_runtime/_identity.js +1 -1
  82. package/dist/vendor/swc_runtime/_inherits.js +1 -1
  83. package/dist/vendor/swc_runtime/_inherits_loose.js +1 -1
  84. package/dist/vendor/swc_runtime/_initializer_define_property.js +1 -1
  85. package/dist/vendor/swc_runtime/_initializer_warning_helper.js +1 -1
  86. package/dist/vendor/swc_runtime/_instanceof.js +1 -1
  87. package/dist/vendor/swc_runtime/_interop_require_default.js +1 -1
  88. package/dist/vendor/swc_runtime/_interop_require_wildcard.js +1 -1
  89. package/dist/vendor/swc_runtime/_is_native_function.js +1 -1
  90. package/dist/vendor/swc_runtime/_is_native_reflect_construct.js +1 -1
  91. package/dist/vendor/swc_runtime/_iterable_to_array.js +1 -1
  92. package/dist/vendor/swc_runtime/_iterable_to_array_limit.js +1 -1
  93. package/dist/vendor/swc_runtime/_iterable_to_array_limit_loose.js +1 -1
  94. package/dist/vendor/swc_runtime/_jsx.js +1 -1
  95. package/dist/vendor/swc_runtime/_new_arrow_check.js +1 -1
  96. package/dist/vendor/swc_runtime/_non_iterable_rest.js +1 -1
  97. package/dist/vendor/swc_runtime/_non_iterable_spread.js +1 -1
  98. package/dist/vendor/swc_runtime/_object_destructuring_empty.js +1 -1
  99. package/dist/vendor/swc_runtime/_object_spread.js +1 -1
  100. package/dist/vendor/swc_runtime/_object_spread_props.js +1 -1
  101. package/dist/vendor/swc_runtime/_object_without_properties.js +1 -1
  102. package/dist/vendor/swc_runtime/_object_without_properties_loose.js +1 -1
  103. package/dist/vendor/swc_runtime/_overload_yield.js +1 -0
  104. package/dist/vendor/swc_runtime/_possible_constructor_return.js +1 -1
  105. package/dist/vendor/swc_runtime/_read_only_error.js +1 -1
  106. package/dist/vendor/swc_runtime/_set.js +1 -1
  107. package/dist/vendor/swc_runtime/_set_prototype_of.js +1 -1
  108. package/dist/vendor/swc_runtime/_skip_first_generator_next.js +1 -1
  109. package/dist/vendor/swc_runtime/_sliced_to_array.js +1 -1
  110. package/dist/vendor/swc_runtime/_sliced_to_array_loose.js +1 -1
  111. package/dist/vendor/swc_runtime/_super_prop_base.js +1 -1
  112. package/dist/vendor/swc_runtime/_tagged_template_literal.js +1 -1
  113. package/dist/vendor/swc_runtime/_tagged_template_literal_loose.js +1 -1
  114. package/dist/vendor/swc_runtime/_throw.js +1 -1
  115. package/dist/vendor/swc_runtime/_to_array.js +1 -1
  116. package/dist/vendor/swc_runtime/_to_consumable_array.js +1 -1
  117. package/dist/vendor/swc_runtime/_to_primitive.js +1 -1
  118. package/dist/vendor/swc_runtime/_to_property_key.js +1 -1
  119. package/dist/vendor/swc_runtime/_ts_add_disposable_resource.js +1 -0
  120. package/dist/vendor/swc_runtime/_ts_decorate.js +1 -1
  121. package/dist/vendor/swc_runtime/_ts_dispose_resources.js +1 -0
  122. package/dist/vendor/swc_runtime/_ts_generator.js +1 -1
  123. package/dist/vendor/swc_runtime/_ts_metadata.js +1 -1
  124. package/dist/vendor/swc_runtime/_ts_param.js +1 -1
  125. package/dist/vendor/swc_runtime/_ts_values.js +1 -1
  126. package/dist/vendor/swc_runtime/_type_of.js +1 -1
  127. package/dist/vendor/swc_runtime/_unsupported_iterable_to_array.js +1 -1
  128. package/dist/vendor/swc_runtime/_update.js +1 -1
  129. package/dist/vendor/swc_runtime/_using.js +1 -1
  130. package/dist/vendor/swc_runtime/_using_ctx.js +1 -0
  131. package/dist/vendor/swc_runtime/_wrap_async_generator.js +1 -1
  132. package/dist/vendor/swc_runtime/_wrap_native_super.js +1 -1
  133. package/dist/vendor/swc_runtime/_write_only_error.js +1 -1
  134. package/dist/vendor/swc_runtime/index.js +1 -1
  135. package/package.json +3 -3
  136. package/dist/@types/build-server/constant.d.ts +0 -42
  137. package/dist/@types/build-server/ctxManager.d.ts +0 -2
  138. package/dist/@types/build-server/fileCacheManager.d.ts +0 -43
  139. package/dist/@types/build-server/fileTaskDriver.d.ts +0 -36
  140. package/dist/@types/build-server/subProcess.d.ts +0 -1
  141. package/dist/@types/build-server/subTaskManager.d.ts +0 -8
  142. package/dist/@types/build-server/taskDriver.d.ts +0 -68
  143. package/dist/@types/build-server/taskFactory.d.ts +0 -22
  144. package/dist/@types/build-server/tasks/appserviceCompile/index.d.ts +0 -1
  145. package/dist/@types/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.d.ts +0 -5
  146. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.d.ts +0 -19
  147. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.d.ts +0 -10
  148. package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.d.ts +0 -23
  149. package/dist/@types/build-server/tasks/baseFileCompiler/OTService.d.ts +0 -7
  150. package/dist/@types/build-server/tasks/baseFileCompiler/enhance.d.ts +0 -29
  151. package/dist/@types/build-server/tasks/baseFileCompiler/es6module.d.ts +0 -44
  152. package/dist/@types/build-server/tasks/baseFileCompiler/index.d.ts +0 -3
  153. package/dist/@types/build-server/tasks/baseFileCompiler/javascript.d.ts +0 -36
  154. package/dist/@types/build-server/tasks/baseFileCompiler/less.d.ts +0 -43
  155. package/dist/@types/build-server/tasks/baseFileCompiler/minifywxml.d.ts +0 -10
  156. package/dist/@types/build-server/tasks/baseFileCompiler/readFile.d.ts +0 -2
  157. package/dist/@types/build-server/tasks/baseFileCompiler/sass.d.ts +0 -50
  158. package/dist/@types/build-server/tasks/baseFileCompiler/terser.d.ts +0 -20
  159. package/dist/@types/build-server/tasks/baseFileCompiler/typescript.d.ts +0 -25
  160. package/dist/@types/build-server/tasks/baseFileCompiler/worklet.d.ts +0 -13
  161. package/dist/@types/build-server/tasks/baseFileCompiler/wxss.d.ts +0 -33
  162. package/dist/@types/build-server/tasks/common/apperrcode.config.d.ts +0 -92
  163. package/dist/@types/build-server/tasks/common/compiletype.config.d.ts +0 -17
  164. package/dist/@types/build-server/tasks/common/constants.config.d.ts +0 -549
  165. package/dist/@types/build-server/tasks/common/simulatortype.config.d.ts +0 -15
  166. package/dist/@types/build-server/tasks/common/utils/appdevserver/getwxappcode.d.ts +0 -3
  167. package/dist/@types/build-server/tasks/common/utils/babel/babelhelpers.d.ts +0 -11
  168. package/dist/@types/build-server/tasks/common/utils/builder/builder.d.ts +0 -35
  169. package/dist/@types/build-server/tasks/common/utils/builder/filter.d.ts +0 -1
  170. package/dist/@types/build-server/tasks/common/utils/builder/index.d.ts +0 -10
  171. package/dist/@types/build-server/tasks/common/utils/cache/compile.d.ts +0 -72
  172. package/dist/@types/build-server/tasks/common/utils/cache/config.d.ts +0 -16
  173. package/dist/@types/build-server/tasks/common/utils/cache/filecompile.d.ts +0 -16
  174. package/dist/@types/build-server/tasks/common/utils/cache/jspersistcache.d.ts +0 -11
  175. package/dist/@types/build-server/tasks/common/utils/cache/manager.d.ts +0 -18
  176. package/dist/@types/build-server/tasks/common/utils/cache/persistcache.d.ts +0 -17
  177. package/dist/@types/build-server/tasks/common/utils/cache/reporter.d.ts +0 -9
  178. package/dist/@types/build-server/tasks/common/utils/colorutils.d.ts +0 -4
  179. package/dist/@types/build-server/tasks/common/utils/common/bindActionTools.d.ts +0 -8
  180. package/dist/@types/build-server/tasks/common/utils/common/schema.helper.d.ts +0 -0
  181. package/dist/@types/build-server/tasks/common/utils/common/tools.d.ts +0 -17
  182. package/dist/@types/build-server/tasks/common/utils/common/waitable.d.ts +0 -14
  183. package/dist/@types/build-server/tasks/common/utils/filerules.d.ts +0 -13
  184. package/dist/@types/build-server/tasks/common/utils/fsutils.d.ts +0 -7
  185. package/dist/@types/build-server/tasks/common/utils/handleError.d.ts +0 -0
  186. package/dist/@types/build-server/tasks/common/utils/helper/vendorValidate.d.ts +0 -0
  187. package/dist/@types/build-server/tasks/common/utils/interfacebuilder/registry/index.d.ts +0 -22
  188. package/dist/@types/build-server/tasks/common/utils/partialcompile.d.ts +0 -0
  189. package/dist/@types/build-server/tasks/common/utils/project/appconfig.d.ts +0 -5
  190. package/dist/@types/build-server/tasks/common/utils/project/appjson.d.ts +0 -2
  191. package/dist/@types/build-server/tasks/common/utils/project/customcomponent.d.ts +0 -20
  192. package/dist/@types/build-server/tasks/common/utils/project/generatecode.utils.d.ts +0 -5
  193. package/dist/@types/build-server/tasks/common/utils/project/getcompiledjs.d.ts +0 -30
  194. package/dist/@types/build-server/tasks/common/utils/project/helper/index.d.ts +0 -21
  195. package/dist/@types/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.d.ts +0 -142
  196. package/dist/@types/build-server/tasks/common/utils/project/helper/reserveddirectories.d.ts +0 -3
  197. package/dist/@types/build-server/tasks/common/utils/project/helper/theme.d.ts +0 -39
  198. package/dist/@types/build-server/tasks/common/utils/project/online/appconfig.d.ts +0 -0
  199. package/dist/@types/build-server/tasks/common/utils/project/pagejson.d.ts +0 -2
  200. package/dist/@types/build-server/tasks/common/utils/project/projectconfigjson.d.ts +0 -8
  201. package/dist/@types/build-server/tasks/common/utils/project/wxappcodejson.d.ts +0 -2
  202. package/dist/@types/build-server/tasks/common/utils/subpackageUtils.d.ts +0 -0
  203. package/dist/@types/build-server/tasks/common/utils/tracing/Trace.d.ts +0 -50
  204. package/dist/@types/build-server/tasks/common/utils/tracing/aegis.d.ts +0 -3
  205. package/dist/@types/build-server/tasks/common/utils/tracing/index.d.ts +0 -34
  206. package/dist/@types/build-server/tasks/common/utils/tracing/readiness.d.ts +0 -11
  207. package/dist/@types/build-server/tasks/common/utils/tracing/report.d.ts +0 -14
  208. package/dist/@types/build-server/tasks/common/utils/trans/transwxmltojs.d.ts +0 -28
  209. package/dist/@types/build-server/tasks/common/utils/transformsourcemap.d.ts +0 -1
  210. package/dist/@types/build-server/tasks/common/utils/web/glasseaselUtils.d.ts +0 -1
  211. package/dist/@types/build-server/tasks/common/utils/web/md5.d.ts +0 -2
  212. package/dist/@types/build-server/tasks/common/utils/web/processPath.d.ts +0 -9
  213. package/dist/@types/build-server/tasks/common/weapp.config.d.ts +0 -108
  214. package/dist/@types/build-server/tasks/pageInitSourceCompile/index.d.ts +0 -2
  215. package/dist/@types/build-server/tasks/pageframeCompile/index.d.ts +0 -1
  216. package/dist/@types/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.d.ts +0 -8
  217. package/dist/@types/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.d.ts +0 -26
  218. package/dist/@types/build-server/testAppConfig.d.ts +0 -1
  219. package/dist/@types/build-server/testAppservice.d.ts +0 -1
  220. package/dist/@types/build-server/testInitSourceCompile.d.ts +0 -1
  221. package/dist/@types/build-server/testPageframe.d.ts +0 -1
  222. package/dist/@types/build-server/testSubProcess.d.ts +0 -1
  223. package/dist/@types/build-server/utils/fileTask.d.ts +0 -5
  224. package/dist/@types/build-server/utils/getFileOrCache.d.ts +0 -24
  225. package/dist/@types/build-server/utils/process.d.ts +0 -0
  226. package/dist/@types/build-server/utils/request.d.ts +0 -47
  227. package/dist/@types/bussinessMonitor/monitor.d.ts +0 -1
  228. package/dist/@types/modules/corecompiler/summer/pipeManager/index.d.ts +0 -6
  229. package/dist/@types/modules/corecompiler/summer/pipeManager/pipeCPProject.d.ts +0 -17
  230. package/dist/@types/modules/corecompiler/summer/pipeManager/pipeContext.d.ts +0 -10
  231. package/dist/@types/modules/corecompiler/summer/pipeManager/pipeManager.d.ts +0 -12
  232. package/dist/@types/modules/corecompiler/summer/pipeManager/pipeWorker.d.ts +0 -2
  233. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.d.ts +0 -3
  234. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.d.ts +0 -3
  235. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.d.ts +0 -3
  236. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/index.d.ts +0 -2
  237. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.d.ts +0 -4
  238. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.d.ts +0 -3
  239. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.d.ts +0 -6
  240. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.d.ts +0 -9
  241. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.d.ts +0 -12
  242. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.d.ts +0 -11
  243. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.d.ts +0 -8
  244. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.d.ts +0 -92
  245. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.d.ts +0 -1
  246. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.d.ts +0 -6
  247. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.d.ts +0 -3
  248. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.d.ts +0 -21
  249. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.d.ts +0 -40
  250. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.d.ts +0 -3
  251. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.d.ts +0 -3
  252. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.d.ts +0 -19
  253. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.d.ts +0 -15
  254. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.d.ts +0 -9
  255. package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/wccPipe.d.ts +0 -3
  256. package/dist/@types/modules/corecompiler/summer/pipeManager/types.d.ts +0 -100
  257. package/dist/@types/modules/fullcompiler/appservice/appservice.config.d.ts +0 -4
  258. package/dist/@types/modules/fullcompiler/appservice/generatecode.utils.d.ts +0 -12
  259. package/dist/@types/modules/fullcompiler/appservice/getappservice.d.ts +0 -9
  260. package/dist/@types/modules/fullcompiler/appservice/getcompiledjs.d.ts +0 -32
  261. package/dist/@types/modules/fullcompiler/appservice/getjsfile.d.ts +0 -18
  262. package/dist/@types/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.d.ts +0 -12
  263. package/dist/@types/modules/fullcompiler/appservice/getsubpackage.d.ts +0 -7
  264. package/dist/@types/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.d.ts +0 -10
  265. package/dist/@types/modules/fullcompiler/appservice/getwxappcode.d.ts +0 -13
  266. package/dist/@types/modules/fullcompiler/config/apperrcode.config.d.ts +0 -48
  267. package/dist/@types/modules/fullcompiler/filerules.d.ts +0 -5
  268. package/dist/@types/modules/fullcompiler/getallrawfiles.d.ts +0 -11
  269. package/dist/@types/modules/fullcompiler/getallwmltohtmlmap.d.ts +0 -11
  270. package/dist/@types/modules/fullcompiler/index.d.ts +0 -31
  271. package/dist/@types/modules/fullcompiler/pageframe/getsubpackage.d.ts +0 -10
  272. package/dist/@types/modules/fullcompiler/pageframe/getwxappcode.d.ts +0 -13
  273. package/dist/@types/modules/fullcompiler/pageframe/index.d.ts +0 -10
  274. package/dist/@types/modules/fullcompiler/trans/transwxmltojs.d.ts +0 -11
  275. package/dist/@types/modules/fullcompiler/trans/transwxsstojs.d.ts +0 -21
  276. package/dist/@types/modules/fullcompiler/trans/wxml/compilewxml.d.ts +0 -18
  277. package/dist/@types/modules/fullcompiler/trans/wxss/compilewxss.d.ts +0 -11
  278. package/dist/@types/modules/fullcompiler/utils/appconfig/appconfig.d.ts +0 -12
  279. package/dist/@types/modules/fullcompiler/utils/appconfig/appjson.d.ts +0 -3
  280. package/dist/@types/modules/fullcompiler/utils/appconfig/checkcustomcomponent.d.ts +0 -14
  281. package/dist/@types/modules/fullcompiler/utils/appconfig/pagejson.d.ts +0 -3
  282. package/dist/@types/modules/fullcompiler/utils/appconfig/wxappcodejson.d.ts +0 -3
  283. package/dist/@types/modules/fullcompiler/utils/filewriter/index.d.ts +0 -14
  284. package/dist/@types/modules/fullcompiler/utils/handleerror/errorconfig.d.ts +0 -9
  285. package/dist/@types/modules/fullcompiler/utils/handleerror/handleerror.d.ts +0 -3
  286. package/dist/@types/modules/fullcompiler/utils/handleerror/parseerr.d.ts +0 -42
  287. package/dist/@types/modules/fullcompiler/utils/index.d.ts +0 -4
  288. package/dist/@types/modules/fullcompiler/utils/taskmanager.d.ts +0 -23
  289. package/dist/@types/modules/fullcompiler/utils/theme/index.d.ts +0 -40
  290. package/dist/@types/modules/fullcompiler/utils/tools.d.ts +0 -15
  291. package/dist/@types/modules/fullcompiler/utils/transformsourcemap.d.ts +0 -1
  292. package/dist/@types/project/serverProject.d.ts +0 -38
  293. package/dist/@types/services/app/server/appDirService.d.ts +0 -6
  294. package/dist/@types/services/builder/server/builder.d.ts +0 -4
  295. package/dist/@types/services/compileCacheManager/common/compileCacheManager.d.ts +0 -23
  296. package/dist/@types/services/compileCacheManager/nw/compileCacheManager.d.ts +0 -16
  297. package/dist/@types/services/compileCacheManager/server/compileCacheManager.d.ts +0 -26
  298. package/dist/@types/services/compilewxml/server/compilewxmlService.d.ts +0 -5
  299. package/dist/@types/services/compilewxml/server/wccWorker.d.ts +0 -1
  300. package/dist/@types/services/compilewxss/server/compilewxssService.d.ts +0 -4
  301. package/dist/@types/services/compilewxss/server/wcscWorker.d.ts +0 -1
  302. package/dist/@types/services/consoledisplay/server/consoledisplay.d.ts +0 -4
  303. package/dist/@types/services/fileUtilsManager/server/fileUtilsManager.d.ts +0 -4
  304. package/dist/@types/services/fs/server/fileService.d.ts +0 -27
  305. package/dist/@types/services/genTempFile/server/genTempFileService.d.ts +0 -3
  306. package/dist/@types/services/global/server/global.d.ts +0 -6
  307. package/dist/@types/services/initializeCheck/server/initializeCheck.d.ts +0 -4
  308. package/dist/@types/services/locales/server/const.d.ts +0 -5
  309. package/dist/@types/services/locales/server/locales.d.ts +0 -5
  310. package/dist/@types/services/log/server/logService.d.ts +0 -9
  311. package/dist/@types/services/miniappjson/server/miniappjson.d.ts +0 -4
  312. package/dist/@types/services/multiTaskManager/server/multiTaskManager.d.ts +0 -5
  313. package/dist/@types/services/multiTaskManager/server/pm2TaskWorker.d.ts +0 -1
  314. package/dist/@types/services/multiTaskManager/server/pm2WorkerManager.d.ts +0 -18
  315. package/dist/@types/services/nativeModule/server/nativeModule.d.ts +0 -3
  316. package/dist/@types/services/performance/server/performance.d.ts +0 -7
  317. package/dist/@types/services/pluginFileReader/server/pluginFileReader.d.ts +0 -18
  318. package/dist/@types/services/projectManager/server/buildServerProjectManager.d.ts +0 -11
  319. package/dist/@types/services/projectManager/server/projectManager.d.ts +0 -7
  320. package/dist/@types/services/root/server/root.d.ts +0 -11
  321. package/dist/@types/services/root/server/rootService.d.ts +0 -2
  322. package/dist/@types/services/staticConfig/server/staticConfigService.d.ts +0 -4
  323. package/dist/@types/services/store/server/storeService.d.ts +0 -11
  324. package/dist/@types/services/uniapp/server/uniapp.d.ts +0 -4
  325. package/dist/build-server/constant.js +0 -1
  326. package/dist/build-server/ctxManager.js +0 -1
  327. package/dist/build-server/fileCacheManager.js +0 -1
  328. package/dist/build-server/fileTaskDriver.js +0 -1
  329. package/dist/build-server/subProcess.js +0 -1
  330. package/dist/build-server/subTaskManager.js +0 -1
  331. package/dist/build-server/taskDriver.js +0 -1
  332. package/dist/build-server/taskFactory.js +0 -1
  333. package/dist/build-server/tasks/appserviceCompile/index.js +0 -1
  334. package/dist/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.js +0 -1
  335. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.js +0 -1
  336. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.js +0 -1
  337. package/dist/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.js +0 -1
  338. package/dist/build-server/tasks/baseFileCompiler/OTService.js +0 -1
  339. package/dist/build-server/tasks/baseFileCompiler/enhance.js +0 -1
  340. package/dist/build-server/tasks/baseFileCompiler/es6module.js +0 -1
  341. package/dist/build-server/tasks/baseFileCompiler/index.js +0 -1
  342. package/dist/build-server/tasks/baseFileCompiler/javascript.js +0 -1
  343. package/dist/build-server/tasks/baseFileCompiler/less.js +0 -1
  344. package/dist/build-server/tasks/baseFileCompiler/minifywxml.js +0 -1
  345. package/dist/build-server/tasks/baseFileCompiler/readFile.js +0 -1
  346. package/dist/build-server/tasks/baseFileCompiler/sass.js +0 -1
  347. package/dist/build-server/tasks/baseFileCompiler/terser.js +0 -1
  348. package/dist/build-server/tasks/baseFileCompiler/typescript.js +0 -1
  349. package/dist/build-server/tasks/baseFileCompiler/worklet.js +0 -1
  350. package/dist/build-server/tasks/baseFileCompiler/wxss.js +0 -1
  351. package/dist/build-server/tasks/common/apperrcode.config.js +0 -1
  352. package/dist/build-server/tasks/common/compiletype.config.js +0 -1
  353. package/dist/build-server/tasks/common/constants.config.js +0 -1
  354. package/dist/build-server/tasks/common/simulatortype.config.js +0 -1
  355. package/dist/build-server/tasks/common/utils/appdevserver/getwxappcode.js +0 -1
  356. package/dist/build-server/tasks/common/utils/babel/babelhelpers.js +0 -1
  357. package/dist/build-server/tasks/common/utils/builder/builder.js +0 -1
  358. package/dist/build-server/tasks/common/utils/builder/filter.js +0 -1
  359. package/dist/build-server/tasks/common/utils/builder/index.js +0 -1
  360. package/dist/build-server/tasks/common/utils/cache/compile.js +0 -1
  361. package/dist/build-server/tasks/common/utils/cache/config.js +0 -1
  362. package/dist/build-server/tasks/common/utils/cache/filecompile.js +0 -1
  363. package/dist/build-server/tasks/common/utils/cache/jspersistcache.js +0 -1
  364. package/dist/build-server/tasks/common/utils/cache/manager.js +0 -1
  365. package/dist/build-server/tasks/common/utils/cache/persistcache.js +0 -1
  366. package/dist/build-server/tasks/common/utils/cache/reporter.js +0 -1
  367. package/dist/build-server/tasks/common/utils/colorutils.js +0 -1
  368. package/dist/build-server/tasks/common/utils/common/bindActionTools.js +0 -1
  369. package/dist/build-server/tasks/common/utils/common/schema.helper.js +0 -1
  370. package/dist/build-server/tasks/common/utils/common/tools.js +0 -1
  371. package/dist/build-server/tasks/common/utils/common/waitable.js +0 -1
  372. package/dist/build-server/tasks/common/utils/filerules.js +0 -1
  373. package/dist/build-server/tasks/common/utils/fsutils.js +0 -1
  374. package/dist/build-server/tasks/common/utils/handleError.js +0 -1
  375. package/dist/build-server/tasks/common/utils/helper/vendorValidate.js +0 -1
  376. package/dist/build-server/tasks/common/utils/interfacebuilder/registry/index.js +0 -1
  377. package/dist/build-server/tasks/common/utils/partialcompile.js +0 -1
  378. package/dist/build-server/tasks/common/utils/project/appconfig.js +0 -1
  379. package/dist/build-server/tasks/common/utils/project/appjson.js +0 -1
  380. package/dist/build-server/tasks/common/utils/project/customcomponent.js +0 -1
  381. package/dist/build-server/tasks/common/utils/project/generatecode.utils.js +0 -1
  382. package/dist/build-server/tasks/common/utils/project/getcompiledjs.js +0 -1
  383. package/dist/build-server/tasks/common/utils/project/helper/index.js +0 -1
  384. package/dist/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.js +0 -1
  385. package/dist/build-server/tasks/common/utils/project/helper/reserveddirectories.js +0 -1
  386. package/dist/build-server/tasks/common/utils/project/helper/theme.js +0 -1
  387. package/dist/build-server/tasks/common/utils/project/online/appconfig.js +0 -1
  388. package/dist/build-server/tasks/common/utils/project/pagejson.js +0 -1
  389. package/dist/build-server/tasks/common/utils/project/projectconfigjson.js +0 -1
  390. package/dist/build-server/tasks/common/utils/project/wxappcodejson.js +0 -1
  391. package/dist/build-server/tasks/common/utils/subpackageUtils.js +0 -1
  392. package/dist/build-server/tasks/common/utils/tracing/Trace.js +0 -1
  393. package/dist/build-server/tasks/common/utils/tracing/aegis.js +0 -1
  394. package/dist/build-server/tasks/common/utils/tracing/index.js +0 -1
  395. package/dist/build-server/tasks/common/utils/tracing/readiness.js +0 -1
  396. package/dist/build-server/tasks/common/utils/tracing/report.js +0 -1
  397. package/dist/build-server/tasks/common/utils/trans/transwxmltojs.js +0 -1
  398. package/dist/build-server/tasks/common/utils/transformsourcemap.js +0 -1
  399. package/dist/build-server/tasks/common/utils/web/glasseaselUtils.js +0 -1
  400. package/dist/build-server/tasks/common/utils/web/md5.js +0 -1
  401. package/dist/build-server/tasks/common/utils/web/processPath.js +0 -1
  402. package/dist/build-server/tasks/common/weapp.config.js +0 -1
  403. package/dist/build-server/tasks/pageInitSourceCompile/index.js +0 -1
  404. package/dist/build-server/tasks/pageframeCompile/index.js +0 -1
  405. package/dist/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.js +0 -1
  406. package/dist/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.js +0 -1
  407. package/dist/build-server/testAppConfig.js +0 -1
  408. package/dist/build-server/testAppservice.js +0 -1
  409. package/dist/build-server/testInitSourceCompile.js +0 -1
  410. package/dist/build-server/testPageframe.js +0 -1
  411. package/dist/build-server/testSubProcess.js +0 -1
  412. package/dist/build-server/utils/fileTask.js +0 -1
  413. package/dist/build-server/utils/getFileOrCache.js +0 -1
  414. package/dist/build-server/utils/process.js +0 -1
  415. package/dist/build-server/utils/request.js +0 -1
  416. package/dist/bussinessMonitor/monitor.js +0 -1
  417. package/dist/manifest.json +0 -4
  418. package/dist/modules/corecompiler/summer/pipeManager/index.js +0 -1
  419. package/dist/modules/corecompiler/summer/pipeManager/pipeCPProject.js +0 -1
  420. package/dist/modules/corecompiler/summer/pipeManager/pipeContext.js +0 -1
  421. package/dist/modules/corecompiler/summer/pipeManager/pipeManager.js +0 -1
  422. package/dist/modules/corecompiler/summer/pipeManager/pipeWorker.js +0 -1
  423. package/dist/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.js +0 -1
  424. package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.js +0 -1
  425. package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.js +0 -1
  426. package/dist/modules/corecompiler/summer/pipeManager/pipes/index.js +0 -1
  427. package/dist/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.js +0 -1
  428. package/dist/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.js +0 -1
  429. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.js +0 -1
  430. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.js +0 -1
  431. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.js +0 -1
  432. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.js +0 -1
  433. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.js +0 -1
  434. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.js +0 -1
  435. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.js +0 -1
  436. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.js +0 -1
  437. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.js +0 -1
  438. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.js +0 -1
  439. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.js +0 -1
  440. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.js +0 -1
  441. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.js +0 -1
  442. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.js +0 -1
  443. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.js +0 -1
  444. package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.js +0 -1
  445. package/dist/modules/corecompiler/summer/pipeManager/pipes/wccPipe.js +0 -1
  446. package/dist/modules/corecompiler/summer/pipeManager/types.js +0 -1
  447. package/dist/modules/fullcompiler/appservice/appservice.config.js +0 -1
  448. package/dist/modules/fullcompiler/appservice/generatecode.utils.js +0 -1
  449. package/dist/modules/fullcompiler/appservice/getappservice.js +0 -1
  450. package/dist/modules/fullcompiler/appservice/getcompiledjs.js +0 -1
  451. package/dist/modules/fullcompiler/appservice/getjsfile.js +0 -1
  452. package/dist/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.js +0 -1
  453. package/dist/modules/fullcompiler/appservice/getsubpackage.js +0 -1
  454. package/dist/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.js +0 -1
  455. package/dist/modules/fullcompiler/appservice/getwxappcode.js +0 -1
  456. package/dist/modules/fullcompiler/config/apperrcode.config.js +0 -1
  457. package/dist/modules/fullcompiler/filerules.js +0 -1
  458. package/dist/modules/fullcompiler/getallrawfiles.js +0 -1
  459. package/dist/modules/fullcompiler/getallwmltohtmlmap.js +0 -1
  460. package/dist/modules/fullcompiler/index.js +0 -1
  461. package/dist/modules/fullcompiler/pageframe/getsubpackage.js +0 -1
  462. package/dist/modules/fullcompiler/pageframe/getwxappcode.js +0 -1
  463. package/dist/modules/fullcompiler/pageframe/index.js +0 -1
  464. package/dist/modules/fullcompiler/trans/transwxmltojs.js +0 -1
  465. package/dist/modules/fullcompiler/trans/transwxsstojs.js +0 -1
  466. package/dist/modules/fullcompiler/trans/wxml/compilewxml.js +0 -1
  467. package/dist/modules/fullcompiler/trans/wxss/compilewxss.js +0 -1
  468. package/dist/modules/fullcompiler/utils/appconfig/appconfig.js +0 -1
  469. package/dist/modules/fullcompiler/utils/appconfig/appjson.js +0 -1
  470. package/dist/modules/fullcompiler/utils/appconfig/checkcustomcomponent.js +0 -1
  471. package/dist/modules/fullcompiler/utils/appconfig/pagejson.js +0 -1
  472. package/dist/modules/fullcompiler/utils/appconfig/wxappcodejson.js +0 -1
  473. package/dist/modules/fullcompiler/utils/filewriter/index.js +0 -1
  474. package/dist/modules/fullcompiler/utils/handleerror/errorconfig.js +0 -1
  475. package/dist/modules/fullcompiler/utils/handleerror/handleerror.js +0 -1
  476. package/dist/modules/fullcompiler/utils/handleerror/parseerr.js +0 -1
  477. package/dist/modules/fullcompiler/utils/index.js +0 -1
  478. package/dist/modules/fullcompiler/utils/taskmanager.js +0 -1
  479. package/dist/modules/fullcompiler/utils/theme/index.js +0 -1
  480. package/dist/modules/fullcompiler/utils/tools.js +0 -1
  481. package/dist/modules/fullcompiler/utils/transformsourcemap.js +0 -1
  482. package/dist/project/serverProject.js +0 -1
  483. package/dist/services/app/server/appDirService.js +0 -1
  484. package/dist/services/builder/server/builder.js +0 -1
  485. package/dist/services/compileCacheManager/common/compileCacheManager.js +0 -1
  486. package/dist/services/compileCacheManager/nw/compileCacheManager.js +0 -1
  487. package/dist/services/compileCacheManager/server/compileCacheManager.js +0 -1
  488. package/dist/services/compilewxml/server/compilewxmlService.js +0 -1
  489. package/dist/services/compilewxml/server/wccWorker.js +0 -1
  490. package/dist/services/compilewxss/server/compilewxssService.js +0 -1
  491. package/dist/services/compilewxss/server/wcscWorker.js +0 -1
  492. package/dist/services/consoledisplay/server/consoledisplay.js +0 -1
  493. package/dist/services/fileUtilsManager/server/fileUtilsManager.js +0 -1
  494. package/dist/services/fs/server/fileService.js +0 -1
  495. package/dist/services/genTempFile/server/genTempFileService.js +0 -1
  496. package/dist/services/global/server/global.js +0 -1
  497. package/dist/services/initializeCheck/server/initializeCheck.js +0 -1
  498. package/dist/services/locales/server/const.js +0 -1
  499. package/dist/services/locales/server/locales.js +0 -1
  500. package/dist/services/log/server/logService.js +0 -1
  501. package/dist/services/miniappjson/server/miniappjson.js +0 -1
  502. package/dist/services/multiTaskManager/server/multiTaskManager.js +0 -1
  503. package/dist/services/multiTaskManager/server/pm2TaskWorker.js +0 -1
  504. package/dist/services/multiTaskManager/server/pm2WorkerManager.js +0 -1
  505. package/dist/services/nativeModule/server/nativeModule.js +0 -1
  506. package/dist/services/performance/server/performance.js +0 -1
  507. package/dist/services/pluginFileReader/server/pluginFileReader.js +0 -1
  508. package/dist/services/projectManager/server/buildServerProjectManager.js +0 -1
  509. package/dist/services/projectManager/server/projectManager.js +0 -1
  510. package/dist/services/root/server/root.js +0 -1
  511. package/dist/services/root/server/rootService.js +0 -1
  512. package/dist/services/staticConfig/server/staticConfigService.js +0 -1
  513. package/dist/services/store/server/storeService.js +0 -1
  514. package/dist/services/uniapp/server/uniapp.js +0 -1
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";const t=e("tslib").__importDefault(e("../../../../utils/locales/locales")),i=e("./errorconfig"),n=e("path"),s=e("babel-code-frame"),l=e("../../../../utils/jsonlint").parser;function a(e,r,t,i){return`${i}\n${s(e,r,t=t>0?t:1)}`}const o=async(e,r,t,i)=>{const n=(t||"").trim().split(":");try{if(n.length){const t=parseInt(n[1].trim(),10),s=parseInt(n[2].trim(),10)-1,l=c(e,{fileName:n[0],line:t,isPlugin:i}),o=`${a(r.getFileString(e.miniprogramRoot,n[0]),t,s,n[3])}\n${l}`;return{file:n[0],msg:o}}}catch(e){}return{file:"",msg:t}},c=(e,r)=>{const{fileName:t,line:i,isPlugin:s=!1}=r;if(!t)return"";const l=s?e.pluginRoot:e.miniprogramRoot;return`at files://${l?n.join(l,t):t.replace(/^\.\//,"")}#${i}`},m=async(e,r,t,i)=>{let n="string"==typeof t?t:t.msgForConsole||"";n=n.split("\n")[0];try{if(/not found from/.test(n)){const e=n.match(/ERR:.+?`(.+)`.+?`(.+)`/);if(!e)return{file:"",msg:n};const r=e[1];return{file:e[2],msg:`File not found: ${r}`}}const t=n.match(/ERR:\s(.+)\((\d*):(\d*)\):\s*?(.+)/);if(!t)return{file:"",msg:n};const s=parseInt(t[2],10),l=parseInt(t[3],10)-1,o=t[4].replace(/`/g,'"'),m=t[1],f=r.getFileString(e.miniprogramRoot,m),u=c(e,{fileName:m,line:s,isPlugin:i});return{file:m,reason:o,msg:`${a(f,s,l,o)}\n${u}`}}catch(e){return{file:"",msg:n}}};module.exports={parseWXMLRuntimeErr:async(e,r,t)=>{let n=t.message,s=[],l="",o="";n=n.replace(i.errorPrefix.WXML_RUNTIME_ERROR_REG,""),n=n.replace("WXMLRT:",""),s=n.split(":"),l=s[0];try{o=r.getFileString(e.miniprogramRoot,l)}catch(e){return{file:l,msg:n}}const c=parseInt(s[2],10),m=parseInt(s[3],10);if(-1!==c)try{const e=n.replace(`${s[0]}:${s[1]}:${s[2]}:${s[3]}:`,"");n=a(o,c,m,e)}catch(e){}return{file:l,msg:n}},parseJsonFileErr:e=>({file:e.file,msg:t.default.config.PARSEERR_ENTRANCE_FILE_ERROR.format(e.file)}),parseJsonParseErr:(e,r)=>{const t=r.data||"";try{l.parse(t)}catch(i){try{const n=`Expecting ${i.expected}, got ${i.token}`;let s=a(t,i.line,i.loc.first_column,n);if(r.fileName){const l=c(e,{fileName:r.fileName,line:i.line,isPlugin:r.isPlugin});s=`${a(t,i.line,i.loc.first_column,n)}\n${l}`}return`${r.fileName}\n${s}`}catch(e){}}return`${r.fileName}\n${r.error}`},parsePluginWxmlErr:async(e,r,t)=>await o(e,r,t,!0),parsePluginWxssErr:async(e,r,t)=>await m(e,r,t,!0),parseWxmlErr:async(e,r,t)=>await o(e,r,t,!1),parseWxssErr:async(e,r,t)=>await m(e,r,t,!1)}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(require,directRequire){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.flatSubPackage=flatSubPackage,exports.wrapCodeByEval=wrapCodeByEval,exports.escapeByEval=escapeByEval;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),lodash_1=tslib_1.__importDefault(require("lodash"));function flatSubPackage(e){const a=lodash_1.default.cloneDeep(e);return!(!a.subpackages&&!a.subPackages)&&(a.pages||(a.pages=[]),(a.subpackages||a.subPackages).forEach((e=>{e.pages.forEach((t=>{a.pages.push(path_1.default.join(e.root,t))}))})),delete a.subpackages,delete a.subPackages,a)}function wrapCodeByEval(e){return`;(window.eval)('${e}')`}function escapeByEval(code){const str="",evalStr=`eval('str = \`${code}\`')`;return eval(evalStr),str}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(t,s){"use strict";module.exports=class{constructor(t={}){this.breakWhenError=!0;const{poolLimit:s=50,breakWhenError:i=!0}=t;this._tasks=[],this.poolLimit=s,this.breakWhenError=i,this.isRuning=!1,this.taskPool=null}static get shared(){return this._instance||(this._instance=new this),this._instance}addTask(t,...s){this._tasks.push(t.bind(null,...s))}async runAllAsync(t){if(!this._tasks.length)return[];if(this.isRuning)return this.taskPool;let s;try{this.isRuning=!0,this.taskPool=async function(t,s,i){const n=[],r=[];let e=0;const h=function(){if(e===i.length)return Promise.resolve();const o=i[e],a=Promise.resolve().then((()=>o()));return n.push(a),r.push(a),e+=1,r.length>=t?Promise.race(r).then((()=>(r.splice(r.indexOf(a),1),h()))).catch((t=>{if(s)throw t;return r.splice(r.indexOf(a),1),h()})):h()};return h().then((()=>Promise.all(n)))}(t||this.poolLimit,this.breakWhenError,this._tasks),s=await this.taskPool}catch(t){throw t}finally{this.isRuning=!1,this.taskPool=null,this._tasks=[]}return s}async runAllSerial(){const t=[];try{for(let s=0,i=this._tasks.length;s<i;s++){const i=await this._tasks[s]();t.push(i)}}catch(t){}finally{this._tasks=[]}return t}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkTabbarListItemIconPath=s,exports.checkThemeRules=function(e){const o=(o,t)=>{const i=s(o,r.join(e,t));i.length>0&&c({msg:i.join("\n"),filePath:"app.json or ext.json"})};return{windowConfigRules:[{key:"navigationBarTextStyle",valids:["black","white"]},{key:"backgroundTextStyle",valids:["dark","light"]},{key:"navigationBarBackgroundColor",hexColor:!0},{key:"backgroundColor",hexColor:!0},{key:"backgroundColorTop",hexColor:!0},{key:"backgroundColorBottom",hexColor:!0}],tabbarRules:[{key:"selectedColor",hexColor:!0},{key:"color",hexColor:!0},{key:"backgroundColor",hexColor:!0},{key:"borderStyle",valids:["black","white"]}],tabbarListItemRules:[{key:"iconPath",validate:o},{key:"selectedIconPath",validate:o}]}},exports.getDefaultWindowConfig=function(e){return e?{backgroundColor:"#232323",backgroundTextStyle:"light"}:{backgroundColor:"#ffffff",backgroundTextStyle:"dark"}},exports.checkVariables=function(e){var o;const{windowConfig:a,themeLocation:r,filePath:n,isDarkMode:l,themeJSON:s,rules:f,keyPrefix:u,isPlugin:d=!1}=e,g=l?s.dark||{}:s.light||{},h=l?"dark":"light";for(const e of f)if((a[e.key]||"").startsWith("@")){const l=(null===(o=a[e.key])||void 0===o?void 0:o.slice(1))||"";if(l&&void 0===r){if(d)continue;c({msg:t.default.config.THEME_JSON_SHOULD_EXIST.format(`${u}["${e.key}"]`,`"@${l}"`,'appJSON["themeLocation"]'),filePath:n})}const s=g[l];if(void 0===s){if(d)continue;c({msg:t.default.config.JSON_VARIABLE_VALUE_NOT_FOUND.format(`${u}["${e.key}"]: "@${l}"`,`${r}["${h}"]`),filePath:n})}void 0!==s&&(Array.isArray(e.valids)&&e.valids.indexOf(s)<0&&c({msg:t.default.config.THEME_JSON_VALUE_SHOULD_BE.format(`${r}["${h}"]["${l}"]`,`${n} ${u}["${e.key}"]`,`${JSON.stringify(e.valids)}`),filePath:r}),e.hexColor&&!(0,i.isHexColor)(s)&&c({msg:t.default.config.THEME_JSON_VALUE_SHOULD_BE.format(`${r}["${h}"]["${l}"]`,`${n} ${u}["${e.key}"]`,"hexColor"),filePath:r}),e.validate&&e.validate(`${u}["${e.key}"]`,s),a[e.key]=s)}};const t=e("tslib").__importDefault(e("../../../../utils/locales/locales")),i=e("../../../../utils/tools"),a=e("../../../../config/config"),r=e("path"),n=e("fs"),l=[".png",".jpg",".jpeg"];function s(e,o){const i=a.DefaultProjectAttr,{setting:s}=i,c=[];if(!n.existsSync(o))return c.push(t.default.config.NOT_FOUND.format(e)),c;const f=n.statSync(o);if(f.isDirectory())return c.push(t.default.config.JSON_CONTENT_SHOULD_NOT_BE.format(e,t.default.config.DIRECTORY)),c;f.size>1024*s.MaxTabbarIconSize&&c.push(t.default.config.EXCEED_LIMIT.format(e,`${s.MaxTabbarIconSize}kb`));const u=r.extname(o);return l.indexOf(u)<0&&c.push(t.default.config.FILE_EXT_FORMAT_ERROR.format(e,l.join("、"))),c}function c(e={msg:"",filePath:"app.json"}){const{msg:o,filePath:t}=e,i=new Error(o);throw i.code=a.JSON_CONTENT_ERR,i.path=t,i}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(r,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkIsInSubPackage=function(r,i=""){let s;if(e(i,"plugin://")){const e=i.match(/^plugin:\/\/([^/]*)\/(.*)/),s=null==e?void 0:e[1];if(!s)return;const t=n(r,s);return null==t?void 0:t.config}if(r.subPackages)for(let e=0,n=r.subPackages.length;e<n;e++){const n=r.subPackages[e];if(i.startsWith(n.root)){s=n;break}}return s},exports.checkPluginByAliasOrProvider=n,exports.getPluginByAliasOrProvider=s;const e=r("licia/startWith");function n(r,i){let e;if(r.subPackages)for(const n of r.subPackages)if(e=s(n.plugins,i),e)return Object.assign(Object.assign({},e),{config:n});if(e=s(r.plugins,i),e)return e}function s(r,i){if(r){const e=r[i];if(e)return{alias:i,provider:e.provider,version:e.version};for(const e in r){const n=r[e];if(n.provider===i)return{alias:e,provider:n.provider,version:n.version}}}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(r,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformSourceMapSources=function(r=[]){return r?r.map(n):[]};const t=r("url"),u=r("path");function n(r){if(!r)return r;try{return new t.URL(r),r}catch(r){}return u.basename(r)}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(t,e){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerProject=void 0;const i=t("tslib"),r=i.__importDefault(t("path")),o=t("../config/config"),s=i.__importDefault(t("../utils/locales/locales")),a=t("../utils/error"),n=t("../types"),c=t("./baseProject"),p=t("../build-server/ctxManager"),l=t("../services/fs/common/fileService"),h=i.__importDefault(t("../services/common/getservice")),d={qcloudRoot:"腾讯云 wafer 方案目录",miniprogramRoot:"小程序代码的目录",srcMiniprogramRoot:"小程序源码的目录",pluginRoot:"插件目录",cloudfunctionRoot:"云函数目录",cloudfunctionTemplateRoot:"云函数本地调试模板目录",cloudcontainerRoot:"云容器目录",cloudbaseRoot:"cloudbaseRoot",jsserverRoot:"小游戏 jsserver 目录",testRoot:"自动化测试脚本录制的存放目录"};class u extends c.BaseProject{constructor(t){super(),this._preloadFileCache=new Map;const e=(0,h.default)(l.IFileService);this.fileUtils=e,this._project=t,this.init(t)}async init(t){const{type:e,projectPath:i,ignores:r}=t;let c=t.appid;if(!i)throw new a.CodeError(s.default.config.SHOULD_NOT_BE_EMPTY.format("projectPath"),o.PARAM_ERROR);this._projectPath=t.projectPath;const p=await this.getProjectConfig();if(!c){if(!p.appid)throw new a.CodeError(s.default.config.SHOULD_NOT_BE_EMPTY.format("appid"),o.PARAM_ERROR);c=p.appid}this._projectArchitecture=p.projectArchitecture||"miniProgram",this._miniprogramRoot=p.miniprogramRoot||"",this._pluginRoot=p.pluginRoot||"",this._appid=c,this._type=e||n.EProjectType.miniProgram,this.ignores=r||[],this.setting=p.setting||{},this._project=t,this.targetPlatform=t.targetPlatform,this.packOptions=t.packOptions||{ignore:[],include:[]},void 0===t.packOptions&&"object"==typeof p.packOptions&&(this.packOptions={ignore:Array.isArray(p.packOptions.ignore)?p.packOptions.ignore:[],include:Array.isArray(p.packOptions.include)?p.packOptions.include:[]}),await this.updateFileAndDirs()}async initPreloadFileCache(){}get project(){return this._project}async existsAsync(t="",e=""){const i=JSON.parse(p.optionsStorage.getStore()||"{}"),r=this.getTargetPath(t,e);return!!r.startsWith(t)&&(!(!this._fileSet.has(r)&&!this._dirSet.has(r))||this.fileUtils.exists(r,{projectId:i.projectId,versionId:i.versionId,ticket:i.ticket}))}exists(t="",e=""){const i=r.default.join(t,e);return this._preloadFileCache.has(i)}getFile(t,e){const i=r.default.join(t,e),o=this._preloadFileCache.get(i);if(o)return o.buffer;throw new Error("file not found")}async statAsync(t,e){const i=JSON.parse(p.optionsStorage.getStore()||"{}");if(!await this.exists(t,e))return;const r=this.getTargetPath(t,e),o=await this.fileUtils.lstat(r,{projectId:i.projectId,versionId:i.versionId,ticket:i.ticket});return this._fileSet.has(r)?{isFile:!0,isDirectory:!1,size:await this.getFileSize(t,e),mtimeMs:o.mtimeMs||""}:this._dirSet.has(r)?{isFile:!1,isDirectory:!0,size:0,mtimeMs:o.mtimeMs}:void 0}stat(t="",e=""){const i=r.default.join(t,e),o=this._preloadFileCache.get(i);if(o)return o.stat}async getProjectConfig(){const t=JSON.parse(p.optionsStorage.getStore()||"{}"),e=await this.fileUtils.readFile("project.config.json",null,{projectId:t.projectId,versionId:t.versionId,ticket:t.ticket}),i=JSON.parse(e);for(const t in d)"string"==typeof i[t]&&(i[t]=this.normalizeRootPath(i[t]));return i}async updateFileAndDirs(){const t=JSON.parse(p.optionsStorage.getStore()||"{}"),e=await this.fileUtils.fileList({projectId:t.projectId,versionId:t.versionId,ticket:t.ticket});for(const t of e)this._fileSet.add(t.name),this.cacheDirName(this._dirSet,r.default.posix.dirname(t.name))}async getExtAppid(){if(this._extAppid)return this._extAppid;if(null!==this._extAppid)try{const t=await this.getProjectConfig(),{miniprogramRoot:e=""}=t,i=await this.getFile(e,"ext.json"),r=JSON.parse(i.toString("utf-8"));return r.extEnable&&r.extAppid?this._extAppid=r.extAppid:this._extAppid=null,this._extAppid}catch(t){this._extAppid=null}}isMiniappProject(){return"multiPlatform"===this._projectArchitecture}async serialize(){return console.warn("serialize",this.targetPlatform),Object.assign(Object.assign({},await super.serialize()),{targetPlatform:this.targetPlatform,targetPlatformDefines:{}})}}exports.ServerProject=u}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerAppDirDevtoolsService=void 0;exports.ServerAppDirDevtoolsService=class{init(){throw new Error("Method not implemented.")}get(e){throw new Error("Method not implemented.")}cleanDir(e){throw new Error("Method not implemented.")}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerBuilder=void 0;const i=e("../nw/builder");class t extends i.NWBuilder{}exports.ServerBuilder=t}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ICompileCacheManagerService=void 0;const a=e("../../common/vsbase"),{createDecorator:i}=a.vsbase.vs.platform.instantiation.common.instantiation.$get();exports.ICompileCacheManagerService=i("ICompileCacheManagerService")}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NWCompileCacheManagerService=void 0;const r=e("tslib").__importDefault(e("../../../build-server/tasks/common/utils/cache/compile")),i=e("../../../build-server/tasks/common/utils/cache/reporter");exports.NWCompileCacheManagerService=class{constructor(){this.reporter=i.compileCacheReporter,this.get=e=>r.default.get(e),this.set=(e,t)=>r.default.set(e,t),this.generateFilePesistCacheKey=async(e,t)=>r.default.generateFilePesistCacheKey(e,t),this.getFile=async(e,t,i,o)=>await r.default.getFile(t,i,o),this.setFile=async(e,t,i)=>await r.default.setFile(e,t,i),this.clearBatch=async e=>{throw new Error("Method not implemented.")}}removeFile(e,t){throw new Error("Method not implemented.")}clear(e){throw new Error("Method not implemented.")}getFileList(e){throw new Error("Method not implemented.")}setFileList(e){throw new Error("Method not implemented.")}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerCompileCacheManagerService=void 0;const t=e("tslib"),i=t.__importDefault(e("../../../build-server/fileCacheManager")),c=e("../../../build-server/ctxManager"),o=e("../../fs/common/fileService"),a=t.__importDefault(e("../../common/getservice")),n=e("../../../bussinessMonitor/monitor");exports.ServerCompileCacheManagerService=class{constructor(){this.reporter={hitCache:e=>{console.log(`Cache hit for key: ${e}`)},startGenCache:e=>{console.log(`Start generating cache for key: ${e}`)},finishGenCache:e=>{console.log(`Finished generating cache for key: ${e}`)},hitFileCache:e=>{console.log(`Cache hit for file: ${e}`)},startGenFileCache:e=>{console.log(`Start generating cache for file: ${e}`)},finishGenFileCache:e=>{console.log(`Finished generating cache for file: ${e}`)}},this.get=async e=>{if(console.log(`[ServerCompileCacheManagerService]-get ${e}`),!this.isUseCache())return null;try{const r=this.getProjectCacheKey();if(!r)return null;await i.default.checkRedisConnected();const t=await i.default.redisClient.hGetAll(r);if(!t)return null;const c=t[e];if(console.log("[ServerCompileCacheManagerService]-get-result",c),void 0===c)return null;try{return JSON.parse(c)}catch(e){return c}}catch(e){return console.error("Redis GET error:",e),null}},this.set=async(e,r)=>{console.log(`[ServerCompileCacheManagerService]-set ${e}`);try{const t=this.getProjectCacheKey();if(!t)return null;const c="string"==typeof r?r:JSON.stringify(r);await i.default.checkRedisConnected();const o=i.default.redisClient.multi();return o.hSet(t,e,c),o.expire(t,10800),await o.exec(),"OK"}catch(e){return console.error("Redis SET error:",e),null}},this.generateFilePesistCacheKey=async(e,r)=>"default",this.getFile=async(e,r,t="default",c)=>{if(console.log(`[ServerCompileCacheManagerService]-getFile ${r}, ${t}`),this.isUseCache())try{const e=this.getProjectCacheKey();if(!e)return;await i.default.checkRedisConnected();const c=await i.default.redisClient.hGetAll(e);if(!c)return;const o=`file:${r}:${t}`,a=c[o];if(void 0===a)return;try{const e=JSON.parse(a);return e.fromCache=!0,this.reporter.hitFileCache(r),console.log(`[ServerCompileCacheManagerService]-getFile-result ${JSON.stringify(e)}`),e}catch(t){return console.error(`[ServerCompileCacheManagerService] Failed to parse cached data for ${r}:`,t),void await i.default.redisClient.hDel(e,o)}}catch(e){return void console.error(`[ServerCompileCacheManagerService] Redis getFile error for ${r}:`,e)}},this.setFile=async(e,r,t="default")=>{console.log(`[ServerCompileCacheManagerService]-setFile ${e}`);try{const n=(0,a.default)(o.IFileService),s=JSON.parse(c.optionsStorage.getStore()||"{}"),l=this.getProjectCacheKey();if(!l)return;await i.default.checkRedisConnected();const h=await n.lstat(e.slice(e.indexOf("/")+1),{projectId:s.projectId,versionId:s.versionId,ticket:s.ticket});r.mtime=h.mtimeMs;const C=`file:${e}:${t}`,d=Object.assign(Object.assign({},r),{filePath:e,cacheKey:C,fromCache:!1}),u=JSON.stringify(d),f=i.default.redisClient.multi();f.hSet(l,C,u),f.expire(l,10800),await f.exec(),this.reporter.finishGenFileCache(e)}catch(r){console.error(`[ServerCompileCacheManagerService] Redis setFile error for ${e}:`,r)}},this.clear=async e=>{try{const r=this.getProjectCacheKey();if(!r)return null;await i.default.checkRedisConnected();const t=await i.default.redisClient.hDel(r,e);return console.log(`[ServerCompileCacheManagerService] Cleared cache for key: ${e}`),t>0?"OK":null}catch(e){return console.error("Redis CLEAR error:",e),null}},this.clearBatch=async e=>{if(!e||0===e.length)return 0;try{const r=this.getProjectCacheKey();if(!r)return 0;await i.default.checkRedisConnected();const t=await i.default.redisClient.hDel(r,e);return console.log(`[ServerCompileCacheManagerService] Batch cleared ${t} cache entries from keys:`,e),t}catch(e){return console.error("Redis CLEAR BATCH error:",e),0}},this.removeFile=async(e,r="default")=>{try{const t=this.getProjectCacheKey();if(!t)return;await i.default.checkRedisConnected();const c=`file:${e}:${r}`;await i.default.redisClient.hDel(t,c),console.log(`[ServerCompileCacheManagerService] Removed cache for file: ${e}`)}catch(r){console.error(`[ServerCompileCacheManagerService] Redis removeFile error for ${e}:`,r)}},this.setFileList=async e=>{console.log("[ServerCompileCacheManagerService] setFileList");try{const r=this.getProjectCacheKey();if(!r)return;await i.default.checkRedisConnected();const t=`${r}:file-list`,c=JSON.stringify(e),o=i.default.redisClient.multi();o.set(t,c),o.expire(t,21600),await o.exec(),this.reporter.finishGenFileCache(t)}catch(e){console.error("[ServerCompileCacheManagerService] Redis setFileList error:",e)}},this.getFileList=async e=>{if(this.isUseCache())try{const r=e||this.getProjectCacheKey();if(!r)return;await i.default.checkRedisConnected();const t=`${r}:file-list`,c=await i.default.redisClient.get(t);if(!c)return;try{return JSON.parse(c)}catch(e){return console.error("[ServerCompileCacheManagerService] Failed to parse cached",e),void await i.default.redisClient.del(t)}}catch(e){return void console.error("[ServerCompileCacheManagerService] Redis getFileList error:",e)}},this.copyCache=async(e,r)=>{if(!r||!e)return!1;console.log(`[ServerCompileCacheManagerService] copyCache from ${e} to ${r}`);try{await i.default.checkRedisConnected();const t=await i.default.redisClient.hGetAll(e);if(!t||0===Object.keys(t).length)return console.log(`[ServerCompileCacheManagerService] No cache data found in source: ${e}`),!1;const c=i.default.redisClient.multi();for(const[e,i]of Object.entries(t))c.hSet(r,e,i);c.expire(r,10800),await c.exec();const o=Object.keys(t).length;return console.log(`[ServerCompileCacheManagerService] Successfully copied ${o} cache entries from ${e} to ${r}`),!0}catch(t){return console.error(`[ServerCompileCacheManagerService] Redis copyCache error from ${e} to ${r}:`,t),!1}}}isUseCache(){try{const e=JSON.parse(c.optionsStorage.getStore()||"{}"),r=!1!==e.useCache;return(0,n.BusinessReport)("CompileCacheManager","isUseCache check",JSON.stringify({options:e,useCache:r,projectId:e.projectId,versionId:e.versionId})),r}catch(e){return!0}}getProjectCacheKey(e,r){try{let t="",i="";if(e||r)t=e||"",i=r||"";else{const e=JSON.parse(c.optionsStorage.getStore()||"{}")||{};t=e.projectId||"",i=e.versionId||""}return t?`project:${t}_${i}:compile-cache`:(console.warn("[ServerCompileCacheManagerService] projectId missing in options"),null)}catch(e){return console.error("[ServerCompileCacheManagerService] failed to parse options from AsyncLocalStorage",e),null}}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerCompilewxmlService=void 0;const o=e("tslib"),t=e("child_process"),s=o.__importStar(e("path")),i=e("../node/compileUtils");const c=new class{constructor(){this.activeWorkers=0,this.waitQueue=[]}async acquire(){this.activeWorkers>=3&&await new Promise((e=>{this.waitQueue.push(e)})),this.activeWorkers++}release(){this.activeWorkers--;const e=this.waitQueue.shift();e&&e()}getActiveCount(){return this.activeWorkers}};exports.ServerCompilewxmlService=class{compileWxml(e){return async function(e){const r=Date.now();try{const r=JSON.stringify(e).length;if(r>104857600)throw new Error(`Input data too large: ${(r/1024/1024).toFixed(2)}MB (max: 100MB)`);console.log(`[wcc-node] Input data size: ${(r/1024/1024).toFixed(2)}MB`)}catch(e){if(e.message.includes("Input data too large"))throw e;throw new Error("Invalid input data: cannot serialize options")}return await c.acquire(),new Promise(((o,i)=>{const n=s.join(__dirname,"wccWorker.js");let a=null,l=!1,d=null;const w=(e,r)=>{l||(l=!0,d&&(clearTimeout(d),d=null),(()=>{if(a&&!a.killed)try{a.kill("SIGKILL"),setTimeout((()=>{if(a&&a.pid)try{process.kill(a.pid,"SIGKILL")}catch(e){}}),1e3)}catch(e){console.error("[wcc-node] Error killing worker:",e)}})(),c.release(),e?i(e):o(r))};d=setTimeout((()=>{console.error("[wcc-node] Worker timeout after 30s"),w(new Error("wccnode worker timeout after 30s"))}),3e4);try{a=(0,t.fork)(n,[],{stdio:["pipe","pipe","pipe","ipc"],execArgv:["--max-old-space-size=2048"]}),a.on("message",(o=>{if(o.ready)null==a||a.send({options:e});else if(void 0!==o.success)if(o.success&&o.result){try{const e=JSON.stringify(o.result).length;if(e>52428800)return console.error(`[wcc-node] Output too large: ${(e/1024/1024).toFixed(2)}MB`),void w(new Error(`Result data too large: ${(e/1024/1024).toFixed(2)}MB (max: 50MB)`));console.log(`[wcc-node] Output data size: ${(e/1024/1024).toFixed(2)}MB`)}catch(e){return void w(new Error("Invalid result data: cannot serialize result"))}console.warn("[wcc-node] total cost (including process spawn):",Date.now()-r),w(void 0,o.result)}else if(o.error){const e=new Error(o.error.message);o.error.stack&&(e.stack=o.error.stack),w(e)}else w(new Error("Unknown error in wccnode worker"))})),a.on("error",(e=>{console.error("[wcc-node] Worker process error:",e),w(new Error(`wccnode worker process error: ${e.message}`))})),a.on("exit",((e,r)=>{if(!l){let o="wccnode worker exited unexpectedly";0!==e&&(o=`wccnode worker exited with code ${e}, signal ${r}`,134!==e&&137!==e&&"SIGKILL"!==r||(o+=" (possible OOM)")),console.error(`[wcc-node] ${o}`),w(new Error(o))}})),a.stdout&&a.stdout.on("data",(e=>{process.stdout.write(`[wcc-worker] ${e}`)})),a.stderr&&a.stderr.on("data",(e=>{process.stderr.write(`[wcc-worker] ${e}`)}))}catch(e){console.error("[wcc-node] Failed to start worker:",e),w(new Error(`Failed to start worker: ${e.message}`))}}))}(e)}async compileWxmlToGlassEasel(e){return await(0,i.compileWxmlToGlassEasel)(e)}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const s=setInterval((()=>{const e=process.memoryUsage(),o=e.heapUsed,s=e.heapTotal,r=e.rss;o>1932735283.2?(console.error("[wcc-node worker] CRITICAL: Memory usage too high!"),console.error(` Heap Used: ${(o/1024/1024).toFixed(2)}MB`),console.error(` Heap Total: ${(s/1024/1024).toFixed(2)}MB`),console.error(` RSS: ${(r/1024/1024).toFixed(2)}MB`),console.error(" Forcing exit to prevent OOM..."),process.send&&process.send({success:!1,error:{message:`Worker memory usage exceeded critical threshold: ${(o/1024/1024).toFixed(2)}MB`,stack:void 0}}),setTimeout((()=>{process.exit(1)}),100)):o>1610612736&&(console.warn("[wcc-node worker] WARNING: High memory usage"),console.warn(` Heap Used: ${(o/1024/1024).toFixed(2)}MB`),console.warn(` Heap Total: ${(s/1024/1024).toFixed(2)}MB`),console.warn(` RSS: ${(r/1024/1024).toFixed(2)}MB`))}),5e3),r=process.memoryUsage();console.log(`[wcc-node worker] Started with memory: ${(r.heapUsed/1024/1024).toFixed(2)}MB`),process.on("message",(async o=>{try{const{options:s}=o,r=Date.now(),c=process.memoryUsage();console.log(`[wcc-node worker] Memory before compile: ${(c.heapUsed/1024/1024).toFixed(2)}MB`);const n=e("../../../../wcc").wcc,{genfuncName:t,hasWxs:a=!0,isPlugin:i,isCut:d,configContent:l,configSplit:p,lazyloadConfig:m}=s,g=await n({replaceContent:s.replaceContent,files:s.files,debugWXS:a,debug:!0,genfuncname:t,isPlugin:i,isCut:d,wxmlCompileConfig:l,wxmlCompileConfigSplit:p,lazyloadConfig:m}),u=process.memoryUsage(),w=u.heapUsed-c.heapUsed;let x;if(console.warn("[wcc-node worker] compile cost:",Date.now()-r),console.log(`[wcc-node worker] Memory after compile: ${(u.heapUsed/1024/1024).toFixed(2)}MB (delta: ${(w/1024/1024).toFixed(2)}MB)`),m){const{generateFunctionContent:e,generateFunctionName:o}=g;x={pages:e,names:o}}else x={code:g,name:t};process.send&&process.send({success:!0,result:x})}catch(o){console.error("[wcc-node worker] Compilation error:",o),process.send&&process.send({success:!1,error:{message:o instanceof Error?o.message:String(o),stack:o instanceof Error?o.stack:void 0}})}finally{clearInterval(s),setTimeout((()=>{process.exit(0)}),100)}})),process.send&&process.send({ready:!0}),process.on("uncaughtException",(e=>{console.error("[wcc-node worker] Uncaught exception:",e),process.send&&process.send({success:!1,error:{message:`Uncaught exception: ${e.message}`,stack:e.stack}}),setTimeout((()=>{process.exit(1)}),100)})),process.on("unhandledRejection",(e=>{console.error("[wcc-node worker] Unhandled rejection:",e),process.send&&process.send({success:!1,error:{message:`Unhandled rejection: ${e}`,stack:void 0}}),setTimeout((()=>{process.exit(1)}),100)}))}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerCompilewxssService=void 0;const o=e("tslib"),s=e("child_process"),t=o.__importStar(e("path"));const i=new class{constructor(){this.activeWorkers=0,this.waitQueue=[]}async acquire(){this.activeWorkers>=3&&await new Promise((e=>{this.waitQueue.push(e)})),this.activeWorkers++}release(){this.activeWorkers--;const e=this.waitQueue.shift();e&&e()}getActiveCount(){return this.activeWorkers}};exports.ServerCompilewxssService=class{compileWxss(e){return async function(e){const r=Date.now();try{const r=JSON.stringify(e).length;if(r>104857600)throw new Error(`Input data too large: ${(r/1024/1024).toFixed(2)}MB (max: 100MB)`);console.log(`[wcsc-node] Input data size: ${(r/1024/1024).toFixed(2)}MB`)}catch(e){if(e.message.includes("Input data too large"))throw e;throw new Error("Invalid input data: cannot serialize options")}return await i.acquire(),new Promise(((o,c)=>{const n=t.join(__dirname,"wcscWorker.js");let l=null,a=!1,d=null;const u=(e,r)=>{a||(a=!0,d&&(clearTimeout(d),d=null),(()=>{if(l&&!l.killed)try{l.kill("SIGKILL"),setTimeout((()=>{if(l&&l.pid)try{process.kill(l.pid,"SIGKILL")}catch(e){}}),1e3)}catch(e){console.error("[wcsc-node] Error killing worker:",e)}})(),i.release(),e?c(e):o(r))};d=setTimeout((()=>{console.error("[wcsc-node] Worker timeout after 30s"),u(new Error("wcscnode worker timeout after 30s"))}),3e4);try{l=(0,s.fork)(n,[],{stdio:["pipe","pipe","pipe","ipc"],execArgv:["--max-old-space-size=2048"]}),l.on("message",(o=>{if(o.ready)null==l||l.send({options:e});else if(void 0!==o.success)if(o.success&&o.result){try{const e=JSON.stringify(o.result).length;if(e>52428800)return console.error(`[wcsc-node] Output too large: ${(e/1024/1024).toFixed(2)}MB`),void u(new Error(`Result data too large: ${(e/1024/1024).toFixed(2)}MB (max: 50MB)`));console.log(`[wcsc-node] Output data size: ${(e/1024/1024).toFixed(2)}MB`)}catch(e){return void u(new Error("Invalid result data: cannot serialize result"))}console.warn("[wcsc-node] total cost (including process spawn):",Date.now()-r),u(void 0,o.result)}else if(o.error){const e=new Error(o.error.message);o.error.stack&&(e.stack=o.error.stack),u(e)}else u(new Error("Unknown error in wcscnode worker"))})),l.on("error",(e=>{console.error("[wcsc-node] Worker process error:",e),u(new Error(`wcscnode worker process error: ${e.message}`))})),l.on("exit",((e,r)=>{if(!a){let o="wcscnode worker exited unexpectedly";r?(o=`wcscnode worker killed by signal ${r}`,"SIGABRT"===r?o+=" (Aborted - possible causes: C++ assertion failure, memory corruption, or system resource limit)":"SIGKILL"===r?o+=" (Killed by system - possible OOM)":"SIGSEGV"===r&&(o+=" (Segmentation fault - possible memory access error)")):null!==e&&0!==e&&(o=`wcscnode worker exited with code ${e}`,134===e||135===e?o+=" (SIGABRT - possible assertion failure or memory corruption)":137===e?o+=" (SIGKILL - likely OOM killed by system)":139===e&&(o+=" (SIGSEGV - segmentation fault)")),console.error(`[wcsc-node] ${o}`),console.error(`[wcsc-node] Exit details: code=${e}, signal=${r}`),console.error("[wcsc-node] Troubleshooting suggestions:"),console.error(" 1. Check if wcsc native module is properly compiled for this platform"),console.error(" 2. Check system memory and resource limits (ulimit -a)"),console.error(" 3. Check Node.js version compatibility"),console.error(" 4. Check for missing system dependencies (ldd on .node file)"),u(new Error(o))}})),l.stdout&&l.stdout.on("data",(e=>{process.stdout.write(`[wcsc-worker] ${e}`)})),l.stderr&&l.stderr.on("data",(e=>{process.stderr.write(`[wcsc-worker] ${e}`)}))}catch(e){console.error("[wcsc-node] Failed to start worker:",e),u(new Error(`Failed to start worker: ${e.message}`))}}))}(e)}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,o){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const s=process.memoryUsage();console.log(`[wcsc-node worker] Started with memory: ${(s.heapUsed/1024/1024).toFixed(2)}MB`),console.log(`[wcsc-node worker] Node version: ${process.version}`),console.log(`[wcsc-node worker] Platform: ${process.platform} ${process.arch}`),console.log(`[wcsc-node worker] Max old space size: ${process.execArgv.find((e=>e.includes("max-old-space-size")))}`);const r=setInterval((()=>{const e=process.memoryUsage(),o=e.heapUsed,s=e.heapTotal,r=e.rss;o>1932735283.2?(console.error("[wcsc-node worker] CRITICAL: Memory usage too high!"),console.error(` Heap Used: ${(o/1024/1024).toFixed(2)}MB`),console.error(` Heap Total: ${(s/1024/1024).toFixed(2)}MB`),console.error(` RSS: ${(r/1024/1024).toFixed(2)}MB`),console.error(" Forcing exit to prevent OOM..."),process.send&&process.send({success:!1,error:{message:`Worker memory usage exceeded critical threshold: ${(o/1024/1024).toFixed(2)}MB`,stack:void 0}}),setTimeout((()=>{process.exit(1)}),100)):o>1610612736&&(console.warn("[wcsc-node worker] WARNING: High memory usage"),console.warn(` Heap Used: ${(o/1024/1024).toFixed(2)}MB`),console.warn(` Heap Total: ${(s/1024/1024).toFixed(2)}MB`),console.warn(` RSS: ${(r/1024/1024).toFixed(2)}MB`))}),5e3);process.on("message",(async o=>{var s;let c=null;try{const{options:r}=o,n=Date.now(),t=process.memoryUsage();let a;console.log(`[wcsc-node worker] Memory before compile: ${(t.heapUsed/1024/1024).toFixed(2)}MB`),console.log(`[wcsc-node worker] Input files count: ${(null===(s=r.files)||void 0===s?void 0:s.length)||0}`);try{a=e.resolve("../../../../wcc"),console.log(`[wcsc-node worker] Loading wcsc from: ${a}`)}catch(o){throw console.error("[wcsc-node worker] Failed to resolve wcc module:",o),new Error(`Cannot find wcsc module: ${o instanceof Error?o.message:String(o)}`)}try{if(c=e("../../../../wcc").wcsc,!c||"function"!=typeof c)throw new Error("wcsc module loaded but wcsc function is not available")}catch(o){throw console.error("[wcsc-node worker] Failed to load wcsc module:",o),new Error(`Failed to load wcsc: ${o instanceof Error?o.message:String(o)}`)}const l=await c({pageCount:r.pageCount,replaceContent:r.replaceContent,files:r.files,debug:!1}),d=process.memoryUsage(),i=d.heapUsed-t.heapUsed;console.warn("[wcsc-node worker] compile cost:",Date.now()-n),console.log(`[wcsc-node worker] Memory after compile: ${(d.heapUsed/1024/1024).toFixed(2)}MB (delta: ${(i/1024/1024).toFixed(2)}MB)`),process.send&&process.send({success:!0,result:l})}catch(o){console.error("[wcsc-node worker] Compilation error:",o),o instanceof Error&&(console.error("[wcsc-node worker] Error name:",o.name),console.error("[wcsc-node worker] Error message:",o.message),console.error("[wcsc-node worker] Error stack:",o.stack)),process.send&&process.send({success:!1,error:{message:o instanceof Error?o.message:String(o),stack:o instanceof Error?o.stack:void 0}})}finally{clearInterval(r);const e=process.memoryUsage();console.log(`[wcsc-node worker] Final memory: ${(e.heapUsed/1024/1024).toFixed(2)}MB`),setTimeout((()=>{process.exit(0)}),100)}})),process.send&&process.send({ready:!0}),process.on("uncaughtException",(e=>{console.error("[wcsc-node worker] Uncaught exception:",e),process.send&&process.send({success:!1,error:{message:`Uncaught exception: ${e.message}`,stack:e.stack}}),setTimeout((()=>{process.exit(1)}),100)})),process.on("unhandledRejection",(e=>{console.error("[wcsc-node worker] Unhandled rejection:",e),process.send&&process.send({success:!1,error:{message:`Unhandled rejection: ${e}`,stack:void 0}}),setTimeout((()=>{process.exit(1)}),100)}))}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerConsoleDisplayService=void 0;exports.ServerConsoleDisplayService=class{display(){}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerFileUtilsManagerService=void 0;exports.ServerFileUtilsManagerService=class{async projectFileUtils(e,r){return{}}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BuilderFileService=void 0;const i=e("../../../build-server/utils/request"),n=e("../../../build-server/ctxManager");exports.BuilderFileService=class{constructor(){this.cache=new Map}getSessionId(){try{const e=n.optionsStorage.getStore();if(e)return JSON.parse(e).sessionId}catch(e){}}getCacheKey(e,t){const i=this.getSessionId();return i?`session_${i}`:`${e}_${t}`}getValidCache(e){const t=this.cache.get(e);return t&&Date.now()-t.timestamp<3e5?t:null}setCache(e,t){this.cache.set(e,{fileList:t,timestamp:Date.now()});const i=Date.now();for(const[e,t]of this.cache.entries())i-t.timestamp>3e5&&this.cache.delete(e)}updateCacheWithContent(e,t){const i=this.cache.get(e);if(i)t.forEach((e=>{var t;const n=i.fileList.find((t=>t.name===e.name));n?n.content=e.content:i.fileList.push({name:e.name,key:e.name,content:e.content,lastModifiedTime:0,size:(null===(t=e.content)||void 0===t?void 0:t.length)||0,createTime:0})})),i.timestamp=Date.now();else{const i=t.map((e=>{var t;return{name:e.name,key:e.name,content:e.content,lastModifiedTime:0,size:(null===(t=e.content)||void 0===t?void 0:t.length)||0,createTime:0}}));this.cache.set(e,{fileList:i,timestamp:Date.now()})}}getCachedFileContent(e,t){const i=this.getValidCache(e);if(i){const e=i.fileList.find((e=>e.name===t));if(null==e?void 0:e.content)return e.content}return null}getCachedFiles(e,t){const i={},n=[],s=this.getValidCache(e);return t.forEach((e=>{if(s){const t=s.fileList.find((t=>t.name===e));if(null==t?void 0:t.content)return void(i[e]=t.content)}n.push(e)})),{hit:i,missing:n}}async fetchFileList(e){var t;const{projectId:n,versionId:s,ticket:c}=e,o=this.getCacheKey(n,s),l=this.getValidCache(o);if(l)return console.log(`[fileService] cache_hit: ${o}, files: ${l.fileList.length}`),l.fileList;console.log(`[fileService] cache_miss: ${o}, fetching...`);const a=await(0,i.getProjectUpdateTimeContentHTTP)({projectId:n,versionId:s,snapshotId:"",ticket:c});return(null==a?void 0:a.success)&&(null===(t=a.fileList)||void 0===t?void 0:t.length)>0?(this.setCache(o,a.fileList),console.log(`[fileService] fetched: ${a.fileList.length} files`),a.fileList):[]}async fetchFileContent(e,t){var n;const{projectId:s,versionId:c,ticket:o}=e,l=await(0,i.getFileContentHTTP)({ticket:o,projectId:s,versionId:c,snapshotId:"",path:t});return(null==l?void 0:l.success)&&(null===(n=l.fileList)||void 0===n?void 0:n.length)>0?l.fileList:[]}async readFile(e,t=null,i){const{projectId:n,versionId:s}=i,c=this.getCacheKey(n,s),o=this.getCachedFileContent(c,e);return null!==o?(console.log(`[fileService.readFile] cache hit: ${e}`),this.handleEncoding(o,t)):""}async readFileList(e,t){const{projectId:i,versionId:n}=t,s=this.getCacheKey(i,n),{hit:c,missing:o}=this.getCachedFiles(s,e);return 0===o.length?(console.log(`[fileService.readFileList] all cache hit: ${e.length} files`),c):{}}async exists(e,t){const{projectId:i,versionId:n}=t;return!!i&&(await this.fetchFileList(t)).some((t=>t.name===e))}async lstat(e,t){const{projectId:i}=t;if(!i)return this.createEmptyStats(e);const n=(await this.fetchFileList(t)).find((t=>t.name===e));return n?this.createStatsObject({name:e,lastModifiedTime:n.lastModifiedTime,size:n.size,createTime:n.createTime}):this.createEmptyStats(e)}async fileList(e){const{projectId:t}=e;if(!t)throw new Error("[BuilderFileService] projectId is required");return this.fetchFileList(e)}async preloadAllFiles(e){const t=Date.now(),{projectId:i,versionId:n}=e,s=this.getCacheKey(i,n),c=this.getValidCache(s);if(c&&c.fileList.every((e=>void 0!==e.content)))return console.log(`[fileService.preload] already cached: ${c.fileList.length} files`),{success:!0,fileCount:c.fileList.length,duration:Date.now()-t};const o=await this.fetchFileList(e);if(0===o.length)return console.log("[fileService.preload] no files to preload"),{success:!0,fileCount:0,duration:Date.now()-t};const l=o.filter((e=>void 0===e.content)).map((e=>e.name));if(0===l.length)return console.log(`[fileService.preload] all ${o.length} files already have content`),{success:!0,fileCount:o.length,duration:Date.now()-t};console.log(`[fileService.preload] loading ${l.length} files...`);const a=await this.fetchFileContent(e,l);a.length>0&&this.updateCacheWithContent(s,a);const r=Date.now()-t;return console.log(`[fileService.preload] done: ${a.length} files loaded in ${r}ms`),{success:!0,fileCount:a.length,duration:r}}handleEncoding(e,t){return null==t?Buffer.from(e,"utf8"):"string"==typeof t?e:"object"==typeof t&&null===t.encoding?Buffer.from(e,"utf8"):e}createEmptyStats(e){return this.createStatsObject({name:e,lastModifiedTime:0,size:0,createTime:0})}createStatsObject(e){const t=1e3*e.lastModifiedTime,i=1e3*e.createTime;return{mtimeMs:t,ctimeMs:i,size:e.size,mtime:new Date(t),ctime:new Date(i),atime:new Date(t),atimeMs:t,birthtime:new Date(i),birthtimeMs:i,isFile:()=>!0,isDirectory:()=>!1,isBlockDevice:()=>!1,isCharacterDevice:()=>!1,isSymbolicLink:()=>!1,isFIFO:()=>!1,isSocket:()=>!1,dev:0,ino:0,mode:33188,nlink:1,uid:0,gid:0,rdev:0,blksize:4096,blocks:Math.ceil(e.size/512)}}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GenTempFileService=void 0;const r=e("../common/genTempFile.node");class o extends r.nodeGenTempFile{}exports.GenTempFileService=o}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,r){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerGlobalService=void 0;exports.ServerGlobalService=class{isDev(){return!0}async getAppVersion(){return"dev"}async showBuildLog2(){}}}(require("licia/lazyImport")(require),require);
@@ -1 +0,0 @@
1
- !function(e,i){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServerInitializeCheck=void 0;exports.ServerInitializeCheck=class{notifiedStatus(e,i){}}}(require("licia/lazyImport")(require),require);