@atomicservice/ascf-toolkit 1.0.8 → 1.0.9

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 (101) hide show
  1. package/lib/ascf-base/index.js +1 -1
  2. package/lib/ascf-common/index.js +1 -1
  3. package/lib/ascf-compiler/appjson-loader.js +1 -1
  4. package/lib/ascf-compiler/common/appjson-validator.js +1 -1
  5. package/lib/ascf-compiler/common/ascf-define.js +1 -1
  6. package/lib/ascf-compiler/common/beforeLoaderProcess.js +1 -1
  7. package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
  8. package/lib/ascf-compiler/common/eventHappenHjs.js +1 -1
  9. package/lib/ascf-compiler/common/exp-utils.js +1 -1
  10. package/lib/ascf-compiler/common/hash-sum.js +1 -1
  11. package/lib/ascf-compiler/common/hdc-executor.js +1 -1
  12. package/lib/ascf-compiler/common/hjs-utils.js +1 -1
  13. package/lib/ascf-compiler/common/hxml-validator.js +1 -1
  14. package/lib/ascf-compiler/common/logUndefined.js +1 -1
  15. package/lib/ascf-compiler/common/manifest-handler.js +1 -1
  16. package/lib/ascf-compiler/common/manifest-manager.js +1 -1
  17. package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -1
  18. package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
  19. package/lib/ascf-compiler/common/quick-generate-subpackage.js +1 -1
  20. package/lib/ascf-compiler/common/utils.js +1 -1
  21. package/lib/ascf-compiler/css-process-loader.js +1 -1
  22. package/lib/ascf-compiler/extract-loader.js +1 -1
  23. package/lib/ascf-compiler/hcss-loader.js +1 -1
  24. package/lib/ascf-compiler/hjs-loader.js +1 -1
  25. package/lib/ascf-compiler/hxml-loader.js +1 -1
  26. package/lib/ascf-compiler/js-parser/parser-babel.js +1 -1
  27. package/lib/ascf-compiler/js-parser/parser-swc.js +1 -1
  28. package/lib/ascf-compiler/js-parser/parser.js +1 -1
  29. package/lib/ascf-compiler/loader-utils.js +1 -1
  30. package/lib/ascf-compiler/path-process-loader.js +1 -1
  31. package/lib/ascf-compiler/plugin/before-loader-plugin.js +1 -1
  32. package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
  33. package/lib/ascf-compiler/plugin/dynamic-entry-plugin.js +1 -1
  34. package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
  35. package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
  36. package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
  37. package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
  38. package/lib/ascf-compiler/plugin/quick-service-build-plugin.js +1 -1
  39. package/lib/ascf-compiler/plugin/replace-module-id-plugin.js +1 -1
  40. package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
  41. package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
  42. package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
  43. package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
  44. package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
  45. package/lib/ascf-compiler/require-loader.js +1 -1
  46. package/lib/ascf-compiler/server/dev-server.js +1 -1
  47. package/lib/ascf-compiler/server/port-manager.js +1 -1
  48. package/lib/ascf-compiler/swc-loader.js +1 -1
  49. package/lib/ascf-compiler/template/attr-utils.js +1 -1
  50. package/lib/ascf-compiler/template/implicit-model-config.js +1 -1
  51. package/lib/ascf-compiler/template/node-name-utils.js +1 -1
  52. package/lib/ascf-compiler/template-compiler/index.js +1 -0
  53. package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
  54. package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
  55. package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
  56. package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
  57. package/lib/ascf-compiler/trustlist-verify/verify-ignore-files.js +1 -1
  58. package/lib/ascf-compiler/vue-compiler/vue-compiler.d.ts +8 -0
  59. package/lib/ascf-compiler/vue-compiler/vue-compiler.js +1 -0
  60. package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
  61. package/lib/ascf-compiler/web.webpack.config.js +1 -1
  62. package/lib/ascf-converter/ascfApisDiff.json +1 -1
  63. package/lib/ascf-converter/common/commonConfig.js +1 -1
  64. package/lib/ascf-converter/common/commonUtils.js +1 -1
  65. package/lib/ascf-converter/common/path-validator.js +1 -1
  66. package/lib/ascf-converter/common/textDocument.js +1 -1
  67. package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
  68. package/lib/ascf-converter/convertManager.js +1 -1
  69. package/lib/ascf-converter/features/converter.js +1 -1
  70. package/lib/ascf-converter/features/fileHandle.js +1 -1
  71. package/lib/ascf-converter/features/transformReport.js +1 -1
  72. package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
  73. package/lib/ascf-converter/parse/babelParser.js +1 -1
  74. package/lib/ascf-converter/parse/importVisitor.js +1 -1
  75. package/lib/ascf-converter/parse/wxssParser.js +1 -1
  76. package/lib/ascf-converter/report/js/index.js +1 -1
  77. package/lib/ascf-sign-tools/cli.js +1 -1
  78. package/lib/ascf-sign-tools/index.js +1 -1
  79. package/lib/bin/ascf.js +1 -1
  80. package/lib/commands/ascfbuild/index.js +1 -1
  81. package/lib/commands/build-npm/index.js +1 -1
  82. package/lib/commands/compile.js +1 -1
  83. package/lib/commands/convert.js +1 -1
  84. package/lib/commands/debugger/index.js +1 -1
  85. package/lib/commands/quickservice/index.js +1 -1
  86. package/lib/common/config.js +1 -1
  87. package/lib/common/constants.js +1 -1
  88. package/lib/common/log4js.js +1 -1
  89. package/lib/common/logger-plugin.js +1 -1
  90. package/lib/common/remove-strict-mode-plugin.js +1 -1
  91. package/lib/common/string-utils.js +1 -1
  92. package/lib/common/utils.js +1 -1
  93. package/lib/common/version-check.js +1 -1
  94. package/lib/index.d.ts +1 -1
  95. package/lib/index.js +1 -1
  96. package/lib/tools/platform-tools-darwin/adb +0 -0
  97. package/lib/tools/platform-tools-windows/AdbWinApi.dll +0 -0
  98. package/lib/tools/platform-tools-windows/AdbWinUsbApi.dll +0 -0
  99. package/lib/tools/platform-tools-windows/adb.exe +0 -0
  100. package/package.json +7 -2
  101. package/lib/ascf-base/index.d.ts +0 -79
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1a31(e,r){var n=_0x2b9c();return(_0x1a31=function(e,r){return n[e-=496]})(e,r)}var _0x1490ed=_0x1a31;function _0x2b9c(){var e=["_ascfDebug","projectRoot","concat","ProgressPlugin","__proto__",'"command":"',"getTime","stop","[object Generator]","signPublicKeyPath","iterator","throw","compile close error :","existsVerifyLog","toString","errorMessage","then","restartDevServer","defineProperty","331806BmbSEz","Generator","@@iterator","6893985KrcpsT","plugins","BUILD_TARGET_QS","catch","./ascf-compiler/plugin/quick-service-build-plugin","infrastructureLogging","WARNING: Get @atomicservice/ascfapi info failed: ","exit","debug","prototype","_isAscfMode","Using ","./common/utils","isLatestAscfHar","serve","run","true","webpackCfg",'","errorMessage":"',"signPrivateKeyPath","index","signPwd","setPrototypeOf","./common/version-check.js","reason:","false","./ascf-compiler/web.webpack.config.js","startServer","ASCF unhandled rejection at:","uncaughtException","./ascf-converter/features/converter.js","@@toStringTag","notaddtodo","./common/config","length","getPrototypeOf","devServer","chdir","initConfigs","iterator result is not an object","GeneratorFunction","ascf/ascf_src","ASCF unhandled rejection. reason: ","896268UXZRgC","env","input","restart dev server error:","./common/log4js.js","call","fatal","../package.json","folderUrl","done","info","warn","targets","path","buildNpm","ASCF uncaught error","checkInputPathFun","clearResource","yes",'","folderUrl":"',"1057110rreoGk","version","progress","compiler","resolve","pathValidator","533385wQMyww","apply","push","exports","create","beginTime","mode","_invoke","next","./commands/build-npm","output","3496434mcUvXM","./ascf-converter/common/path-validator","quickGenSub","command","function","constructor","getLogger","./ascf-compiler/common/quick-generate-subpackage","confirmConverterFun","value","return","error","578048ONWTDI"];return(_0x2b9c=function(){return e})()}function _regenerator(){var p,d=_0x1a31,e=d(606)==typeof Symbol?Symbol:{},r=e[d(510)]||d(521),n=e.toStringTag||d(553);function t(e,r,n,t){var o,a,i,c,u,s,g,f,l,_=d,r=r&&r[_(531)]instanceof b?r:b,r=Object[_(595)](r[_(531)]);return _regeneratorDefine2(r,_(598),(o=e,a=n,g=t||[],f=!1,l={p:s=0,n:0,v:p,a:v,f:v.bind(p,4),d:function(e,r){return i=e,c=0,u=p,l.n=r,m}},function(e,r,n){var t=_0x1a31;if(1<s)throw TypeError("Generator is already running");for(f&&1===r&&v(r,n),c=r,u=n;(h=c<2?p:u)||!f;){i||(c?c<3?(1<c&&(l.n=-1),v(c,u)):l.n=u:l.v=u);try{if(s=2,i){if(c||(e=t(599)),h=i[e]){if(!(h=h.call(i,u)))throw TypeError(t(561));if(!h[t(574)])return h;u=h[t(496)],c<2&&(c=0)}else 1===c&&(h=i[t(497)])&&h[t(570)](i),c<2&&(u=TypeError("The iterator does not provide a '"+e+"' method"),c=1);i=p}else if((h=(f=l.n<0)?u:o[t(570)](a,l))!==m)break}catch(e){i=p,c=1,u=e}finally{s=1}}return{value:h,done:f}}),!0),r;function v(e,r){for(c=e,u=r,h=0;!f&&s&&!n&&h<g.length;h++){var n,t=g[h],o=l.p,a=t[2];3<e?(n=a===r)&&(u=t[(c=t[4])?5:c=3],t[4]=t[5]=p):t[0]<=o&&((n=e<2&&o<t[1])?(c=0,l.v=r,l.n=t[1]):o<a&&(n=e<3||t[0]>r||a<r)&&(t[4]=e,t[5]=r,l.n=a,c=0))}if(n||1<e)return m;throw f=!0,r}}var m={};function b(){}function o(){}function a(){}var h=Object[d(557)],e=[][r]?h(h([][r]())):(_regeneratorDefine2(h={},r,function(){return this}),h),i=a.prototype=b.prototype=Object[d(595)](e);function c(e){var r=d;return Object[r(544)]?Object[r(544)](e,a):(e[r(504)]=a,_regeneratorDefine2(e,n,"GeneratorFunction")),e[r(531)]=Object[r(595)](i),e}return o[d(531)]=a,_regeneratorDefine2(i,d(607),a),_regeneratorDefine2(a,d(607),o),o.displayName=d(562),_regeneratorDefine2(a,n,"GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,n,d(520)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,d(514),function(){return d(508)}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var a=_0x1a31,i=Object[a(518)];try{i({},"",{})}catch(e){i=0}(_regeneratorDefine2=function(e,r,n,t){var o=a;r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x1a31(598)](r,n,e)})})("next",0),t(o(511),1),t("return",2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var c=_0x1a31;try{var u=e[a](i),s=u.value}catch(e){return void n(e)}u.done?r(s):Promise[c(589)](s)[c(516)](t,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0x1a31,o=u[t(592)](e,c);function a(e){asyncGeneratorStep(o,r,n,a,i,t(599),e)}function i(e){asyncGeneratorStep(o,r,n,a,i,t(511),e)}a(void 0)})}}(()=>{for(var e=_0x1a31,r=_0x2b9c();;)try{if(309855==+parseInt(e(591))+-parseInt(e(565))/2+-parseInt(e(519))/3+parseInt(e(499))/4+-parseInt(e(585))/5+-parseInt(e(602))/6+parseInt(e(522))/7)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var path=require(_0x1490ed(578)),pkg=require(_0x1490ed(572)),_require=require(_0x1490ed(555)),configs=_require.configs,log4js=require(_0x1490ed(569)),_require2=require(_0x1490ed(600)),buildNpm=_require2[_0x1490ed(579)],_require3=require("./common/constants.js"),BUILD_TARGET_QS=_require3[_0x1490ed(524)],logger=log4js[_0x1490ed(608)](_0x1490ed(542));function convert(e){return _convert[_0x1490ed(592)](this,arguments)}function _convert(){var e=_0x1490ed;return(_convert=_asyncToGenerator(_regenerator().m(function e(r){var t,o;return _regenerator().w(function(e){for(var n=_0x1a31;;)switch(e.n){case 0:if(configs[n(554)]=!!r.notaddtodo,t=require(n(552)),global._isMiniAppConvertMode=!0,global[n(532)]=!0,process[n(566)][n(582)]=r.clear?n(583):"no",o=require(n(603)),o=o[n(590)],r.validate&&(o(r[n(567)],r[n(601)]),process[n(529)](0)),t[n(581)](r[n(567)]),r.check){e.n=2;break}return e.n=1,t[n(610)]({inputPath:r[n(567)],outPath:r[n(601)],confirmAddConfig:!0});case 1:(o=e.v).errorMessage?logger[n(498)](n(505).concat(o[n(605)],n(540)).concat(o[n(515)],'"')):logger[n(575)](n(505)[n(502)](o[n(605)],n(584))[n(502)](o[n(573)],'"'));case 2:setTimeout(function(){var r=n,e=require(r(545)).isLatestAscfToolkit;try{e()}catch(e){logger[r(576)]("WARNING: Get @atomicservice/ascf-toolkit version failed: "[r(502)](e,"."))}});case 3:return e.a(2)}},e)})))[e(592)](this,arguments)}function compile(e,r){return _compile[_0x1490ed(592)](this,arguments)}function _compile(){var e=_0x1490ed;return(_compile=_asyncToGenerator(_regenerator().m(function e(i,c){var u,s,g,o,n,t,a,f,l,_,v;return _regenerator().w(function(e){for(var r=_0x1a31;;)switch(e.p=e.n){case 0:return process[r(566)][r(501)]=path[r(589)](i),process[r(559)](path.resolve(i,r(563))),n=require(r(534)),(0,n[r(560)])(i,c),u=require("webpack"),global[r(596)]=(new Date)[r(506)](),s=require(r(548)),g=c[r(577)]===BUILD_TARGET_QS,o=(()=>{var e=_asyncToGenerator(_regenerator().m(function e(){var n,t,o,a=arguments;return _regenerator().w(function(e){for(var r=_0x1a31;;)switch(e.n){case 0:return n=0<a[r(556)]&&void 0!==a[0]&&a[0],e.n=1,s(n,c);case 1:return(n=e.v)[r(523)]=n.plugins||[],n.plugins[r(593)](new u.EnvironmentPlugin({projectRoot:i})),g&&(o=require(r(526)),t=c.disableSubpackages,c.mode&&void 0===t&&(t=r(538)),c[r(597)]||void 0!==t||(t=r(547)),n[r(523)].push(new o({projectRoot:i,disableSubpackages:t,signPrivateKeyPath:c[r(541)],signPublicKeyPath:c[r(509)],signPwd:c[r(543)],signProfilePath:c.signProfilePath}))),c[r(587)]&&n[r(523)][r(593)](new u[r(503)]({})),c.watch&&(n.watch=!0),global[r(500)]&&(n[r(527)]={debug:!0,level:"verbose"}),o=u(n),e.a(2,{webpackCfg:n,compiler:o})}},e)}));return function(){return e[_0x1a31(592)](this,arguments)}})(),e.p=1,e.n=2,o();case 2:if(n=e.v,t=n[r(539)],a=n[r(588)],configs[r(536)]||c.watch)return v=require("./ascf-compiler/server/dev-server"),f=v[r(549)],e.n=3,f(a,t[r(558)],c);e.n=4;break;case 3:l=e.v,_=!1,global[r(517)]=_asyncToGenerator(_regenerator().m(function e(){var n,t;return _regenerator().w(function(e){for(var r=_0x1a31;;)switch(e.p=e.n){case 0:if(_)return e.a(2);e.n=1;break;case 1:if(_=!0,logger[r(575)]("restart dev server"),e.p=2,l)return e.n=3,l[r(507)]();e.n=4;break;case 3:l=null;case 4:return e.n=5,o(!0);case 5:return t=e.v,n=t[r(539)],t=t[r(588)],e.n=6,f(t,n.devServer,c);case 6:l=e.v,e.n=8;break;case 7:e.p=7,t=e.v,logger[r(498)](r(568),t);case 8:_=!1;case 9:return e.a(2)}},e,null,[[2,7]])})),e.n=5;break;case 4:return e.n=5,run(a,g);case 5:e.n=7;break;case 6:e.p=6,v=e.v,logger[r(571)](v),process[r(529)](1);case 7:return e.a(2)}},e,null,[[1,6]])})))[e(592)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function run(i){var e=_0x1490ed,c=1<arguments[e(556)]&&void 0!==arguments[1]&&arguments[1];return new Promise(function(n,o){var a=e;i[a(537)](function(e,r){var t=a;r&&logger[t(575)](r.toString({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global[t(500)]?"verbose":"info"})),e?(logger.error(e),o(e)):(c||setTimeout(function(){var r=t,e=require(r(545)),n=e.isLatestAscfToolkit,e=e[r(535)];try{e(global[r(513)])}catch(e){logger[r(576)](r(528)[r(502)](e,"."))}try{n(global[r(513)])}catch(e){logger.warn("WARNING: Get @atomicservice/ascf-toolkit version failed: "[r(502)](e,"."))}}),n(r),i.close(function(e){var r=t;e&&logger[r(498)](r(512),e)}))})})}function quickGenerateSubpackage(){return _quickGenerateSubpackage[_0x1490ed(592)](this,arguments)}function _quickGenerateSubpackage(){var e=_0x1490ed;return(_quickGenerateSubpackage=_asyncToGenerator(_regenerator().m(function e(){var n;return _regenerator().w(function(e){for(var r=_0x1a31;;)switch(e.n){case 0:return n=require(r(609)),n=n[r(604)],e.n=1,n()[r(525)](function(e){logger[r(498)](e)});case 1:return e.a(2)}},e)})))[e(592)](this,arguments)}logger[_0x1490ed(530)](_0x1490ed(533)[_0x1490ed(502)](pkg.name," ")[_0x1490ed(502)](pkg[_0x1490ed(586)],".")),global[_0x1490ed(532)]=!0,process.on(_0x1490ed(551),function(e){var r=_0x1490ed;logger[r(498)](r(580),e)}),process.on("unhandledRejection",function(e,r){var n=_0x1490ed;configs.isRelease?logger[n(498)](n(564),e):logger[n(498)](n(550),r,n(546),e)}),module[_0x1490ed(594)]={convert:convert,compile:compile,buildNpm:buildNpm,getAscfToolkitDirname:getAscfToolkitDirname,quickGenerateSubpackage:quickGenerateSubpackage};
1
+ var _0x309a93=_0x432a;function _0xca19(){var e=["throw","startServer","value","210EKzzwv","bind","@@iterator","GeneratorFunction","./ascf-compiler/plugin/quick-service-build-plugin","12675300pCgwVr","42038EwaxEQ","function","apply","8842500hAhJDm","warn","clear","next","displayName","buildNpm","path","WARNING: Get @atomicservice/ascfapi info failed: ","' method","6BLNmob","mode","true","signProfilePath","initConfigs","../package.json","The iterator does not provide a '","BUILD_TARGET_QS","version","_isAscfMode","12384432iDdkrO","ASCF uncaught error","false","exports","./ascf-converter/common/path-validator","toString","webpackCfg","./ascf-compiler/common/quick-generate-subpackage",'","errorMessage":"',"setPrototypeOf","command","Using ","stop","toStringTag","iterator result is not an object","signPublicKeyPath","disableSubpackages","4ejzodC","./ascf-compiler/web.webpack.config.js","name","signPrivateKeyPath","serve","existsVerifyLog","1534757UoadDF","run","watch","done","ProgressPlugin","6178695HriisF","fatal","_ascfDebug","./common/version-check.js","Generator is already running","./ascf-compiler/server/dev-server","create","isLatestAscfToolkit","yes","output","plugins","1327718NoBKmx","devServer","defineProperty","reason:","./common/constants.js","folderUrl","input","_invoke","return","push","constructor","length","ascf/ascf_src","env","./common/utils","compile close error :","prototype","quickGenSub","resolve","checkInputPathFun","getTime","call","22sEYEKO","concat","compiler","targets","WARNING: Get @atomicservice/ascf-toolkit version failed: ","debug","infrastructureLogging","progress","check","clearResource","restartDevServer","restart dev server","unhandledRejection","error","errorMessage","./common/log4js.js","signPwd","catch","getLogger","projectRoot",'","folderUrl":"',"exit","uncaughtException","9DMorTz","verbose","info","Generator","./ascf-converter/features/converter.js","close","notaddtodo","legacy","getPrototypeOf"];return(_0xca19=function(){return e})()}function _regenerator(){var m,d=_0x432a,e=d(401)==typeof Symbol?Symbol:{},r=e.iterator||d(396),n=e[d(311)]||"@@toStringTag";function t(e,r,n,t){var a,o,i,c,u,s,g,f,l,p,v=d,r=r&&r.prototype instanceof b?r:b,r=Object[v(332)](r[v(353)]);return _regeneratorDefine2(r,v(344),(a=e,o=n,f=t||[],l=!1,p={p:g=0,n:0,v:m,a:_,f:_[(s=v)(395)](m,4),d:function(e,r){return i=e,c=0,u=m,p.n=r,h}},function(e,r,n){var t=s;if(1<g)throw TypeError(t(330));for(l&&1===r&&_(r,n),c=r,u=n;(x=c<2?m:u)||!l;){i||(c?c<3?(1<c&&(p.n=-1),_(c,u)):p.n=u:p.v=u);try{if(g=2,i){if(x=i[e=c?e:"next"]){if(!(x=x.call(i,u)))throw TypeError(t(312));if(!x[t(324)])return x;u=x.value,c<2&&(c=0)}else 1===c&&(x=i[t(345)])&&x.call(i),c<2&&(u=TypeError(t(294)+e+t(287)),c=1);i=m}else if((x=(l=p.n<0)?u:a[t(358)](o,p))!==h)break}catch(e){i=m,c=1,u=e}finally{g=1}}return{value:x,done:l}}),!0),r;function _(e,r){var n=s;for(c=e,u=r,x=0;!l&&g&&!t&&x<f[n(348)];x++){var t,a=f[x],o=p.p,i=a[2];3<e?(t=i===r)&&(u=a[(c=a[4])?5:c=3],a[4]=a[5]=m):a[0]<=o&&((t=e<2&&o<a[1])?(c=0,p.v=r,p.n=a[1]):o<i&&(t=e<3||a[0]>r||i<r)&&(a[4]=e,a[5]=r,p.n=i,c=0))}if(t||1<e)return h;throw l=!0,r}}var h={};function b(){}function a(){}function o(){}var x=Object[d(390)],e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),i=o.prototype=b[d(353)]=Object[d(332)](e);function c(e){var r=d;return Object.setPrototypeOf?Object[r(307)](e,o):(e.__proto__=o,_regeneratorDefine2(e,n,r(397))),e[r(353)]=Object[r(332)](i),e}return a[d(353)]=o,_regeneratorDefine2(i,d(347),o),_regeneratorDefine2(o,d(347),a),a[d(283)]=d(397),_regeneratorDefine2(o,n,d(397)),_regeneratorDefine2(i),_regeneratorDefine2(i,n,d(385)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,d(303),function(){return"[object Generator]"}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var i=_0x432a,c=Object[i(339)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,n,t){var a=i;function o(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x432a(344)](r,n,e)})}r?c?c(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o(a(391),1),o(a(345),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,a,o,i){var c=_0x432a;try{var u=e[o](i),s=u[c(393)]}catch(e){return void n(e)}u[c(324)]?r(s):Promise.resolve(s).then(t,a)}function _asyncToGenerator(c){return function(){var e=this,i=arguments;return new Promise(function(r,n){var t=c.apply(e,i);function a(e){asyncGeneratorStep(t,r,n,a,o,_0x432a(282),e)}function o(e){asyncGeneratorStep(t,r,n,a,o,"throw",e)}a(void 0)})}}function _0x432a(e,r){var n=_0xca19();return(_0x432a=function(e,r){return n[e-=282]})(e,r)}(()=>{for(var e=_0x432a,r=_0xca19();;)try{if(789738==+parseInt(e(321))+-parseInt(e(400))/2*(parseInt(e(394))/3)+-parseInt(e(315))/4*(-parseInt(e(326))/5)+-parseInt(e(288))/6*(parseInt(e(337))/7)+-parseInt(e(298))/8+-parseInt(e(382))/9*(parseInt(e(403))/10)+parseInt(e(359))/11*(parseInt(e(399))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var path=require(_0x309a93(285)),pkg=require(_0x309a93(293)),_require=require("./common/config"),configs=_require.configs,log4js=require(_0x309a93(374)),_require2=require("./commands/build-npm"),buildNpm=_require2[_0x309a93(284)],_require3=require(_0x309a93(341)),BUILD_TARGET_QS=_require3[_0x309a93(295)],logger=log4js[_0x309a93(377)]("index");function convert(e){return _convert[_0x309a93(402)](this,arguments)}function _convert(){return(_convert=_asyncToGenerator(_regenerator().m(function e(r){var t,a;return _regenerator().w(function(e){for(var n=_0x432a;;)switch(e.n){case 0:if(configs[n(388)]=!!r[n(388)],t=require(n(386)),global._isMiniAppConvertMode=!0,global._isAscfMode=!0,process[n(350)][n(368)]=r[n(405)]?n(334):"no",a=require(n(302)),a=a.pathValidator,r.validate&&(a(r.input,r[n(335)]),process[n(380)](0)),t[n(356)](r[n(343)]),r[n(367)]){e.n=2;break}return e.n=1,t.confirmConverterFun({inputPath:r[n(343)],outPath:r.output,confirmAddConfig:!0});case 1:(a=e.v)[n(373)]?logger[n(372)]('"command":"'[n(360)](a.command,n(306))[n(360)](a[n(373)],'"')):logger[n(384)]('"command":"'.concat(a[n(308)],n(379))[n(360)](a[n(342)],'"'));case 2:setTimeout(function(){var r=n,e=require(r(329))[r(333)];try{e()}catch(e){logger.warn(r(363).concat(e,"."))}});case 3:return e.a(2)}},e)}))).apply(this,arguments)}function compile(e,r){return _compile[_0x309a93(402)](this,arguments)}function _compile(){var e=_0x309a93;return(_compile=_asyncToGenerator(_regenerator().m(function e(i,c){var u,s,g,a,n,t,o,f,l,p,v;return _regenerator().w(function(e){for(var r=_0x432a;;)switch(e.p=e.n){case 0:return process.env[r(378)]=path[r(355)](i),process.chdir(path.resolve(i,r(349))),n=require(r(351)),(0,n[r(292)])(i,c),u=require("webpack"),global.beginTime=(new Date)[r(357)](),s=require(r(316)),g=c[r(362)]===BUILD_TARGET_QS||c.deviceType===r(389),a=(()=>{var e=_asyncToGenerator(_regenerator().m(function e(){var n,t,a,o=arguments;return _regenerator().w(function(e){for(var r=_0x432a;;)switch(e.n){case 0:return n=0<o[r(348)]&&void 0!==o[0]&&o[0],e.n=1,s(n,c);case 1:return(n=e.v)[r(336)]=n.plugins||[],n[r(336)][r(346)](new u.EnvironmentPlugin({projectRoot:i})),g&&(a=require(r(398)),t=c[r(314)],c[r(289)]&&void 0===t&&(t=r(290)),c.mode||void 0!==t||(t=r(300)),n[r(336)].push(new a({projectRoot:i,disableSubpackages:t,signPrivateKeyPath:c[r(318)],signPublicKeyPath:c[r(313)],signPwd:c[r(375)],signProfilePath:c[r(291)]}))),c[r(366)]&&n[r(336)][r(346)](new u[r(325)]({})),c[r(323)]&&(n[r(323)]=!0),global[r(328)]&&(n[r(365)]={debug:!0,level:r(383)}),a=u(n),e.a(2,{webpackCfg:n,compiler:a})}},e)}));return function(){return e[_0x432a(402)](this,arguments)}})(),e.p=1,e.n=2,a();case 2:if(n=e.v,t=n[r(304)],o=n.compiler,configs[r(319)]||c[r(323)])return v=require(r(331)),f=v[r(392)],e.n=3,f(o,t[r(338)],c);e.n=4;break;case 3:l=e.v,p=!1,global[r(369)]=_asyncToGenerator(_regenerator().m(function e(){var n,t;return _regenerator().w(function(e){for(var r=_0x432a;;)switch(e.p=e.n){case 0:if(p)return e.a(2);e.n=1;break;case 1:if(p=!0,logger[r(384)](r(370)),e.p=2,l)return e.n=3,l[r(310)]();e.n=4;break;case 3:l=null;case 4:return e.n=5,a(!0);case 5:return t=e.v,n=t[r(304)],t=t[r(361)],e.n=6,f(t,n.devServer,c);case 6:l=e.v,e.n=8;break;case 7:e.p=7,t=e.v,logger[r(372)]("restart dev server error:",t);case 8:p=!1;case 9:return e.a(2)}},e,null,[[2,7]])})),e.n=5;break;case 4:return e.n=5,run(o,g);case 5:e.n=7;break;case 6:e.p=6,v=e.v,logger[r(327)](v),process.exit(1);case 7:return e.a(2)}},e,null,[[1,6]])})))[e(402)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function run(i){var e=_0x309a93,c=1<arguments[e(348)]&&void 0!==arguments[1]&&arguments[1];return new Promise(function(n,a){var o=e;i[o(322)](function(e,r){var t=o;r&&logger[t(384)](r[t(303)]({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global[t(328)]?t(383):t(384)})),e?(logger.error(e),a(e)):(c||setTimeout(function(){var r=t,e=require(r(329)),n=e[r(333)],e=e.isLatestAscfHar;try{e(global[r(320)])}catch(e){logger[r(404)](r(286)[r(360)](e,"."))}try{n(global.existsVerifyLog)}catch(e){logger.warn(r(363)[r(360)](e,"."))}}),n(r),i[t(387)](function(e){var r=t;e&&logger.error(r(352),e)}))})})}function quickGenerateSubpackage(e,r){return _quickGenerateSubpackage[_0x309a93(402)](this,arguments)}function _quickGenerateSubpackage(){var e=_0x309a93;return(_quickGenerateSubpackage=_asyncToGenerator(_regenerator().m(function e(n,t){var a;return _regenerator().w(function(e){for(var r=_0x432a;;)switch(e.n){case 0:return a=require(r(305)),a=a[r(354)],e.n=1,a(n,t)[r(376)](function(e){logger.error(e)});case 1:return e.a(2)}},e)})))[e(402)](this,arguments)}logger[_0x309a93(364)](_0x309a93(309)[_0x309a93(360)](pkg[_0x309a93(317)]," ")[_0x309a93(360)](pkg[_0x309a93(296)],".")),global[_0x309a93(297)]=!0,process.on(_0x309a93(381),function(e){var r=_0x309a93;logger[r(372)](r(299),e)}),process.on(_0x309a93(371),function(e,r){var n=_0x309a93;logger[n(372)]("ASCF unhandled rejection at:",r,n(340),e)}),module[_0x309a93(301)]={convert:convert,compile:compile,buildNpm:buildNpm,getAscfToolkitDirname:getAscfToolkitDirname,quickGenerateSubpackage:quickGenerateSubpackage};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomicservice/ascf-toolkit",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "author": "atomicservice",
5
5
  "title": "ASCF toolkit for atomicservice",
6
6
  "description": "ASCF toolkit for atomicservice",
@@ -27,6 +27,7 @@
27
27
  "cachedir": "2.4.0",
28
28
  "decompress": "4.2.1",
29
29
  "eslint": "8.31.0",
30
+ "express": "4.21.0",
30
31
  "js-base64": "3.7.7",
31
32
  "json5": "2.2.3",
32
33
  "jsrsasign": "11.0.0",
@@ -40,6 +41,7 @@
40
41
  "sass": "1.85.0",
41
42
  "sass-loader": "16.0.5",
42
43
  "semver": "7.5.4",
44
+ "tar": "7.4.3",
43
45
  "webpack": "5.76.2",
44
46
  "webpack-dev-server": "5.2.0"
45
47
  },
@@ -119,7 +121,10 @@
119
121
  "prepare:base": "cd ../ascf-base && pnpm i && pnpm build:ascf-toolkit && pnpm build:ascf-sign-tools",
120
122
  "prepare:common": "cd ../ascf-common && pnpm i && pnpm build:ascf-toolkit && pnpm build:ascf-sign-tools",
121
123
  "prepare:sign": "cd ../ascf-sign-tools && pnpm i && pnpm build:ascf-toolkit",
122
- "prepare:build": "npm run prepare:init && npm run prepare:parse5 && npm run prepare:vue && npm run prepare:base && npm run prepare:common && npm run prepare:sign",
124
+ "prepare:vue-compiler": "cd ../vue-compiler && pnpm i && pnpm build:ascf-toolkit",
125
+ "prepare:thirdparty-vue3": "export PUPPETEER_SKIP_DOWNLOAD=1 && cd thirdparty/vue3 && pnpm i && pnpm build",
126
+ "prepare:vue3": "pnpm prepare:thirdparty-vue3 && pnpm prepare:vue-compiler",
127
+ "prepare:build": "npm run prepare:init && npm run prepare:parse5 && npm run prepare:vue && npm run prepare:vue3 && npm run prepare:base && npm run prepare:common && npm run prepare:sign",
123
128
  "bep": "gulp dev && npm pack",
124
129
  "dev": "gulp dev",
125
130
  "build": "gulp release",
@@ -1,79 +0,0 @@
1
- import { ChildProcessWithoutNullStreams } from 'child_process';
2
-
3
- declare const ASCF_LOG_FILE: string;
4
- declare function setLoggerConfig(val: any): void;
5
- declare class Logger {
6
- categories: string;
7
- constructor(categories: string);
8
- doLog(level: any, message: any, args: any, isExit?: boolean): void;
9
- info(message: any, ...args: any[]): void;
10
- warn(message: any, ...args: any[]): void;
11
- debug(message: any, ...args: any[]): void;
12
- error(message: any, ...args: any[]): void;
13
- fatal(message: any, ...args: any[]): void;
14
- }
15
- declare function getLogger(categories: any): Logger;
16
-
17
- type AscfDebuggerOptions = {
18
- open?: '' | 'default' | 'chrome' | 'edge';
19
- deviceId?: string;
20
- bundleName?: string;
21
- };
22
- declare class AscfDebugger {
23
- options: AscfDebuggerOptions;
24
- constructor(options: AscfDebuggerOptions);
25
- handle(subCmd: any): void;
26
- status(): Promise<void>;
27
- start(): Promise<void>;
28
- stop(): Promise<void>;
29
- startView(): Promise<void>;
30
- startService(): Promise<void>;
31
- stopView(): Promise<void>;
32
- stopService(): Promise<void>;
33
- checkBundleName(bundleName: any): Promise<any>;
34
- openBrowser(localPort: any, fallback?: string): Promise<void>;
35
- }
36
-
37
- type BuildModeType = 'debug' | 'release';
38
- type BuildTargetType = 'atomicservice' | 'crossAtomicService';
39
- type AscfBuilderOptions = {
40
- projectRoot?: string;
41
- deviceId?: string;
42
- buildMode?: BuildModeType;
43
- buildTarget?: BuildTargetType;
44
- };
45
- declare class AscfBuilder {
46
- cpList: ChildProcessWithoutNullStreams[];
47
- terminal: null;
48
- stopping: boolean;
49
- options: AscfBuilderOptions;
50
- constructor(options: AscfBuilderOptions);
51
- handle(subCmd: any): void;
52
- add(cp: any): void;
53
- del(cp: any): void;
54
- stop(): void;
55
- dispose(): void;
56
- init(): void;
57
- runCmdAsync(cmd: any, args?: string[], options?: any): Promise<any>;
58
- runHdcCmdAsync(args?: string[], options?: any): Promise<any>;
59
- start(): Promise<void>;
60
- installDeps(): Promise<void>;
61
- assembleHap(): Promise<void>;
62
- usingTmpDir(deviceId: any, cb: any): Promise<void>;
63
- installHap(): Promise<void>;
64
- assembleAndInstallHap(): Promise<void>;
65
- uninstall(): Promise<void>;
66
- clean(): Promise<void>;
67
- }
68
-
69
- declare function getPath(...args: any[]): string;
70
- declare function getNodePath(): string;
71
- declare function getNpmPath(): string;
72
- declare function getOhpmPath(): string;
73
- declare function getHvigorwPath(): string;
74
- declare function getDevEcoSdkHome(): string;
75
- declare function getHdcPath(): string;
76
-
77
- declare function openInBrowser(url: any, browserName?: string): void;
78
-
79
- export { ASCF_LOG_FILE, AscfBuilder, type AscfBuilderOptions, AscfDebugger, type AscfDebuggerOptions, type BuildModeType, type BuildTargetType, getDevEcoSdkHome, getHdcPath, getHvigorwPath, getLogger, getNodePath, getNpmPath, getOhpmPath, getPath, openInBrowser, setLoggerConfig };