@atomicservice/ascf-toolkit 1.0.5-beta.4 → 1.0.6
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.
- package/lib/ascf-base/index.d.ts +14 -3
- package/lib/ascf-base/index.js +1 -1
- package/lib/ascf-common/index.d.ts +2 -0
- package/lib/ascf-common/index.js +1 -0
- package/lib/ascf-compiler/appjson-loader.js +1 -1
- package/lib/ascf-compiler/common/appjson-validator.js +1 -1
- package/lib/ascf-compiler/common/ascf-define.js +1 -0
- package/lib/ascf-compiler/common/beforeLoaderProcess.js +1 -0
- package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
- package/lib/ascf-compiler/common/eventHappenHjs.js +1 -1
- package/lib/ascf-compiler/common/exp-utils.js +1 -1
- package/lib/ascf-compiler/common/hash-sum.js +1 -1
- package/lib/ascf-compiler/common/hdc-executor.js +1 -1
- package/lib/ascf-compiler/common/hjs-utils.js +1 -1
- package/lib/ascf-compiler/common/hxml-validator.js +1 -1
- package/lib/ascf-compiler/common/logUndefined.js +1 -1
- package/lib/ascf-compiler/common/manifest-handler.js +1 -1
- package/lib/ascf-compiler/common/manifest-manager.js +1 -1
- package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -1
- package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
- package/lib/ascf-compiler/common/quick-generate-subpackage.js +1 -1
- package/lib/ascf-compiler/common/utils.js +1 -1
- package/lib/ascf-compiler/css-process-loader.js +1 -1
- package/lib/ascf-compiler/extract-loader.js +1 -1
- package/lib/ascf-compiler/hcss-loader.js +1 -1
- package/lib/ascf-compiler/hjs-loader.js +1 -1
- package/lib/ascf-compiler/hxml-loader.js +1 -1
- package/lib/ascf-compiler/js-parser/parser-babel.js +1 -1
- package/lib/ascf-compiler/js-parser/parser-swc.js +1 -1
- package/lib/ascf-compiler/js-parser/parser.js +1 -1
- package/lib/ascf-compiler/loader-utils.js +1 -1
- package/lib/ascf-compiler/path-process-loader.js +1 -1
- package/lib/ascf-compiler/plugin/before-loader-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/dynamic-entry-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/quick-service-build-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/replace-module-id-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
- package/lib/ascf-compiler/require-loader.js +1 -1
- package/lib/ascf-compiler/server/dev-server.js +1 -1
- package/lib/ascf-compiler/server/port-manager.js +1 -1
- package/lib/ascf-compiler/swc-loader.js +1 -1
- package/lib/ascf-compiler/template/attr-utils.js +1 -1
- package/lib/ascf-compiler/template/implicit-model-config.js +1 -1
- package/lib/ascf-compiler/template/node-name-utils.js +1 -1
- package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/verify-ignore-files.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
- package/lib/ascf-compiler/web.webpack.config.js +1 -1
- package/lib/ascf-converter/common/commonConfig.js +1 -1
- package/lib/ascf-converter/common/commonUtils.js +1 -1
- package/lib/ascf-converter/common/path-validator.js +1 -1
- package/lib/ascf-converter/common/textDocument.js +1 -1
- package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
- package/lib/ascf-converter/convertManager.js +1 -1
- package/lib/ascf-converter/features/converter.js +1 -1
- package/lib/ascf-converter/features/fileHandle.js +1 -1
- package/lib/ascf-converter/features/transformReport.js +1 -1
- package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
- package/lib/ascf-converter/parse/babelParser.js +1 -1
- package/lib/ascf-converter/parse/importVisitor.js +1 -1
- package/lib/ascf-converter/parse/wxssParser.js +1 -1
- package/lib/ascf-converter/report/js/index.js +1 -1
- package/lib/ascf-sign-tools/cli.d.ts +1 -0
- package/lib/ascf-sign-tools/cli.js +2 -0
- package/lib/ascf-sign-tools/index.d.ts +17 -0
- package/lib/ascf-sign-tools/index.js +1 -0
- package/lib/bin/ascf.js +1 -1
- package/lib/commands/ascfbuild/index.js +1 -1
- package/lib/commands/build-npm/index.js +1 -1
- package/lib/commands/compile.js +1 -0
- package/lib/commands/convert.js +1 -0
- package/lib/commands/debugger/index.js +1 -1
- package/lib/commands/quickservice/index.js +1 -0
- package/lib/common/config.js +1 -1
- package/lib/common/constants.js +1 -0
- package/lib/common/log4js.js +1 -1
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/string-utils.js +1 -1
- package/lib/common/utils.js +1 -1
- package/lib/common/version-check.js +1 -1
- package/lib/index.js +1 -1
- package/lib/tools/release_64/SSL/ct_log_list.cnf +9 -0
- package/lib/tools/release_64/SSL/ct_log_list.cnf.dist +9 -0
- package/lib/tools/release_64/SSL/misc/CA.pl +215 -0
- package/lib/tools/release_64/SSL/misc/tsget.pl +200 -0
- package/lib/tools/release_64/SSL/openssl.cnf +350 -0
- package/lib/tools/release_64/SSL/openssl.cnf.dist +350 -0
- package/lib/tools/release_64/bin/c_rehash.pl +251 -0
- package/lib/tools/release_64/bin/libcrypto-1_1-x64.dll +0 -0
- package/lib/tools/release_64/bin/libssl-1_1-x64.dll +0 -0
- package/lib/tools/release_64/bin/openssl.exe +0 -0
- package/package.json +25 -21
- package/lib/ascf-compiler/watch/watch.js +0 -1
package/lib/bin/ascf.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var _0x261e81=_0x3f39;function _typeof(e){var r=_0x3f39;return(_typeof=r(384)==typeof Symbol&&"symbol"==typeof Symbol[r(428)]?function(e){return typeof e}:function(e){var t=r;return e&&t(384)==typeof Symbol&&e[t(385)]===Symbol&&e!==Symbol[t(452)]?t(371):typeof e})(e)}function _regeneratorRuntime(){var s=_0x3f39;_regeneratorRuntime=function(){return u};var f,u={},e=Object[s(452)],l=e[s(456)],p=Object[s(364)]||function(e,t,r){var n=s;e[t]=r[n(330)]},t=s(384)==typeof Symbol?Symbol:{},i=t.iterator||s(395),r=t[s(341)]||"@@asyncIterator",n=t[s(366)]||"@@toStringTag";function o(e,t,r){return Object[s(364)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o,i,a,u,c=s,t=t&&t.prototype instanceof g?t:g,t=Object[c(338)](t.prototype),n=new L(n||[]);return p(t,c(453),{value:(o=e,i=r,a=n,u=d,function(e,t){var r=_0x3f39;if(u===v)throw Error(r(436));if(u===m){if(r(351)===e)throw t;return{value:f,done:!0}}for(a[r(439)]=e,a.arg=t;;){var n=a[r(416)];if(n){n=function e(t,r){var n=s,o=r[n(439)],i=t[n(428)][o];if(i===f)return r[n(416)]=null,n(351)===o&&t[n(428)].return&&(r[n(439)]=n(430),r[n(414)]=f,e(t,r),n(351)===r[n(439)])||n(430)!==o&&(r.method="throw",r[n(414)]=new TypeError(n(360)+o+n(423))),x;o=h(i,t[n(428)],r[n(414)]);if(n(351)===o[n(440)])return r[n(439)]=n(351),r[n(414)]=o[n(414)],r[n(416)]=null,x;i=o.arg;return i?i[n(381)]?(r[t[n(383)]]=i.value,r.next=t[n(358)],n(430)!==r[n(439)]&&(r[n(439)]=n(441),r[n(414)]=f),r[n(416)]=null,x):i:(r[n(439)]=n(351),r[n(414)]=new TypeError(n(388)),r[n(416)]=null,x)}(n,a);if(n){if(n===x)continue;return n}}if(r(441)===a[r(439)])a[r(368)]=a[r(421)]=a.arg;else if(r(351)===a[r(439)]){if(u===d)throw u=m,a[r(414)];a[r(396)](a[r(414)])}else r(430)===a.method&&a.abrupt(r(430),a[r(414)]);u=v;n=h(o,i,a);if(r(376)===n[r(440)]){if(u=a[r(381)]?m:_,n[r(414)]===x)continue;return{value:n[r(414)],done:a[r(381)]}}r(351)===n.type&&(u=m,a.method=r(351),a[r(414)]=n.arg)}})}),t}function h(e,t,r){var n=s;try{return{type:n(376),arg:e[n(392)](t,r)}}catch(e){return{type:n(351),arg:e}}}u[s(409)]=c;var d=s(432),_="suspendedYield",v=s(431),m=s(378),x={};function g(){}function a(){}function y(){}var t={},b=(o(t,i,function(){return this}),Object.getPrototypeOf),b=b&&b(b(k([]))),w=(b&&b!==e&&l.call(b,i)&&(t=b),y[s(452)]=g[s(452)]=Object[s(338)](t));function j(e){var t=s;[t(441),"throw",t(430)][t(442)](function(t){o(e,t,function(e){return this[_0x3f39(453)](t,e)})})}function S(u,c){var t,o=s;p(this,o(453),{value:function(r,n){function e(){return new c(function(e,t){!function t(e,r,n,o){var i,a=_0x3f39,e=h(u[e],u,r);if(a(351)!==e[a(440)])return(r=(i=e[a(414)])[a(330)])&&a(339)==_typeof(r)&&l[a(392)](r,a(336))?c[a(454)](r[a(336)])[a(455)](function(e){t(a(441),e,n,o)},function(e){t(a(351),e,n,o)}):c[a(454)](r).then(function(e){i[a(330)]=e,n(i)},function(e){return t("throw",e,n,o)});o(e[a(414)])}(r,n,e,t)})}return t=t?t[o(455)](e,e):e()}})}function C(e){var t=s,r={tryLoc:e[0]};1 in e&&(r[t(380)]=e[1]),2 in e&&(r.finallyLoc=e[2],r[t(331)]=e[3]),this[t(443)].push(r)}function E(e){var t=s,r=e[t(370)]||{};r[t(440)]=t(376),delete r[t(414)],e[t(370)]=r}function L(e){var t=s;this.tryEntries=[{tryLoc:t(448)}],e[t(442)](C,this),this[t(390)](!0)}function k(r){var n=s;if(r||""===r){var o,e=r[i];if(e)return e[n(392)](r);if("function"==typeof r[n(441)])return r;if(!isNaN(r.length))return o=-1,(e=function e(){for(var t=n;++o<r[t(415)];)if(l[t(392)](r,o))return e[t(330)]=r[o],e[t(381)]=!1,e;return e[t(330)]=f,e[t(381)]=!0,e})[n(441)]=e}throw new TypeError(_typeof(r)+n(418))}return a[s(452)]=y,p(w,s(385),{value:y,configurable:!0}),p(y,s(385),{value:a,configurable:!0}),a[s(398)]=o(y,n,s(399)),u[s(357)]=function(e){var t=s,e=t(384)==typeof e&&e[t(385)];return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e[t(424)]))},u[s(451)]=function(e){var t=s;return Object[t(342)]?Object[t(342)](e,y):(e[t(426)]=y,o(e,n,"GeneratorFunction")),e[t(452)]=Object[t(338)](w),e},u[s(367)]=function(e){return{__await:e}},j(S[s(452)]),o(S[s(452)],r,function(){return this}),u[s(410)]=S,u.async=function(e,t,r,n,o){var i=s,a=(void 0===o&&(o=Promise),new S(c(e,t,r,n),o));return u[i(357)](t)?a:a.next()[i(455)](function(e){var t=i;return e[t(381)]?e[t(330)]:a[t(441)]()})},j(w),o(w,n,"Generator"),o(w,i,function(){return this}),o(w,"toString",function(){return"[object Generator]"}),u[s(408)]=function(e){var t,n=s,o=Object(e),i=[];for(t in o)i.push(t);return i[n(347)](),function e(){for(var t=n;i[t(415)];){var r=i[t(372)]();if(r in o)return e[t(330)]=r,e.done=!1,e}return e.done=!0,e}},u[s(352)]=k,L[s(452)]={constructor:L,reset:function(e){var t=s;if(this[t(359)]=0,this[t(441)]=0,this.sent=this[t(421)]=f,this[t(381)]=!1,this[t(416)]=null,this[t(439)]=t(441),this.arg=f,this[t(443)].forEach(E),!e)for(var r in this)"t"===r[t(355)](0)&&l.call(this,r)&&!isNaN(+r[t(427)](1))&&(this[r]=f)},stop:function(){var e=s,t=(this[e(381)]=!0,this[e(443)][0][e(370)]);if(e(351)===t[e(440)])throw t[e(414)];return this.rval},dispatchException:function(n){var o=s;if(this[o(381)])throw n;var i=this;function e(e,t){var r=o;return a[r(440)]=r(351),a[r(414)]=n,i[r(441)]=e,t&&(i.method=r(441),i[r(414)]=f),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var r=this[o(443)][t],a=r[o(370)];if("root"===r[o(402)])return e("end");if(r.tryLoc<=this[o(359)]){var u=l[o(392)](r,o(380)),c=l[o(392)](r,"finallyLoc");if(u&&c){if(this[o(359)]<r[o(380)])return e(r[o(380)],!0);if(this[o(359)]<r.finallyLoc)return e(r[o(438)])}else if(u){if(this[o(359)]<r[o(380)])return e(r[o(380)],!0)}else{if(!c)throw Error(o(346));if(this[o(359)]<r[o(438)])return e(r[o(438)])}}}},abrupt:function(e,t){for(var r=s,n=this[r(443)][r(415)]-1;0<=n;--n){var o=this[r(443)][n];if(o[r(402)]<=this[r(359)]&&l[r(392)](o,r(438))&&this[r(359)]<o.finallyLoc){var i=o;break}}var a=(i=i&&(r(459)===e||r(334)===e)&&i[r(402)]<=t&&t<=i[r(438)]?null:i)?i[r(370)]:{};return a.type=e,a[r(414)]=t,i?(this[r(439)]="next",this[r(441)]=i.finallyLoc,x):this[r(335)](a)},complete:function(e,t){var r=s;if(r(351)===e[r(440)])throw e[r(414)];return"break"===e[r(440)]||"continue"===e[r(440)]?this[r(441)]=e.arg:r(430)===e.type?(this.rval=this.arg=e[r(414)],this[r(439)]=r(430),this[r(441)]=r(329)):r(376)===e[r(440)]&&t&&(this.next=t),x},finish:function(e){for(var t=s,r=this.tryEntries[t(415)]-1;0<=r;--r){var n=this[t(443)][r];if(n[t(438)]===e)return this[t(335)](n.completion,n.afterLoc),E(n),x}},catch:function(e){for(var t=s,r=this.tryEntries[t(415)]-1;0<=r;--r){var n,o,i=this.tryEntries[r];if(i[t(402)]===e)return"throw"===(n=i[t(370)])[t(440)]&&(o=n[t(414)],E(i)),o}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){var n=s;return this[n(416)]={iterator:k(e),resultName:t,nextLoc:r},n(441)===this[n(439)]&&(this[n(414)]=f),x}},u}function asyncGeneratorStep(e,t,r,n,o,i,a){var u=_0x3f39;try{var c=e[i](a),s=c[u(330)]}catch(e){return void r(e)}c[u(381)]?t(s):Promise.resolve(s)[u(455)](n,o)}function _0x263c(){var e=["version","action","-c, --clear","arg","length","delegate","--deviceId [deviceId]"," is not iterable","enable debug logging","compile <projectRoot>","_sent","Setting the log level","' method","name","Clear build resource","__proto__","slice","iterator","3543650hWDHsx","return","executing","suspendedStart","Validate path","6300448MFpMyU","compile","Generator is already running","--disableSubpackages [true or false]","finallyLoc","method","type","next","forEach","tryEntries","556548HjzDog","-r, --run [command]","_ascfCliProgram","hook","root","analyze bundle","install","mark","prototype","_invoke","resolve","then","hasOwnProperty","../common/log4js.js","-w, --watch","break","parse","ascf toolkit convert and compile ascf project","Convert miniprogram project to ascf project","Use swc parser, default is babel parser","--templateHoist","-m, --mode","option","310238sMEdsu","end","value","afterLoc","5639328PDnthQ","Command","continue","complete","__await","_ascfDebug","create","object","--serve","asyncIterator","setPrototypeOf","Run command on changes been watched","Watch run for changes","--debug","try statement without catch or finally","reverse","../../package.json","stop","requiredOption","throw","values","opts","command","charAt","219jlAnde","isGeneratorFunction","nextLoc","prev","The iterator does not provide a '","Disable subpackages, default is true for development, false for production","Hoist template to page scope, default is true when have base.hxml","setLoggerConfig","defineProperty","--skipApiValidator [flag]","toStringTag","awrap","sent","-i, --input <input-directory>","completion","symbol","pop","13356288qTiFPC","Not add todo for not supported api.","--analyzeBundle","normal","../commands/ascfbuild","completed","apply","catchLoc","done","Start dev-server","resultName","function","constructor","argv","commander","iterator result is not an object","preAction","reset","--devtool [type]","call","--logging [level]","Clear convert output path","@@iterator","dispatchException","sourcemap type, default is eval-cheap-source-map","displayName","GeneratorFunction","debug","convert","tryLoc","-p, --progress","description","../index","32070jpSltu","Skip API and components validator, default is true","keys","wrap","AsyncIterator"];return(_0x263c=function(){return e})()}function _0x3f39(e,t){var r=_0x263c();return(_0x3f39=function(e,t){return r[e-=325]})(e,t)}function _asyncToGenerator(u){return function(){var e=this,a=arguments;return new Promise(function(t,r){var n=u.apply(e,a);function o(e){asyncGeneratorStep(n,t,r,o,i,_0x3f39(441),e)}function i(e){asyncGeneratorStep(n,t,r,o,i,_0x3f39(351),e)}o(void 0)})}}(()=>{for(var e=_0x3f39,t=_0x263c();;)try{if(884705==-parseInt(e(328))+parseInt(e(406))/2*(parseInt(e(356))/3)+parseInt(e(332))/4+-parseInt(e(429))/5+parseInt(e(444))/6+parseInt(e(434))/7+-parseInt(e(373))/8)break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var _require=require(_0x261e81(387)),Command=_require[_0x261e81(333)],pkg=require(_0x261e81(348)),program=new Command,_require2=require(_0x261e81(457)),setLoggerConfig=_require2[_0x261e81(363)],buildNpmCmd=require("../commands/build-npm"),debuggerCmd=require("../commands/debugger"),ascfbuildCmd=require(_0x261e81(377)),cmds=[buildNpmCmd,debuggerCmd,ascfbuildCmd];program[_0x261e81(411)](pkg[_0x261e81(411)])[_0x261e81(404)](_0x261e81(461))[_0x261e81(327)](_0x261e81(393),_0x261e81(422))[_0x261e81(327)](_0x261e81(345),_0x261e81(419)),program[_0x261e81(447)](_0x261e81(389),function(){var e,t=_0x261e81;setLoggerConfig(null==(e=program[t(353)]())?void 0:e.logging),global[t(446)]=program,global[t(337)]=!(null==(e=program[t(353)]())||!e[t(400)])}),program[_0x261e81(354)](_0x261e81(401)).description(_0x261e81(462))[_0x261e81(350)](_0x261e81(369))[_0x261e81(350)]("-o, --output <output-directory>").option(_0x261e81(413),_0x261e81(394))[_0x261e81(327)]("-va, --validate",_0x261e81(433))[_0x261e81(327)]("-notaddtodo, --notaddtodo",_0x261e81(374))[_0x261e81(412)]((()=>{var t=_0x261e81,r=_asyncToGenerator(_regeneratorRuntime()[t(451)](function e(r){var n=t;return _regeneratorRuntime()[n(409)](function(e){for(var t=n;;)switch(e[t(359)]=e[t(441)]){case 0:return e[t(441)]=2,require(t(405)).convert(r);case 2:case t(329):return e[t(349)]()}},e)}));return function(e){return r[t(379)](this,arguments)}})()),program.command(_0x261e81(420)).description("Compile ascf project").option(_0x261e81(403),"Show build progress").option(_0x261e81(458),_0x261e81(344))[_0x261e81(327)](_0x261e81(326),"Environment, empty is production, -m is development").option("-c, --clear",_0x261e81(425))[_0x261e81(327)](_0x261e81(445),_0x261e81(343))[_0x261e81(327)]("--swc",_0x261e81(463)).option(_0x261e81(391),_0x261e81(397)).option(_0x261e81(437),_0x261e81(361))[_0x261e81(327)](_0x261e81(375),_0x261e81(449),!1).option(_0x261e81(325),_0x261e81(362))[_0x261e81(327)](_0x261e81(365),_0x261e81(407))[_0x261e81(327)](_0x261e81(340),_0x261e81(382)).option(_0x261e81(417),"select a device to start hot reload").action((()=>{var i=_0x261e81,r=_asyncToGenerator(_regeneratorRuntime()[i(451)](function e(r,n){var o=i;return _regeneratorRuntime()[o(409)](function(e){for(var t=o;;)switch(e.prev=e[t(441)]){case 0:return e.next=2,require(t(405))[t(435)](r,n);case 2:case"end":return e[t(349)]()}},e)}));return function(e,t){return r[i(379)](this,arguments)}})()),cmds[_0x261e81(442)](function(e){return e[_0x261e81(450)](program)}),program[_0x261e81(460)](process[_0x261e81(386)]);
|
|
2
|
+
var _0xdb6fcd=_0x4bc4;function _0x3787(){var r=["ascf toolkit convert and compile ascf project","207594hCUVrD","../commands/quickservice","../ascf-common","version","setLoggerConfig","opts","12278eqLgne","731346VzeCsk","24vpdZkY","forEach","parse","637448JjITQD","argv","enable debug logging","option","--debug","_ascfCliProgram","_ascfDebug","preAction","_supportLegacyHos","../common/constants.js","126090XWnPoE","1830ptgACY","logging","description","../common/log4js.js","144yTZIFT","../../package.json","Command","--logging [level]","7278gqFFJw","../commands/convert","8XjqKQA","776088iCThGA","indexOf","../commands/compile","8gHGarm","includes"];return(_0x3787=function(){return r})()}function _0x4bc4(r,e){var d=_0x3787();return(_0x4bc4=function(r,e){return d[r-=422]})(r,e)}(()=>{for(var r=_0x4bc4,e=_0x3787();;)try{if(247730==-parseInt(r(425))*(parseInt(r(434))/2)+parseInt(r(428))/3+-parseInt(r(422))/4+-parseInt(r(450))/5*(-parseInt(r(458))/6)+-parseInt(r(439))/7*(parseInt(r(460))/8)+-parseInt(r(454))/9*(-parseInt(r(449))/10)+parseInt(r(435))/11*(-parseInt(r(436))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require(_0xdb6fcd(430)),Command=_require[_0xdb6fcd(456)],pkg=require(_0xdb6fcd(455)),_require2=require(_0xdb6fcd(453)),setLoggerConfig=_require2[_0xdb6fcd(432)],convertCmd=require(_0xdb6fcd(459)),compileCmd=require(_0xdb6fcd(424)),buildNpmCmd=require("../commands/build-npm"),debuggerCmd=require("../commands/debugger"),ascfbuildCmd=require("../commands/ascfbuild"),quickserviceCmd=require(_0xdb6fcd(429)),_require3=require(_0xdb6fcd(448)),BUILD_TARGET_QS=_require3.BUILD_TARGET_QS,program=(global[_0xdb6fcd(447)]=((r,e)=>{var d=_0xdb6fcd,c=r[d(423)]("--targets");return-1!==c&&(null==(e=r[c+1])?void 0:e[d(426)](BUILD_TARGET_QS))})(process[_0xdb6fcd(440)].slice(2)),new Command),cmds=[convertCmd,compileCmd,buildNpmCmd,debuggerCmd,ascfbuildCmd,quickserviceCmd];program[_0xdb6fcd(431)](pkg.version)[_0xdb6fcd(452)](_0xdb6fcd(427)).option(_0xdb6fcd(457),"Setting the log level")[_0xdb6fcd(442)](_0xdb6fcd(443),_0xdb6fcd(441)),program.hook(_0xdb6fcd(446),function(){var r,e=_0xdb6fcd;setLoggerConfig(null==(r=program[e(433)]())?void 0:r[e(451)]),global[e(444)]=program,global[e(445)]=!(null==(r=program[e(433)]())||!r.debug)}),cmds[_0xdb6fcd(437)](function(r){return null==r?void 0:r.install(program)}),program[_0xdb6fcd(438)](process.argv);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x472750=_0x4df3;function _regenerator(){var h,g=_0x4df3,e=g(110)==typeof Symbol?Symbol:{},r=e[g(140)]||"@@iterator",n=e.toStringTag||g(139);function t(e,r,n,t){var o,a,i,c,f,u,s,p,d,l,_=g,r=r&&r[_(133)]instanceof x?r:x,r=Object.create(r[_(133)]);return _regeneratorDefine2(r,"_invoke",(o=e,a=n,p=t||[],d=!1,l={p:s=0,n:0,v:h,a:v,f:v[(u=_)(151)](h,4),d:function(e,r){return i=e,c=0,f=h,l.n=r,y}},function(e,r,n){var t=u;if(1<s)throw TypeError(t(112));for(d&&1===r&&v(r,n),c=r,f=n;(b=c<2?h:f)||!d;){i||(c?c<3?(1<c&&(l.n=-1),v(c,f)):l.n=f:l.v=f);try{if(s=2,i){if(c||(e=t(142)),b=i[e]){if(!(b=b[t(155)](i,f)))throw TypeError(t(121));if(!b.done)return b;f=b[t(146)],c<2&&(c=0)}else 1===c&&(b=i[t(103)])&&b.call(i),c<2&&(f=TypeError(t(137)+e+t(104)),c=1);i=h}else if((b=(d=l.n<0)?f:o.call(a,l))!==y)break}catch(e){i=h,c=1,f=e}finally{s=1}}return{value:b,done:d}}),!0),r;function v(e,r){var n=u;for(c=e,f=r,b=0;!d&&s&&!t&&b<p[n(131)];b++){var t,o=p[b],a=l.p,i=o[2];3<e?(t=i===r)&&(f=o[(c=o[4])?5:c=3],o[4]=o[5]=h):o[0]<=a&&((t=e<2&&a<o[1])?(c=0,l.v=r,l.n=o[1]):a<i&&(t=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,l.n=i,c=0))}if(t||1<e)return y;throw d=!0,r}}var y={};function x(){}function o(){}function a(){}var b=Object[g(128)],e=[][r]?b(b([][r]())):(_regeneratorDefine2(b={},r,function(){return this}),b),i=a[g(133)]=x.prototype=Object.create(e);function c(e){var r=g;return Object[r(118)]?Object.setPrototypeOf(e,a):(e.__proto__=a,_regeneratorDefine2(e,n,r(154))),e[r(133)]=Object[r(109)](i),e}return o[g(133)]=a,_regeneratorDefine2(i,g(136),a),_regeneratorDefine2(a,g(136),o),o.displayName=g(154),_regeneratorDefine2(a,n,"GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,n,g(141)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,g(123),function(){return g(117)}),(_regenerator=function(){return{w:t,m:c}})()}function _0x2d48(){var e=["return","' method","apply","build","chdir","assembleAndInstallHap","create","function","122740phyPhx","Generator is already running","../../ascf-base","603693YnlkQE","assembleHap","394906ILsDQy","[object Generator]","setPrototypeOf","-r, --projectRoot [projectRoot]","117870rOnRjS","iterator result is not an object","-t, --deviceId [deviceId]","toString","cwd","installDeps","AscfBuilder","command","getPrototypeOf","2390776AQKtrE","done","length","select a device","prototype","5XxHouS","Build ASCF project","constructor","The iterator does not provide a '","description","@@toStringTag","iterator","Generator","next","then","_invoke","option","value","forEach","894420ghHnKY","installHap","resolve","bind","projectRoot","throw","GeneratorFunction","call","action","850864GqIeZP"];return(_0x2d48=function(){return e})()}function _regeneratorDefine2(e,r,n,t){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,n,t){var o=_0x4df3;r?a?a(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x4df3(144)](r,n,e)})})(o(142),0),t("throw",1),t(o(103),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var c=_0x4df3;try{var f=e[a](i),u=f[c(146)]}catch(e){return void n(e)}f[c(130)]?r(u):Promise[c(150)](u)[c(143)](t,o)}function _0x4df3(e,r){var n=_0x2d48();return(_0x4df3=function(e,r){return n[e-=101]})(e,r)}function _asyncToGenerator(f){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0x4df3,o=f[t(105)](e,c);function a(e){asyncGeneratorStep(o,r,n,a,i,t(142),e)}function i(e){asyncGeneratorStep(o,r,n,a,i,t(153),e)}a(void 0)})}}(()=>{for(var e=_0x4df3,r=_0x2d48();;)try{if(144601==+parseInt(e(111))+-parseInt(e(116))/2+-parseInt(e(114))/3+parseInt(e(148))/4+parseInt(e(134))/5*(parseInt(e(120))/6)+-parseInt(e(102))/7+parseInt(e(129))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x472750(113)),AscfBuilder=_require[_0x472750(126)];module.exports={install:function(e){function n(t){return r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0x4df3;;)switch(e.n){case 0:n[r(152)]?process[r(107)](n.projectRoot):n[r(152)]=process[r(124)](),new AscfBuilder(n).handle(t);case 1:return e.a(2)}},e)})),function(e){return r[_0x4df3(105)](this,arguments)};var r}var t=_0x472750,o=e[t(127)](t(106))[t(138)](t(135));[t(125),t(115),"clean"][t(147)](function(e){var r=t;o[r(127)](e).description(e)[r(145)]("-r, --projectRoot [projectRoot]","projectRoot")[r(101)](n(e))}),[t(149),t(108),"uninstall","start"].forEach(function(e){var r=t;o.command(e)[r(138)](e)[r(145)](r(119),r(152))[r(145)](r(122),r(132))[r(101)](n(e))})}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3045b6=_0x3de3;function _typeof(t){var e=_0x3de3;return(_typeof=e(253)==typeof Symbol&&e(257)==typeof Symbol[e(336)]?function(t){return typeof t}:function(t){var r=e;return t&&r(253)==typeof Symbol&&t[r(325)]===Symbol&&t!==Symbol[r(313)]?r(257):typeof t})(t)}function _regeneratorRuntime(){var s=_0x3de3;_regeneratorRuntime=function(){return u};var f,u={},t=Object[s(313)],l=t[s(304)],p=Object[s(330)]||function(t,r,e){t[r]=e.value},r=s(253)==typeof Symbol?Symbol:{},i=r[s(336)]||s(308),e=r[s(361)]||s(351),n=r[s(283)]||s(322);function o(t,r,e){return Object[s(330)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function c(t,r,e,n){var o,i,a,u,c=s,r=r&&r.prototype instanceof b?r:b,r=Object[c(298)](r[c(313)]),n=new O(n||[]);return p(r,c(359),{value:(o=t,i=e,a=n,u=v,function(t,r){var e=_0x3de3;if(u===y)throw Error("Generator is already running");if(u===m){if(e(338)===t)throw r;return{value:f,done:!0}}for(a.method=t,a[e(262)]=r;;){var n=a[e(263)];if(n){n=function t(r,e){var n=s,o=e[n(324)],i=r[n(336)][o];if(i===f)return e[n(263)]=null,n(338)===o&&r[n(336)].return&&(e[n(324)]=n(348),e[n(262)]=f,t(r,e),n(338)===e[n(324)])||n(348)!==o&&(e.method=n(338),e[n(262)]=new TypeError(n(297)+o+n(340))),_;o=h(i,r[n(336)],e[n(262)]);if(n(338)===o.type)return e.method="throw",e[n(262)]=o[n(262)],e[n(263)]=null,_;i=o[n(262)];return i?i[n(329)]?(e[r[n(349)]]=i[n(353)],e[n(272)]=r[n(344)],n(348)!==e[n(324)]&&(e[n(324)]="next",e.arg=f),e.delegate=null,_):i:(e[n(324)]="throw",e[n(262)]=new TypeError(n(333)),e[n(263)]=null,_)}(n,a);if(n){if(n===_)continue;return n}}if(e(272)===a[e(324)])a[e(356)]=a[e(321)]=a[e(262)];else if(e(338)===a[e(324)]){if(u===v)throw u=m,a[e(262)];a[e(296)](a[e(262)])}else e(348)===a.method&&a[e(346)](e(348),a[e(262)]);u=y;n=h(o,i,a);if(e(306)===n[e(295)]){if(u=a.done?m:d,n[e(262)]===_)continue;return{value:n[e(262)],done:a[e(329)]}}e(338)===n.type&&(u=m,a[e(324)]=e(338),a[e(262)]=n[e(262)])}})}),r}function h(t,r,e){var n=s;try{return{type:n(306),arg:t.call(r,e)}}catch(t){return{type:n(338),arg:t}}}u[s(264)]=c;var v="suspendedStart",d=s(310),y=s(252),m=s(280),_={};function b(){}function a(){}function g(){}var r={},x=(o(r,i,function(){return this}),Object.getPrototypeOf),x=x&&x(x(E([]))),w=(x&&x!==t&&l.call(x,i)&&(r=x),g.prototype=b[s(313)]=Object[s(298)](r));function j(t){var r=s;[r(272),r(338),r(348)][r(318)](function(r){o(t,r,function(t){return this._invoke(r,t)})})}function S(u,c){var r;p(this,s(359),{value:function(e,n){function t(){return new c(function(t,r){!function r(t,e,n,o){var i,a=_0x3de3,t=h(u[t],u,e);if(a(338)!==t[a(295)])return(e=(i=t[a(262)]).value)&&a(311)==_typeof(e)&&l[a(287)](e,"__await")?c[a(277)](e[a(250)])[a(293)](function(t){r(a(272),t,n,o)},function(t){r("throw",t,n,o)}):c[a(277)](e)[a(293)](function(t){i[a(353)]=t,n(i)},function(t){return r(a(338),t,n,o)});o(t[a(262)])}(e,n,t,r)})}return r=r?r.then(t,t):t()}})}function N(t){var r=s,e={tryLoc:t[0]};1 in t&&(e[r(316)]=t[1]),2 in t&&(e[r(360)]=t[2],e[r(315)]=t[3]),this.tryEntries.push(e)}function L(t){var r=s,e=t[r(285)]||{};e[r(295)]=r(306),delete e[r(262)],t[r(285)]=e}function O(t){var r=s;this[r(354)]=[{tryLoc:r(317)}],t[r(318)](N,this),this[r(258)](!0)}function E(e){var n=s;if(e||""===e){var o,t=e[i];if(t)return t[n(287)](e);if("function"==typeof e[n(272)])return e;if(!isNaN(e[n(339)]))return o=-1,(t=function t(){for(var r=n;++o<e.length;)if(l[r(287)](e,o))return t[r(353)]=e[o],t[r(329)]=!1,t;return t[r(353)]=f,t[r(329)]=!0,t})[n(272)]=t}throw new TypeError(_typeof(e)+" is not iterable")}return p(w,"constructor",{value:a.prototype=g,configurable:!0}),p(g,s(325),{value:a,configurable:!0}),a[s(289)]=o(g,n,"GeneratorFunction"),u.isGeneratorFunction=function(t){var r=s,t="function"==typeof t&&t[r(325)];return!!t&&(t===a||r(303)===(t[r(289)]||t[r(276)]))},u[s(319)]=function(t){var r=s;return Object[r(281)]?Object[r(281)](t,g):(t[r(328)]=g,o(t,n,r(303))),t.prototype=Object[r(298)](w),t},u[s(305)]=function(t){return{__await:t}},j(S.prototype),o(S.prototype,e,function(){return this}),u[s(284)]=S,u[s(362)]=function(t,r,e,n,o){var i=s,a=(void 0===o&&(o=Promise),new S(c(t,r,e,n),o));return u[i(331)](r)?a:a[i(272)]()[i(293)](function(t){var r=i;return t[r(329)]?t[r(353)]:a[r(272)]()})},j(w),o(w,n,s(312)),o(w,i,function(){return this}),o(w,s(273),function(){return"[object Generator]"}),u[s(286)]=function(t){var r,n=s,o=Object(t),i=[];for(r in o)i[n(278)](r);return i[n(350)](),function t(){for(var r=n;i.length;){var e=i[r(341)]();if(e in o)return t.value=e,t[r(329)]=!1,t}return t[r(329)]=!0,t}},u.values=E,O[s(313)]={constructor:O,reset:function(t){var r=s;if(this[r(267)]=0,this[r(272)]=0,this[r(356)]=this[r(321)]=f,this[r(329)]=!1,this[r(263)]=null,this.method="next",this.arg=f,this[r(354)][r(318)](L),!t)for(var e in this)"t"===e[r(256)](0)&&l[r(287)](this,e)&&!isNaN(+e[r(314)](1))&&(this[e]=f)},stop:function(){var t=s,r=(this[t(329)]=!0,this[t(354)][0][t(285)]);if(t(338)===r.type)throw r.arg;return this[t(320)]},dispatchException:function(n){var o=s;if(this[o(329)])throw n;var i=this;function t(t,r){var e=o;return a[e(295)]=e(338),a[e(262)]=n,i.next=t,r&&(i[e(324)]=e(272),i[e(262)]=f),!!r}for(var r=this[o(354)][o(339)]-1;0<=r;--r){var e=this[o(354)][r],a=e[o(285)];if(o(317)===e[o(355)])return t(o(301));if(e[o(355)]<=this[o(267)]){var u=l[o(287)](e,o(316)),c=l.call(e,o(360));if(u&&c){if(this[o(267)]<e[o(316)])return t(e[o(316)],!0);if(this.prev<e[o(360)])return t(e.finallyLoc)}else if(u){if(this.prev<e[o(316)])return t(e[o(316)],!0)}else{if(!c)throw Error(o(343));if(this.prev<e.finallyLoc)return t(e[o(360)])}}}},abrupt:function(t,r){for(var e=s,n=this[e(354)][e(339)]-1;0<=n;--n){var o=this.tryEntries[n];if(o[e(355)]<=this[e(267)]&&l[e(287)](o,e(360))&&this.prev<o[e(360)]){var i=o;break}}var a=(i=i&&(e(275)===t||e(248)===t)&&i[e(355)]<=r&&r<=i[e(360)]?null:i)?i[e(285)]:{};return a[e(295)]=t,a[e(262)]=r,i?(this[e(324)]=e(272),this[e(272)]=i.finallyLoc,_):this[e(260)](a)},complete:function(t,r){var e=s;if(e(338)===t[e(295)])throw t[e(262)];return"break"===t[e(295)]||e(248)===t.type?this[e(272)]=t[e(262)]:e(348)===t[e(295)]?(this[e(320)]=this[e(262)]=t.arg,this[e(324)]="return",this[e(272)]=e(301)):"normal"===t[e(295)]&&r&&(this.next=r),_},finish:function(t){for(var r=s,e=this[r(354)][r(339)]-1;0<=e;--e){var n=this[r(354)][e];if(n[r(360)]===t)return this[r(260)](n[r(285)],n.afterLoc),L(n),_}},catch:function(t){for(var r=s,e=this[r(354)][r(339)]-1;0<=e;--e){var n,o,i=this.tryEntries[e];if(i[r(355)]===t)return"throw"===(n=i[r(285)])[r(295)]&&(o=n[r(262)],L(i)),o}throw Error(r(292))},delegateYield:function(t,r,e){var n=s;return this[n(263)]={iterator:E(t),resultName:r,nextLoc:e},n(272)===this[n(324)]&&(this[n(262)]=f),_}},u}function asyncGeneratorStep(t,r,e,n,o,i,a){var u=_0x3de3;try{var c=t[i](a),s=c[u(353)]}catch(t){return void e(t)}c[u(329)]?r(s):Promise.resolve(s)[u(293)](n,o)}function _asyncToGenerator(u){return function(){var t=this,a=arguments;return new Promise(function(r,e){var n=u.apply(t,a);function o(t){asyncGeneratorStep(n,r,e,o,i,_0x3de3(272),t)}function i(t){asyncGeneratorStep(n,r,e,o,i,_0x3de3(338),t)}o(void 0)})}}(()=>{for(var t=_0x3de3,r=_0x5254();;)try{if(119141==+parseInt(t(251))+-parseInt(t(282))/2+parseInt(t(261))/3*(parseInt(t(307))/4)+-parseInt(t(337))/5+-parseInt(t(332))/6*(parseInt(t(291))/7)+parseInt(t(266))/8+parseInt(t(345))/9)break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var _require=require("../../common/utils"),readJsonFile=_require[_0x3045b6(323)],hasHxml=_require[_0x3045b6(259)],moveFiles=_require[_0x3045b6(309)],path=require("path"),fs=require("fs"),log4js=require(_0x3045b6(327)),logger=log4js[_0x3045b6(265)](_0x3045b6(268));function buildMiniProgramNpm(t){var r=_0x3045b6,e=readJsonFile(path[r(288)](t,"ascf",r(342),"package.json"));if(e==={})logger[r(255)](r(335));else{if(e[r(302)])for(var n in e[r(302)])if(Object[r(313)][r(304)][r(287)](e[r(302)],n)){var o=path[r(288)](t,"ascf",r(342),r(326),n);if(!fs.existsSync(o)){var i=path[r(288)](t,r(299),r(342),"node_modules",n);if(!fs[r(357)](i))return void logger[r(279)]("".concat(n,r(358))[r(290)](n,"."));hasHxml(i)&&(n=readJsonFile(path[r(288)](i,r(254)))[r(294)],moveFiles(n?path[r(288)](i,n):i,o))}}logger[r(300)](r(334))}}function _0x3de3(t,r){var e=_0x5254();return(_0x3de3=function(t,r){return e[t-=248]})(t,r)}function _0x5254(){var t=["8QdTSjS","@@iterator","moveFiles","suspendedYield","object","Generator","prototype","slice","afterLoc","catchLoc","root","forEach","mark","rval","_sent","@@toStringTag","readJsonFile","method","constructor","miniprogram_npm","../../common/log4js","__proto__","done","defineProperty","isGeneratorFunction","138kXhrQj","iterator result is not an object","All npm dependencies has been built.","Dependencies info not found.","iterator","522160hauJuB","throw","length","' method","pop","ascf_src","try statement without catch or finally","nextLoc","1809396rxVLxv","abrupt","exports","return","resultName","reverse","@@asyncIterator","buildNpm <projectRoot>","value","tryEntries","tryLoc","sent","existsSync"," not found in node_modules, please run npm install ","_invoke","finallyLoc","asyncIterator","async","continue","Build ASCF npm dependencies to miniprogram_npm","__await","114196mTDXtk","executing","function","package.json","warn","charAt","symbol","reset","hasHxml","complete","74631sNuiUB","arg","delegate","wrap","getLogger","223184bSOpqk","prev","buildNpm","stop","action","apply","next","toString","description","break","name","resolve","push","error","completed","setPrototypeOf","204180TGNZKe","toStringTag","AsyncIterator","completion","keys","call","join","displayName","concat","20461YLCXGR","illegal catch attempt","then","miniprogram","type","dispatchException","The iterator does not provide a '","create","ascf","info","end","dependencies","GeneratorFunction","hasOwnProperty","awrap","normal"];return(_0x5254=function(){return t})()}function buildNpm(t){try{buildMiniProgramNpm(t)}catch(t){logger.error("Error: ascf buildNpm error: ".concat(t,"."))}}module[_0x3045b6(347)]={buildNpm:buildNpm,install:function(t){var o,e,r=_0x3045b6;t.command(r(352))[r(274)](r(249))[r(270)]((o=r,e=_asyncToGenerator(_regeneratorRuntime()[o(319)](function t(e,r){var n=o;return _regeneratorRuntime()[n(264)](function(t){for(var r=n;;)switch(t.prev=t[r(272)]){case 0:buildNpm(e);case 1:case"end":return t[r(269)]()}},t)})),function(t,r){return e[o(271)](this,arguments)}))}};
|
|
1
|
+
var _0x5f4c46=_0x1d5b;function _0x4f17(){var e=["next","apply","path","Generator","getLogger","getPrototypeOf","description","toStringTag","prototype","' method","length"," not found in node_modules, please run npm install ","command","exports","existsSync","toString","join","throw","defineProperty","resolve","done","hasHxml","1107675GFjprv","_invoke","node_modules","8uGDAvq","Dependencies info not found.","displayName","ascf_src","iterator result is not an object","setPrototypeOf","moveFiles","bind","147670wijvZk","value","@@toStringTag","call","create","The iterator does not provide a '","2877860luHKCC","550101WXRjmO","Error: ascf buildNpm error: ","609hOBJfp","concat","232nFxcVN","action","119982bGSmNq","hasOwnProperty","iterator","error","3431240vFhmHU","return","dependencies","[object Generator]","Build ASCF npm dependencies to miniprogram_npm","constructor","GeneratorFunction","22jHrudS","8970300BwZGXl","All npm dependencies has been built.","@@iterator","package.json","miniprogram","info","miniprogram_npm","then","ascf","../../common/utils"];return(_0x4f17=function(){return e})()}function _regenerator(){var m,v=_0x1d5b,e="function"==typeof Symbol?Symbol:{},r=e[v(401)]||v(413),n=e[v(428)]||v(388);function t(e,r,n,t){var o,i,a,c,f,u,s,p,l,_,d=v,r=r&&r[d(429)]instanceof h?r:h,r=Object[d(390)](r[d(429)]);return _regeneratorDefine2(r,"_invoke",(o=e,i=n,p=t||[],l=!1,_={p:s=0,n:0,v:m,a:g,f:g[(u=d)(385)](m,4),d:function(e,r){return a=e,c=0,f=m,_.n=r,b}},function(e,r,n){var t=u;if(1<s)throw TypeError("Generator is already running");for(l&&1===r&&g(r,n),c=r,f=n;(x=c<2?m:f)||!l;){a||(c?c<3?(1<c&&(_.n=-1),g(c,f)):_.n=f:_.v=f);try{if(s=2,a){if(c||(e=t(421)),x=a[e]){if(!(x=x.call(a,f)))throw TypeError(t(382));if(!x.done)return x;f=x[t(387)],c<2&&(c=0)}else 1===c&&(x=a[t(404)])&&x.call(a),c<2&&(f=TypeError(t(391)+e+t(430)),c=1);a=m}else if((x=(l=_.n<0)?f:o[t(389)](i,_))!==b)break}catch(e){a=m,c=1,f=e}finally{s=1}}return{value:x,done:l}}),!0),r;function g(e,r){var n=u;for(c=e,f=r,x=0;!l&&s&&!t&&x<p[n(431)];x++){var t,o=p[x],i=_.p,a=o[2];3<e?(t=a===r)&&(f=o[(c=o[4])?5:c=3],o[4]=o[5]=m):o[0]<=i&&((t=e<2&&i<o[1])?(c=0,_.v=r,_.n=o[1]):i<a&&(t=e<3||o[0]>r||a<r)&&(o[4]=e,o[5]=r,_.n=a,c=0))}if(t||1<e)return b;throw l=!0,r}}var b={};function h(){}function o(){}function i(){}var x=Object[v(426)],e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),a=i[v(429)]=h[v(429)]=Object[v(390)](e);function c(e){var r=v;return Object[r(383)]?Object[r(383)](e,i):(e.__proto__=i,_regeneratorDefine2(e,n,r(409))),e[r(429)]=Object[r(390)](a),e}return o.prototype=i,_regeneratorDefine2(a,v(408),i),_regeneratorDefine2(i,v(408),o),o[v(380)]="GeneratorFunction",_regeneratorDefine2(i,n,"GeneratorFunction"),_regeneratorDefine2(a),_regeneratorDefine2(a,n,v(424)),_regeneratorDefine2(a,r,function(){return this}),_regeneratorDefine2(a,v(436),function(){return v(406)}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var i=_0x1d5b,a=Object[i(439)];try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,n,t){var o=i;r?a?a(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x1d5b(444)](r,n,e)})})(o(421),0),t(o(438),1),t(o(404),2))})(e,r,n,t)}function _0x1d5b(e,r){var n=_0x4f17();return(_0x1d5b=function(e,r){return n[e-=378]})(e,r)}function asyncGeneratorStep(e,r,n,t,o,i,a){var c=_0x1d5b;try{var f=e[i](a),u=f.value}catch(e){return void n(e)}f[c(441)]?r(u):Promise[c(440)](u)[c(418)](t,o)}function _asyncToGenerator(f){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0x1d5b,o=f[t(422)](e,c);function i(e){asyncGeneratorStep(o,r,n,i,a,t(421),e)}function a(e){asyncGeneratorStep(o,r,n,i,a,t(438),e)}i(void 0)})}}(()=>{for(var e=_0x1d5b,r=_0x4f17();;)try{if(974369==-parseInt(e(393))+parseInt(e(392))/2+parseInt(e(443))/3+parseInt(e(397))/4*(-parseInt(e(386))/5)+parseInt(e(399))/6*(parseInt(e(395))/7)+parseInt(e(378))/8*(-parseInt(e(411))/9)+-parseInt(e(403))/10*(-parseInt(e(410))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x5f4c46(420)),readJsonFile=_require.readJsonFile,hasHxml=_require[_0x5f4c46(442)],moveFiles=_require[_0x5f4c46(384)],path=require(_0x5f4c46(423)),fs=require("fs"),log4js=require("../../common/log4js"),logger=log4js[_0x5f4c46(425)]("buildNpm");function buildMiniProgramNpm(e){var r=_0x5f4c46,n=readJsonFile(path[r(437)](e,"ascf",r(381),"package.json"));if(n==={})logger.warn(r(379));else{if(n[r(405)])for(var t in n[r(405)])if(Object[r(429)][r(400)][r(389)](n[r(405)],t)){var o=path.join(e,"ascf",r(381),r(417),t);if(!fs[r(435)](o)){var i=path[r(437)](e,r(419),r(381),r(445),t);if(!fs[r(435)](i))return void logger[r(402)](""[r(396)](t,r(432))[r(396)](t,"."));hasHxml(i)&&(t=readJsonFile(path[r(437)](i,r(414)))[r(415)],moveFiles(t?path[r(437)](i,t):i,o))}}logger[r(416)](r(412))}}function buildNpm(e){var r=_0x5f4c46;try{buildMiniProgramNpm(e)}catch(e){logger.error(r(394).concat(e,"."))}}module[_0x5f4c46(434)]={buildNpm:buildNpm,install:function(e){var n,r=_0x5f4c46;e[r(433)]("buildNpm <projectRoot>")[r(427)](r(407))[r(398)]((n=_asyncToGenerator(_regenerator().m(function e(r,n){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:buildNpm(r);case 1:return e.a(2)}},e)})),function(e,r){return n[_0x1d5b(422)](this,arguments)}))}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x2653e7=_0x2924;function _0x2ea9(){var e=["iterator result is not an object","--skipApiValidator [flag]","length","apply","--swc","exports","Environment, empty is production, -m is development","-c, --clear","getPrototypeOf","GeneratorFunction","create","--devtool [type]","option","command","359287YaoYoh","Generator is already running","--targets [buildTarget]","defineProperty","--disableSubpackages [true or false]","21122200WWDyYv","BUILD_TARGET_QS","call","1123731yKIsud","24vghgND","sourcemap type, default is eval-cheap-source-map","compile <projectRoot>","@@toStringTag","constructor","Host package for ","next","done","Compile ascf project","10459904nRVLtn","--sign-public-key-path [path]","prototype","iterator","_invoke","action","364555ivvGAp","--sign-pwd [pwd]","@@iterator","bind","--analyzeBundle","Generator","--deviceId [deviceId]","displayName","3418408CnoOTu","Password of the p12 file for ","Disable subpackages, default is true for development, false for production","_supportLegacyHos","--serve","value","description","Clear build resource","then","Run command on changes been watched","__proto__","Watch run for changes","[object Generator]","-m, --mode","Hoist template to page scope, default is true when have base.hxml","-r, --run [command]","Use swc parser, default is babel parser","../common/constants.js","../index","-p, --progress","concat","Sign private key path for ","compile","Sign public key path for ","Build targets, atomicservice and ","setPrototypeOf","--sign-private-key-path [path]","1504396yhUWqS","The iterator does not provide a '","p12 File Path for ","resolve"];return(_0x2ea9=function(){return e})()}function _0x2924(e,r){var t=_0x2ea9();return(_0x2924=function(e,r){return t[e-=101]})(e,r)}function _regenerator(){var g,h=_0x2924,e="function"==typeof Symbol?Symbol:{},r=e[h(158)]||h(163),t=e.toStringTag||h(149);function n(e,r,t,n){var o,a,i,c,u,s,p,f,l,_,v=h,r=r&&r[v(157)]instanceof m?r:m,r=Object[v(133)](r[v(157)]);return _regeneratorDefine2(r,v(159),(o=e,a=t,f=n||[],l=!1,_={p:p=0,n:0,v:g,a:d,f:d[(s=v)(164)](g,4),d:function(e,r){return i=e,c=0,u=g,_.n=r,y}},function(e,r,t){var n=s;if(1<p)throw TypeError(n(138));for(l&&1===r&&d(r,t),c=r,u=t;(b=c<2?g:u)||!l;){i||(c?c<3?(1<c&&(_.n=-1),d(c,u)):_.n=u:_.v=u);try{if(p=2,i){if(b=i[e=c?e:"next"]){if(!(b=b.call(i,u)))throw TypeError(n(123));if(!b[n(153)])return b;u=b[n(174)],c<2&&(c=0)}else 1===c&&(b=i.return)&&b[n(144)](i),c<2&&(u=TypeError(n(120)+e+"' method"),c=1);i=g}else if((b=(l=_.n<0)?u:o.call(a,_))!==y)break}catch(e){i=g,c=1,u=e}finally{p=1}}return{value:b,done:l}}),!0),r;function d(e,r){var t=s;for(c=e,u=r,b=0;!l&&p&&!n&&b<f[t(125)];b++){var n,o=f[b],a=_.p,i=o[2];3<e?(n=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=g):o[0]<=a&&((n=e<2&&a<o[1])?(c=0,_.v=r,_.n=o[1]):a<i&&(n=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,_.n=i,c=0))}if(n||1<e)return y;throw l=!0,r}}var y={};function m(){}function o(){}function a(){}var b=Object[h(131)],e=[][r]?b(b([][r]())):(_regeneratorDefine2(b={},r,function(){return this}),b),i=a.prototype=m.prototype=Object[h(133)](e);function c(e){var r=h;return Object[r(117)]?Object.setPrototypeOf(e,a):(e[r(102)]=a,_regeneratorDefine2(e,t,r(132))),e[r(157)]=Object[r(133)](i),e}return o[h(157)]=a,_regeneratorDefine2(i,h(150),a),_regeneratorDefine2(a,h(150),o),o[h(168)]=h(132),_regeneratorDefine2(a,t,h(132)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,h(166)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return h(104)}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(e,r,t,n){var a=_0x2924,i=Object[a(140)];try{i({},"",{})}catch(e){i=0}(_regeneratorDefine2=function(e,r,t,n){var o=a;r?i?i(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:((n=function(r,t){_regeneratorDefine2(e,r,function(e){return this[_0x2924(159)](r,t,e)})})(o(152),0),n("throw",1),n("return",2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x2924;try{var u=e[a](i),s=u.value}catch(e){return void t(e)}u[c(153)]?r(s):Promise[c(122)](s)[c(177)](n,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0x2924,o=u[n(126)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,n(152),e)}function i(e){asyncGeneratorStep(o,r,t,a,i,"throw",e)}a(void 0)})}}(()=>{for(var e=_0x2924,r=_0x2ea9();;)try{if(941473==+parseInt(e(137))+-parseInt(e(119))/2+-parseInt(e(145))/3+parseInt(e(169))/4+-parseInt(e(161))/5*(parseInt(e(146))/6)+-parseInt(e(155))/7+parseInt(e(142))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x2653e7(109)),BUILD_TARGET_QS=_require[_0x2653e7(143)];module[_0x2653e7(128)]={install:function(e){var t,r=_0x2653e7,e=e[r(136)](r(148))[r(175)](r(154)).option(r(111),"Show build progress").option("-w, --watch",r(103))[r(135)](r(105),r(129)).option(r(130),r(176))[r(135)](r(107),r(101)).option(r(127),r(108))[r(135)](r(134),r(147))[r(135)](r(141),r(171))[r(135)](r(165),"analyze bundle",!1).option("--templateHoist",r(106))[r(135)](r(124),"Skip API and components validator, default is true")[r(135)](r(173),"Start dev-server")[r(135)](r(167),"select a device to start hot reload")[r(135)](r(139),r(116).concat(BUILD_TARGET_QS));global[r(172)]&&e[r(135)]("--qs-host-pkg [pkg]",r(151)[r(112)](BUILD_TARGET_QS))[r(135)](r(118),r(113)[r(112)](BUILD_TARGET_QS)).option(r(156),r(115)[r(112)](BUILD_TARGET_QS))[r(135)](r(162),r(170)[r(112)](BUILD_TARGET_QS)).option("--sign-profile-path [path]",r(121)[r(112)](BUILD_TARGET_QS)),e[r(160)]((t=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x2924;;)switch(e.n){case 0:return e.n=1,require(r(110))[r(114)](t,n);case 1:return e.a(2)}},e)})),function(e,r){return t[_0x2924(126)](this,arguments)}))}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x417d(){var r=["52742624rQgCNM","done","iterator result is not an object","then","constructor","GeneratorFunction","711907fwKYMY","1558232bdNPYr","value","BUILD_TARGET_QS","requiredOption","convert","[object Generator]","Generator is already running","return","Generator","-notaddtodo, --notaddtodo","function","Convert miniprogram project to ascf project","__proto__","5223624vdEITJ","_invoke","../index","toString","description","exports","Build targets, atomicservice and ","Not add todo for not supported api.","resolve","9NFEAWn","@@toStringTag","Clear convert output path","apply","concat","bind","The iterator does not provide a '","length","create","10goniIE","4409544nxmpWC","--targets [type]","10521736DktYMw","Validate path","call","prototype","throw","-o, --output <output-directory>","displayName","838MKizGN","iterator","10WfFmqm","@@iterator","getPrototypeOf","toStringTag","option","next","10521jRmQxm"];return(_0x417d=function(){return r})()}var _0x1ff46b=_0x1c65;function _regenerator(){var g,y=_0x1c65,r=y(283)==typeof Symbol?Symbol:{},e=r[y(258)]||y(260),t=r[y(262)]||y(296);function n(r,e,t,n){var o,a,i,c,u,f,p,s,_,d,v=y,e=e&&e[v(253)]instanceof h?e:h,e=Object[v(303)](e.prototype);return _regeneratorDefine2(e,v(287),(o=r,a=t,s=n||[],_=!1,d={p:p=0,n:0,v:g,a:l,f:l[(f=v)(300)](g,4),d:function(r,e){return i=r,c=0,u=g,d.n=e,x}},function(r,e,t){var n=f;if(1<p)throw TypeError(n(279));for(_&&1===e&&l(e,t),c=e,u=t;(b=c<2?g:u)||!_;){i||(c?c<3?(1<c&&(d.n=-1),l(c,u)):d.n=u:d.v=u);try{if(p=2,i){if(c||(r=n(264)),b=i[r]){if(!(b=b.call(i,u)))throw TypeError(n(268));if(!b.done)return b;u=b[n(274)],c<2&&(c=0)}else 1===c&&(b=i[n(280)])&&b[n(252)](i),c<2&&(u=TypeError(n(301)+r+"' method"),c=1);i=g}else if((b=(_=d.n<0)?u:o.call(a,d))!==x)break}catch(r){i=g,c=1,u=r}finally{p=1}}return{value:b,done:_}}),!0),e;function l(r,e){var t=f;for(c=r,u=e,b=0;!_&&p&&!n&&b<s[t(302)];b++){var n,o=s[b],a=d.p,i=o[2];3<r?(n=i===e)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=g):o[0]<=a&&((n=r<2&&a<o[1])?(c=0,d.v=e,d.n=o[1]):a<i&&(n=r<3||o[0]>e||i<e)&&(o[4]=r,o[5]=e,d.n=i,c=0))}if(n||1<r)return x;throw _=!0,e}}var x={};function h(){}function o(){}function a(){}var b=Object[y(261)],r=[][e]?b(b([][e]())):(_regeneratorDefine2(b={},e,function(){return this}),b),i=a[y(253)]=h[y(253)]=Object[y(303)](r);function c(r){var e=y;return Object.setPrototypeOf?Object.setPrototypeOf(r,a):(r[e(285)]=a,_regeneratorDefine2(r,t,e(271))),r[e(253)]=Object[e(303)](i),r}return o[y(253)]=a,_regeneratorDefine2(i,y(270),a),_regeneratorDefine2(a,y(270),o),o[y(256)]=y(271),_regeneratorDefine2(a,t,y(271)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,y(281)),_regeneratorDefine2(i,e,function(){return this}),_regeneratorDefine2(i,y(289),function(){return y(278)}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(r,e,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}(_regeneratorDefine2=function(r,e,t,n){var o=_0x1c65;e?a?a(r,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):r[e]=t:((n=function(e,t){_regeneratorDefine2(r,e,function(r){return this[_0x1c65(287)](e,t,r)})})("next",0),n(o(254),1),n(o(280),2))})(r,e,t,n)}function asyncGeneratorStep(r,e,t,n,o,a,i){var c=_0x1c65;try{var u=r[a](i),f=u[c(274)]}catch(r){return void t(r)}u[c(267)]?e(f):Promise[c(294)](f)[c(269)](n,o)}function _0x1c65(r,e){var t=_0x417d();return(_0x1c65=function(r,e){return t[r-=248]})(r,e)}function _asyncToGenerator(u){return function(){var r=this,c=arguments;return new Promise(function(e,t){var n=_0x1c65,o=u[n(298)](r,c);function a(r){asyncGeneratorStep(o,e,t,a,i,"next",r)}function i(r){asyncGeneratorStep(o,e,t,a,i,n(254),r)}a(void 0)})}}(()=>{for(var r=_0x1c65,e=_0x417d();;)try{if(894313==+parseInt(r(273))+parseInt(r(257))/2*(-parseInt(r(265))/3)+-parseInt(r(286))/4+-parseInt(r(259))/5*(parseInt(r(248))/6)+parseInt(r(272))/7+-parseInt(r(250))/8*(parseInt(r(295))/9)+parseInt(r(304))/10*(parseInt(r(266))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require("../common/constants.js"),BUILD_TARGET_QS=_require[_0x1ff46b(275)];module[_0x1ff46b(291)]={install:function(r){var e,t=_0x1ff46b;r.command(t(277))[t(290)](t(284))[t(276)]("-i, --input <input-directory>")[t(276)](t(255))[t(263)]("-c, --clear",t(297))[t(263)]("-va, --validate",t(251))[t(263)](t(282),t(293))[t(263)](t(249),t(292)[t(299)](BUILD_TARGET_QS)).action((e=_asyncToGenerator(_regenerator().m(function r(t){return _regenerator().w(function(r){for(var e=_0x1c65;;)switch(r.n){case 0:return r.n=1,require(e(288))[e(277)](t);case 1:return r.a(2)}},r)})),function(r){return e[_0x1c65(298)](this,arguments)}))}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x53aae2=_0x503e;function _regenerator(){var d,t=_0x503e,e=t(199)==typeof Symbol?Symbol:{},r=e[t(221)]||t(212),n=e.toStringTag||t(205);function o(e,r,t,n){var o,a,i,c,u,f,s,p,g,v,r=r&&r.prototype instanceof b?r:b,r=Object.create(r.prototype);return _regeneratorDefine2(r,"_invoke",(o=e,a=t,p=n||[],g=!1,v={p:s=0,n:0,v:d,a:_,f:_[(f=_0x503e)(218)](d,4),d:function(e,r){return i=e,c=0,u=d,v.n=r,l}},function(e,r,t){var n=f;if(1<s)throw TypeError("Generator is already running");for(g&&1===r&&_(r,t),c=r,u=t;(y=c<2?d:u)||!g;){i||(c?c<3?(1<c&&(v.n=-1),_(c,u)):v.n=u:v.v=u);try{if(s=2,i){if(c||(e=n(198)),y=i[e]){if(!(y=y[n(226)](i,u)))throw TypeError(n(237));if(!y[n(225)])return y;u=y.value,c<2&&(c=0)}else 1===c&&(y=i[n(214)])&&y[n(226)](i),c<2&&(u=TypeError(n(215)+e+n(201)),c=1);i=d}else if((y=(g=v.n<0)?u:o[n(226)](a,v))!==l)break}catch(e){i=d,c=1,u=e}finally{s=1}}return{value:y,done:g}}),!0),r;function _(e,r){var t=f;for(c=e,u=r,y=0;!g&&s&&!n&&y<p[t(227)];y++){var n,o=p[y],a=v.p,i=o[2];3<e?(n=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=d):o[0]<=a&&((n=e<2&&a<o[1])?(c=0,v.v=r,v.n=o[1]):a<i&&(n=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,v.n=i,c=0))}if(n||1<e)return l;throw g=!0,r}}var l={};function b(){}function a(){}function i(){}var y=Object[t(224)],e=[][r]?y(y([][r]())):(_regeneratorDefine2(y={},r,function(){return this}),y),c=i.prototype=b.prototype=Object[t(232)](e);function u(e){var r=t;return Object[r(236)]?Object[r(236)](e,i):(e[r(230)]=i,_regeneratorDefine2(e,n,r(242))),e[r(241)]=Object[r(232)](c),e}return a[t(241)]=i,_regeneratorDefine2(c,"constructor",i),_regeneratorDefine2(i,"constructor",a),a[t(238)]="GeneratorFunction",_regeneratorDefine2(i,n,t(242)),_regeneratorDefine2(c),_regeneratorDefine2(c,n,t(252)),_regeneratorDefine2(c,r,function(){return this}),_regeneratorDefine2(c,t(253),function(){return t(228)}),(_regenerator=function(){return{w:o,m:u}})()}function _0x4272(){var e=["toString","4NmYwfj","16602hOIQFq","824746tqBnSa","next","function","stop","' method","763kYyPIz","3647384QyztKZ","Start or stop debugger","@@toStringTag","option","action","description","forEach","-t, --deviceId [deviceId]","stop-service","@@iterator","throw","return","The iterator does not provide a '","command","then","bind","value","debugger","iterator","resolve","stop-view","getPrototypeOf","done","call","length","[object Generator]","../../ascf-base","__proto__","2024510JpkSgP","create","-b, --bundleName [bundleName]","status","414285IpQKNL","setPrototypeOf","iterator result is not an object","displayName","start-view","155660xXQyXd","prototype","GeneratorFunction","671kbOChE","417702UJlXBa","start-service","exports","default","_invoke","9dvlgdk","-o, --open <browser>","select a device to debug","Generator"];return(_0x4272=function(){return e})()}function _regeneratorDefine2(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,t,n){var o=_0x503e;r?a?a(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:((n=function(r,t){_regeneratorDefine2(e,r,function(e){return this[_0x503e(248)](r,t,e)})})(o(198),0),n(o(213),1),n(o(214),2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x503e;try{var u=e[a](i),f=u[c(219)]}catch(e){return void t(e)}u[c(225)]?r(f):Promise[c(222)](f)[c(217)](n,o)}function _asyncToGenerator(c){return function(){var e=this,i=arguments;return new Promise(function(r,t){var n=c.apply(e,i);function o(e){asyncGeneratorStep(n,r,t,o,a,_0x503e(198),e)}function a(e){asyncGeneratorStep(n,r,t,o,a,_0x503e(213),e)}o(void 0)})}}(()=>{for(var e=_0x503e,r=_0x4272();;)try{if(234216==-parseInt(e(235))+-parseInt(e(197))/2+-parseInt(e(244))/3+parseInt(e(254))/4*(parseInt(e(231))/5)+-parseInt(e(196))/6*(-parseInt(e(202))/7)+-parseInt(e(203))/8*(parseInt(e(249))/9)+-parseInt(e(240))/10*(-parseInt(e(243))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x53aae2(229)),AscfDebugger=_require.AscfDebugger;function _0x503e(e,r){var t=_0x4272();return(_0x503e=function(e,r){return t[e-=196]})(e,r)}module[_0x53aae2(246)]={install:function(e){function t(t){return r=_asyncToGenerator(_regenerator().m(function e(r){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:new AscfDebugger(r).handle(t);case 1:return e.a(2)}},e)})),function(e){return r.apply(this,arguments)};var r}var n=_0x53aae2,o=e[n(216)](n(220)).description(n(204));[n(234)].forEach(function(e){var r=n;o[r(216)](e)[r(208)](e).option(r(233),"bundleName of debugging project").option(r(210),r(251))[r(207)](t(e))}),["start",n(239),n(245)][n(209)](function(e){var r=n;o[r(216)](e)[r(208)](e)[r(206)](r(250),'Open default browser, "default","chrome","edge"',r(247))[r(206)](r(233),"bundleName of debugging project")[r(206)](r(210),"select a device to debug")[r(207)](t(e))}),[n(200),n(223),n(211)].forEach(function(e){var r=n;o[r(216)](e).description(e).option(r(233),"bundleName of debugging project")[r(206)](r(210),"select a device to debug").action(t(e))})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x3901e7=_0x3145;function _regenerator(){var y,v=_0x3145,e=v(568)==typeof Symbol?Symbol:{},r=e[v(573)]||v(560),n=e[v(527)]||v(566);function t(e,r,n,t){var i,o,a,c,s,u,f,p,g,_,h=v,r=r&&r[h(572)]instanceof P?r:P,r=Object.create(r.prototype);return _regeneratorDefine2(r,h(501),(i=e,o=n,p=t||[],g=!1,_={p:f=0,n:0,v:y,a:l,f:l[(u=h)(576)](y,4),d:function(e,r){return a=e,c=0,s=y,_.n=r,d}},function(e,r,n){var t=u;if(1<f)throw TypeError(t(551));for(g&&1===r&&l(r,n),c=r,s=n;(x=c<2?y:s)||!g;){a||(c?c<3?(1<c&&(_.n=-1),l(c,s)):_.n=s:_.v=s);try{if(f=2,a){if(c||(e=t(516)),x=a[e]){if(!(x=x.call(a,s)))throw TypeError("iterator result is not an object");if(!x[t(531)])return x;s=x[t(535)],c<2&&(c=0)}else 1===c&&(x=a.return)&&x.call(a),c<2&&(s=TypeError(t(542)+e+t(543)),c=1);a=y}else if((x=(g=_.n<0)?s:i[t(502)](o,_))!==d)break}catch(e){a=y,c=1,s=e}finally{f=1}}return{value:x,done:g}}),!0),r;function l(e,r){for(c=e,s=r,x=0;!g&&f&&!n&&x<p.length;x++){var n,t=p[x],i=_.p,o=t[2];3<e?(n=o===r)&&(s=t[(c=t[4])?5:c=3],t[4]=t[5]=y):t[0]<=i&&((n=e<2&&i<t[1])?(c=0,_.v=r,_.n=t[1]):i<o&&(n=e<3||t[0]>r||o<r)&&(t[4]=e,t[5]=r,_.n=o,c=0))}if(n||1<e)return d;throw g=!0,r}}var d={};function P(){}function i(){}function o(){}var x=Object.getPrototypeOf,e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),a=o[v(572)]=P[v(572)]=Object[v(581)](e);function c(e){var r=v;return Object[r(503)]?Object[r(503)](e,o):(e[r(536)]=o,_regeneratorDefine2(e,n,r(564))),e.prototype=Object.create(a),e}return i.prototype=o,_regeneratorDefine2(a,v(514),o),_regeneratorDefine2(o,v(514),i),i[v(554)]=v(564),_regeneratorDefine2(o,n,v(564)),_regeneratorDefine2(a),_regeneratorDefine2(a,n,v(529)),_regeneratorDefine2(a,r,function(){return this}),_regeneratorDefine2(a,v(517),function(){return v(519)}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var o=_0x3145,a=Object[o(548)];try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,n,t){var i=o;r?a?a(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x3145(501)](r,n,e)})})(i(516),0),t(i(583),1),t(i(569),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,i,o,a){var c=_0x3145;try{var s=e[o](a),u=s[c(535)]}catch(e){return void n(e)}s[c(531)]?r(u):Promise[c(549)](u)[c(505)](t,i)}function _asyncToGenerator(c){return function(){var e=this,a=arguments;return new Promise(function(r,n){var t=c[_0x3145(499)](e,a);function i(e){asyncGeneratorStep(t,r,n,i,o,"next",e)}function o(e){asyncGeneratorStep(t,r,n,i,o,"throw",e)}i(void 0)})}}(()=>{for(var e=_0x3145,r=_0x2312();;)try{if(663974==-parseInt(e(534))+parseInt(e(515))/2+-parseInt(e(532))/3+-parseInt(e(540))/4+-parseInt(e(506))/5+parseInt(e(557))/6+-parseInt(e(538))/7*(-parseInt(e(565))/8))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var fs=require("fs"),path=require(_0x3901e7(561)),cachedir=require(_0x3901e7(544)),signTools=require(_0x3901e7(541)),log4js=require("../../common/log4js"),logger=log4js[_0x3901e7(577)](_0x3901e7(558));function _0x3145(e,r){var n=_0x2312();return(_0x3145=function(e,r){return n[e-=499]})(e,r)}function ensureDir(e){var r=_0x3901e7,e=path[r(556)](e);return fs.existsSync(e)||fs[r(522)](e,{recursive:!0}),e}function getParams(e){var r=_0x3901e7,n=e[r(533)],t=e.signPrivateKeyPath,i=e[r(518)],o=e[r(562)],e=e[r(552)];return{signPrivateKeyPath:t=n&&!t?path.join(n,r(547)):t,signPublicKeyPath:i=n&&!i?path[r(512)](n,r(539)):i,signProfilePath:o=n&&!o?path[r(512)](n,"sign/ascf-build.p12"):o,signPwd:e}}function genCertAndP12(e,r){return _genCertAndP[_0x3901e7(499)](this,arguments)}function _0x2312(){var e=["option","Generator is already running","signPwd","genCertAndP12 error","displayName","Sign public key path","dirname","7951176QaiYFy","ascf-sign-tools","existsSync","@@iterator","path","signProfilePath","private.pem","GeneratorFunction","5501632qAArbJ","@@toStringTag","printFp","function","return","concat","Password of the p12 file","prototype","iterator","action","generate p12","bind","getLogger","tmp sign dir ","requiredOption","description","create","signPrivateKeyPath","throw","apply","Sign tools to generate keypair, p12 file and view fingerprint","_invoke","call","setPrototypeOf","input","then","5651330iNTPrL","exports","--sign-public-key-path [path]","ascf-cache-tmp-sign","--sign-pwd [pwd]","--sign-private-key-path [path]","join","p12 File Path","constructor","2277612QOhAIJ","next","toString","signPublicKeyPath","[object Generator]","generate-keypair","Sign private key path","mkdirSync","-r, --projectRoot [projectRoot]","finally","warn","genP12","toStringTag","-i, --input <input-directory>","Generator","command","done","1567920okvskD","projectRoot","511947JbSXbT","value","__proto__","signtools","7iNVKpQ","sign/certificate.pem","1291516iujoTt","../../ascf-sign-tools","The iterator does not provide a '","' method","cachedir","genCert","generate keypair","sign/private.pem","defineProperty","resolve"];return(_0x2312=function(){return e})()}function _genCertAndP(){return(_genCertAndP=_asyncToGenerator(_regenerator().m(function e(r,t){var i,o,a;return _regenerator().w(function(e){for(var n=_0x3145;;)if(0===e.n)return i=cachedir(n(509)),logger.debug(n(578)[n(570)](i)),o=path[n(512)](i,n(563)),a=path[n(512)](i,"certificate.pem"),ensureDir(o),e.a(2,signTools[n(545)](o,a)[n(505)](function(){return signTools[n(526)](r,o,a,t)}).catch(function(e){var r=n;logger.error(r(553),e)})[n(524)](function(){fs.rmSync(i,{recursive:!0,force:!0})}))},e)}))).apply(this,arguments)}module[_0x3901e7(507)]={install:function(e){var r,n,t,i=_0x3901e7,e=e[i(530)](i(537)).description(i(500));e[i(530)](i(520))[i(580)]("generate keypair")[i(550)](i(523),i(533)).option(i(511),"Sign private key path").option("--sign-public-key-path [path]",i(555)).action((t=_asyncToGenerator(_regenerator().m(function e(n){var t,i;return _regenerator().w(function(e){for(var r=_0x3145;;)if(0===e.n)return i=getParams(n),t=i[r(582)],i=i[r(518)],ensureDir(t),ensureDir(i),e.a(2,signTools[r(545)](t,i))},e)})),function(e){return t[_0x3145(499)](this,arguments)})),e.command("generate-p12").description(i(575))[i(550)](i(523),i(533))[i(550)](i(511),i(521))[i(550)](i(508),"Sign public key path")[i(550)]("--sign-profile-path [path]",i(513))[i(579)](i(510),i(571)).action((n=_asyncToGenerator(_regenerator().m(function e(n){var t,i,o,a;return _regenerator().w(function(e){for(var r=_0x3145;;)switch(e.n){case 0:if(a=getParams(n),t=a.signPrivateKeyPath,i=a[r(518)],o=a[r(562)],a=a[r(552)],ensureDir(o),fs[r(559)](t)&&fs[r(559)](i)){e.n=1;break}return logger[r(525)](r(546)),e.a(2,genCertAndP12(o,a));case 1:return e.a(2,signTools.genP12(o,t,i,a))}},e)})),function(e){return n.apply(this,arguments)})),e[i(530)](i(567))[i(580)]("View Fingerprint")[i(579)](i(528))[i(574)]((r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0x3145;;)switch(e.n){case 0:signTools[r(567)](n[r(504)]);case 1:return e.a(2)}},e)})),function(e){return r[_0x3145(499)](this,arguments)}))}};
|
package/lib/common/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1862(){var e=["configs","728052RgGFId","swiper","checkbox","slider","label","button","17000592xeeasB","babel","video","3519000eEhzUr","camera","web-view","radio-group","picker-view","env","rich-text","NODE_ENV","18906uJhEvC","progress","577844nJDRSW","icon","2874808TVXNZo","movable-view","519810rLAxvc","Map","77UWNOvi","form","input","picker-view-column","movable-area","radio","isProd","development","navigator","swiper-item","picker"];return(_0x1862=function(){return e})()}var _0x4840b8=_0x21db;function _0x21db(e,r){var t=_0x1862();return(_0x21db=function(e,r){return t[e-=234]})(e,r)}(()=>{for(var e=_0x21db,r=_0x1862();;)try{if(383505==+parseInt(e(241))+parseInt(e(237))/2+parseInt(e(255))/3+parseInt(e(239))/4+parseInt(e(264))/5+parseInt(e(235))/6*(parseInt(e(243))/7)+-parseInt(e(261))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var configs={notaddtodo:!1,parser:_0x4840b8(262),devtool:void 0,componentList:[_0x4840b8(247),_0x4840b8(240),"scroll-view",_0x4840b8(256),_0x4840b8(252),"view",_0x4840b8(238),_0x4840b8(236),_0x4840b8(270),"text",_0x4840b8(260),_0x4840b8(257),"checkbox-group",_0x4840b8(244),_0x4840b8(245),_0x4840b8(259),_0x4840b8(253),_0x4840b8(268),_0x4840b8(246),_0x4840b8(248),_0x4840b8(267),_0x4840b8(258),"switch","textarea",_0x4840b8(251),"image",_0x4840b8(263),_0x4840b8(265),_0x4840b8(242),"canvas",_0x4840b8(266)],templateHoist:!1,ascfLazyImportFiles:{},skipApiValidator:!0,serve:!1,deviceId:!1,isProd:function(){var e=_0x4840b8;return process[e(269)][e(234)]!==e(250)},isInjectDebugTimer:function(){return!configs[_0x4840b8(249)]()},requiredComponents:[],tabBarUsingComponents:{},tabBarList:[],asyncJsList:{},jsLoaderList:new Set,isRelease:!0};exports[_0x4840b8(254)]=configs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x3cc1(){var r=["7397243OjQAfm","exports","1957305HpMOUN","575466XfLuXz","crossAtomicService","224338mwNgBR","3199270DYnzWO","11578500RAKDuh","2miXrtW","35SkwVOv","11xqkOuD","8gNCshW","1756500RubwcI"];return(_0x3cc1=function(){return r})()}var _0x3510cb=_0x526c;function _0x526c(r,c){var t=_0x3cc1();return(_0x526c=function(r,c){return t[r-=430]})(r,c)}(()=>{for(var r=_0x526c,c=_0x3cc1();;)try{if(750525==-parseInt(r(439))+parseInt(r(442))/2*(parseInt(r(436))/3)+-parseInt(r(433))/4+-parseInt(r(430))/5*(-parseInt(r(437))/6)+-parseInt(r(434))/7*(-parseInt(r(432))/8)+-parseInt(r(441))/9+-parseInt(r(440))/10*(-parseInt(r(431))/11))break;c.push(c.shift())}catch(r){c.push(c.shift())}})();var BUILD_TARGET_AS="atomicservice",BUILD_TARGET_QS=_0x3510cb(438);module[_0x3510cb(435)]={BUILD_TARGET_AS:BUILD_TARGET_AS,BUILD_TARGET_QS:BUILD_TARGET_QS};
|
package/lib/common/log4js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var _0x351523=_0x329f;function _0x329f(e,r){var t=_0x2127();return(_0x329f=function(e,r){return t[e-=219]})(e,r)}function _0x2127(){var e=["ASCF_LOG_FILE","699711YdkxMg","6442296hOvFnP","1708822WWYXWe","12TrSbGE","exports","3360495HzobwA","setLoggerConfig","8OuqktI","2674244ohwljq","getLogger","692412XeFDas","16110akMmPa","../ascf-base","5679jhlZVW"];return(_0x2127=function(){return e})()}(()=>{for(var e=_0x329f,r=_0x2127();;)try{if(695746==-parseInt(e(232))+parseInt(e(219))/2+-parseInt(e(227))/3+-parseInt(e(225))/4+parseInt(e(222))/5*(parseInt(e(220))/6)+parseInt(e(233))/7*(-parseInt(e(224))/8)+parseInt(e(230))/9*(parseInt(e(228))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x351523(229)),ASCF_LOG_FILE=_require[_0x351523(231)],setLoggerConfig=_require[_0x351523(223)],getLogger=_require[_0x351523(226)];module[_0x351523(221)]={ASCF_LOG_FILE:ASCF_LOG_FILE,setLoggerConfig:setLoggerConfig,getLogger:getLogger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x230ede=_0x199b;function _typeof(r){var t=_0x199b;return(_typeof=t(370)==typeof Symbol&&"symbol"==typeof Symbol[t(322)]?function(r){return typeof r}:function(r){var e=t;return r&&"function"==typeof Symbol&&r[e(289)]===Symbol&&r!==Symbol.prototype?e(315):typeof r})(r)}function _classCallCheck(r,e){var t=_0x199b;if(!(r instanceof e))throw new TypeError(t(334))}function _defineProperties(r,e){for(var t=_0x199b,n=0;n<e[t(288)];n++){var o=e[n];o[t(355)]=o[t(355)]||!1,o[t(299)]=!0,"value"in o&&(o.writable=!0),Object[t(305)](r,_toPropertyKey(o[t(365)]),o)}}function _createClass(r,e,t){var n=_0x199b;return e&&_defineProperties(r.prototype,e),t&&_defineProperties(r,t),Object[n(305)](r,n(347),{writable:!1}),r}function _toPropertyKey(r){var e=_0x199b,r=_toPrimitive(r,e(375));return e(315)==_typeof(r)?r:r+""}function _0x199b(r,e){var t=_0x41ea();return(_0x199b=function(r,e){return t[r-=287]})(r,e)}function _toPrimitive(r,e){var t=_0x199b;if(t(335)!=_typeof(r)||!r)return r;var n=r[Symbol[t(297)]];if(void 0===n)return(t(375)===e?String:Number)(r);n=n[t(358)](r,e||t(368));if(t(335)!=_typeof(n))return n;throw new TypeError(t(344))}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){var t,n=_0x199b;if(r)return n(375)==typeof r?_arrayLikeToArray(r,e):(t={}[n(319)][n(358)](r).slice(8,-1),"Map"===(t=n(301)===t&&r.constructor?r[n(289)][n(346)]:t)||n(377)===t?Array[n(318)](r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(312)](t)?_arrayLikeToArray(r,e):void 0)}function _iterableToArray(r){var e=_0x199b;if("undefined"!=typeof Symbol&&null!=r[Symbol[e(322)]]||null!=r[e(313)])return Array[e(318)](r)}function _arrayWithoutHoles(r){if(Array[_0x199b(291)](r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){var t=_0x199b;(null==e||e>r.length)&&(e=r[t(288)]);for(var n=0,o=Array(e);n<e;n++)o[n]=r[n];return o}(()=>{for(var r=_0x199b,e=_0x41ea();;)try{if(192016==+parseInt(r(371))*(-parseInt(r(369))/2)+-parseInt(r(374))/3*(-parseInt(r(329))/4)+-parseInt(r(338))/5*(-parseInt(r(330))/6)+parseInt(r(327))/7*(-parseInt(r(303))/8)+-parseInt(r(342))/9+parseInt(r(298))/10*(-parseInt(r(363))/11)+-parseInt(r(366))/12*(-parseInt(r(314))/13))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x230ede(324),log4js=require("./log4js.js"),logger=log4js.getLogger("logger-plugin");function defaultFormatter(r,e){var n=_0x230ede;return r[n(349)](function(r,e){var t=n;return[][t(308)](_toConsumableArray(r),["\n"[t(308)](e[t(351)])])},[])}function babelSyntaxError(r){var e=_0x230ede;return isBabelSyntaxError(r)&&(r[e(351)]=cleanStackTrace(r[e(351)])),r}function isBabelSyntaxError(r){var e=_0x230ede;return r.name===e(307)&&r.message.includes(e(300))}function cleanStackTrace(r){var e=_0x230ede;return r[e(290)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"")[e(290)](/^Module build failed.*:\s/,e(287))}function moduleNotFoundError(r){var e,t=_0x230ede;return r[t(346)]===t(296)&&r.message[t(320)](TYPE)&&(r[t(351)]=r.message[t(290)](TYPE,t(364)[t(308)](TYPE)),e=r[t(345)]&&r[t(345)][t(362)])&&(r.message+=t(360)[t(308)](e)),r}var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x230ede;return{message:r[e(351)],file:r.file,origin:r[e(345)],name:r[e(346)],severity:0,webpackError:r}}function cleanMessage(r){var e=_0x230ede;return r.replace(e(354),"")[e(290)](/Module Warning[^\n]+\n/,"")[e(290)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}return r.map(extractError).map(function(r){return e.reduce(t,r)})}function formatErrors(e,r,t){var n=_0x230ede;return r[n(361)](function(r){return r(e,t)||[]})[n(349)](function(r,e){return r[_0x199b(308)](e)},[])}function _0x41ea(){var r=["warning","435490WfMVOQ","SUCCESS ","compilation","formatters","3258135UiCbbo",", elapsed: ","@@toPrimitive must return a primitive value.","origin","name","prototype","error","reduce","hooks","message","warningCount","transformers","(Emitted value instead of an instance of Error) ","enumerable","apply","errorCount","call","assign","\n@ ","map","resource","247841eOTqyG","ERROR: ","key","3539148aIndti","showCompileTime","default","58034ZCuIHi","function","3VivlSB","endTime","round","766299EiPYRP","string","some","Set","options","Error: ","length","constructor","replace","isArray","displayErrors","errors","calculate","\nCOMPILE RESULT:","ModuleNotFoundError","toPrimitive","10mUpcpr","configurable","SyntaxError","Object","showtime","358368rYHBtr","BuildLogOutputPlugin","defineProperty","FAIL ","ModuleBuildError","concat","fatal","hasErrors","warnings","test","@@iterator","26qkRhqo","symbol","beginTime","forEach","from","toString","includes","getBuildMsg","iterator","tap","Module not found","warnCount","done","42fOloJG","info","4jEsrWQ","6ZADHIT","warn","stringify","printCompileResult","Cannot call a class as a function","object","noteCount"];return(_0x41ea=function(){return r})()}function getCompileTime(r){var e=_0x230ede,t=r[e(372)],r=r.startTime;logger[e(328)]("compileTime: ".concat(t-r," ms"))}function _dropRepeat(r){var e=_0x230ede;return r[e(349)](function(r,t){var n=e;return r[n(376)](function(r){var e=n;return r.message===t[e(351)]})?r:r[n(308)](t)},[])}var BuildLogOutputPlugin=(()=>{var l=_0x230ede;return _createClass(function r(){var e=_0x199b,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t[e(367)],n=void 0!==n&&n,t=t[e(378)];_classCallCheck(this,r),this.errorCount=0,this.warningCount=0,this[e(336)]=0,this[e(367)]=n||"true"===process.env[e(302)],this[e(341)]=defaultFormatters,this[e(353)]=defaultTransformers,this[e(378)]=t},[{key:l(356),value:function(r){var u=l,s=this;r[u(350)][u(326)][u(323)](u(304),function(e){var t=u,r=(s.dropRepeat(e),e[t(340)]),n=r.errors,o=r[t(311)],a=e[t(310)](),i=e.hasWarnings();setTimeout(function(){var r=t;a&&s[r(292)](n,r(348)),i&&s[r(292)](o,r(337)),s.calculate(e,n,o),s[r(333)](),s.showCompileTime&&getCompileTime(e)})})}},{key:"dropRepeat",value:function(r){var e=l;r[e(340)].warnings=_dropRepeat(r[e(340)][e(311)]),r.compilation.errors=_dropRepeat(r[e(340)][e(293)])}},{key:l(294),value:function(r,e){var t=l,n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],r=r[t(340)].extraInfo||{},a=r.errorCount,a=void 0===a?0:a,i=r[t(325)],i=void 0===i?0:i,r=r.noteCount,r=void 0===r?0:r;this[t(357)]=e[t(288)]+a,this[t(352)]=i,this[t(336)]=r,o[t(317)](function(r){var e=t,r=r.message;/^NOTE:/[e(312)](cleanMessage(r))?n.noteCount++:n[e(352)]++})}},{key:l(333),value:function(){var r,e=l,t=this.errorCount,n=this[e(352)],o=this[e(336)],a=(new Date).getTime()-global[e(316)],a=e(343)+Math[e(373)](a/1e3)+"s\n\nYou can check full log: "+log4js.ASCF_LOG_FILE;0<t+n+o?(r=e(t?306:339),n=Object[e(359)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),t?logger[e(309)]("\nCOMPILE RESULT:"[e(308)](r).concat(JSON[e(332)](n))+a):logger[e(331)](e(295)[e(308)](r)[e(308)](JSON[e(332)](n))+a)):logger[e(328)]("\nCOMPILE RESULT:SUCCESS"+a)}},{key:l(292),value:function(r,t){var n=l;formatErrors(transformErrors(r,this[n(353)]),this[n(341)],t)[n(317)](function(r){var e=n;t===e(348)&&logger.error(cleanMessage(r)),t===e(337)&&logger[e(331)](cleanMessage(r))})}},{key:l(321),value:function(r,e){var t=l;return formatErrors(transformErrors(r,this[t(353)]),this[t(341)],e)[t(361)](function(r){return cleanMessage(r)})}}])})();module.exports=BuildLogOutputPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x23d7(r,t){var n=_0xd765();return(_0x23d7=function(r,t){return n[r-=324]})(r,t)}function _0xd765(){var r=["directives","3603576JGJjvW","18gseWye","value","splice","759606FfkCLh","7074530UEhWJZ","473789GxaAWq","length","1371072WBJxMX","141284mKfEPG","2jomfUB","2931957MHUDoc","65yRkLvm"];return(_0xd765=function(){return r})()}(()=>{for(var r=_0x23d7,t=_0xd765();;)try{if(307844==+parseInt(r(334))*(parseInt(r(324))/2)+-parseInt(r(332))/3+parseInt(r(337))/4*(-parseInt(r(326))/5)+parseInt(r(328))/6+-parseInt(r(325))/7+-parseInt(r(336))/8*(parseInt(r(329))/9)+parseInt(r(333))/10)break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module.exports=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x23d7,n=r.node[t(327)],e=n[t(335)]-1;0<=e;e--)"use strict"===n[e][t(330)][t(330)]&&n[t(331)](e,1)}}}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2a4c(r,e){var n=_0x1fc3();return(_0x2a4c=function(r,e){return n[r-=457]})(r,e)}var _0x193007=_0x2a4c;function _0x1fc3(){var r=["36OOrehE","8382GBMRWZ","\\$&","10680JKqtBJ","prototype","2335100pNTDmv","33708789jxvqDg","replaceAll","6403296uuiDIF","replace","1509683LcYzvx","820wViaHL","1523620LbsBsR"];return(_0x1fc3=function(){return r})()}(()=>{for(var r=_0x2a4c,e=_0x1fc3();;)try{if(827583==-parseInt(r(469))+parseInt(r(459))/2*(parseInt(r(460))/3)+-parseInt(r(464))/4+-parseInt(r(457))/5*(parseInt(r(462))/6)+parseInt(r(458))/7+-parseInt(r(467))/8+parseInt(r(465))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),exports[_0x193007(466)]=function(r,e,n){var t=_0x193007;return String[t(463)][t(466)]?null==r?void 0:r.replaceAll(e,n):(e=e.replace(/[.*+?^${}()|[\]\\]/g,t(461)),e=new RegExp(e,"g"),null==r?void 0:r[t(468)](e,n))};
|
package/lib/common/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4b4e3e=_0x2f5a;function _createForOfIteratorHelper(e,r){var t,n,o,i,s=_0x2f5a,a=s(316)!=typeof Symbol&&e[Symbol[s(401)]]||e[s(378)];if(a)return o=!(n=!0),{s:function(){a=a[s(359)](e)},n:function(){var e=s,r=a[e(354)]();return n=r[e(328)],r},e:function(e){o=!0,t=e},f:function(){var e=s;try{n||null==a.return||a[e(323)]()}finally{if(o)throw t}}};if(Array[s(382)](e)||(a=_unsupportedIterableToArray(e))||r&&e&&s(356)==typeof e.length)return a&&(e=a),i=0,{s:r=function(){},n:function(){return i>=e[s(394)]?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){var t,n=_0x2f5a;if(e)return n(350)==typeof e?_arrayLikeToArray(e,r):(t={}[n(290)][n(359)](e)[n(297)](8,-1),"Map"===(t=n(385)===t&&e[n(270)]?e.constructor[n(348)]:t)||n(368)===t?Array[n(376)](e):n(390)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){(null==r||r>e[_0x2f5a(394)])&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function _0x5d8e(){var e=["done","8SAYsxF","11646675hjksrh","prototype","build-profile.json5","forEach","value","2089360rhbMwE","readFileSync","ascfRoot","projectRoot","DEVECO_DIR","main","json5","keys","modules","ascf/ascf_src/base.hxml","node","module","isOSX","name","development","string","2105UXzMUy","moveFiles"," is not found","next","templateHoist","number","hvigorw","mode","call","projectPath","versionType","serve","true","_versionType","getBundleName","handleResolveAlias","debug","Set","production","endsWith","execSafe","app.json5","concat","getEntryPkgPath","false","from","writeFileSync","@@iterator","DevEco Studio","1201207wMIGkk","configs is: ","isArray","1529972bxujRz","5262WMnOJb","Object","columnNumber","beta","split","common-utils","Arguments","babel","bin","disableSubpackages","length","find Hxml error:","fatal","bundleName","includes","cwd","tools","iterator","getModuleNames","isDirectory","existsSync","getLogger","error","ascf","getHvigorwPath","constructor","child_process","projectCfg","join","startsWith","darwin","path","getNodePath","readJsonFile","RAWFILE_DIR","replace","isFile","clearResource","all","ascf_build","hasHxml","copyFileSync","release","5522SAVVDI","ascf_src","toString","trim","initConfigs","uglifyjs","env","lineNumber","utf-8","slice","skipApiValidator","swc","ascf/ascf_src","ascf.config.json","./log4js.js","src/main/resources/rawfile","Moving files error:","3010365mGVstn","app","parse","hasOwnProperty","execSync","mkdirSync","utf8","resolve","apply","C:\\Program Files\\Huawei\\DevEco Studio\\bin","watch","undefined","module.json5","deepMerge","abilities","map","parse json file error at ","stringify","return","./config","readdirSync","node_modules","NODE_ENV"];return(_0x5d8e=function(){return e})()}(()=>{for(var e=_0x2f5a,r=_0x5d8e();;)try{if(587471==+parseInt(e(288))*(-parseInt(e(329))/2)+-parseInt(e(305))/3+parseInt(e(383))/4+parseInt(e(351))/5*(parseInt(e(384))/6)+-parseInt(e(380))/7+-parseInt(e(335))/8+parseInt(e(330))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var rimraf=require("rimraf"),fs=require("fs"),path=require(_0x4b4e3e(276)),JSON5=require(_0x4b4e3e(341)),os=require("os"),_require=require(_0x4b4e3e(271)),execSync=_require[_0x4b4e3e(309)],json5=require(_0x4b4e3e(341)),log4js=require(_0x4b4e3e(302)),_require2=require(_0x4b4e3e(324)),configs=_require2.configs,logger=log4js[_0x4b4e3e(405)](_0x4b4e3e(389)),curProjectPath=null,curProjectInfo=null;function getProjectInfo(){var e,r,t,n=_0x4b4e3e;return process.env[n(338)]===curProjectPath&&curProjectInfo||(r=readProjectCfgJson(e=process.env[n(338)]||process[n(399)]())||{},t=path.resolve(e,n(300)),t=r[n(337)]?path[n(312)](t,r[n(337)]):t,n=path[n(312)](e,n(407),n(284)),initVersionType(),curProjectInfo={projectPath:curProjectPath=e,projectCfg:r,ascfSrcPath:t,ascfBuildPath:n}),curProjectInfo}function _0x2f5a(e,r){var t=_0x5d8e();return(_0x2f5a=function(e,r){return t[e-=270]})(e,r)}function initOptions(e){var r,t=_0x4b4e3e;for(r in e)Object.prototype[t(308)][t(359)](e,r)&&(e[r]===t(375)&&(e[r]=!1),e[r]===t(363))&&(e[r]=!0)}function readJsonFile(r){var t=_0x4b4e3e;if(!fs[t(404)](r))return{};var e={};try{e=JSON5[t(307)](fs[t(336)](r,t(296))[t(290)]()||"{}")}catch(e){throw new Error(t(321).concat(r,":")[t(373)](e[t(295)],":")[t(373)](e[t(386)]," "))}return e}function writeJsonFile(e,r){var t=_0x4b4e3e;try{fs[t(377)](e,JSON[t(322)](r,null,2))}catch(e){throw"ERROR: Write JSON file failed: "[t(373)](e)}}function initVersionType(){var e=_0x4b4e3e,r=[e(367),e(387),"release"],t=process.env[e(361)];global._versionType=e(367),t&&r[e(398)](t)?global[e(364)]=t:(r=process.env[e(293)]===e(363),global[e(364)]=e(r?287:367))}function readProjectCfgJson(e){var r,t=_0x4b4e3e,e=path[t(273)](e,t(407),t(289),t(301));return r=fs.existsSync(e)?JSON[t(307)](fs[t(336)](e)[t(290)]()):r}function isOSX(){var e=_0x4b4e3e;return os.platform()===e(275)}function hasHxml(e){var r=_0x4b4e3e;try{var t,n=_createForOfIteratorHelper(fs[r(325)](e,{withFileTypes:!0}));try{for(n.s();!(t=n.n())[r(328)];){var o=t[r(334)],i=path[r(273)](e,o[r(348)]);if(o[r(281)]()&&o[r(348)].endsWith(".hxml")||o.isDirectory()&&o[r(348)]!==r(326)&&hasHxml(i))return!0}}catch(e){n.e(e)}finally{n.f()}}catch(e){logger[r(406)](r(395),e)}return!1}function moveFiles(o,i){var s=_0x4b4e3e;try{fs[s(310)](i,{recursive:!0}),fs[s(325)](o,{withFileTypes:!0})[s(333)](function(e){var r=s,t=path[r(273)](o,e[r(348)]),n=path[r(273)](i,e[r(348)]);e[r(281)]()?fs[r(286)](t,n):e[r(403)]()&&e[r(348)]!==r(326)&&moveFiles(t,n)})}catch(e){logger[s(406)](s(304),e)}}function handleResolveAlias(e,r){var t,n=_0x4b4e3e,o=_createForOfIteratorHelper(Object[n(342)](r).sort(function(e,r){return r[n(394)]-e.length}));try{for(o.s();!(t=o.n())[n(328)];){var i,s,a,c=t[n(334)];if(c.endsWith("/*")&&r[c][n(370)]("/*"))if(e[n(274)](c[n(297)](0,-1))||e===c[n(297)](0,-1))return i=r[c][n(297)](0,-1),s=e[n(297)](c.length-1),a=(a=path[n(273)](i,s)[n(280)](/\\/g,"/"))[n(274)]("/")?a:"/"+a}}catch(e){o.e(e)}finally{o.f()}return e}function getEntryPkgPath(){var e,r=_0x4b4e3e,t=getProjectInfo().projectPath,n=readJsonFile(path[r(312)](t,r(332)));if(0<(null==n||null==(e=n.modules)?void 0:e.length))return path[r(273)](t,n[r(343)][0].srcPath);logger[r(396)]("getEntryPkgPath error, build-profile.json5 file modules is null")}function deepMerge(e){for(var r=_0x4b4e3e,t=arguments[r(394)],n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(!n[r(394)])return e;var i=n.shift();if(!i)return deepMerge.apply(void 0,[e][r(373)](n));for(var s=0,a=Object[r(342)](i);s<a.length;s++){var c=a[s],f=i[c];isObject(f)?(null==e[c]&&(e[c]={}),deepMerge(e[c],f)):void 0!==f&&(e[c]=f)}return deepMerge[r(313)](void 0,[e].concat(n))}function isObject(e){var r=_0x4b4e3e;return"[object Object]"===Object[r(331)][r(290)][r(359)](e)}function getIdeBinPath(){var e=_0x4b4e3e,r=null==(r=process[e(294)][e(379)]||process.env[e(339)])?void 0:r[e(388)](";")[0][e(291)](),t=r||"/Applications/DevEco-Studio.app/Contents/tools",r=r||e(314);return isOSX()?t:r}function adjustPathByPlatform(e){return isOSX()?e:'"'.concat(e,'"')}exports.getProjectInfo=getProjectInfo,exports[_0x4b4e3e(279)]=_0x4b4e3e(303),exports.TOOLKIT_PATH=path[_0x4b4e3e(273)](__dirname,"..",".."),exports[_0x4b4e3e(292)]=function(e,r){var t=_0x4b4e3e,n=(initOptions(r),getProjectInfo()),o=r[t(315)]||r[t(362)]||void 0!==r[t(358)]&&r[t(358)]!==t(369);process[t(294)][t(327)]&&!o||(process[t(294)][t(327)]=o?t(349):"production"),deepMerge(configs,n[t(272)],r),process.env[t(282)]=o||configs.clear?"yes":"no",configs.parser=configs[t(299)]?t(299):t(391),void 0===configs[t(355)]&&fs[t(404)](path[t(312)](e,t(344)))&&(configs.templateHoist=!0),configs[t(355)]=!!configs[t(355)],configs[t(298)]=o||configs[t(298)]!==t(375)&&configs[t(298)],configs[t(393)]=configs[t(362)]||(void 0===configs[t(393)]?!!o:configs[t(393)]),logger.debug(t(381)[t(373)](JSON[t(322)](configs)))},exports[_0x4b4e3e(282)]=function(e){var t=_0x4b4e3e;return Promise[t(283)](e[t(320)](function(r){if(fs[t(404)](r))return new Promise(function(e){rimraf.sync(r),e()})}))},exports[_0x4b4e3e(278)]=readJsonFile,exports.writeJsonFile=writeJsonFile,exports[_0x4b4e3e(347)]=isOSX,exports[_0x4b4e3e(285)]=hasHxml,exports[_0x4b4e3e(352)]=moveFiles,exports[_0x4b4e3e(366)]=handleResolveAlias,exports[_0x4b4e3e(374)]=getEntryPkgPath,exports[_0x4b4e3e(318)]=deepMerge,exports[_0x4b4e3e(371)]=function(e){var r,t=_0x4b4e3e,n=1<arguments[t(394)]&&void 0!==arguments[1]?arguments[1]:{};try{return null==(r=execSync(e,n))?void 0:r[t(290)](t(311))}catch(e){logger.warn("exec cmd error",e)}},exports[_0x4b4e3e(402)]=function(){var e,r,t=_0x4b4e3e,n=getEntryPkgPath(),n=path.join(n,"src",t(340),t(317));if(fs[t(404)](n))return r=fs[t(336)](n,t(296)),{name:null==(r=json5[t(307)](r))||null==(e=r[t(346)])?void 0:e[t(348)],entryAbility:null==r||null==(e=r[t(346)])||null==(e=e[t(319)])?void 0:e[t(320)](function(e){return e[t(348)]})};throw new Error(""[t(373)](n," is not found"))},exports[_0x4b4e3e(365)]=function(){var e,r=_0x4b4e3e,t=getProjectInfo()[r(360)],t=path[r(273)](t,"AppScope",r(372));if(fs.existsSync(t))return e=fs[r(336)](t,r(296)),null==(e=json5[r(307)](e))||null==(e=e[r(306)])?void 0:e[r(397)];throw new Error(""[r(373)](t,r(353)))},exports[_0x4b4e3e(277)]=function(){var e=_0x4b4e3e,r=getIdeBinPath(),r=path.join(r,"..","tools",e(345));e(345);return adjustPathByPlatform(isOSX()?path.join(r,e(345)):path[e(273)](r,"node.exe"))},exports[_0x4b4e3e(408)]=function(){var e=_0x4b4e3e,r=getIdeBinPath();return adjustPathByPlatform(path[e(273)](r,"..",e(400),"hvigor",e(392),e(357)))};
|
|
1
|
+
var _0x321ba6=_0x5ee1;function _createForOfIteratorHelper(e,r){var t,o,n,a,i=_0x5ee1,s=i(422)!=typeof Symbol&&e[Symbol[i(373)]]||e[i(439)];if(s)return n=!(o=!0),{s:function(){s=s[i(413)](e)},n:function(){var e=i,r=s[e(334)]();return o=r[e(356)],r},e:function(e){n=!0,t=e},f:function(){var e=i;try{o||null==s[e(336)]||s[e(336)]()}finally{if(n)throw t}}};if(Array.isArray(e)||(s=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e[i(355)])return s&&(e=s),a=0,{s:r=function(){},n:function(){return a>=e[i(355)]?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r};throw new TypeError(i(331))}function _0x5ee1(e,r){var t=_0x143c();return(_0x5ee1=function(e,r){return t[e-=297]})(e,r)}function _unsupportedIterableToArray(e,r){var t,o=_0x5ee1;if(e)return o(411)==typeof e?_arrayLikeToArray(e,r):(t={}[o(385)].call(e)[o(423)](8,-1),o(306)===t&&e[o(378)]&&(t=e[o(378)][o(323)]),o(431)===t||o(321)===t?Array[o(392)](e):o(377)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[o(387)](t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){var t=_0x5ee1;(null==r||r>e[t(355)])&&(r=e[t(355)]);for(var o=0,n=Array(r);o<r;o++)n[o]=e[o];return n}(()=>{for(var e=_0x5ee1,r=_0x143c();;)try{if(648796==+parseInt(e(328))*(parseInt(e(339))/2)+-parseInt(e(359))/3*(-parseInt(e(317))/4)+-parseInt(e(412))/5*(parseInt(e(324))/6)+parseInt(e(388))/7+-parseInt(e(430))/8+parseInt(e(402))/9+-parseInt(e(407))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var rimraf=require(_0x321ba6(375)),fs=require("fs"),path=require(_0x321ba6(345)),JSON5=require("json5"),os=require("os"),_require=require(_0x321ba6(322)),execSync=_require[_0x321ba6(419)],json5=require("json5"),log4js=require(_0x321ba6(438)),_require2=require(_0x321ba6(351)),configs=_require2[_0x321ba6(428)],logger=log4js[_0x321ba6(303)](_0x321ba6(330)),curProjectPath=null,curProjectInfo=null;function getProjectInfo(){var e,r,t,o=_0x321ba6;return process[o(309)].projectRoot===curProjectPath&&curProjectInfo||(r=readProjectCfgJson(e=process[o(309)][o(363)]||process[o(383)]())||{},t=path[o(384)](e,o(308)),t=r[o(400)]?path[o(384)](t,r[o(400)]):t,o=path.resolve(e,o(424),o(405)),curProjectInfo={projectPath:curProjectPath=e,projectCfg:r,ascfSrcPath:t,ascfBuildPath:o}),curProjectInfo}function _0x143c(){var e=["disableSubpackages","platform","ascf_src","concat"," is not found","skipApiValidator","prototype","includes","parser","copyFileSync","getLogger","readJsonFile","moveFiles","Object","AppScope","ascf/ascf_src","env","node","abilities","app.json5","DevEco Studio","warn","bin","configs is: ","20KIuuxl","mode","module","ascf/ascf_src/base.hxml","Set","child_process","name","274998KFngEv","serve","sort","Moving files error:","103813lejejk","sdk","common-utils","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","toolchains","execSafe","next","utf-8","return","handleResolveAlias","value","10TYjDfW","readdirSync","utf8","mkdirSync","hdc.exe","projectCfg","path","endsWith","development","find Hxml error:","all","apply","./config","writeJsonFile",".hxml","hvigor","length","done","production","win32","440031dCzTmY","***","getProjectInfo","clearResource","projectRoot","ascf.config.json","babel","getBundleName","existsSync","split","getHvigorwPath","readFileSync","openharmony","true","iterator","shift","rimraf","startsWith","Arguments","constructor","false","module.json5","hdc","signPwd","cwd","resolve","toString","join","test","6514949jFXypd","map","parse","isFile","from","tools","initConfigs","writeFileSync","darwin","getEntryPkgPath","getNodePath","keys","ascfRoot","C:\\Program Files\\Huawei\\DevEco Studio\\bin","6277680PyFQNY","parse json file error at ","columnNumber","ascf_build","templateHoist","83530ywlydr","isOSX","stringify","hvigorw","string","135OsSJRP","call","sync","isDirectory","srcPath","modules","error","execSync","hasHxml","node_modules","undefined","slice","ascf","ERROR: Write JSON file failed: ","hasOwnProperty","projectPath","configs","default","7888296qLJpKc","Map","clear","trim","DEVECO_DIR","exec cmd error","bundleName","swc","./log4js.js","@@iterator","deviceList"];return(_0x143c=function(){return e})()}exports[_0x321ba6(361)]=getProjectInfo,exports.RAWFILE_DIR="src/main/resources/rawfile",exports.TOOLKIT_PATH=path[_0x321ba6(386)](__dirname,"..","..");var SECURE_KEYS=["deviceId",_0x321ba6(440),_0x321ba6(382)];function logJsonStr(e){var o=_0x321ba6;return JSON[o(409)](e,function(e,r){var t=o;return SECURE_KEYS[t(300)](e)?null!=r?t(360):void 0:r})}function initOptions(e){var r,t=_0x321ba6;for(r in e)Object.prototype[t(426)][t(413)](e,r)&&(e[r]===t(379)&&(e[r]=!1),e[r]===t(372))&&(e[r]=!0)}function readJsonFile(r){var t=_0x321ba6;if(!fs.existsSync(r))return{};var e={};try{e=JSON5[t(390)](fs[t(370)](r,t(335))[t(385)]()||"{}")}catch(e){throw new Error(t(403)[t(444)](r,":")[t(444)](e.lineNumber,":")[t(444)](e[t(404)]," "))}return e}function writeJsonFile(e,r){var t=_0x321ba6;try{fs[t(395)](e,JSON[t(409)](r,null,2))}catch(e){throw t(425)[t(444)](e)}}function readProjectCfgJson(e){var r,t=_0x321ba6,e=path.join(e,t(424),t(443),t(364));return r=fs.existsSync(e)?JSON[t(390)](fs[t(370)](e)[t(385)]()):r}function isOSX(){var e=_0x321ba6;return os[e(442)]()===e(396)}function hasHxml(e){var r=_0x321ba6;try{var t,o=_createForOfIteratorHelper(fs.readdirSync(e,{withFileTypes:!0}));try{for(o.s();!(t=o.n())[r(356)];){var n=t.value,a=path[r(386)](e,n[r(323)]);if(n[r(391)]()&&n.name[r(346)](r(353))||n[r(415)]()&&"node_modules"!==n[r(323)]&&hasHxml(a))return!0}}catch(e){o.e(e)}finally{o.f()}}catch(e){logger[r(418)](r(348),e)}return!1}function moveFiles(n,a){var i=_0x321ba6;try{fs[i(342)](a,{recursive:!0}),fs[i(340)](n,{withFileTypes:!0}).forEach(function(e){var r=i,t=path[r(386)](n,e.name),o=path[r(386)](a,e[r(323)]);e[r(391)]()?fs[r(302)](t,o):e[r(415)]()&&e[r(323)]!==r(421)&&moveFiles(t,o)})}catch(e){logger[i(418)](i(327),e)}}function handleResolveAlias(e,r){var t,o=_0x321ba6,n=_createForOfIteratorHelper(Object[o(399)](r)[o(326)](function(e,r){var t=o;return r.length-e[t(355)]}));try{for(n.s();!(t=n.n())[o(356)];){var a,i,s,c=t[o(338)];if(c[o(346)]("/*")&&r[c][o(346)]("/*"))if(e[o(376)](c[o(423)](0,-1))||e===c[o(423)](0,-1))return a=r[c][o(423)](0,-1),i=e.slice(c[o(355)]-1),s=(s=path[o(386)](a,i).replace(/\\/g,"/"))[o(376)]("/")?s:"/"+s}}catch(e){n.e(e)}finally{n.f()}return e}function getEntryPkgPath(){var e,r=_0x321ba6,t=getProjectInfo()[r(427)],o=readJsonFile(path[r(384)](t,"build-profile.json5"));if(0<(null==o||null==(e=o[r(417)])?void 0:e[r(355)]))return path[r(386)](t,o[r(417)][0][r(416)]);logger.fatal("getEntryPkgPath error, build-profile.json5 file modules is null")}function deepMerge(e){for(var r=_0x321ba6,t=arguments[r(355)],o=new Array(1<t?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(!o[r(355)])return e;var a=o[r(374)]();if(a)for(var i=0,s=Object[r(399)](a);i<s[r(355)];i++){var c=s[i],f=a[c];isObject(f)?(null==e[c]&&(e[c]={}),deepMerge(e[c],f)):void 0!==f&&(e[c]=f)}return deepMerge[r(350)](void 0,[e][r(444)](o))}function isObject(e){var r=_0x321ba6;return"[object Object]"===Object[r(299)][r(385)][r(413)](e)}function getIdeBinPath(){var e=_0x321ba6,r=null==(r=process[e(309)][e(313)]||process.env[e(434)])?void 0:r[e(368)](";")[0][e(433)](),t=r||"/Applications/DevEco-Studio.app/Contents/tools",r=r||e(401);return isOSX()?t:r}function adjustPathByPlatform(e){var r=_0x321ba6;return isOSX()?e:'"'[r(444)](e,'"')}function getPath(){for(var e=_0x321ba6,r=getIdeBinPath(),t=arguments[e(355)],o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return adjustPathByPlatform(path[e(386)][e(350)](path,[r].concat(o)))}exports.logJsonStr=logJsonStr,exports[_0x321ba6(394)]=function(e,r){var t=_0x321ba6,o=(initOptions(r),getProjectInfo()),n=r.watch||r[t(325)]||void 0!==r[t(318)]&&r[t(318)]!==t(357);process[t(309)].NODE_ENV&&!n||(process[t(309)].NODE_ENV=t(n?347:357)),deepMerge(configs,o[t(344)],r),process.env.clearResource=n||configs[t(432)]?"yes":"no",configs[t(301)]=configs.swc?t(437):t(365),void 0===configs[t(406)]&&fs[t(367)](path[t(384)](e,t(320)))&&(configs[t(406)]=!0),configs[t(406)]=!!configs[t(406)],configs[t(298)]=n||configs[t(298)]!==t(379)&&configs[t(298)],configs[t(441)]=configs[t(325)]||(void 0===configs[t(441)]?!!n:configs[t(441)]),logger.debug(t(316).concat(logJsonStr(configs)))},exports[_0x321ba6(362)]=function(e){var o=_0x321ba6;return Promise[o(349)](e[o(389)](function(r){var t=o;if(fs[t(367)](r))return new Promise(function(e){rimraf[t(414)](r),e()})}))},exports[_0x321ba6(304)]=readJsonFile,exports[_0x321ba6(352)]=writeJsonFile,exports[_0x321ba6(408)]=isOSX,exports[_0x321ba6(420)]=hasHxml,exports[_0x321ba6(305)]=moveFiles,exports[_0x321ba6(337)]=handleResolveAlias,exports[_0x321ba6(397)]=getEntryPkgPath,exports.deepMerge=deepMerge,exports[_0x321ba6(333)]=function(e){var r,t=_0x321ba6,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};try{return null==(r=execSync(e,o))?void 0:r.toString(t(341))}catch(e){logger[t(314)](t(435),e)}},exports.getModuleNames=function(){var e,r,t=_0x321ba6,o=getEntryPkgPath(),o=path[t(386)](o,"src","main",t(380));if(fs[t(367)](o))return r=fs.readFileSync(o,"utf-8"),{name:null==(r=json5[t(390)](r))||null==(e=r[t(319)])?void 0:e.name,entryAbility:null==r||null==(e=r[t(319)])||null==(e=e[t(311)])?void 0:e[t(389)](function(e){return e[t(323)]})};throw new Error(""[t(444)](o,t(297)))},exports[_0x321ba6(366)]=function(){var e,r=_0x321ba6,t=getProjectInfo()[r(427)],t=path[r(386)](t,r(307),r(312));if(fs[r(367)](t))return e=fs[r(370)](t,r(335)),null==(e=json5.parse(e))||null==(e=e.app)?void 0:e[r(436)];throw new Error(""[r(444)](t,r(297)))},exports[_0x321ba6(398)]=function(){var e=_0x321ba6,r=getIdeBinPath(),r=path[e(386)](r,"..",e(393),e(310));e(310);return adjustPathByPlatform(isOSX()?path[e(386)](r,e(310)):path.join(r,"node.exe"))},exports[_0x321ba6(369)]=function(){var e=_0x321ba6;return getPath("..","tools",e(354),e(315),e(410))},exports.getHdcPath=function(){var e=_0x321ba6;return getPath("..",e(329),e(429),e(371),e(332),process.platform===e(358)?e(343):e(381))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x5cf52d=_0x4963,utils=((()=>{for(var e=_0x4963,r=_0x3ca7();;)try{if(556192==-parseInt(e(507))+parseInt(e(481))/2*(parseInt(e(478))/3)+-parseInt(e(505))/4*(parseInt(e(529))/5)+-parseInt(e(527))/6+-parseInt(e(509))/7+parseInt(e(511))/8+parseInt(e(510))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require(_0x5cf52d(517))),path=require(_0x5cf52d(531)),_require=require("semver"),satisfies=_require[_0x5cf52d(538)],_require2=require("child_process"),execSync=_require2[_0x5cf52d(488)],log4js=require(_0x5cf52d(513)),fs=require("fs"),logger=log4js[_0x5cf52d(487)](_0x5cf52d(500));function _0x3ca7(){var e=["warn"," does not depend on ASCF Shared Library. Select a project that does, or create a new one.","length","ERROR: ASCF shared library version is too low,","trim","dependencies","join","version-check","com.huawei.hms.ascfruntime","toString","isLatestAscfHar","concat","12dZzUrh","isAscfHspSatisfied","713741XiiYOG","isLatestAscfToolkit","1066002FhzRGd","7346943rTkNhh","8675584efGoRf","toLowerCase","./log4js.js","npm view @atomicservice/ascf-toolkit version","split","src","./utils"," info @atomicservice/ascfapi","readJsonFile","DevEco Studio ohpm ","latest[39m:","bin","update to "," is not exists, please ensure DevEco Studio installed","version","package.json","1936062xNscgf","/Applications/DevEco-Studio.app/Contents/tools","1719925jzGTeb","env","path","DEVECO_DIR",'INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"main","ohpm","TOOLKIT_PATH"," at entry/src/main/module.json5.","satisfies","WARN: ASCF shared library not found.","module","@atomicservice/ascfapi","6QbUaMo","INFO: ASCF Shared Library can be upgraded.","bundleName","876076IsGtmP","filter","WARNING: ASCF Shared Library can be upgraded.","versionCode","info","getEntryPkgPath","getLogger","execSync","DevEco Studio","latest","oh-package.json5","get project entry module.json."];return(_0x3ca7=function(){return e})()}function getOhpmFile(){var e=_0x5cf52d,r=(logger.debug("get ohpm from deveco dir."),null==(r=process[e(530)][e(489)]||process[e(530)][e(532)])?void 0:r[e(515)](";")[0][e(497)]()),t=r||e(528),r=r||"C:\\Program Files\\Huawei\\DevEco Studio\\bin",t=utils.isOSX()?t:r;return path[e(499)](t,"..","tools",e(535),e(522),e(535))}function _0x4963(e,r){var t=_0x3ca7();return(_0x4963=function(e,r){return t[e-=475]})(e,r)}exports[_0x5cf52d(508)]=function(){var e=_0x5cf52d,r=0<arguments[e(495)]&&void 0!==arguments[0]&&arguments[0],t=utils.readJsonFile(path[e(499)](utils[e(536)],e(526)))[e(525)],o=execSync(e(514),{timeout:5e3})[e(502)]()[e(497)]();t!==o&&(r?logger.warn('WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit '.concat(o,'"')):logger[e(485)](e(533)[e(504)](o,'"')))},exports[_0x5cf52d(503)]=function(){var e,r,t=_0x5cf52d,o=0<arguments[t(495)]&&void 0!==arguments[0]&&arguments[0],i=path[t(499)](utils[t(486)](),t(491)),s=utils[t(519)](i)[t(498)][t(477)];s?(e=getOhpmFile(),fs.existsSync(e)?(r=utils.isOSX()?e:'"'.concat(e,'"'),r=execSync(""[t(504)](r,t(518)),{timeout:5e3})[t(502)]().split(t(521))[1][t(515)]("\n")[0][t(497)](),satisfies(r,s)||s[t(512)]()===t(490)||(o?logger.warn(t(483)):logger.info(t(479)))):logger.warn(t(520)[t(504)](e,t(524)))):logger[t(493)]("WARNING: "[t(504)](i,t(494)))},exports[_0x5cf52d(506)]=function(e){var t=_0x5cf52d,r=(logger.debug(t(492)),path[t(499)](utils[t(486)](),t(516),t(534),"module.json5")),r=null==(r=utils.readJsonFile(r)[t(476)])?void 0:r[t(498)],r=null==r?void 0:r[t(482)](function(e){var r=t;return e[r(480)]===r(501)});return!r||r[t(495)]<=0?(logger[t(493)](t(475)),!1):!(Number(r[0][t(484)])<Number(e)&&(logger.fatal(t(496)+t(523)[t(504)](e,t(537))),1))};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x11a87e=_0xaa2f;function _typeof(e){var t=_0xaa2f;return(_typeof=t(497)==typeof Symbol&&t(488)==typeof Symbol[t(492)]?function(e){return typeof e}:function(e){var r=t;return e&&r(497)==typeof Symbol&&e[r(563)]===Symbol&&e!==Symbol[r(569)]?r(488):typeof e})(e)}function _0x319b(){var e=["./ascf-converter/common/path-validator","./ascf-compiler/web.webpack.config.js","isLatestAscfHar","defineProperty","catchLoc","input","afterLoc","Generator","wrap","tryLoc","105NZMBCY","create","command","WARNING: Get @atomicservice/ascf-toolkit version failed: ","./commands/build-npm","The iterator does not provide a '","resultName","watchExec","exports","existsVerifyLog","errorMessage","getPrototypeOf","reset",'","folderUrl":"',"normal","exit","method","getTime","isLatestAscfToolkit","projectRoot","2622786wQPQKW","env","checkInputPathFun","reason:","compile close error :","ASCF unhandled rejection at:","ProgressPlugin","finallyLoc","suspendedYield",'","errorMessage":"',"symbol","fatal","clearResource","call","iterator","notaddtodo","8996169DrcPhK","validate","forEach","function","output","stop dev server error:","./common/config","getLogger","clear","../package.json","./ascf-converter/features/converter.js","tryEntries","infrastructureLogging","_ascfDebug","beginTime","@@asyncIterator","quickGenSub","./ascf-compiler/server/dev-server","7566732NsXkBL","_isAscfMode","mark","length","isGeneratorFunction","Generator is already running","toString","AsyncIterator","completion","break","suspendedStart","continue","ASCF uncaught error","6024328BaTfUP","./common/version-check.js","check","slice","illegal catch attempt","return","uncaughtException","displayName","done","name","pathValidator","type","verbose","then","webpackCfg","value","@@toStringTag","unhandledRejection","reverse","restartDevServer","@@iterator","rval","hasOwnProperty"," is not iterable","3zXoyKp","delegate","WARNING: Get @atomicservice/ascfapi info failed: ","sent","abrupt","prev","startServer","_invoke","version","setPrototypeOf","48912oJLxxF","toStringTag","next","folderUrl","constructor","configs","apply","[object Generator]","warn","arg","prototype","stop","GeneratorFunction","progress","close","resolve","./ascf-compiler/common/quick-generate-subpackage","dispatchException","complete","./ascf-compiler/watch/watch","watch","pop","1285594kTOTvF","push","values","chdir","ascf/ascf_src","error","./common/log4js.js","' method",'"command":"',"object","root","keys","EnvironmentPlugin","run","webpack","concat","861548lyKAUt","async","throw","end","nextLoc","__await","plugins"];return(_0x319b=function(){return e})()}function _regeneratorRuntime(){var s=_0xaa2f;_regeneratorRuntime=function(){return c};var f,c={},e=Object.prototype,l=e[s(547)],p=Object.defineProperty||function(e,r,t){var n=s;e[r]=t[n(540)]},r=s(497)==typeof Symbol?Symbol:{},a=r.iterator||s(545),t=r.asyncIterator||s(509),n=r[s(560)]||s(541);function o(e,r,t){return Object[s(451)](e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{o({},"")}catch(e){o=function(e,r,t){return e[r]=t}}function u(e,r,t,n){var o,a,i,c,u=s,r=r&&r[u(569)]instanceof b?r:b,r=Object[u(459)](r[u(569)]),n=new j(n||[]);return p(r,u(556),{value:(o=e,a=t,i=n,c=v,function(e,r){var t=_0xaa2f;if(c===m)throw Error(t(517));if(c===_){if(t(443)===e)throw r;return{value:f,done:!0}}for(i[t(474)]=e,i[t(568)]=r;;){var n=i[t(550)];if(n){n=function e(r,t){var n=s,o=t[n(474)],a=r[n(492)][o];if(a===f)return t.delegate=null,n(443)===o&&r.iterator[n(530)]&&(t[n(474)]="return",t[n(568)]=f,e(r,t),"throw"===t[n(474)])||n(530)!==o&&(t[n(474)]=n(443),t[n(568)]=new TypeError(n(463)+o+n(432))),y;o=h(a,r[n(492)],t[n(568)]);if(n(443)===o[n(536)])return t[n(474)]=n(443),t[n(568)]=o[n(568)],t[n(550)]=null,y;a=o[n(568)];return a?a[n(533)]?(t[r[n(464)]]=a[n(540)],t[n(561)]=r[n(445)],n(530)!==t.method&&(t[n(474)]="next",t[n(568)]=f),t[n(550)]=null,y):a:(t.method=n(443),t[n(568)]=new TypeError("iterator result is not an object"),t[n(550)]=null,y)}(n,i);if(n){if(n===y)continue;return n}}if(t(561)===i[t(474)])i.sent=i._sent=i[t(568)];else if("throw"===i.method){if(c===v)throw c=_,i[t(568)];i[t(576)](i[t(568)])}else t(530)===i[t(474)]&&i[t(553)]("return",i.arg);c=m;n=h(o,a,i);if(t(472)===n[t(536)]){if(c=i.done?_:g,n.arg===y)continue;return{value:n[t(568)],done:i[t(533)]}}t(443)===n[t(536)]&&(c=_,i[t(474)]=t(443),i[t(568)]=n[t(568)])}})}),r}function h(e,r,t){var n=s;try{return{type:"normal",arg:e[n(491)](r,t)}}catch(e){return{type:"throw",arg:e}}}c[s(456)]=u;var v=s(522),g=s(486),m="executing",_="completed",y={};function b(){}function i(){}function d(){}var r={},x=(o(r,a,function(){return this}),Object[s(469)]),x=x&&x(x(T([]))),w=(x&&x!==e&&l[s(491)](x,a)&&(r=x),d[s(569)]=b[s(569)]=Object[s(459)](r));function k(e){var r=s;["next",r(443),r(530)][r(496)](function(r){o(e,r,function(e){return this[_0xaa2f(556)](r,e)})})}function q(c,u){var r;p(this,s(556),{value:function(t,n){function e(){return new u(function(e,r){!function r(e,t,n,o){var a,i=_0xaa2f,e=h(c[e],c,t);if(i(443)!==e[i(536)])return(t=(a=e.arg).value)&&i(434)==_typeof(t)&&l[i(491)](t,i(446))?u[i(574)](t[i(446)]).then(function(e){r(i(561),e,n,o)},function(e){r(i(443),e,n,o)}):u[i(574)](t)[i(538)](function(e){a[i(540)]=e,n(a)},function(e){return r("throw",e,n,o)});o(e[i(568)])}(t,n,e,r)})}return r=r?r.then(e,e):e()}})}function S(e){var r=s,t={tryLoc:e[0]};1 in e&&(t[r(452)]=e[1]),2 in e&&(t.finallyLoc=e[2],t[r(454)]=e[3]),this[r(505)][r(582)](t)}function G(e){var r=s,t=e[r(520)]||{};t[r(536)]=r(472),delete t[r(568)],e[r(520)]=t}function j(e){var r=s;this[r(505)]=[{tryLoc:r(435)}],e[r(496)](S,this),this[r(470)](!0)}function T(t){var n=s;if(t||""===t){var o,e=t[a];if(e)return e.call(t);if(n(497)==typeof t.next)return t;if(!isNaN(t[n(515)]))return o=-1,(e=function e(){for(var r=n;++o<t[r(515)];)if(l[r(491)](t,o))return e.value=t[o],e[r(533)]=!1,e;return e.value=f,e[r(533)]=!0,e})[n(561)]=e}throw new TypeError(_typeof(t)+n(548))}return i[s(569)]=d,p(w,s(563),{value:d,configurable:!0}),p(d,s(563),{value:i,configurable:!0}),i[s(532)]=o(d,n,s(571)),c[s(516)]=function(e){var r=s,e=r(497)==typeof e&&e.constructor;return!!e&&(e===i||"GeneratorFunction"===(e[r(532)]||e.name))},c.mark=function(e){var r=s;return Object[r(558)]?Object[r(558)](e,d):(e.__proto__=d,o(e,n,r(571))),e[r(569)]=Object[r(459)](w),e},c.awrap=function(e){return{__await:e}},k(q.prototype),o(q.prototype,t,function(){return this}),c[s(519)]=q,c[s(442)]=function(e,r,t,n,o){var a=s,i=(void 0===o&&(o=Promise),new q(u(e,r,t,n),o));return c[a(516)](r)?i:i[a(561)]()[a(538)](function(e){var r=a;return e[r(533)]?e[r(540)]:i[r(561)]()})},k(w),o(w,n,s(455)),o(w,a,function(){return this}),o(w,s(518),function(){return s(566)}),c[s(436)]=function(e){var r,n=s,o=Object(e),a=[];for(r in o)a[n(582)](r);return a[n(543)](),function e(){for(var r=n;a[r(515)];){var t=a[r(580)]();if(t in o)return e[r(540)]=t,e[r(533)]=!1,e}return e[r(533)]=!0,e}},c[s(583)]=T,j.prototype={constructor:j,reset:function(e){var r=s;if(this[r(554)]=0,this.next=0,this[r(552)]=this._sent=f,this[r(533)]=!1,this.delegate=null,this[r(474)]="next",this[r(568)]=f,this.tryEntries[r(496)](G),!e)for(var t in this)"t"===t.charAt(0)&&l[r(491)](this,t)&&!isNaN(+t[r(528)](1))&&(this[t]=f)},stop:function(){var e=s,r=(this[e(533)]=!0,this[e(505)][0][e(520)]);if(e(443)===r[e(536)])throw r[e(568)];return this[e(546)]},dispatchException:function(n){var o=s;if(this[o(533)])throw n;var a=this;function e(e,r){var t=o;return i[t(536)]=t(443),i.arg=n,a.next=e,r&&(a[t(474)]=t(561),a[t(568)]=f),!!r}for(var r=this.tryEntries[o(515)]-1;0<=r;--r){var t=this[o(505)][r],i=t[o(520)];if("root"===t[o(457)])return e("end");if(t[o(457)]<=this[o(554)]){var c=l[o(491)](t,o(452)),u=l[o(491)](t,o(485));if(c&&u){if(this[o(554)]<t.catchLoc)return e(t[o(452)],!0);if(this[o(554)]<t[o(485)])return e(t[o(485)])}else if(c){if(this[o(554)]<t[o(452)])return e(t.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[o(554)]<t.finallyLoc)return e(t[o(485)])}}}},abrupt:function(e,r){for(var t=s,n=this[t(505)][t(515)]-1;0<=n;--n){var o=this[t(505)][n];if(o[t(457)]<=this[t(554)]&&l[t(491)](o,t(485))&&this[t(554)]<o[t(485)]){var a=o;break}}var i=(a=a&&(t(521)===e||t(523)===e)&&a.tryLoc<=r&&r<=a[t(485)]?null:a)?a[t(520)]:{};return i.type=e,i[t(568)]=r,a?(this[t(474)]=t(561),this[t(561)]=a[t(485)],y):this.complete(i)},complete:function(e,r){var t=s;if(t(443)===e.type)throw e[t(568)];return t(521)===e[t(536)]||t(523)===e[t(536)]?this[t(561)]=e[t(568)]:t(530)===e[t(536)]?(this.rval=this[t(568)]=e.arg,this[t(474)]=t(530),this[t(561)]="end"):t(472)===e[t(536)]&&r&&(this[t(561)]=r),y},finish:function(e){for(var r=s,t=this[r(505)][r(515)]-1;0<=t;--t){var n=this[r(505)][t];if(n[r(485)]===e)return this[r(577)](n[r(520)],n[r(454)]),G(n),y}},catch:function(e){for(var r=s,t=this[r(505)][r(515)]-1;0<=t;--t){var n,o,a=this[r(505)][t];if(a.tryLoc===e)return n=a[r(520)],r(443)===n.type&&(o=n[r(568)],G(a)),o}throw Error(r(529))},delegateYield:function(e,r,t){var n=s;return this[n(550)]={iterator:T(e),resultName:r,nextLoc:t},n(561)===this.method&&(this[n(568)]=f),y}},c}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0xaa2f;try{var u=e[a](i),s=u[c(540)]}catch(e){return void t(e)}u[c(533)]?r(s):Promise.resolve(s)[c(538)](n,o)}function _asyncToGenerator(c){return function(){var e=this,i=arguments;return new Promise(function(r,t){var n=c.apply(e,i);function o(e){asyncGeneratorStep(n,r,t,o,a,_0xaa2f(561),e)}function a(e){asyncGeneratorStep(n,r,t,o,a,_0xaa2f(443),e)}o(void 0)})}}(()=>{for(var e=_0xaa2f,r=_0x319b();;)try{if(680692==-parseInt(e(441))+parseInt(e(581))/2*(-parseInt(e(549))/3)+parseInt(e(559))/4*(-parseInt(e(458))/5)+-parseInt(e(478))/6+parseInt(e(494))/7+parseInt(e(525))/8+parseInt(e(512))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var path=require("path"),_require=require(_0x11a87e(578)),watchExec=_require[_0x11a87e(465)],pkg=require(_0x11a87e(503)),_require2=require(_0x11a87e(500)),configs=_require2[_0x11a87e(564)],log4js=require(_0x11a87e(431)),_require3=require(_0x11a87e(462)),buildNpm=_require3.buildNpm,logger=log4js[_0x11a87e(501)]("index");function convert(e){return _convert.apply(this,arguments)}function _convert(){var t=_0x11a87e;return(_convert=_asyncToGenerator(_regeneratorRuntime()[t(514)](function e(r){var n,o,a=t;return _regeneratorRuntime()[a(456)](function(e){for(var t=a;;)switch(e.prev=e[t(561)]){case 0:if(configs[t(493)]=!!r[t(493)],n=require(t(504)),global._isMiniAppConvertMode=!0,global[t(513)]=!0,process[t(479)][t(490)]=r[t(502)]?"yes":"no",o=require(t(448)),o=o[t(535)],r[t(495)]&&(o(r[t(453)],r[t(498)]),process[t(473)](0)),n[t(480)](r[t(453)]),r[t(527)]){e.next=13;break}return e.next=11,n.confirmConverterFun({inputPath:r.input,outPath:r[t(498)],confirmAddConfig:!0});case 11:(o=e.sent)[t(468)]?logger[t(430)](t(433)[t(440)](o.command,t(487))[t(440)](o.errorMessage,'"')):logger.info('"command":"'[t(440)](o[t(460)],t(471))[t(440)](o[t(562)],'"'));case 13:setTimeout(function(){var r=t,e=require(r(526))[r(476)];try{e()}catch(e){logger[r(567)](r(461)[r(440)](e,"."))}});case 14:case t(444):return e.stop()}},e)}))).apply(this,arguments)}function compile(e,r){return _compile[_0x11a87e(565)](this,arguments)}function _compile(){var a=_0x11a87e;return(_compile=_asyncToGenerator(_regeneratorRuntime()[a(514)](function e(i,c){var u,s,f,r,t,n,o,l,p,h,v=a;return _regeneratorRuntime()[v(456)](function(e){for(var a=v;;)switch(e.prev=e[a(561)]){case 0:return process[a(479)][a(477)]=path[a(574)](i),process[a(428)](path[a(574)](i,a(429))),r=require("./common/utils"),(0,r.initConfigs)(i,c),u=require(a(439)),global[a(508)]=(new Date)[a(475)](),s=require(a(449)),f=(()=>{var r=a,e=_asyncToGenerator(_regeneratorRuntime()[r(514)](function e(){var t,n,o=r;return _regeneratorRuntime()[o(456)](function(e){for(var r=o;;)switch(e[r(554)]=e[r(561)]){case 0:return e.next=2,s();case 2:return(t=e.sent)[r(447)]=t[r(447)]||[],t[r(447)][r(582)](new u[r(437)]({projectRoot:i})),c[r(572)]&&t.plugins[r(582)](new u[r(484)]({})),c[r(579)]&&(t.watch=!0),global[r(507)]&&(t[r(506)]={debug:!0,level:r(537)}),n=u(t),e.abrupt(r(530),{webpackCfg:t,compiler:n});case 10:case r(444):return e[r(570)]()}},e)}));return function(){return e.apply(this,arguments)}})(),e[a(554)]=8,e[a(561)]=11,f();case 11:r=e[a(552)],t=r[a(539)],n=r.compiler,c.watch?(watchExec(n,c.run),e[a(561)]=29):e[a(561)]=18;break;case 18:if(configs.serve)return o=require(a(511)),l=o[a(555)],e[a(561)]=22,l(n,t.devServer);e.next=27;break;case 22:p=e[a(552)],h=!1,global[a(544)]=_asyncToGenerator(_regeneratorRuntime()[a(514)](function e(){var t,n,o=a;return _regeneratorRuntime()[o(456)](function(e){for(var r=o;;)switch(e[r(554)]=e.next){case 0:if(h)return e[r(553)](r(530));e.next=2;break;case 2:if(h=!0,logger.info("restart dev server"),e.prev=4,p){e[r(561)]=9;break}return e[r(561)]=8,p.stop();case 8:p=null;case 9:return e[r(561)]=11,f();case 11:return n=e[r(552)],t=n[r(539)],n=n.compiler,e.next=16,l(n,t.devServer);case 16:p=e[r(552)],e.next=22;break;case 19:e[r(554)]=19,e.t0=e.catch(4),logger[r(430)](r(499),e.t0);case 22:h=!1;case 23:case r(444):return e[r(570)]()}},e,null,[[4,19]])})),e[a(561)]=29;break;case 27:return e.next=29,run(n);case 29:e.next=35;break;case 31:e[a(554)]=31,e.t0=e.catch(8),logger[a(489)](e.t0),process[a(473)](1);case 35:case a(444):return e[a(570)]()}},e,null,[[8,31]])})))[a(565)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function _0xaa2f(e,r){var t=_0x319b();return(_0xaa2f=function(e,r){return t[e-=428]})(e,r)}function run(i){return new Promise(function(t,o){var a=_0xaa2f;i[a(438)](function(e,r){var n=a;r&&logger.info(r[n(518)]({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global[n(507)]?"verbose":"info"})),e?(logger[n(430)](e),o(e)):(setTimeout(function(){var r=n,e=require(r(526)),t=e.isLatestAscfToolkit,e=e[r(450)];try{e(global[r(467)])}catch(e){logger.warn(r(551)[r(440)](e,"."))}try{t(global[r(467)])}catch(e){logger[r(567)](r(461)[r(440)](e,"."))}}),t(r),i[n(573)](function(e){var r=n;e&&logger[r(430)](r(482),e)}))})})}function quickGenerateSubpackage(){return _quickGenerateSubpackage[_0x11a87e(565)](this,arguments)}function _quickGenerateSubpackage(){var e=_0x11a87e;return(_quickGenerateSubpackage=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n=_0xaa2f;return _regeneratorRuntime()[n(456)](function(e){for(var r=n;;)switch(e[r(554)]=e.next){case 0:return t=require(r(575)),t=t[r(510)],e[r(561)]=3,t().catch(function(e){logger[r(430)](e)});case 3:case"end":return e[r(570)]()}},e)})))[e(565)](this,arguments)}logger.debug("Using "[_0x11a87e(440)](pkg[_0x11a87e(534)]," ").concat(pkg[_0x11a87e(557)],".")),global[_0x11a87e(513)]=!0,process.on(_0x11a87e(531),function(e){var r=_0x11a87e;logger[r(430)](r(524),e)}),process.on(_0x11a87e(542),function(e,r){var t=_0x11a87e;logger.error(t(483),r,t(481),e)}),module[_0x11a87e(466)]={convert:convert,compile:compile,buildNpm:buildNpm,getAscfToolkitDirname:getAscfToolkitDirname,quickGenerateSubpackage:quickGenerateSubpackage};
|
|
1
|
+
var _0x232fa7=_0x46da;function _regenerator(){var d,m=_0x46da,e=m(254)==typeof Symbol?Symbol:{},r=e[m(159)]||m(198),n=e[m(143)]||"@@toStringTag";function t(e,r,n,t){var o,a,c,i,s,u,f,g,l,p,v=m,r=r&&r[v(245)]instanceof b?r:b,r=Object.create(r.prototype);return _regeneratorDefine2(r,v(250),(o=e,a=n,g=t||[],l=!1,p={p:f=0,n:0,v:d,a:_,f:_[(u=v)(206)](d,4),d:function(e,r){return c=e,i=0,s=d,p.n=r,h}},function(e,r,n){var t=u;if(1<f)throw TypeError(t(246));for(l&&1===r&&_(r,n),i=r,s=n;(x=i<2?d:s)||!l;){c||(i?i<3?(1<i&&(p.n=-1),_(i,s)):p.n=s:p.v=s);try{if(f=2,c){if(x=c[e=i?e:"next"]){if(!(x=x.call(c,s)))throw TypeError(t(189));if(!x[t(178)])return x;s=x[t(201)],i<2&&(i=0)}else 1===i&&(x=c[t(257)])&&x[t(156)](c),i<2&&(s=TypeError(t(242)+e+t(228)),i=1);c=d}else if((x=(l=p.n<0)?s:o[t(156)](a,p))!==h)break}catch(e){c=d,i=1,s=e}finally{f=1}}return{value:x,done:l}}),!0),r;function _(e,r){var n=u;for(i=e,s=r,x=0;!l&&f&&!t&&x<g[n(180)];x++){var t,o=g[x],a=p.p,c=o[2];3<e?(t=c===r)&&(s=o[(i=o[4])?5:i=3],o[4]=o[5]=d):o[0]<=a&&((t=e<2&&a<o[1])?(i=0,p.v=r,p.n=o[1]):a<c&&(t=e<3||o[0]>r||c<r)&&(o[4]=e,o[5]=r,p.n=c,i=0))}if(t||1<e)return h;throw l=!0,r}}var h={};function b(){}function o(){}function a(){}var x=Object.getPrototypeOf,e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),c=a[m(245)]=b[m(245)]=Object[m(181)](e);function i(e){var r=m;return Object[r(183)]?Object[r(183)](e,a):(e[r(251)]=a,_regeneratorDefine2(e,n,"GeneratorFunction")),e[r(245)]=Object[r(181)](c),e}return o[m(245)]=a,_regeneratorDefine2(c,m(229),a),_regeneratorDefine2(a,m(229),o),o[m(158)]=m(223),_regeneratorDefine2(a,n,m(223)),_regeneratorDefine2(c),_regeneratorDefine2(c,n,m(234)),_regeneratorDefine2(c,r,function(){return this}),_regeneratorDefine2(c,m(176),function(){return m(188)}),(_regenerator=function(){return{w:t,m:i}})()}function _regeneratorDefine2(e,r,n,t){var a=_0x46da,c=Object[a(185)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,n,t){var o=a;r?c?c(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x46da(250)](r,n,e)})})("next",0),t(o(220),1),t("return",2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,c){var i=_0x46da;try{var s=e[a](c),u=s.value}catch(e){return void n(e)}s[i(178)]?r(u):Promise[i(157)](u).then(t,o)}function _asyncToGenerator(i){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=i.apply(e,c);function o(e){asyncGeneratorStep(t,r,n,o,a,_0x46da(202),e)}function a(e){asyncGeneratorStep(t,r,n,o,a,"throw",e)}o(void 0)})}}(()=>{for(var e=_0x46da,r=_0x516c();;)try{if(750408==-parseInt(e(243))+-parseInt(e(154))/2+parseInt(e(136))/3*(-parseInt(e(174))/4)+-parseInt(e(155))/5+parseInt(e(184))/6+parseInt(e(236))/7*(parseInt(e(227))/8)+-parseInt(e(164))/9*(-parseInt(e(139))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var path=require("path"),pkg=require("../package.json"),_require=require(_0x232fa7(153)),configs=_require[_0x232fa7(149)],log4js=require(_0x232fa7(191)),_require2=require("./commands/build-npm"),buildNpm=_require2[_0x232fa7(179)],_require3=require(_0x232fa7(209)),BUILD_TARGET_QS=_require3.BUILD_TARGET_QS,logger=log4js[_0x232fa7(169)](_0x232fa7(151));function convert(e){return _convert.apply(this,arguments)}function _convert(){var e=_0x232fa7;return(_convert=_asyncToGenerator(_regenerator().m(function e(r){var t,o;return _regenerator().w(function(e){for(var n=_0x46da;;)switch(e.n){case 0:if(configs.notaddtodo=!!r.notaddtodo,t=require("./ascf-converter/features/converter.js"),global[n(244)]=!0,global[n(161)]=!0,process[n(186)][n(167)]=r[n(216)]?n(233):"no",o=require(n(255)),o=o[n(194)],r[n(213)]&&(o(r.input,r.output),process[n(147)](0)),t[n(249)](r[n(226)]),r.check){e.n=2;break}return e.n=1,t[n(240)]({inputPath:r[n(226)],outPath:r[n(212)],confirmAddConfig:!0});case 1:(o=e.v)[n(230)]?logger.error('"command":"'[n(148)](o[n(203)],n(145)).concat(o[n(230)],'"')):logger[n(215)](n(196).concat(o[n(203)],n(252))[n(148)](o[n(177)],'"'));case 2:setTimeout(function(){var r=n,e=require("./common/version-check.js").isLatestAscfToolkit;try{e()}catch(e){logger[r(214)]("WARNING: Get @atomicservice/ascf-toolkit version failed: ".concat(e,"."))}});case 3:return e.a(2)}},e)})))[e(199)](this,arguments)}function compile(e,r){return _compile[_0x232fa7(199)](this,arguments)}function _0x46da(e,r){var n=_0x516c();return(_0x46da=function(e,r){return n[e-=136]})(e,r)}function _compile(){var e=_0x232fa7;return(_compile=_asyncToGenerator(_regenerator().m(function e(c,i){var s,u,f,o,n,t,a,g,l,p,v;return _regenerator().w(function(e){for(var r=_0x46da;;)switch(e.n){case 0:return process.env[r(163)]=path.resolve(c),process[r(219)](path[r(157)](c,r(217))),n=require("./common/utils"),(0,n[r(197)])(c,i),s=require(r(168)),global[r(162)]=(new Date)[r(190)](),u=require(r(193)),f=i[r(138)]===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=_0x46da;;)switch(e.n){case 0:return n=0<a.length&&void 0!==a[0]&&a[0],e.n=1,u(n,i);case 1:return(n=e.v)[r(237)]=n[r(237)]||[],n[r(237)][r(144)](new s[r(205)]({projectRoot:c})),f&&(o=require(r(258)),t=i[r(165)],i[r(166)]&&void 0===t&&(t=r(239)),i.mode||void 0!==t||(t=r(142)),n[r(237)].push(new o({projectRoot:c,disableSubpackages:t,signPrivateKeyPath:i[r(231)],signPublicKeyPath:i.signPublicKeyPath,signPwd:i[r(248)],signProfilePath:i[r(221)]}))),i[r(172)]&&n[r(237)][r(144)](new s[r(238)]({})),i[r(222)]&&(n[r(222)]=!0),global[r(241)]&&(n[r(182)]={debug:!0,level:r(235)}),o=s(n),e.a(2,{webpackCfg:n,compiler:o})}},e)}));return function(){return e[_0x46da(199)](this,arguments)}})(),e.p=1,e.n=2,o();case 2:if(n=e.v,t=n[r(175)],a=n[r(195)],configs[r(150)]||i[r(222)])return v=require(r(187)),g=v[r(218)],e.n=3,g(a,t.devServer,i);e.n=4;break;case 3:l=e.v,p=!1,global.restartDevServer=_asyncToGenerator(_regenerator().m(function e(){var n,t;return _regenerator().w(function(e){for(var r=_0x46da;;)switch(e.n){case 0:if(p)return e.a(2);e.n=1;break;case 1:if(p=!0,logger[r(215)]("restart dev server"),e.p=2,l)return e.n=3,l.stop();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(175)],t=t[r(195)],e.n=6,g(t,n.devServer,i);case 6:l=e.v,e.n=8;break;case 7:e.p=7,t=e.v,logger[r(256)](r(146),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(a,f);case 5:e.n=7;break;case 6:e.p=6,v=e.v,logger[r(192)](v),process[r(147)](1);case 7:return e.a(2)}},e,null,[[1,6]])})))[e(199)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function run(c){var e=_0x232fa7,i=1<arguments[e(180)]&&void 0!==arguments[1]&&arguments[1];return new Promise(function(n,o){var a=e;c[a(210)](function(e,r){var t=a;r&&logger[t(215)](r[t(176)]({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global[t(241)]?t(235):t(215)})),e?(logger[t(256)](e),o(e)):(i||setTimeout(function(){var r=t,e=require("./common/version-check.js"),n=e[r(170)],e=e[r(207)];try{e(global[r(173)])}catch(e){logger[r(214)]("WARNING: Get @atomicservice/ascfapi info failed: ".concat(e,"."))}try{n(global[r(173)])}catch(e){logger.warn(r(137)[r(148)](e,"."))}}),n(r),c[t(225)](function(e){var r=t;e&&logger[r(256)](r(208),e)}))})})}function quickGenerateSubpackage(){return _quickGenerateSubpackage[_0x232fa7(199)](this,arguments)}function _0x516c(){var e=["7287MbxMmy","WARNING: Get @atomicservice/ascf-toolkit version failed: ","targets","480qnceqG","reason:","name","false","toStringTag","push",'","errorMessage":"',"restart dev server error:","exit","concat","configs","serve","index","isRelease","./common/config","866342QBNNCs","2592325OcsxwP","call","resolve","displayName","iterator","Using ","_isAscfMode","beginTime","projectRoot","152271XWheNO","disableSubpackages","mode","clearResource","webpack","getLogger","isLatestAscfToolkit","unhandledRejection","progress","existsVerifyLog","1808tXbdQr","webpackCfg","toString","folderUrl","done","buildNpm","length","create","infrastructureLogging","setPrototypeOf","5974824HsXWdc","defineProperty","env","./ascf-compiler/server/dev-server","[object Generator]","iterator result is not an object","getTime","./common/log4js.js","fatal","./ascf-compiler/web.webpack.config.js","pathValidator","compiler",'"command":"',"initConfigs","@@iterator","apply","ASCF uncaught error","value","next","command","version","EnvironmentPlugin","bind","isLatestAscfHar","compile close error :","./common/constants.js","run","exports","output","validate","warn","info","clear","ascf/ascf_src","startServer","chdir","throw","signProfilePath","watch","GeneratorFunction","./ascf-compiler/common/quick-generate-subpackage","close","input","99240UPTNNH","' method","constructor","errorMessage","signPrivateKeyPath","uncaughtException","yes","Generator","verbose","763rsNyoy","plugins","ProgressPlugin","true","confirmConverterFun","_ascfDebug","The iterator does not provide a '","360109lUxfeS","_isMiniAppConvertMode","prototype","Generator is already running","quickGenSub","signPwd","checkInputPathFun","_invoke","__proto__",'","folderUrl":"',"ASCF unhandled rejection. reason: ","function","./ascf-converter/common/path-validator","error","return","./ascf-compiler/plugin/quick-service-build-plugin"];return(_0x516c=function(){return e})()}function _quickGenerateSubpackage(){var e=_0x232fa7;return(_quickGenerateSubpackage=_asyncToGenerator(_regenerator().m(function e(){var n;return _regenerator().w(function(e){for(var r=_0x46da;;)switch(e.n){case 0:return n=require(r(224)),n=n[r(247)],e.n=1,n().catch(function(e){logger[r(256)](e)});case 1:return e.a(2)}},e)})))[e(199)](this,arguments)}logger.debug(_0x232fa7(160).concat(pkg[_0x232fa7(141)]," ")[_0x232fa7(148)](pkg[_0x232fa7(204)],".")),global._isAscfMode=!0,process.on(_0x232fa7(232),function(e){var r=_0x232fa7;logger[r(256)](r(200),e)}),process.on(_0x232fa7(171),function(e,r){var n=_0x232fa7;configs[n(152)]?logger[n(256)](n(253),e):logger[n(256)]("ASCF unhandled rejection at:",r,n(140),e)}),module[_0x232fa7(211)]={convert:convert,compile:compile,buildNpm:buildNpm,getAscfToolkitDirname:getAscfToolkitDirname,quickGenerateSubpackage:quickGenerateSubpackage};
|