@atomicservice/ascf-toolkit 1.0.5-beta.4 → 1.0.6-beta.4
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 +12 -2
- package/lib/ascf-base/index.js +1 -1
- 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 +21 -15
- package/lib/ascf-compiler/watch/watch.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var _0x15bc29=_0x5383;function _0x5383(e,r){var n=_0x5c14();return(_0x5383=function(e,r){return n[e-=474]})(e,r)}function _0x5c14(){var e=["clean","displayName","done","next","defineProperty","command","exports","apply","chdir","3854500imlHNm","Generator","2701902TykKFt","1003430tXGdTu","iterator","-r, --projectRoot [projectRoot]","function","toStringTag","throw","then","select a device","14ixUZuT","' method","resolve","uninstall","prototype","1046245koHKiU","build","call","return","_invoke","3585952PVRmRu","bind","installDeps","action","toString","GeneratorFunction","[object Generator]","3xFULLA","installHap","getPrototypeOf","@@iterator","option","7236450jTZBWi","../../ascf-base","start","setPrototypeOf","@@toStringTag","create","Build ASCF project","The iterator does not provide a '","value","projectRoot","2AwZdzT","88WAnxVJ","Generator is already running","constructor","length","description","4128070RPtgdq"];return(_0x5c14=function(){return e})()}function _regenerator(){var g,h=_0x5383,e=h(527)==typeof Symbol?Symbol:{},r=e[h(525)]||h(493),n=e[h(528)]||h(499);function t(e,r,n,t){var o,a,i,c,u,f,s,p,l,_,v=h,r=r&&r[v(477)]instanceof y?r:y,r=Object[v(500)](r[v(477)]);return _regeneratorDefine2(r,v(482),(o=e,a=n,p=t||[],l=!1,_={p:s=0,n:0,v:g,a:d,f:d[(f=v)(484)](g,4),d:function(e,r){return i=e,c=0,u=g,_.n=r,b}},function(e,r,n){var t=f;if(1<s)throw TypeError(t(507));for(l&&1===r&&d(r,n),c=r,u=n;(x=c<2?g:u)||!l;){i||(c?c<3?(1<c&&(_.n=-1),d(c,u)):_.n=u:_.v=u);try{if(s=2,i){if(c||(e=t(515)),x=i[e]){if(!(x=x.call(i,u)))throw TypeError("iterator result is not an object");if(!x[t(514)])return x;u=x[t(503)],c<2&&(c=0)}else 1===c&&(x=i[t(481)])&&x[t(480)](i),c<2&&(u=TypeError(t(502)+e+t(474)),c=1);i=g}else if((x=(l=_.n<0)?u:o.call(a,_))!==b)break}catch(e){i=g,c=1,u=e}finally{s=1}}return{value:x,done:l}}),!0),r;function d(e,r){var n=f;for(c=e,u=r,x=0;!l&&s&&!t&&x<p[n(509)];x++){var t,o=p[x],a=_.p,i=o[2];3<e?(t=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=g):o[0]<=a&&((t=e<2&&a<o[1])?(c=0,_.v=r,_.n=o[1]):a<i&&(t=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,_.n=i,c=0))}if(t||1<e)return b;throw l=!0,r}}var b={};function y(){}function o(){}function a(){}var x=Object[h(492)],e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),i=a[h(477)]=y[h(477)]=Object[h(500)](e);function c(e){var r=h;return Object[r(498)]?Object[r(498)](e,a):(e.__proto__=a,_regeneratorDefine2(e,n,r(488))),e[r(477)]=Object[r(500)](i),e}return o.prototype=a,_regeneratorDefine2(i,h(508),a),_regeneratorDefine2(a,h(508),o),o[h(513)]=h(488),_regeneratorDefine2(a,n,"GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,n,h(522)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,h(487),function(){return h(489)}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var a=_0x5383,i=Object[a(516)];try{i({},"",{})}catch(e){i=0}(_regeneratorDefine2=function(e,r,n,t){var o=a;r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e)})})(o(515),0),t("throw",1),t("return",2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var c=_0x5383;try{var u=e[a](i),f=u[c(503)]}catch(e){return void n(e)}u[c(514)]?r(f):Promise[c(475)](f)[c(530)](t,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0x5383,o=u[t(519)](e,c);function a(e){asyncGeneratorStep(o,r,n,a,i,t(515),e)}function i(e){asyncGeneratorStep(o,r,n,a,i,t(529),e)}a(void 0)})}}(()=>{for(var e=_0x5383,r=_0x5c14();;)try{if(602505==+parseInt(e(478))*(parseInt(e(505))/2)+-parseInt(e(490))/3*(parseInt(e(521))/4)+-parseInt(e(511))/5+parseInt(e(523))/6+parseInt(e(532))/7*(parseInt(e(483))/8)+-parseInt(e(495))/9+-parseInt(e(524))/10*(-parseInt(e(506))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x15bc29(496)),AscfBuilder=_require.AscfBuilder;module[_0x15bc29(518)]={install:function(e){function n(t){return r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0x5383;;)switch(e.n){case 0:n[r(504)]?process[r(520)](n[r(504)]):n[r(504)]=process.cwd(),new AscfBuilder(n).handle(t);case 1:return e.a(2)}},e)})),function(e){return r[_0x5383(519)](this,arguments)};var r}var t=_0x15bc29,o=e[t(517)](t(479))[t(510)](t(501));[t(485),"assembleHap",t(512)].forEach(function(e){var r=t;o[r(517)](e)[r(510)](e)[r(494)](r(526),r(504))[r(486)](n(e))}),[t(491),"assembleAndInstallHap",t(476),t(497)].forEach(function(e){var r=t;o[r(517)](e)[r(510)](e)[r(494)]("-r, --projectRoot [projectRoot]",r(504))[r(494)]("-t, --deviceId [deviceId]",r(531))[r(486)](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
|
+
function _0xa7ab(){var e=["miniprogram","ascf_src","105IEimlo","@@toStringTag","Build ASCF npm dependencies to miniprogram_npm","package.json","prototype","[object Generator]","514164BAXNtu","value","6792zMOSKM","8yzegSC","The iterator does not provide a '","Generator","dependencies","' method","@@iterator","command","description","node_modules","done","throw","action","240692hhqkaF","info","All npm dependencies has been built.","apply","hasOwnProperty","join","resolve","25524170WGkftc","../../common/log4js","function","iterator result is not an object","error","toString","2235850gvSLZb","next","moveFiles","14009193DucqYq","bind","ascf","defineProperty"," not found in node_modules, please run npm install ","warn","getPrototypeOf","1952256zFTFOq","toStringTag","hasHxml","_invoke","then","concat","buildNpm","call","path","getLogger","344HWIHFy","Dependencies info not found.","length","return","setPrototypeOf","existsSync","GeneratorFunction","__proto__","displayName","create"];return(_0xa7ab=function(){return e})()}var _0x3a4123=_0x2b42;function _regenerator(){var b,d=_0x2b42,e=d(449)==typeof Symbol?Symbol:{},r=e.iterator||d(433),n=e[d(398)]||d(420);function t(e,r,n,t){var o,a,i,c,u,f,s,p,l,_,g=d,r=r&&r[g(423)]instanceof h?r:h,r=Object[g(416)](r.prototype);return _regeneratorDefine2(r,g(400),(o=e,a=n,p=t||[],l=!1,_={p:s=0,n:0,v:b,a:m,f:m[(f=g)(457)](b,4),d:function(e,r){return i=e,c=0,u=b,_.n=r,v}},function(e,r,n){var t=f;if(1<s)throw TypeError("Generator is already running");for(l&&1===r&&m(r,n),c=r,u=n;(y=c<2?b:u)||!l;){i||(c?c<3?(1<c&&(_.n=-1),m(c,u)):_.n=u:_.v=u);try{if(s=2,i){if(c||(e=t(454)),y=i[e]){if(!(y=y.call(i,u)))throw TypeError(t(450));if(!y[t(437)])return y;u=y.value,c<2&&(c=0)}else 1===c&&(y=i.return)&&y[t(404)](i),c<2&&(u=TypeError(t(429)+e+t(432)),c=1);i=b}else if((y=(l=_.n<0)?u:o[t(404)](a,_))!==v)break}catch(e){i=b,c=1,u=e}finally{s=1}}return{value:y,done:l}}),!0),r;function m(e,r){var n=f;for(c=e,u=r,y=0;!l&&s&&!t&&y<p[n(409)];y++){var t,o=p[y],a=_.p,i=o[2];3<e?(t=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=b):o[0]<=a&&((t=e<2&&a<o[1])?(c=0,_.v=r,_.n=o[1]):a<i&&(t=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,_.n=i,c=0))}if(t||1<e)return v;throw l=!0,r}}var v={};function h(){}function o(){}function a(){}var y=Object[d(462)],e=[][r]?y(y([][r]())):(_regeneratorDefine2(y={},r,function(){return this}),y),i=a.prototype=h[d(423)]=Object.create(e);function c(e){var r=d;return Object[r(411)]?Object[r(411)](e,a):(e[r(414)]=a,_regeneratorDefine2(e,n,"GeneratorFunction")),e.prototype=Object[r(416)](i),e}return o[d(423)]=a,_regeneratorDefine2(i,"constructor",a),_regeneratorDefine2(a,"constructor",o),o[d(415)]="GeneratorFunction",_regeneratorDefine2(a,n,d(413)),_regeneratorDefine2(i),_regeneratorDefine2(i,n,d(430)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,d(452),function(){return d(424)}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var a=_0x2b42,i=Object[a(459)];try{i({},"",{})}catch(e){i=0}(_regeneratorDefine2=function(e,r,n,t){var o=a;r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x2b42(400)](r,n,e)})})(o(454),0),t(o(438),1),t(o(410),2))})(e,r,n,t)}function _0x2b42(e,r){var n=_0xa7ab();return(_0x2b42=function(e,r){return n[e-=397]})(e,r)}function asyncGeneratorStep(e,r,n,t,o,a,i){var c=_0x2b42;try{var u=e[a](i),f=u[c(426)]}catch(e){return void n(e)}u[c(437)]?r(f):Promise[c(446)](f)[c(401)](t,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0x2b42,o=u[t(443)](e,c);function a(e){asyncGeneratorStep(o,r,n,a,i,t(454),e)}function i(e){asyncGeneratorStep(o,r,n,a,i,t(438),e)}a(void 0)})}}(()=>{for(var e=_0x2b42,r=_0xa7ab();;)try{if(878776==+parseInt(e(440))+-parseInt(e(407))/2*(-parseInt(e(427))/3)+-parseInt(e(397))/4+parseInt(e(453))/5+-parseInt(e(425))/6*(-parseInt(e(419))/7)+-parseInt(e(428))/8*(-parseInt(e(456))/9)+-parseInt(e(447))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require("../../common/utils"),readJsonFile=_require.readJsonFile,hasHxml=_require[_0x3a4123(399)],moveFiles=_require[_0x3a4123(455)],path=require(_0x3a4123(405)),fs=require("fs"),log4js=require(_0x3a4123(448)),logger=log4js[_0x3a4123(406)](_0x3a4123(403));function buildMiniProgramNpm(e){var r=_0x3a4123,n=readJsonFile(path[r(445)](e,"ascf","ascf_src","package.json"));if(n==={})logger[r(461)](r(408));else{if(n[r(431)])for(var t in n[r(431)])if(Object[r(423)][r(444)][r(404)](n[r(431)],t)){var o=path[r(445)](e,r(458),r(418),"miniprogram_npm",t);if(!fs.existsSync(o)){var a=path[r(445)](e,r(458),r(418),r(436),t);if(!fs[r(412)](a))return void logger[r(451)]("".concat(t,r(460))[r(402)](t,"."));hasHxml(a)&&(t=readJsonFile(path[r(445)](a,r(422)))[r(417)],moveFiles(t?path[r(445)](a,t):a,o))}}logger[r(441)](r(442))}}function buildNpm(e){var r=_0x3a4123;try{buildMiniProgramNpm(e)}catch(e){logger[r(451)]("Error: ascf buildNpm error: "[r(402)](e,"."))}}module.exports={buildNpm:buildNpm,install:function(e){var n,r=_0x3a4123;e[r(434)]("buildNpm <projectRoot>")[r(435)](r(421))[r(439)]((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.apply(this,arguments)}))}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x447456=_0x121f;function _0x47a6(){var e=["Clear build resource","46548WrigNt","Skip API and components validator, default is true","p12 File Path for ","99aVSnaK","BUILD_TARGET_QS","GeneratorFunction","42dNmanM","--targets [buildTarget]","262048TWvWYI","select a device to start hot reload","--qs-host-pkg [pkg]","Run command on changes been watched","@@iterator","--analyzeBundle","option","../common/constants.js","bind","Build targets, atomicservice and ","resolve","concat","@@toStringTag","__proto__","-w, --watch","description","then","Generator is already running","2722385HoByba","--templateHoist","Compile ascf project","create","constructor","Generator","[object Generator]","The iterator does not provide a '","analyze bundle","exports","compile <projectRoot>","4378tShkdj","Disable subpackages, default is true for development, false for production","iterator","Password of the p12 file for ","apply","getPrototypeOf","compile","--sign-private-key-path [path]","Show build progress","Use swc parser, default is babel parser","Host package for ","9nncwRB","--deviceId [deviceId]","--devtool [type]","--sign-public-key-path [path]","prototype","next","_supportLegacyHos","--skipApiValidator [flag]","_invoke","-r, --run [command]","--sign-profile-path [path]","Start dev-server","-p, --progress","Hoist template to page scope, default is true when have base.hxml","../index","call","value","return","53112IINKoZ","length","439556muIoTP","Sign public key path for ","--disableSubpackages [true or false]","--swc","640770FvcFtJ","' method","--serve","setPrototypeOf","628002qURgkp","throw","--sign-pwd [pwd]","8SzArFG"];return(_0x47a6=function(){return e})()}function _regenerator(){var v,h=_0x121f,e="function"==typeof Symbol?Symbol:{},r=e[h(237)]||h(210),t=e.toStringTag||h(218);function n(e,r,t,n){var o,a,i,c,u,s,p,f,l,_,d=h,r=r&&r[d(250)]instanceof y?r:y,r=Object.create(r.prototype);return _regeneratorDefine2(r,d(254),(o=e,a=t,f=n||[],l=!1,_={p:p=0,n:0,v:v,a:g,f:g[(s=d)(214)](v,4),d:function(e,r){return i=e,c=0,u=v,_.n=r,m}},function(e,r,t){var n=s;if(1<p)throw TypeError(n(223));for(l&&1===r&&g(r,t),c=r,u=t;(b=c<2?v:u)||!l;){i||(c?c<3?(1<c&&(_.n=-1),g(c,u)):_.n=u:_.v=u);try{if(p=2,i){if(c||(e=n(251)),b=i[e]){if(!(b=b[n(261)](i,u)))throw TypeError("iterator result is not an object");if(!b.done)return b;u=b[n(262)],c<2&&(c=0)}else 1===c&&(b=i[n(263)])&&b.call(i),c<2&&(u=TypeError(n(231)+e+n(190)),c=1);i=v}else if((b=(l=_.n<0)?u:o[n(261)](a,_))!==m)break}catch(e){i=v,c=1,u=e}finally{p=1}}return{value:b,done:l}}),!0),r;function g(e,r){var t=s;for(c=e,u=r,b=0;!l&&p&&!n&&b<f[t(265)];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]=v):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 m;throw l=!0,r}}var m={};function y(){}function o(){}function a(){}var b=Object[h(240)],e=[][r]?b(b([][r]())):(_regeneratorDefine2(b={},r,function(){return this}),b),i=a.prototype=y.prototype=Object.create(e);function c(e){var r=h;return Object[r(192)]?Object[r(192)](e,a):(e[r(219)]=a,_regeneratorDefine2(e,t,r(203))),e[r(250)]=Object[r(227)](i),e}return o[h(250)]=a,_regeneratorDefine2(i,h(228),a),_regeneratorDefine2(a,"constructor",o),o.displayName="GeneratorFunction",_regeneratorDefine2(a,t,h(203)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,h(229)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return h(230)}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,t,n){var o=_0x121f;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[_0x121f(254)](r,t,e)})})(o(251),0),n("throw",1),n(o(263),2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x121f;try{var u=e[a](i),s=u[c(262)]}catch(e){return void t(e)}u.done?r(s):Promise[c(216)](s)[c(222)](n,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0x121f,o=u[n(239)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,n(251),e)}function i(e){asyncGeneratorStep(o,r,t,a,i,n(194),e)}a(void 0)})}}(()=>{for(var e=_0x121f,r=_0x47a6();;)try{if(578585==-parseInt(e(266))+-parseInt(e(264))/2*(-parseInt(e(201))/3)+parseInt(e(196))/4*(parseInt(e(224))/5)+-parseInt(e(193))/6*(-parseInt(e(204))/7)+parseInt(e(206))/8*(parseInt(e(246))/9)+-parseInt(e(270))/10+parseInt(e(235))/11*(-parseInt(e(198))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x447456(213)),BUILD_TARGET_QS=_require[_0x447456(202)];function _0x121f(e,r){var t=_0x47a6();return(_0x121f=function(e,r){return t[e-=190]})(e,r)}module[_0x447456(233)]={install:function(e){var t,r=_0x447456,e=e.command(r(234))[r(221)](r(226))[r(212)](r(258),r(243))[r(212)](r(220),"Watch run for changes")[r(212)]("-m, --mode","Environment, empty is production, -m is development")[r(212)]("-c, --clear",r(197))[r(212)](r(255),r(209))[r(212)](r(269),r(244))[r(212)](r(248),"sourcemap type, default is eval-cheap-source-map")[r(212)](r(268),r(236))[r(212)](r(211),r(232),!1)[r(212)](r(225),r(259))[r(212)](r(253),r(199))[r(212)](r(191),r(257)).option(r(247),r(207))[r(212)](r(205),r(215)[r(217)](BUILD_TARGET_QS));global[r(252)]&&e.option(r(208),r(245)[r(217)](BUILD_TARGET_QS)).option(r(242),"Sign private key path for "[r(217)](BUILD_TARGET_QS)).option(r(249),r(267)[r(217)](BUILD_TARGET_QS))[r(212)](r(195),r(238)[r(217)](BUILD_TARGET_QS))[r(212)](r(256),r(200)[r(217)](BUILD_TARGET_QS)),e.action((t=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x121f;;)switch(e.n){case 0:return e.n=1,require(r(260))[r(241)](t,n);case 1:return e.a(2)}},e)})),function(e,r){return t[_0x121f(239)](this,arguments)}))}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x3c88ac=_0x44b8;function _0x5746(){var r=["next","exports","497784QJlmlE","The iterator does not provide a '","1257216NpbRPB","value","call","223710XESjTM","2149840tSsBmZ","Build targets, atomicservice and ","-o, --output <output-directory>","defineProperty","Generator","done","../common/constants.js","convert","Validate path","Generator is already running","setPrototypeOf","command","4jPuTCj","function","Not add todo for not supported api.","GeneratorFunction","[object Generator]","iterator","@@iterator","__proto__","apply","return","concat","displayName","Convert miniprogram project to ascf project","BUILD_TARGET_QS","_invoke","-va, --validate","constructor","284932rJTHsy","requiredOption","7bicsXp","toString","Clear convert output path","-notaddtodo, --notaddtodo","throw","prototype","toStringTag","option","219150oRSLzE","9iCRqGW","create","5219290RZYFFi"];return(_0x5746=function(){return r})()}function _regenerator(){var d,b=_0x44b8,r=b(456)==typeof Symbol?Symbol:{},e=r[b(460)]||b(461),t=r[b(429)]||"@@toStringTag";function n(r,e,t,n){var o,a,i,c,u,f,p,s,_,v=b,e=e&&e.prototype instanceof g?e:g,e=Object[v(433)](e[v(428)]);return _regeneratorDefine2(e,v(469),(o=r,a=t,p=n||[],s=!1,_={p:f=0,n:0,v:d,a:l,f:l.bind(d,4),d:function(r,e){return i=r,c=0,u=d,_.n=e,y}},function(r,e,t){var n=_0x44b8;if(1<f)throw TypeError(n(452));for(s&&1===e&&l(e,t),c=e,u=t;(h=c<2?d:u)||!s;){i||(c?c<3?(1<c&&(_.n=-1),l(c,u)):_.n=u:_.v=u);try{if(f=2,i){if(h=i[r=c?r:"next"]){if(!(h=h.call(i,u)))throw TypeError("iterator result is not an object");if(!h[n(448)])return h;u=h[n(440)],c<2&&(c=0)}else 1===c&&(h=i[n(464)])&&h[n(441)](i),c<2&&(u=TypeError(n(438)+r+"' method"),c=1);i=d}else if((h=(s=_.n<0)?u:o.call(a,_))!==y)break}catch(r){i=d,c=1,u=r}finally{f=1}}return{value:h,done:s}}),!0),e;function l(r,e){for(c=r,u=e,h=0;!s&&f&&!t&&h<p.length;h++){var t,n=p[h],o=_.p,a=n[2];3<r?(t=a===e)&&(u=n[(c=n[4])?5:c=3],n[4]=n[5]=d):n[0]<=o&&((t=r<2&&o<n[1])?(c=0,_.v=e,_.n=n[1]):o<a&&(t=r<3||n[0]>e||a<e)&&(n[4]=r,n[5]=e,_.n=a,c=0))}if(t||1<r)return y;throw s=!0,e}}var y={};function g(){}function o(){}function a(){}var h=Object.getPrototypeOf,r=[][e]?h(h([][e]())):(_regeneratorDefine2(h={},e,function(){return this}),h),i=a.prototype=g[b(428)]=Object[b(433)](r);function c(r){var e=b;return Object[e(453)]?Object[e(453)](r,a):(r[e(462)]=a,_regeneratorDefine2(r,t,e(458))),r[e(428)]=Object.create(i),r}return o[b(428)]=a,_regeneratorDefine2(i,b(471),a),_regeneratorDefine2(a,b(471),o),o[b(466)]="GeneratorFunction",_regeneratorDefine2(a,t,"GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,t,b(447)),_regeneratorDefine2(i,e,function(){return this}),_regeneratorDefine2(i,b(424),function(){return b(459)}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(r,e,t,n){var a=_0x44b8,i=Object[a(446)];try{i({},"",{})}catch(r){i=0}(_regeneratorDefine2=function(r,e,t,n){var o=a;e?i?i(r,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):r[e]=t:((n=function(e,t){_regeneratorDefine2(r,e,function(r){return this[_0x44b8(469)](e,t,r)})})(o(435),0),n(o(427),1),n("return",2))})(r,e,t,n)}function asyncGeneratorStep(r,e,t,n,o,a,i){var c=_0x44b8;try{var u=r[a](i),f=u.value}catch(r){return void t(r)}u[c(448)]?e(f):Promise.resolve(f).then(n,o)}function _asyncToGenerator(u){return function(){var r=this,c=arguments;return new Promise(function(e,t){var n=_0x44b8,o=u[n(463)](r,c);function a(r){asyncGeneratorStep(o,e,t,a,i,n(435),r)}function i(r){asyncGeneratorStep(o,e,t,a,i,"throw",r)}a(void 0)})}}function _0x44b8(r,e){var t=_0x5746();return(_0x44b8=function(r,e){return t[r-=421]})(r,e)}(()=>{for(var r=_0x44b8,e=_0x5746();;)try{if(264585==+parseInt(r(421))+parseInt(r(431))/2+-parseInt(r(442))/3*(parseInt(r(455))/4)+-parseInt(r(443))/5+parseInt(r(439))/6*(-parseInt(r(423))/7)+parseInt(r(437))/8*(parseInt(r(432))/9)+parseInt(r(434))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require(_0x3c88ac(449)),BUILD_TARGET_QS=_require[_0x3c88ac(468)];module[_0x3c88ac(436)]={install:function(r){var e,t=_0x3c88ac;r[t(454)](t(450)).description(t(467))[t(422)]("-i, --input <input-directory>").requiredOption(t(445))[t(430)]("-c, --clear",t(425))[t(430)](t(470),t(451))[t(430)](t(426),t(457)).option("--targets [type]",t(444)[t(465)](BUILD_TARGET_QS)).action((e=_asyncToGenerator(_regenerator().m(function r(t){return _regenerator().w(function(r){for(var e=_0x44b8;;)switch(r.n){case 0:return r.n=1,require("../index")[e(450)](t);case 1:return r.a(2)}},r)})),function(r){return e.apply(this,arguments)}))}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x1154e6=_0x48f7;function _0x48f7(e,r){var t=_0x39d8();return(_0x48f7=function(e,r){return t[e-=256]})(e,r)}function _regenerator(){var l,b=_0x48f7,e=b(261)==typeof Symbol?Symbol:{},r=e[b(285)]||b(280),t=e[b(278)]||b(266);function n(e,r,t,n){var o,a,i,c,u,f,s,v,d,p,_=b,r=r&&r[_(257)]instanceof h?r:h,r=Object[_(283)](r[_(257)]);return _regeneratorDefine2(r,_(274),(o=e,a=t,v=n||[],d=!1,p={p:s=0,n:0,v:l,a:g,f:g[(f=_)(264)](l,4),d:function(e,r){return i=e,c=0,u=l,p.n=r,y}},function(e,r,t){var n=f;if(1<s)throw TypeError(n(258));for(d&&1===r&&g(r,t),c=r,u=t;(x=c<2?l:u)||!d;){i||(c?c<3?(1<c&&(p.n=-1),g(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(x=i[e=c?e:"next"]){if(!(x=x[n(297)](i,u)))throw TypeError(n(306));if(!x[n(310)])return x;u=x[n(265)],c<2&&(c=0)}else 1===c&&(x=i.return)&&x[n(297)](i),c<2&&(u=TypeError(n(270)+e+n(314)),c=1);i=l}else if((x=(d=p.n<0)?u:o[n(297)](a,p))!==y)break}catch(e){i=l,c=1,u=e}finally{s=1}}return{value:x,done:d}}),!0),r;function g(e,r){for(c=e,u=r,x=0;!d&&s&&!t&&x<v.length;x++){var t,n=v[x],o=p.p,a=n[2];3<e?(t=a===r)&&(u=n[(c=n[4])?5:c=3],n[4]=n[5]=l):n[0]<=o&&((t=e<2&&o<n[1])?(c=0,p.v=r,p.n=n[1]):o<a&&(t=e<3||n[0]>r||a<r)&&(n[4]=e,n[5]=r,p.n=a,c=0))}if(t||1<e)return y;throw d=!0,r}}var y={};function h(){}function o(){}function a(){}var x=Object.getPrototypeOf,e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),i=a.prototype=h.prototype=Object[b(283)](e);function c(e){var r=b;return Object[r(315)]?Object[r(315)](e,a):(e[r(289)]=a,_regeneratorDefine2(e,t,r(312))),e[r(257)]=Object[r(283)](i),e}return o[b(257)]=a,_regeneratorDefine2(i,"constructor",a),_regeneratorDefine2(a,b(273),o),o[b(259)]="GeneratorFunction",_regeneratorDefine2(a,t,b(312)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,"Generator"),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,b(275),function(){return"[object Generator]"}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,t,n){var o=_0x48f7;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._invoke(r,t,e)})})(o(313),0),n("throw",1),n("return",2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x48f7;try{var u=e[a](i),f=u.value}catch(e){return void t(e)}u.done?r(f):Promise[c(256)](f).then(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,"next",e)}function a(e){asyncGeneratorStep(n,r,t,o,a,_0x48f7(304),e)}o(void 0)})}}(()=>{for(var e=_0x48f7,r=_0x39d8();;)try{if(276477==-parseInt(e(299))*(-parseInt(e(269))/2)+-parseInt(e(305))/3*(parseInt(e(263))/4)+-parseInt(e(262))/5+-parseInt(e(293))/6+parseInt(e(284))/7*(-parseInt(e(303))/8)+parseInt(e(268))/9+parseInt(e(296))/10*(parseInt(e(301))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x1154e6(294)),AscfDebugger=_require[_0x1154e6(288)];function _0x39d8(){var e=["displayName","start-service","function","2175480HyiBQq","160yQPQnw","bind","value","@@toStringTag","action","4382604UKwvkm","24ZSnLBT","The iterator does not provide a '","default","select a device to debug","constructor","_invoke","toString","status","command","toStringTag","apply","@@iterator","start","debugger","create","898065lggGRv","iterator","-t, --deviceId [deviceId]","exports","AscfDebugger","__proto__","-o, --open <browser>","bundleName of debugging project","option","3304524AHDmBF","../../ascf-base","-b, --bundleName [bundleName]","1002160OIeYac","call","start-view","35434TYKThH",'Open default browser, "default","chrome","edge"',"88notwms","forEach","24JxUVAL","throw","5001BsEbEi","iterator result is not an object","stop","handle","description","done","stop-service","GeneratorFunction","next","' method","setPrototypeOf","resolve","prototype","Generator is already running"];return(_0x39d8=function(){return e})()}module[_0x1154e6(287)]={install:function(e){function t(n){return r=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(var r=_0x48f7;;)switch(e.n){case 0:new AscfDebugger(t)[r(308)](n);case 1:return e.a(2)}},e)})),function(e){return r[_0x48f7(279)](this,arguments)};var r}var n=_0x1154e6,o=e[n(277)](n(282))[n(309)]("Start or stop debugger");[n(276)][n(302)](function(e){var r=n;o[r(277)](e).description(e)[r(292)](r(295),r(291))[r(292)]("-t, --deviceId [deviceId]","select a device to debug")[r(267)](t(e))}),[n(281),n(298),n(260)][n(302)](function(e){var r=n;o[r(277)](e)[r(309)](e)[r(292)](r(290),r(300),r(271))[r(292)](r(295),r(291)).option("-t, --deviceId [deviceId]",r(272))[r(267)](t(e))}),[n(307),"stop-view",n(311)][n(302)](function(e){var r=n;o[r(277)](e)[r(309)](e)[r(292)](r(295),r(291))[r(292)](r(286),"select a device to debug")[r(267)](t(e))})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x2a74a7=_0x1a67;function _0x1a67(e,r){var n=_0x5795();return(_0x1a67=function(e,r){return n[e-=436]})(e,r)}function _regenerator(){var v,y=_0x1a67,e=y(511)==typeof Symbol?Symbol:{},r=e[y(441)]||y(471),n=e[y(506)]||y(460);function t(e,r,n,t){var a,i,o,c,s,u,f,g,p,h,_=y,r=r&&r[_(474)]instanceof P?r:P,r=Object[_(508)](r[_(474)]);return _regeneratorDefine2(r,_(449),(a=e,i=n,g=t||[],p=!1,h={p:f=0,n:0,v:v,a:l,f:l[(u=_)(496)](v,4),d:function(e,r){return o=e,c=0,s=v,h.n=r,d}},function(e,r,n){var t=u;if(1<f)throw TypeError(t(500));for(p&&1===r&&l(r,n),c=r,s=n;(x=c<2?v:s)||!p;){o||(c?c<3?(1<c&&(h.n=-1),l(c,s)):h.n=s:h.v=s);try{if(f=2,o){if(x=o[e=c?e:"next"]){if(!(x=x[t(516)](o,s)))throw TypeError(t(473));if(!x[t(494)])return x;s=x.value,c<2&&(c=0)}else 1===c&&(x=o[t(444)])&&x[t(516)](o),c<2&&(s=TypeError("The iterator does not provide a '"+e+t(461)),c=1);o=v}else if((x=(p=h.n<0)?s:a[t(516)](i,h))!==d)break}catch(e){o=v,c=1,s=e}finally{f=1}}return{value:x,done:p}}),!0),r;function l(e,r){var n=u;for(c=e,s=r,x=0;!p&&f&&!t&&x<g[n(507)];x++){var t,a=g[x],i=h.p,o=a[2];3<e?(t=o===r)&&(s=a[(c=a[4])?5:c=3],a[4]=a[5]=v):a[0]<=i&&((t=e<2&&i<a[1])?(c=0,h.v=r,h.n=a[1]):i<o&&(t=e<3||a[0]>r||o<r)&&(a[4]=e,a[5]=r,h.n=o,c=0))}if(t||1<e)return d;throw p=!0,r}}var d={};function P(){}function a(){}function i(){}var x=Object[y(488)],e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),o=i[y(474)]=P.prototype=Object[y(508)](e);function c(e){var r=y;return Object[r(495)]?Object[r(495)](e,i):(e.__proto__=i,_regeneratorDefine2(e,n,r(517))),e[r(474)]=Object[r(508)](o),e}return a[y(474)]=i,_regeneratorDefine2(o,y(468),i),_regeneratorDefine2(i,y(468),a),a[y(492)]=y(517),_regeneratorDefine2(i,n,y(517)),_regeneratorDefine2(o),_regeneratorDefine2(o,n,"Generator"),_regeneratorDefine2(o,r,function(){return this}),_regeneratorDefine2(o,"toString",function(){return y(452)}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var i=_0x1a67,o=Object[i(438)];try{o({},"",{})}catch(e){o=0}(_regeneratorDefine2=function(e,r,n,t){var a=i;r?o?o(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x1a67(449)](r,n,e)})})(a(453),0),t("throw",1),t(a(444),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,a,i,o){var c=_0x1a67;try{var s=e[i](o),u=s.value}catch(e){return void n(e)}s[c(494)]?r(u):Promise[c(490)](u)[c(455)](t,a)}function _asyncToGenerator(s){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0x1a67,a=s[t(510)](e,c);function i(e){asyncGeneratorStep(a,r,n,i,o,t(453),e)}function o(e){asyncGeneratorStep(a,r,n,i,o,t(462),e)}i(void 0)})}}(()=>{for(var e=_0x1a67,r=_0x5795();;)try{if(725845==-parseInt(e(466))+parseInt(e(458))/2*(parseInt(e(475))/3)+-parseInt(e(480))/4+parseInt(e(465))/5*(parseInt(e(487))/6)+parseInt(e(476))/7+-parseInt(e(456))/8+-parseInt(e(501))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var fs=require("fs"),path=require(_0x2a74a7(486)),cachedir=require(_0x2a74a7(472)),signTools=require("../../ascf-sign-tools"),log4js=require("../../common/log4js"),logger=log4js[_0x2a74a7(436)]("ascf-sign-tools");function _0x5795(){var e=["join","3760636sqeoxx","generate-p12","mkdirSync","--sign-profile-path [path]","printFp","p12 File Path","path","678AQXDzn","getPrototypeOf","error","resolve","signPublicKeyPath","displayName","genCert","done","setPrototypeOf","bind","finally","description","-r, --projectRoot [projectRoot]","Generator is already running","3160332KunFgm","tmp sign dir ","sign/certificate.pem","genP12","action","toStringTag","length","create","concat","apply","function","certificate.pem","Sign public key path","sign/ascf-build.p12","--sign-public-key-path [path]","call","GeneratorFunction","getLogger","-i, --input <input-directory>","defineProperty","requiredOption","genCertAndP12 error","iterator","signProfilePath","catch","return","Sign tools to generate keypair, p12 file and view fingerprint","View Fingerprint","debug","rmSync","_invoke","existsSync","option","[object Generator]","next","input","then","7529760krBGIT","generate keypair","1154auCrOy","dirname","@@toStringTag","' method","throw","private.pem","signtools","17870oGGARU","30669ESEOqp","warn","constructor","sign/private.pem","ascf-cache-tmp-sign","@@iterator","cachedir","iterator result is not an object","prototype","6489TJcuNO","9359896nkJEpf","--sign-pwd [pwd]","command"];return(_0x5795=function(){return e})()}function ensureDir(e){var r=_0x2a74a7,e=path[r(459)](e);return fs.existsSync(e)||fs[r(482)](e,{recursive:!0}),e}function getParams(e){var r=_0x2a74a7,n=e.projectRoot,t=e.signPrivateKeyPath,a=e.signPublicKeyPath,i=e[r(442)],e=e.signPwd;return{signPrivateKeyPath:t=n&&!t?path[r(479)](n,r(469)):t,signPublicKeyPath:a=n&&!a?path[r(479)](n,r(503)):a,signProfilePath:i=n&&!i?path.join(n,r(514)):i,signPwd:e}}function genCertAndP12(e,r){return _genCertAndP[_0x2a74a7(510)](this,arguments)}function _genCertAndP(){var e=_0x2a74a7;return(_genCertAndP=_asyncToGenerator(_regenerator().m(function e(r,t){var a,i,o;return _regenerator().w(function(e){for(var n=_0x1a67;;)if(0===e.n)return a=cachedir(n(470)),logger[n(447)](n(502)[n(509)](a)),i=path[n(479)](a,n(463)),o=path[n(479)](a,n(512)),ensureDir(i),e.a(2,signTools[n(493)](i,o).then(function(){return signTools[n(504)](r,i,o,t)})[n(443)](function(e){var r=n;logger[r(489)](r(440),e)})[n(497)](function(){fs[n(448)](a,{recursive:!0,force:!0})}))},e)})))[e(510)](this,arguments)}module.exports={install:function(e){var r,n,t,a=_0x2a74a7,e=e.command(a(464))[a(498)](a(445));e.command("generate-keypair")[a(498)](a(457))[a(451)](a(499),"projectRoot")[a(451)]("--sign-private-key-path [path]","Sign private key path")[a(451)](a(515),a(513))[a(505)]((t=_asyncToGenerator(_regenerator().m(function e(n){var t,a;return _regenerator().w(function(e){for(var r=_0x1a67;;)if(0===e.n)return a=getParams(n),t=a.signPrivateKeyPath,a=a[r(491)],ensureDir(t),ensureDir(a),e.a(2,signTools[r(493)](t,a))},e)})),function(e){return t[_0x1a67(510)](this,arguments)})),e[a(478)](a(481))[a(498)]("generate p12")[a(451)](a(499),"projectRoot")[a(451)]("--sign-private-key-path [path]","Sign private key path")[a(451)](a(515),a(513))[a(451)](a(483),a(485))[a(439)](a(477),"Password of the p12 file")[a(505)]((n=_asyncToGenerator(_regenerator().m(function e(n){var t,a,i,o;return _regenerator().w(function(e){for(var r=_0x1a67;;)switch(e.n){case 0:if(o=getParams(n),t=o.signPrivateKeyPath,a=o[r(491)],i=o.signProfilePath,o=o.signPwd,ensureDir(i),fs[r(450)](t)&&fs.existsSync(a)){e.n=1;break}return logger[r(467)](r(457)),e.a(2,genCertAndP12(i,o));case 1:return e.a(2,signTools[r(504)](i,t,a,o))}},e)})),function(e){return n[_0x1a67(510)](this,arguments)})),e[a(478)]("printFp").description(a(446)).requiredOption(a(437)).action((r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0x1a67;;)switch(e.n){case 0:signTools[r(484)](n[r(454)]);case 1:return e.a(2)}},e)})),function(e){return r[_0x1a67(510)](this,arguments)}))}};
|
package/lib/common/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x3f15c9=_0x36db;function _0x1714(){var e=["movable-area","slider","checkbox-group","text","277809HVmDrv","textarea","picker-view","1793090eoNbnt","canvas","input","picker","switch","radio-group","video","picker-view-column","11PEzaSJ","web-view","19878zhBcst","label","255200lLbhXu","Map","image","isProd","12252942aOaFvY","configs","2574696ssZAqP","development","NODE_ENV","1462760ORXytk","30GNtaKj","icon","button","swiper"];return(_0x1714=function(){return e})()}function _0x36db(e,r){var t=_0x1714();return(_0x36db=function(e,r){return t[e-=288]})(e,r)}(()=>{for(var e=_0x36db,r=_0x1714();;)try{if(321079==-parseInt(e(313))*(parseInt(e(315))/2)+parseInt(e(294))/3*(-parseInt(e(317))/4)+parseInt(e(305))/5+-parseInt(e(290))/6+-parseInt(e(302))/7+-parseInt(e(293))/8+parseInt(e(288))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var configs={notaddtodo:!1,parser:"babel",devtool:void 0,componentList:[_0x3f15c9(298),"movable-view","scroll-view",_0x3f15c9(297),"swiper-item","view",_0x3f15c9(295),"progress","rich-text",_0x3f15c9(301),_0x3f15c9(296),"checkbox",_0x3f15c9(300),"form",_0x3f15c9(307),_0x3f15c9(316),_0x3f15c9(308),_0x3f15c9(304),_0x3f15c9(312),"radio",_0x3f15c9(310),_0x3f15c9(299),_0x3f15c9(309),_0x3f15c9(303),"navigator",_0x3f15c9(319),_0x3f15c9(311),"camera",_0x3f15c9(318),_0x3f15c9(306),_0x3f15c9(314)],templateHoist:!1,ascfLazyImportFiles:{},skipApiValidator:!0,serve:!1,deviceId:!1,isProd:function(){var e=_0x3f15c9;return process.env[e(292)]!==e(291)},isInjectDebugTimer:function(){return!configs[_0x3f15c9(320)]()},requiredComponents:[],tabBarUsingComponents:{},tabBarList:[],asyncJsList:{},jsLoaderList:new Set};exports[_0x3f15c9(289)]=configs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x582058=_0x5806;function _0x31b2(){var r=["185ikDkxn","4027347PpWNhT","atomicservice","2379418pTcxlD","2018216DrFcHF","28602cXcisG","6618425KysbaB","3lRPJAF","1188061vBIiHU","exports","14sieVYk","30nnOSsR","2962716szUadL"];return(_0x31b2=function(){return r})()}function _0x5806(r,n){var t=_0x31b2();return(_0x5806=function(r,n){return t[r-=190]})(r,n)}(()=>{for(var r=_0x5806,n=_0x31b2();;)try{if(946686==-parseInt(r(199))+parseInt(r(194))/2+-parseInt(r(198))/3*(parseInt(r(190))/4)+-parseInt(r(191))/5*(parseInt(r(196))/6)+-parseInt(r(201))/7*(-parseInt(r(195))/8)+-parseInt(r(192))/9+parseInt(r(202))/10*(parseInt(r(197))/11))break;n.push(n.shift())}catch(r){n.push(n.shift())}})();var BUILD_TARGET_AS=_0x582058(193),BUILD_TARGET_QS="crossAtomicService";module[_0x582058(200)]={BUILD_TARGET_AS:BUILD_TARGET_AS,BUILD_TARGET_QS:BUILD_TARGET_QS};
|
package/lib/common/log4js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1235(e,r){var t=_0x150f();return(_0x1235=function(e,r){return t[e-=217]})(e,r)}function _0x150f(){var e=["8842689PBfbty","8IMTKqF","34994zhdExC","ASCF_LOG_FILE","21613920gCdrPP","5055827zjmWhg","5419338lWBVeD","22QOudKV","1672SxYuki","1314291vFlvOh","setLoggerConfig","getLogger","13395gdKTVO","exports"];return(_0x150f=function(){return e})()}var _0x232075=_0x1235,_require=((()=>{for(var e=_0x1235,r=_0x150f();;)try{if(701118==+parseInt(e(217))*(parseInt(e(226))/2)+parseInt(e(219))/3+-parseInt(e(218))/4*(parseInt(e(222))/5)+-parseInt(e(230))/6+-parseInt(e(229))/7*(-parseInt(e(225))/8)+-parseInt(e(224))/9+parseInt(e(228))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require("../ascf-base")),ASCF_LOG_FILE=_require[_0x232075(227)],setLoggerConfig=_require[_0x232075(220)],getLogger=_require[_0x232075(221)];module[_0x232075(223)]={ASCF_LOG_FILE:ASCF_LOG_FILE,setLoggerConfig:setLoggerConfig,getLogger:getLogger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x46fdcb=_0xb326;function _typeof(r){var t=_0xb326;return(_typeof=t(463)==typeof Symbol&&t(421)==typeof Symbol[t(418)]?function(r){return typeof r}:function(r){var e=t;return r&&e(463)==typeof Symbol&&r.constructor===Symbol&&r!==Symbol[e(403)]?e(421):typeof r})(r)}function _classCallCheck(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(r,e){for(var t=_0xb326,n=0;n<e[t(429)];n++){var o=e[n];o[t(416)]=o.enumerable||!1,o.configurable=!0,t(391)in o&&(o[t(415)]=!0),Object[t(407)](r,_toPropertyKey(o[t(377)]),o)}}function _createClass(r,e,t){var n=_0xb326;return e&&_defineProperties(r[n(403)],e),t&&_defineProperties(r,t),Object.defineProperty(r,n(403),{writable:!1}),r}function _toPropertyKey(r){var e=_0xb326,r=_toPrimitive(r,e(465));return e(421)==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0xb326;if(t(422)!=_typeof(r)||!r)return r;var n=r[Symbol[t(390)]];if(void 0===n)return("string"===e?String:Number)(r);n=n[t(370)](r,e||"default");if(t(422)!=_typeof(n))return n;throw new TypeError(t(388))}function _0x59ad(){var r=["reduce","4295904MVbqut","map","key","true","@@iterator","startTime","done","showCompileTime","Set","noteCount","FAIL ","SyntaxError","hasErrors","@@toPrimitive must return a primitive value.","warnings","toPrimitive","value","compilation","1088796ZoBCrJ","includes","options","11KVqwnz","constructor","printCompileResult","./log4js.js","extraInfo","from","endTime","prototype","9604557DCgXpH","calculate","origin","defineProperty","file","dropRepeat","concat","86gzJKnX","getTime","\nCOMPILE RESULT:SUCCESS","warnCount","writable","enumerable","ERROR: ","iterator","displayErrors"," ms","symbol","object","3956dVxyBB","test","1900vKMDUU","undefined","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","name","length",", elapsed: ","ASCF_LOG_FILE","fatal","info","Map","50973aBaQYm","7DJCEVg","assign","stringify","hooks","warningCount","Error: ","errorCount","exports","beginTime","1464073OTcPIk","round","errors","env","logger-plugin","compileTime: ","SUCCESS ","\nCOMPILE RESULT:","apply","26064960TzQTCZ","message","isArray","forEach","formatters","warning","showtime","error","replace","function","Module not found","string","call","BuildLogOutputPlugin","transformers","resource"];return(_0x59ad=function(){return r})()}function _0xb326(r,e){var t=_0x59ad();return(_0xb326=function(r,e){return t[r-=370]})(r,e)}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0xb326(427))}function _unsupportedIterableToArray(r,e){var t,n=_0xb326;if(r)return n(465)==typeof r?_arrayLikeToArray(r,e):("Object"===(t={}.toString[n(370)](r).slice(8,-1))&&r.constructor&&(t=r[n(397)].name),n(434)===t||n(383)===t?Array[n(401)](r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0)}function _iterableToArray(r){var e=_0xb326;if(e(426)!=typeof Symbol&&null!=r[Symbol[e(418)]]||null!=r[e(379)])return Array[e(401)](r)}function _arrayWithoutHoles(r){if(Array[_0xb326(456)](r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){var t=_0xb326;(null==e||e>r.length)&&(e=r[t(429)]);for(var n=0,o=Array(e);n<e;n++)o[n]=r[n];return o}(()=>{for(var r=_0xb326,e=_0x59ad();;)try{if(747641==-parseInt(r(445))+-parseInt(r(411))/2*(parseInt(r(435))/3)+-parseInt(r(423))/4*(parseInt(r(425))/5)+parseInt(r(393))/6*(parseInt(r(436))/7)+-parseInt(r(375))/8+parseInt(r(404))/9+-parseInt(r(454))/10*(-parseInt(r(396))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x46fdcb(464),log4js=require(_0x46fdcb(399)),logger=log4js.getLogger(_0x46fdcb(449));function defaultFormatter(r,e){return r.reduce(function(r,e){var t=_0xb326;return[][t(410)](_toConsumableArray(r),["\n"[t(410)](e[t(455)])])},[])}function babelSyntaxError(r){var e=_0x46fdcb;return isBabelSyntaxError(r)&&(r[e(455)]=cleanStackTrace(r[e(455)])),r}function isBabelSyntaxError(r){var e=_0x46fdcb;return"ModuleBuildError"===r.name&&r[e(455)][e(394)](e(386))}function cleanStackTrace(r){var e=_0x46fdcb;return r.replace(/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"")[e(462)](/^Module build failed.*:\s/,e(441))}function moduleNotFoundError(r){var e,t=_0x46fdcb;return"ModuleNotFoundError"===r[t(428)]&&r[t(455)][t(394)](TYPE)&&(r[t(455)]=r[t(455)].replace(TYPE,t(417)[t(410)](TYPE)),e=r[t(406)]&&r[t(406)][t(373)])&&(r[t(455)]+="\n@ ".concat(e)),r}var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x46fdcb;return{message:r.message,file:r[e(408)],origin:r.origin,name:r[e(428)],severity:0,webpackError:r}}function cleanMessage(r){var e=_0x46fdcb;return r[e(462)]("(Emitted value instead of an instance of Error) ","")[e(462)](/Module Warning[^\n]+\n/,"")[e(462)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}var n=_0x46fdcb;return r.map(extractError)[n(376)](function(r){return e[_0xb326(374)](t,r)})}function formatErrors(e,r,t){var n=_0x46fdcb;return r[n(376)](function(r){return r(e,t)||[]})[n(374)](function(r,e){return r[_0xb326(410)](e)},[])}function getCompileTime(r){var e=_0x46fdcb,t=r[e(402)],r=r[e(380)];logger[e(433)](e(450)[e(410)](t-r,e(420)))}function _dropRepeat(r){var n=_0x46fdcb;return r[n(374)](function(r,t){var e=n;return r.some(function(r){var e=_0xb326;return r[e(455)]===t[e(455)]})?r:r[e(410)](t)},[])}var BuildLogOutputPlugin=(()=>{var l=_0x46fdcb;return _createClass(function r(){var e=_0xb326,t=0<arguments[e(429)]&&void 0!==arguments[0]?arguments[0]:{},n=t[e(382)],n=void 0!==n&&n,t=t[e(395)];_classCallCheck(this,r),this[e(442)]=0,this[e(440)]=0,this[e(384)]=0,this[e(382)]=n||process[e(448)][e(460)]===e(378),this[e(458)]=defaultFormatters,this[e(372)]=defaultTransformers,this.options=t},[{key:l(453),value:function(r){var u=l,s=this;r[u(439)][u(381)].tap(u(371),function(e){var t=u,r=(s[t(409)](e),e[t(392)]),n=r[t(447)],o=r[t(389)],a=e[t(387)](),i=e.hasWarnings();setTimeout(function(){var r=t;a&&s[r(419)](n,r(461)),i&&s.displayErrors(o,r(459)),s[r(405)](e,n,o),s[r(398)](),s[r(382)]&&getCompileTime(e)})})}},{key:l(409),value:function(r){var e=l;r[e(392)][e(389)]=_dropRepeat(r[e(392)][e(389)]),r.compilation[e(447)]=_dropRepeat(r.compilation[e(447)])}},{key:"calculate",value:function(r,e){var t=l,n=this,o=2<arguments[t(429)]&&void 0!==arguments[2]?arguments[2]:[],r=r[t(392)][t(400)]||{},a=r[t(442)],a=void 0===a?0:a,i=r[t(414)],i=void 0===i?0:i,r=r[t(384)],r=void 0===r?0:r;this.errorCount=e[t(429)]+a,this.warningCount=i,this.noteCount=r,o[t(457)](function(r){var e=t,r=r[e(455)];/^NOTE:/[e(424)](cleanMessage(r))?n.noteCount++:n[e(440)]++})}},{key:l(398),value:function(){var r,e=l,t=this.errorCount,n=this.warningCount,o=this.noteCount,a=(new Date)[e(412)]()-global[e(444)],a=e(430)+Math[e(446)](a/1e3)+"s\n\nYou can check full log: "+log4js[e(431)];0<t+n+o?(r=e(t?385:451),n=Object[e(437)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),t?logger[e(432)](e(452)[e(410)](r)[e(410)](JSON[e(438)](n))+a):logger.warn("\nCOMPILE RESULT:".concat(r)[e(410)](JSON[e(438)](n))+a)):logger[e(433)](e(413)+a)}},{key:l(419),value:function(r,t){var n=l;formatErrors(transformErrors(r,this[n(372)]),this.formatters,t)[n(457)](function(r){var e=n;t===e(461)&&logger[e(461)](cleanMessage(r)),t===e(459)&&logger.warn(cleanMessage(r))})}},{key:"getBuildMsg",value:function(r,e){var t=l;return formatErrors(transformErrors(r,this[t(372)]),this[t(458)],e).map(function(r){return cleanMessage(r)})}}])})();module[_0x46fdcb(443)]=BuildLogOutputPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x269c(r,t){var n=_0x2659();return(_0x269c=function(r,t){return n[r-=283]})(r,t)}var _0x3e6fab=_0x269c;function _0x2659(){var r=["9819276uwuXZX","value","11ShxlSg","20YfCtuF","directives","1978461wHhiAv","exports","1GgyEya","2878016KmuVwt","9804QjVHHc","12HwUFrK","1238800BZGYIO","382403DAGVju","69442hIlXMm","length","435WVBvqH"];return(_0x2659=function(){return r})()}(()=>{for(var r=_0x269c,t=_0x2659();;)try{if(220487==+parseInt(r(287))*(parseInt(r(293))/2)+parseInt(r(295))/3*(-parseInt(r(289))/4)+-parseInt(r(291))/5+parseInt(r(290))/6*(-parseInt(r(292))/7)+-parseInt(r(288))/8+-parseInt(r(285))/9*(-parseInt(r(283))/10)+-parseInt(r(298))/11*(-parseInt(r(296))/12))break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module[_0x3e6fab(286)]=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x269c,n=r.node[t(284)],e=n[t(294)]-1;0<=e;e--)"use strict"===n[e][t(297)][t(297)]&&n.splice(e,1)}}}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x13ce(r,e){var n=_0x9d59();return(_0x13ce=function(r,e){return n[r-=468]})(r,e)}function _0x9d59(){var r=["replace","3819235LcILQD","102kdtCcU","10hpkyiT","68155iDyFGf","411323UhOGEG","28022yaOKmt","replaceAll","384800NobgUR","13675833nlilgz","798072Hizdbw","282GDIocz"];return(_0x9d59=function(){return r})()}(()=>{for(var r=_0x13ce,e=_0x9d59();;)try{if(340829==-parseInt(r(477))+-parseInt(r(478))/2*(parseInt(r(474))/3)+-parseInt(r(468))/4+parseInt(r(476))/5*(-parseInt(r(471))/6)+parseInt(r(473))/7+-parseInt(r(470))/8+-parseInt(r(469))/9*(-parseInt(r(475))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),exports.replaceAll=function(r,e,n){var t=_0x13ce;return String.prototype.replaceAll?null==r?void 0:r[t(479)](e,n):(e=e[t(472)](/[.*+?^${}()|[\]\\]/g,"\\$&"),e=new RegExp(e,"g"),null==r?void 0:r[t(472)](e,n))};
|
package/lib/common/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x13889f=_0x2bf2;function _createForOfIteratorHelper(r,e){var t,o,n,i,a=_0x2bf2,s=a(154)!=typeof Symbol&&r[Symbol[a(146)]]||r[a(196)];if(s)return n=!(o=!0),{s:function(){s=s[a(190)](r)},n:function(){var r=a,e=s[r(153)]();return o=e[r(187)],e},e:function(r){n=!0,t=r},f:function(){var r=a;try{o||null==s[r(116)]||s[r(116)]()}finally{if(n)throw t}}};if(Array.isArray(r)||(s=_unsupportedIterableToArray(r))||e&&r&&a(110)==typeof r[a(128)])return s&&(r=s),i=0,{s:e=function(){},n:function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},e:function(r){throw r},f:e};throw new TypeError(a(193))}function _0x344b(){var r=["tools","ascf/ascf_src","TOOLKIT_PATH","configs","production","map","babel","skipApiValidator","Moving files error:","env","module","Arguments","templateHoist","clear","iterator","disableSubpackages","ascf_src","Object","ascf_build","Map","toolchains","next","undefined","copyFileSync","columnNumber","openharmony","getBundleName","mkdirSync","path","handleResolveAlias","7mNploA","swc","src","prototype","utf-8","projectRoot","hvigor","app.json5","C:\\Program Files\\Huawei\\DevEco Studio\\bin","getEntryPkgPath","moveFiles","198mmiYNe","sync","writeFileSync","abilities","platform","resolve","toString","338PeOYUT","hdc","warn","projectCfg","constructor","2493825lldvqq","node.exe","done","all","isFile","call","hasHxml","projectPath","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","ascf","trim","@@iterator","stringify","error","getModuleNames","win32","startsWith","existsSync","concat","ascf/ascf_src/base.hxml","rimraf","parse","./config","readFileSync","srcPath","readdirSync","replace","getNodePath","initConfigs","/Applications/DevEco-Studio.app/Contents/tools","isDirectory","child_process","default","exec cmd error","AppScope","mode","json5","false","endsWith","NODE_ENV","development","value","app","isOSX","1117kIUXZK","forEach","join","hvigorw","build-profile.json5","slice","keys","test","bin","true","499764fmHwdk","main","sort","getHvigorwPath","RAWFILE_DIR","3176766hBXxth","4176294oNOGGi","apply","name","sdk","hasOwnProperty","node_modules","execSafe","src/main/resources/rawfile","number","parse json file error at ","3633928VeZkEI","232228JBlnuY","bundleName","node","return","debug","./log4js.js","clearResource","utf8","darwin","split","10nnxapP","shift","getEntryPkgPath error, build-profile.json5 file modules is null","yes","[object Object]","length",".hxml","modules","3ucjwms"];return(_0x344b=function(){return r})()}function _unsupportedIterableToArray(r,e){var t,o=_0x2bf2;if(r)return"string"==typeof r?_arrayLikeToArray(r,e):(t={}[o(179)][o(190)](r)[o(234)](8,-1),o(149)===t&&r[o(184)]&&(t=r[o(184)].name),o(151)===t||"Set"===t?Array.from(r):o(143)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[o(236)](t)?_arrayLikeToArray(r,e):void 0)}function _arrayLikeToArray(r,e){var t=_0x2bf2;(null==e||e>r[t(128)])&&(e=r[t(128)]);for(var o=0,n=Array(e);o<e;o++)n[o]=r[o];return n}(()=>{for(var r=_0x2bf2,e=_0x344b();;)try{if(474617==-parseInt(r(229))*(-parseInt(r(180))/2)+-parseInt(r(131))/3*(parseInt(r(113))/4)+parseInt(r(185))/5+parseInt(r(245))/6+-parseInt(r(162))/7*(parseInt(r(112))/8)+parseInt(r(244))/9*(parseInt(r(123))/10)+-parseInt(r(173))/11*(parseInt(r(239))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var rimraf=require(_0x13889f(205)),fs=require("fs"),path=require(_0x13889f(160)),JSON5=require(_0x13889f(221)),os=require("os"),_require=require(_0x13889f(216)),execSync=_require.execSync,json5=require(_0x13889f(221)),log4js=require(_0x13889f(118)),_require2=require(_0x13889f(207)),configs=_require2[_0x13889f(135)],logger=log4js.getLogger("common-utils"),curProjectPath=null,curProjectInfo=null;function getProjectInfo(){var r,e,t,o=_0x13889f;return process[o(141)][o(167)]===curProjectPath&&curProjectInfo||(e=readProjectCfgJson(r=process[o(141)][o(167)]||process.cwd())||{},t=path[o(178)](r,o(133)),t=e.ascfRoot?path.resolve(t,e.ascfRoot):t,o=path[o(178)](r,o(194),o(150)),curProjectInfo={projectPath:curProjectPath=r,projectCfg:e,ascfSrcPath:t,ascfBuildPath:o}),curProjectInfo}function initOptions(r){var e,t=_0x13889f;for(e in r)Object[t(165)][t(249)][t(190)](r,e)&&(r[e]===t(222)&&(r[e]=!1),r[e]===t(238))&&(r[e]=!0)}function readJsonFile(e){var t=_0x13889f;if(!fs[t(202)](e))return{};var r={};try{r=JSON5[t(206)](fs[t(208)](e,t(166))[t(179)]()||"{}")}catch(r){throw new Error(t(111)[t(203)](e,":").concat(r.lineNumber,":")[t(203)](r[t(156)]," "))}return r}function writeJsonFile(r,e){var t=_0x13889f;try{fs[t(175)](r,JSON.stringify(e,null,2))}catch(r){throw"ERROR: Write JSON file failed: "[t(203)](r)}}function readProjectCfgJson(r){var e,t=_0x13889f,r=path[t(231)](r,"ascf",t(148),"ascf.config.json");return e=fs[t(202)](r)?JSON[t(206)](fs[t(208)](r)[t(179)]()):e}function _0x2bf2(r,e){var t=_0x344b();return(_0x2bf2=function(r,e){return t[r-=107]})(r,e)}function isOSX(){var r=_0x13889f;return os[r(177)]()===r(121)}function hasHxml(r){var e=_0x13889f;try{var t,o=_createForOfIteratorHelper(fs[e(210)](r,{withFileTypes:!0}));try{for(o.s();!(t=o.n()).done;){var n=t[e(226)],i=path.join(r,n[e(247)]);if(n.isFile()&&n[e(247)].endsWith(e(129))||n[e(215)]()&&n[e(247)]!==e(107)&&hasHxml(i))return!0}}catch(r){o.e(r)}finally{o.f()}}catch(r){logger[e(198)]("find Hxml error:",r)}return!1}function moveFiles(n,i){var a=_0x13889f;try{fs[a(159)](i,{recursive:!0}),fs[a(210)](n,{withFileTypes:!0})[a(230)](function(r){var e=a,t=path[e(231)](n,r[e(247)]),o=path[e(231)](i,r[e(247)]);r[e(189)]()?fs[e(155)](t,o):r[e(215)]()&&r[e(247)]!==e(107)&&moveFiles(t,o)})}catch(r){logger[a(198)](a(140),r)}}function handleResolveAlias(r,e){var t,o=_0x13889f,n=_createForOfIteratorHelper(Object[o(235)](e)[o(241)](function(r,e){var t=o;return e[t(128)]-r[t(128)]}));try{for(n.s();!(t=n.n())[o(187)];){var i,a,s,f=t[o(226)];if(f.endsWith("/*")&&e[f][o(223)]("/*"))if(r[o(201)](f.slice(0,-1))||r===f[o(234)](0,-1))return i=e[f].slice(0,-1),a=r[o(234)](f.length-1),s=(s=path[o(231)](i,a)[o(211)](/\\/g,"/"))[o(201)]("/")?s:"/"+s}}catch(r){n.e(r)}finally{n.f()}return r}function getEntryPkgPath(){var r,e=_0x13889f,t=getProjectInfo().projectPath,o=readJsonFile(path[e(178)](t,e(233)));if(0<(null==o||null==(r=o[e(130)])?void 0:r[e(128)]))return path[e(231)](t,o[e(130)][0][e(209)]);logger.fatal(e(125))}function deepMerge(r){for(var e=_0x13889f,t=arguments[e(128)],o=new Array(1<t?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(!o[e(128)])return r;var i=o[e(124)]();if(!i)return deepMerge.apply(void 0,[r].concat(o));for(var a=0,s=Object[e(235)](i);a<s[e(128)];a++){var f=s[a],c=i[f];isObject(c)?(null==r[f]&&(r[f]={}),deepMerge(r[f],c)):void 0!==c&&(r[f]=c)}return deepMerge[e(246)](void 0,[r][e(203)](o))}function isObject(r){var e=_0x13889f;return Object.prototype[e(179)][e(190)](r)===e(127)}function getIdeBinPath(){var r=_0x13889f,e=null==(e=process[r(141)]["DevEco Studio"]||process[r(141)].DEVECO_DIR)?void 0:e[r(122)](";")[0][r(195)](),t=e||r(214),e=e||r(170);return isOSX()?t:e}function adjustPathByPlatform(r){var e=_0x13889f;return isOSX()?r:'"'[e(203)](r,'"')}function getPath(){for(var r=_0x13889f,e=getIdeBinPath(),t=arguments[r(128)],o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return adjustPathByPlatform(path[r(231)][r(246)](path,[e].concat(o)))}exports.getProjectInfo=getProjectInfo,exports[_0x13889f(243)]=_0x13889f(109),exports[_0x13889f(134)]=path[_0x13889f(231)](__dirname,"..",".."),exports[_0x13889f(213)]=function(r,e){var t=_0x13889f,o=(initOptions(e),getProjectInfo()),n=e.watch||e.serve||void 0!==e[t(220)]&&e.mode!==t(136);process.env[t(224)]&&!n||(process[t(141)].NODE_ENV=n?t(225):"production"),deepMerge(configs,o[t(183)],e),process[t(141)].clearResource=n||configs[t(145)]?t(126):"no",configs.parser=configs[t(163)]?t(163):t(138),void 0===configs[t(144)]&&fs.existsSync(path[t(178)](r,t(204)))&&(configs[t(144)]=!0),configs[t(144)]=!!configs[t(144)],configs[t(139)]=n||configs.skipApiValidator!==t(222)&&configs[t(139)],configs[t(147)]=configs.serve||(void 0===configs[t(147)]?!!n:configs[t(147)]),logger[t(117)]("configs is: "[t(203)](JSON[t(197)](configs)))},exports[_0x13889f(119)]=function(r){var e=_0x13889f;return Promise[e(188)](r[e(137)](function(e){if(fs.existsSync(e))return new Promise(function(r){rimraf[_0x2bf2(174)](e),r()})}))},exports.readJsonFile=readJsonFile,exports.writeJsonFile=writeJsonFile,exports[_0x13889f(228)]=isOSX,exports[_0x13889f(191)]=hasHxml,exports[_0x13889f(172)]=moveFiles,exports[_0x13889f(161)]=handleResolveAlias,exports[_0x13889f(171)]=getEntryPkgPath,exports.deepMerge=deepMerge,exports[_0x13889f(108)]=function(r){var e,t=_0x13889f,o=1<arguments[t(128)]&&void 0!==arguments[1]?arguments[1]:{};try{return null==(e=execSync(r,o))?void 0:e.toString(t(120))}catch(r){logger[t(182)](t(218),r)}},exports[_0x13889f(199)]=function(){var r,e,t=_0x13889f,o=getEntryPkgPath(),o=path[t(231)](o,t(164),t(240),"module.json5");if(fs[t(202)](o))return e=fs[t(208)](o,t(166)),{name:null==(e=json5.parse(e))||null==(r=e[t(142)])?void 0:r[t(247)],entryAbility:null==e||null==(r=e[t(142)])||null==(r=r[t(176)])?void 0:r.map(function(r){return r[t(247)]})};throw new Error("".concat(o," is not found"))},exports[_0x13889f(158)]=function(){var r,e=_0x13889f,t=getProjectInfo()[e(192)],t=path.join(t,e(219),e(169));if(fs[e(202)](t))return r=fs[e(208)](t,e(166)),null==(r=json5[e(206)](r))||null==(r=r[e(227)])?void 0:r[e(114)];throw new Error(""[e(203)](t," is not found"))},exports[_0x13889f(212)]=function(){var r=_0x13889f,e=getIdeBinPath(),e=path.join(e,"..",r(132),r(115));r(115);return adjustPathByPlatform(isOSX()?path[r(231)](e,r(115)):path.join(e,r(186)))},exports[_0x13889f(242)]=function(){var r=_0x13889f;return getPath("..",r(132),r(168),r(237),r(232))},exports.getHdcPath=function(){var r=_0x13889f;return getPath("..",r(248),r(217),r(157),r(152),process[r(177)]===r(200)?"hdc.exe":r(181))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x6761a=_0x3abd;function _0x1bc6(){var e=["get ohpm from deveco dir.","/Applications/DevEco-Studio.app/Contents/tools","bundleName","fatal","dependencies"," at entry/src/main/module.json5."," info @atomicservice/ascfapi","isLatestAscfHar","isLatestAscfToolkit","execSync","getEntryPkgPath","6038912yFAleK","update to ","256096AhsDLm","WARNING: ","versionCode","env","warn","8qxQNwC",'INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"readJsonFile","satisfies","module","child_process","ohpm","existsSync","com.huawei.hms.ascfruntime","latest","module.json5","oh-package.json5","tools","toString","info","latest[39m:","bin","4iBzByH","length","C:\\Program Files\\Huawei\\DevEco Studio\\bin","209vAWJRy","split","7ZumSvS","join","ERROR: ASCF shared library version is too low,","DEVECO_DIR","./log4js.js",'WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"6554709TghysR","DevEco Studio ohpm ","package.json","WARN: ASCF shared library not found.","path","isAscfHspSatisfied","1348281SkWAOc","trim","npm view @atomicservice/ascf-toolkit version","DevEco Studio","concat","semver"," is not exists, please ensure DevEco Studio installed","2113035IzIoDG","1172550rVWIPh","TOOLKIT_PATH","@atomicservice/ascfapi","765220qruoeM","version","filter","toLowerCase","version-check"];return(_0x1bc6=function(){return e})()}function _0x3abd(e,t){var r=_0x1bc6();return(_0x3abd=function(e,t){return r[e-=370]})(e,t)}(()=>{for(var e=_0x3abd,t=_0x1bc6();;)try{if(643091==+parseInt(e(405))*(-parseInt(e(383))/2)+-parseInt(e(422))/3*(-parseInt(e(388))/4)+parseInt(e(429))/5+-parseInt(e(430))/6+-parseInt(e(410))/7*(-parseInt(e(381))/8)+parseInt(e(416))/9+-parseInt(e(433))/10*(parseInt(e(408))/11))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var utils=require("./utils"),path=require(_0x6761a(420)),_require=require(_0x6761a(427)),satisfies=_require[_0x6761a(391)],_require2=require(_0x6761a(393)),execSync=_require2[_0x6761a(379)],log4js=require(_0x6761a(414)),fs=require("fs"),logger=log4js.getLogger(_0x6761a(437));function getOhpmFile(){var e=_0x6761a,t=(logger.debug(e(370)),null==(t=process[e(386)][e(425)]||process[e(386)][e(413)])?void 0:t[e(409)](";")[0][e(423)]()),r=t||e(371),t=t||e(407),r=utils.isOSX()?r:t;return path[e(411)](r,"..",e(400),e(394),e(404),"ohpm")}exports[_0x6761a(378)]=function(){var e=_0x6761a,t=0<arguments[e(406)]&&void 0!==arguments[0]&&arguments[0],r=utils[e(390)](path[e(411)](utils[e(431)],e(418)))[e(434)],a=execSync(e(424),{timeout:5e3})[e(401)]()[e(423)]();r!==a&&(t?logger[e(387)](e(415)[e(426)](a,'"')):logger[e(402)](e(389)[e(426)](a,'"')))},exports[_0x6761a(377)]=function(){var e,t,r=_0x6761a,a=0<arguments[r(406)]&&void 0!==arguments[0]&&arguments[0],o=path.join(utils[r(380)](),r(399)),i=utils[r(390)](o)[r(374)][r(432)];i?(e=getOhpmFile(),fs[r(395)](e)?(t=utils.isOSX()?e:'"'[r(426)](e,'"'),t=execSync(""[r(426)](t,r(376)),{timeout:5e3})[r(401)]()[r(409)](r(403))[1][r(409)]("\n")[0].trim(),satisfies(t,i)||i[r(436)]()===r(397)||(a?logger.warn("WARNING: ASCF Shared Library can be upgraded."):logger[r(402)]("INFO: ASCF Shared Library can be upgraded."))):logger[r(387)](r(417)[r(426)](e,r(428)))):logger.warn(r(384)[r(426)](o," does not depend on ASCF Shared Library. Select a project that does, or create a new one."))},exports[_0x6761a(421)]=function(e){var r=_0x6761a,t=(logger.debug("get project entry module.json."),path[r(411)](utils.getEntryPkgPath(),"src","main",r(398))),t=null==(t=utils[r(390)](t)[r(392)])?void 0:t[r(374)],t=null==t?void 0:t[r(435)](function(e){var t=r;return e[t(372)]===t(396)});return!t||t[r(406)]<=0?(logger[r(387)](r(419)),!1):!(Number(t[0][r(385)])<Number(e)&&(logger[r(373)](r(412)+r(382).concat(e,r(375))),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 _0x5cc4ca=_0x2fff;function _regenerator(){var m,h=_0x2fff,e=h(331)==typeof Symbol?Symbol:{},r=e[h(309)]||h(370),n=e[h(310)]||h(385);function t(e,r,n,t){var o,a,c,i,u,s,f,g,l,p,v=h,r=r&&r[v(322)]instanceof d?r:d,r=Object[v(317)](r[v(322)]);return _regeneratorDefine2(r,"_invoke",(o=e,a=n,g=t||[],l=!1,p={p:f=0,n:0,v:m,a:_,f:_[(s=v)(304)](m,4),d:function(e,r){return c=e,i=0,u=m,p.n=r,b}},function(e,r,n){var t=s;if(1<f)throw TypeError(t(346));for(l&&1===r&&_(r,n),i=r,u=n;(x=i<2?m:u)||!l;){c||(i?i<3?(1<i&&(p.n=-1),_(i,u)):p.n=u:p.v=u);try{if(f=2,c){if(i||(e=t(355)),x=c[e]){if(!(x=x.call(c,u)))throw TypeError(t(407));if(!x[t(410)])return x;u=x[t(345)],i<2&&(i=0)}else 1===i&&(x=c[t(347)])&&x[t(332)](c),i<2&&(u=TypeError("The iterator does not provide a '"+e+t(328)),i=1);c=m}else if((x=(l=p.n<0)?u:o[t(332)](a,p))!==b)break}catch(e){c=m,i=1,u=e}finally{f=1}}return{value:x,done:l}}),!0),r;function _(e,r){var n=s;for(i=e,u=r,x=0;!l&&f&&!t&&x<g[n(363)];x++){var t,o=g[x],a=p.p,c=o[2];3<e?(t=c===r)&&(u=o[(i=o[4])?5:i=3],o[4]=o[5]=m):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 b;throw l=!0,r}}var b={};function d(){}function o(){}function a(){}var x=Object[h(326)],e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),c=a[h(322)]=d[h(322)]=Object[h(317)](e);function i(e){var r=h;return Object.setPrototypeOf?Object[r(408)](e,a):(e[r(393)]=a,_regeneratorDefine2(e,n,r(362))),e.prototype=Object.create(c),e}return o[h(322)]=a,_regeneratorDefine2(c,h(356),a),_regeneratorDefine2(a,h(356),o),o[h(380)]="GeneratorFunction",_regeneratorDefine2(a,n,"GeneratorFunction"),_regeneratorDefine2(c),_regeneratorDefine2(c,n,h(312)),_regeneratorDefine2(c,r,function(){return this}),_regeneratorDefine2(c,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:t,m:i}})()}function _regeneratorDefine2(e,r,n,t){var a=_0x2fff,c=Object[a(409)];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[_0x2fff(384)](r,n,e)})})(o(355),0),t("throw",1),t(o(347),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,c){var i=_0x2fff;try{var u=e[a](c),s=u.value}catch(e){return void n(e)}u[i(410)]?r(s):Promise[i(367)](s)[i(400)](t,o)}function _asyncToGenerator(u){return function(){var e=this,i=arguments;return new Promise(function(r,n){var t=_0x2fff,o=u[t(402)](e,i);function a(e){asyncGeneratorStep(o,r,n,a,c,"next",e)}function c(e){asyncGeneratorStep(o,r,n,a,c,t(314),e)}a(void 0)})}}function _0x2a01(){var e=["Using ","restart dev server","quickGenSub","chdir","./common/constants.js","WARNING: Get @atomicservice/ascfapi info failed: ","__proto__","./ascf-compiler/plugin/quick-service-build-plugin","webpackCfg","exit","true","name","index","then","90kihVXC","apply","debug","restart dev server error:","toString","disableSubpackages","iterator result is not an object","setPrototypeOf","defineProperty","done","infrastructureLogging","warn","6384049yMViiQ","1633650dtxcnQ","mode","existsVerifyLog","./ascf-converter/features/converter.js","concat","pathValidator","8bKgtUJ","signProfilePath","serve","error","./common/log4js.js","webpack","bind","./common/version-check.js","clear","folderUrl","3674EBVjEG","iterator","toStringTag","./common/utils","Generator","compiler","throw","progress","check","create","signPwd","getLogger","unhandledRejection","errorMessage","prototype","env","ASCF uncaught error",'","errorMessage":"',"getPrototypeOf","restartDevServer","' method","push","run","function","call","1467CwDmOc","plugins","6855760RMAniD","_ascfDebug","output","checkInputPathFun","compile close error :","clearResource","1387127BXEAfV","verbose","../package.json","./commands/build-npm","value","Generator is already running","return","projectRoot","_isAscfMode","./ascf-compiler/common/quick-generate-subpackage",'"command":"',"configs","devServer","reason:","next","constructor","isLatestAscfToolkit","./ascf-compiler/server/dev-server","input","3526360patiuB","command","GeneratorFunction","length","ascf/ascf_src","targets","uncaughtException","resolve","startServer","notaddtodo","@@iterator","./ascf-converter/common/path-validator","version","5784366phBDBu","_isMiniAppConvertMode","WARNING: Get @atomicservice/ascf-toolkit version failed: ","watch","fatal","isLatestAscfHar","getTime","displayName","close","stop","ASCF unhandled rejection at:","_invoke","@@toStringTag","info"];return(_0x2a01=function(){return e})()}(()=>{for(var e=_0x2fff,r=_0x2a01();;)try{if(735978==+parseInt(e(341))+parseInt(e(308))/2*(-parseInt(e(333))/3)+-parseInt(e(360))/4+parseInt(e(335))/5+-parseInt(e(373))/6+-parseInt(e(413))/7*(parseInt(e(420))/8)+-parseInt(e(401))/9*(-parseInt(e(414))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var path=require("path"),pkg=require(_0x5cc4ca(343)),_require=require("./common/config"),configs=_require[_0x5cc4ca(352)],log4js=require(_0x5cc4ca(424)),_require2=require(_0x5cc4ca(344)),buildNpm=_require2.buildNpm,_require3=require(_0x5cc4ca(391)),BUILD_TARGET_QS=_require3.BUILD_TARGET_QS,logger=log4js[_0x5cc4ca(319)](_0x5cc4ca(399));function convert(e){return _convert[_0x5cc4ca(402)](this,arguments)}function _convert(){var e=_0x5cc4ca;return(_convert=_asyncToGenerator(_regenerator().m(function e(r){var t,o;return _regenerator().w(function(e){for(var n=_0x2fff;;)switch(e.n){case 0:if(configs[n(369)]=!!r[n(369)],t=require(n(417)),global[n(374)]=!0,global[n(349)]=!0,process[n(323)][n(340)]=r[n(306)]?"yes":"no",o=require(n(371)),o=o[n(419)],r.validate&&(o(r[n(359)],r[n(337)]),process[n(396)](0)),t[n(338)](r.input),r[n(316)]){e.n=2;break}return e.n=1,t.confirmConverterFun({inputPath:r[n(359)],outPath:r.output,confirmAddConfig:!0});case 1:(o=e.v).errorMessage?logger.error(n(351).concat(o[n(361)],n(325))[n(418)](o[n(321)],'"')):logger[n(386)](n(351)[n(418)](o[n(361)],'","folderUrl":"')[n(418)](o[n(307)],'"'));case 2:setTimeout(function(){var r=n,e=require(r(305))[r(357)];try{e()}catch(e){logger[r(412)]("WARNING: Get @atomicservice/ascf-toolkit version failed: ".concat(e,"."))}});case 3:return e.a(2)}},e)})))[e(402)](this,arguments)}function compile(e,r){return _compile.apply(this,arguments)}function _compile(){var e=_0x5cc4ca;return(_compile=_asyncToGenerator(_regenerator().m(function e(c,i){var u,s,f,o,n,t,a,g,l,p,v;return _regenerator().w(function(e){for(var r=_0x2fff;;)switch(e.n){case 0:return process.env[r(348)]=path[r(367)](c),process[r(390)](path[r(367)](c,r(364))),n=require(r(311)),(0,n.initConfigs)(c,i),u=require(r(303)),global.beginTime=(new Date)[r(379)](),s=require("./ascf-compiler/web.webpack.config.js"),f=i[r(365)]===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=_0x2fff;;)switch(e.n){case 0:return n=0<a[r(363)]&&void 0!==a[0]&&a[0],e.n=1,s(n,i);case 1:return(n=e.v)[r(334)]=n[r(334)]||[],n.plugins.push(new u.EnvironmentPlugin({projectRoot:c})),f&&(o=require(r(394)),t=i[r(406)],i[r(415)]&&void 0===t&&(t=r(397)),i.mode||void 0!==t||(t="false"),n.plugins.push(new o({projectRoot:c,disableSubpackages:t,signPrivateKeyPath:i.signPrivateKeyPath,signPublicKeyPath:i.signPublicKeyPath,signPwd:i[r(318)],signProfilePath:i[r(421)]}))),i[r(315)]&&n.plugins[r(329)](new u.ProgressPlugin({})),i.watch&&(n.watch=!0),global[r(336)]&&(n[r(411)]={debug:!0,level:r(342)}),o=u(n),e.a(2,{webpackCfg:n,compiler:o})}},e)}));return function(){return e.apply(this,arguments)}})(),e.p=1,e.n=2,o();case 2:if(n=e.v,t=n[r(395)],a=n[r(313)],configs[r(422)]||i[r(376)])return v=require(r(358)),g=v[r(368)],e.n=3,g(a,t.devServer,i);e.n=4;break;case 3:l=e.v,p=!1,global[r(327)]=_asyncToGenerator(_regenerator().m(function e(){var n,t;return _regenerator().w(function(e){for(var r=_0x2fff;;)switch(e.n){case 0:if(p)return e.a(2);e.n=1;break;case 1:if(p=!0,logger[r(386)](r(388)),e.p=2,l)return e.n=3,l[r(382)]();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(395)],t=t[r(313)],e.n=6,g(t,n[r(353)],i);case 6:l=e.v,e.n=8;break;case 7:e.p=7,t=e.v,logger[r(423)](r(404),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(377)](v),process[r(396)](1);case 7:return e.a(2)}},e,null,[[1,6]])})))[e(402)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function _0x2fff(e,r){var n=_0x2a01();return(_0x2fff=function(e,r){return n[e-=303]})(e,r)}function run(c){var i=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return new Promise(function(n,o){var a=_0x2fff;c[a(330)](function(e,r){var t=a;r&&logger[t(386)](r[t(405)]({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global._ascfDebug?t(342):"info"})),e?(logger[t(423)](e),o(e)):(i||setTimeout(function(){var r=t,e=require(r(305)),n=e[r(357)],e=e[r(378)];try{e(global[r(416)])}catch(e){logger[r(412)](r(392)[r(418)](e,"."))}try{n(global[r(416)])}catch(e){logger[r(412)](r(375)[r(418)](e,"."))}}),n(r),c[t(381)](function(e){var r=t;e&&logger[r(423)](r(339),e)}))})})}function quickGenerateSubpackage(){return _quickGenerateSubpackage[_0x5cc4ca(402)](this,arguments)}function _quickGenerateSubpackage(){return(_quickGenerateSubpackage=_asyncToGenerator(_regenerator().m(function e(){var n;return _regenerator().w(function(e){for(var r=_0x2fff;;)switch(e.n){case 0:return n=require(r(350)),n=n[r(389)],e.n=1,n().catch(function(e){logger.error(e)});case 1:return e.a(2)}},e)}))).apply(this,arguments)}logger[_0x5cc4ca(403)](_0x5cc4ca(387)[_0x5cc4ca(418)](pkg[_0x5cc4ca(398)]," ")[_0x5cc4ca(418)](pkg[_0x5cc4ca(372)],".")),global._isAscfMode=!0,process.on(_0x5cc4ca(366),function(e){var r=_0x5cc4ca;logger.error(r(324),e)}),process.on(_0x5cc4ca(320),function(e,r){var n=_0x5cc4ca;logger.error(n(383),r,n(354),e)}),module.exports={convert:convert,compile:compile,buildNpm:buildNpm,getAscfToolkitDirname:getAscfToolkitDirname,quickGenerateSubpackage:quickGenerateSubpackage};
|