@atomicservice/ascf-toolkit 1.0.6-beta.4 → 1.0.7
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 +2 -1
- package/lib/ascf-base/index.js +1 -1
- package/lib/ascf-common/index.d.ts +2 -0
- package/lib/ascf-common/index.js +1 -0
- package/lib/ascf-compiler/appjson-loader.js +1 -1
- package/lib/ascf-compiler/common/appjson-validator.js +1 -1
- package/lib/ascf-compiler/common/ascf-define.js +1 -1
- package/lib/ascf-compiler/common/beforeLoaderProcess.js +1 -1
- 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 -1
- 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 -1
- 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.js +1 -1
- package/lib/ascf-sign-tools/index.js +1 -1
- 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 -1
- package/lib/commands/convert.js +1 -1
- package/lib/commands/debugger/index.js +1 -1
- package/lib/commands/quickservice/index.js +1 -1
- package/lib/common/config.js +1 -1
- package/lib/common/constants.js +1 -1
- 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/package.json +11 -15
package/lib/bin/ascf.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function
|
|
2
|
+
var _0x22241b=_0x3317;function _0xe9cc(){var r=["parse","version","../commands/convert","51258XxsyPB","install","Command","enable debug logging","forEach","../common/constants.js","opts","hook","../common/log4js.js","841955kMJMAr","--logging [level]","_ascfDebug","1182717XGviFa","--targets","14QcFiFd","description","../ascf-common","_ascfCliProgram","617536BErdlL","includes","--debug","../commands/debugger","787064XVHSKi","422379LSonNd","BUILD_TARGET_QS","preAction","../commands/ascfbuild","10dljXsG","8087wvzhAf","../commands/quickservice","38pKixMr","../../package.json","option","Setting the log level","debug"];return(_0xe9cc=function(){return r})()}(()=>{for(var r=_0x3317,e=_0xe9cc();;)try{if(120808==-parseInt(r(468))*(-parseInt(r(470))/2)+parseInt(r(463))/3+-parseInt(r(462))/4+-parseInt(r(449))/5+-parseInt(r(478))/6*(parseInt(r(454))/7)+parseInt(r(458))/8+-parseInt(r(452))/9*(-parseInt(r(467))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require(_0x22241b(456)),Command=_require[_0x22241b(480)],pkg=require(_0x22241b(471)),_require2=require(_0x22241b(448)),setLoggerConfig=_require2.setLoggerConfig,convertCmd=require(_0x22241b(477)),compileCmd=require("../commands/compile"),buildNpmCmd=require("../commands/build-npm"),debuggerCmd=require(_0x22241b(461)),ascfbuildCmd=require(_0x22241b(466)),quickserviceCmd=require(_0x22241b(469)),_require3=require(_0x22241b(445)),BUILD_TARGET_QS=_require3[_0x22241b(464)],program=(global._supportLegacyHos=((r,e)=>{var o=_0x22241b,n=r.indexOf(o(453));return-1!==n&&(null==(e=r[n+1])?void 0:e[o(459)](BUILD_TARGET_QS))})(process.argv.slice(2)),new Command),cmds=[convertCmd,compileCmd,buildNpmCmd,debuggerCmd,ascfbuildCmd,quickserviceCmd];function _0x3317(r,e){var o=_0xe9cc();return(_0x3317=function(r,e){return o[r-=443]})(r,e)}program[_0x22241b(476)](pkg[_0x22241b(476)])[_0x22241b(455)]("ascf toolkit convert and compile ascf project")[_0x22241b(472)](_0x22241b(450),_0x22241b(473)).option(_0x22241b(460),_0x22241b(443)),program[_0x22241b(447)](_0x22241b(465),function(){var r,e=_0x22241b;setLoggerConfig(null==(r=program[e(446)]())?void 0:r.logging),global[e(457)]=program,global[e(451)]=!(null==(r=program[e(446)]())||!r[e(474)])}),cmds[_0x22241b(444)](function(r){return null==r?void 0:r[_0x22241b(479)](program)}),program[_0x22241b(475)](process.argv);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4aa8(){var e=["22TVlkLK","value","cwd","toString","description","assembleHap","@@toStringTag","@@iterator","' method","chdir","return","clean","then","create","toStringTag","done","15298758mDPtfL","apply","21NXVUcR","prototype","GeneratorFunction","defineProperty","exports","constructor","select a device","getPrototypeOf","AscfBuilder","85758OASouU","_invoke","400049WKUsDn","bind","resolve","projectRoot","6946800suSPkz","249162yFOsNL","-r, --projectRoot [projectRoot]","function","[object Generator]","4365470pSumDH","action","command","Build ASCF project","option","installHap","assembleAndInstallHap","call","handle","throw","next","setPrototypeOf","../../ascf-base","Generator","4196844zFqoxX","forEach","iterator"];return(_0x4aa8=function(){return e})()}var _0x2a35ec=_0x453a;function _regenerator(){var g,h=_0x453a,e=h(471)==typeof Symbol?Symbol:{},r=e[h(434)]||h(442),n=e[h(449)]||h(441);function t(e,r,n,t){var o,a,i,c,u,f,s,p,_,l,v=h,r=r&&r[v(454)]instanceof x?r:x,r=Object.create(r[v(454)]);return _regeneratorDefine2(r,v(463),(o=e,a=n,p=t||[],_=!1,l={p:s=0,n:0,v:g,a:d,f:d[(f=v)(465)](g,4),d:function(e,r){return i=e,c=0,u=g,l.n=r,y}},function(e,r,n){var t=f;if(1<s)throw TypeError("Generator is already running");for(_&&1===r&&d(r,n),c=r,u=n;(b=c<2?g:u)||!_;){i||(c?c<3?(1<c&&(l.n=-1),d(c,u)):l.n=u:l.v=u);try{if(s=2,i){if(b=i[e=c?e:"next"]){if(!(b=b.call(i,u)))throw TypeError("iterator result is not an object");if(!b.done)return b;u=b[t(436)],c<2&&(c=0)}else 1===c&&(b=i[t(445)])&&b[t(425)](i),c<2&&(u=TypeError("The iterator does not provide a '"+e+t(443)),c=1);i=g}else if((b=(_=l.n<0)?u:o[t(425)](a,l))!==y)break}catch(e){i=g,c=1,u=e}finally{s=1}}return{value:b,done:_}}),!0),r;function d(e,r){for(c=e,u=r,b=0;!_&&s&&!n&&b<p.length;b++){var n,t=p[b],o=l.p,a=t[2];3<e?(n=a===r)&&(u=t[(c=t[4])?5:c=3],t[4]=t[5]=g):t[0]<=o&&((n=e<2&&o<t[1])?(c=0,l.v=r,l.n=t[1]):o<a&&(n=e<3||t[0]>r||a<r)&&(t[4]=e,t[5]=r,l.n=a,c=0))}if(n||1<e)return y;throw _=!0,r}}var y={};function x(){}function o(){}function a(){}var b=Object[h(460)],e=[][r]?b(b([][r]())):(_regeneratorDefine2(b={},r,function(){return this}),b),i=a[h(454)]=x[h(454)]=Object.create(e);function c(e){var r=h;return Object[r(429)]?Object[r(429)](e,a):(e.__proto__=a,_regeneratorDefine2(e,n,r(455))),e[r(454)]=Object[r(448)](i),e}return _regeneratorDefine2(i,"constructor",o.prototype=a),_regeneratorDefine2(a,h(458),o),o.displayName=h(455),_regeneratorDefine2(a,n,"GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,n,h(431)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,h(438),function(){return h(472)}),(_regenerator=function(){return{w:t,m:c}})()}function _0x453a(e,r){var n=_0x4aa8();return(_0x453a=function(e,r){return n[e-=423]})(e,r)}function _regeneratorDefine2(e,r,n,t){var a=_0x453a,i=Object[a(456)];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[_0x453a(463)](r,n,e)})})(o(428),0),t(o(427),1),t(o(445),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var c=_0x453a;try{var u=e[a](i),f=u[c(436)]}catch(e){return void n(e)}u[c(450)]?r(f):Promise[c(466)](f)[c(447)](t,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0x453a,o=u[t(452)](e,c);function a(e){asyncGeneratorStep(o,r,n,a,i,t(428),e)}function i(e){asyncGeneratorStep(o,r,n,a,i,t(427),e)}a(void 0)})}}(()=>{for(var e=_0x453a,r=_0x4aa8();;)try{if(536963==+parseInt(e(464))+parseInt(e(435))/2*(-parseInt(e(469))/3)+parseInt(e(432))/4+-parseInt(e(473))/5+parseInt(e(462))/6*(parseInt(e(453))/7)+-parseInt(e(468))/8+parseInt(e(451))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x2a35ec(430)),AscfBuilder=_require[_0x2a35ec(461)];module[_0x2a35ec(457)]={install:function(e){function n(t){return r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0x453a;;)switch(e.n){case 0:n.projectRoot?process[r(444)](n.projectRoot):n[r(467)]=process[r(437)](),new AscfBuilder(n)[r(426)](t);case 1:return e.a(2)}},e)})),function(e){return r[_0x453a(452)](this,arguments)};var r}var t=_0x2a35ec,o=e[t(475)]("build")[t(439)](t(476));["installDeps",t(440),t(446)][t(433)](function(e){var r=t;o[r(475)](e)[r(439)](e)[r(477)](r(470),r(467))[r(474)](n(e))}),[t(423),t(424),"uninstall","start"][t(433)](function(e){var r=t;o.command(e)[r(439)](e)[r(477)](r(470),r(467))[r(477)]("-t, --deviceId [deviceId]",r(459))[r(474)](n(e))})}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x30eb9d=_0x545a;function _regenerator(){var m,v=_0x545a,e=v(305)==typeof Symbol?Symbol:{},r=e[v(336)]||"@@iterator",n=e[v(295)]||v(335);function t(e,r,n,t){var o,a,i,u,c,f,s,p,l,_,d=v,r=r&&r[d(293)]instanceof h?r:h,r=Object[d(309)](r[d(293)]);return _regeneratorDefine2(r,"_invoke",(o=e,a=n,p=t||[],l=!1,_={p:s=0,n:0,v:m,a:g,f:g[(f=d)(315)](m,4),d:function(e,r){return i=e,u=0,c=m,_.n=r,b}},function(e,r,n){var t=f;if(1<s)throw TypeError(t(290));for(l&&1===r&&g(r,n),u=r,c=n;(x=u<2?m:c)||!l;){i||(u?u<3?(1<u&&(_.n=-1),g(u,c)):_.n=c:_.v=c);try{if(s=2,i){if(u||(e=t(303)),x=i[e]){if(!(x=x[t(288)](i,c)))throw TypeError(t(340));if(!x[t(320)])return x;c=x[t(291)],u<2&&(u=0)}else 1===u&&(x=i[t(326)])&&x[t(288)](i),u<2&&(c=TypeError(t(343)+e+t(345)),u=1);i=m}else if((x=(l=_.n<0)?c:o.call(a,_))!==b)break}catch(e){i=m,u=1,c=e}finally{s=1}}return{value:x,done:l}}),!0),r;function g(e,r){var n=f;for(u=e,c=r,x=0;!l&&s&&!t&&x<p[n(312)];x++){var t,o=p[x],a=_.p,i=o[2];3<e?(t=i===r)&&(c=o[(u=o[4])?5:u=3],o[4]=o[5]=m):o[0]<=a&&((t=e<2&&a<o[1])?(u=0,_.v=r,_.n=o[1]):a<i&&(t=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,_.n=i,u=0))}if(t||1<e)return b;throw l=!0,r}}var b={};function h(){}function o(){}function a(){}var x=Object.getPrototypeOf,e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),i=a[v(293)]=h[v(293)]=Object[v(309)](e);function u(e){var r=v;return Object[r(338)]?Object[r(338)](e,a):(e[r(306)]=a,_regeneratorDefine2(e,n,r(328))),e[r(293)]=Object.create(i),e}return _regeneratorDefine2(i,"constructor",o.prototype=a),_regeneratorDefine2(a,v(346),o),o[v(294)]=v(328),_regeneratorDefine2(a,n,v(328)),_regeneratorDefine2(i),_regeneratorDefine2(i,n,v(348)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,v(347),function(){return"[object Generator]"}),(_regenerator=function(){return{w:t,m:u}})()}function _0x545a(e,r){var n=_0x2536();return(_0x545a=function(e,r){return n[e-=288]})(e,r)}function _regeneratorDefine2(e,r,n,t){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,n,t){var o=_0x545a;r?a?a(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e)})})(o(303),0),t(o(307),1),t(o(326),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var u=_0x545a;try{var c=e[a](i),f=c.value}catch(e){return void n(e)}c[u(320)]?r(f):Promise[u(337)](f).then(t,o)}function _asyncToGenerator(c){return function(){var e=this,u=arguments;return new Promise(function(r,n){var t=_0x545a,o=c[t(302)](e,u);function a(e){asyncGeneratorStep(o,r,n,a,i,t(303),e)}function i(e){asyncGeneratorStep(o,r,n,a,i,t(307),e)}a(void 0)})}}(()=>{for(var e=_0x545a,r=_0x2536();;)try{if(131602==-parseInt(e(322))+-parseInt(e(319))/2*(-parseInt(e(308))/3)+parseInt(e(339))/4+parseInt(e(324))/5+parseInt(e(301))/6*(parseInt(e(289))/7)+-parseInt(e(333))/8+parseInt(e(296))/9*(-parseInt(e(344))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x30eb9d(313)),readJsonFile=_require.readJsonFile,hasHxml=_require[_0x30eb9d(310)],moveFiles=_require[_0x30eb9d(314)],path=require(_0x30eb9d(298)),fs=require("fs"),log4js=require(_0x30eb9d(330)),logger=log4js[_0x30eb9d(327)]("buildNpm");function buildMiniProgramNpm(e){var r=_0x30eb9d,n=readJsonFile(path[r(342)](e,r(331),r(334),r(318)));if(n==={})logger[r(299)](r(297));else{if(n[r(325)])for(var t in n.dependencies)if(Object[r(293)].hasOwnProperty[r(288)](n[r(325)],t)){var o=path[r(342)](e,r(331),r(334),"miniprogram_npm",t);if(!fs[r(329)](o)){var a=path.join(e,"ascf",r(334),r(311),t);if(!fs[r(329)](a))return void logger[r(321)](""[r(323)](t,r(317))[r(323)](t,"."));hasHxml(a)&&(t=readJsonFile(path[r(342)](a,r(318))).miniprogram,moveFiles(t?path[r(342)](a,t):a,o))}}logger[r(300)]("All npm dependencies has been built.")}}function buildNpm(e){var r=_0x30eb9d;try{buildMiniProgramNpm(e)}catch(e){logger.error(r(316).concat(e,"."))}}function _0x2536(){var e=["iterator result is not an object","buildNpm <projectRoot>","join","The iterator does not provide a '","730IyMCZP","' method","constructor","toString","Generator","call","7eaDAvf","Generator is already running","value","action","prototype","displayName","toStringTag","26361cVIKfp","Dependencies info not found.","path","warn","info","800706Qkyxgj","apply","next","exports","function","__proto__","throw","9kYYxsk","create","hasHxml","node_modules","length","../../common/utils","moveFiles","bind","Error: ascf buildNpm error: "," not found in node_modules, please run npm install ","package.json","49634YgzowW","done","error","30386eKkUVy","concat","592470SfZMRX","dependencies","return","getLogger","GeneratorFunction","existsSync","../../common/log4js","ascf","Build ASCF npm dependencies to miniprogram_npm","1002568zPxbCn","ascf_src","@@toStringTag","iterator","resolve","setPrototypeOf","698920DBQIew"];return(_0x2536=function(){return e})()}module[_0x30eb9d(304)]={buildNpm:buildNpm,install:function(e){var n,r=_0x30eb9d;e.command(r(341)).description(r(332))[r(292)]((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)}))}};
|
package/lib/commands/compile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2f61(){var e=["defineProperty","--skipApiValidator [flag]","../common/constants.js","Environment, empty is production, -m is development","command","toStringTag","Skip API and components validator, default is true","--swc","[object Generator]","The iterator does not provide a '","prototype","description","option","setPrototypeOf","-m, --mode","select a device to start hot reload","Compile ascf project","next","call","--deviceId [deviceId]","Host package for ","--sign-public-key-path [path]","5930czNwbp","5393585GvzyLf","--qs-host-pkg [pkg]","Disable subpackages, default is true for development, false for production","Start dev-server","../index","_invoke","value","-r, --run [command]","--templateHoist","@@toStringTag","78GLEquz","2916JupUGH","Clear build resource","Watch run for changes","-p, --progress","--targets [buildTarget]","p12 File Path for ","5504580YjyIYS","Password of the p12 file for ","function","length","--disableSubpackages [true or false]","9945dKwmKG","iterator result is not an object","--analyzeBundle","create","Show build progress","8434BumsHk","getPrototypeOf","Generator is already running","GeneratorFunction","BUILD_TARGET_QS","-w, --watch","throw","concat","compile","Use swc parser, default is babel parser","17017gLUWiW","' method","8817216neRDtP","done","return","exports","__proto__","apply","Sign private key path for ","-c, --clear","compile <projectRoot>","@@iterator","constructor","bind","--serve","Sign public key path for ","1546254PVAYAJ"];return(_0x2f61=function(){return e})()}var _0x24feda=_0xc404;function _regenerator(){var v,h=_0xc404,e=h(194)==typeof Symbol?Symbol:{},r=e.iterator||h(223),t=e[h(157)]||h(184);function n(e,r,t,n){var o,a,i,c,u,s,f,p,l,_,d=h,r=r&&r.prototype instanceof y?r:y,r=Object[d(200)](r[d(162)]);return _regeneratorDefine2(r,d(180),(o=e,a=t,p=n||[],l=!1,_={p:f=0,n:0,v:v,a:g,f:g[(s=d)(225)](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<f)throw TypeError(n(204));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(f=2,i){if(c||(e=n(169)),b=i[e]){if(!(b=b[n(170)](i,u)))throw TypeError(n(198));if(!b[n(215)])return b;u=b[n(181)],c<2&&(c=0)}else 1===c&&(b=i[n(216)])&&b[n(170)](i),c<2&&(u=TypeError(n(161)+e+n(213)),c=1);i=v}else if((b=(l=_.n<0)?u:o[n(170)](a,_))!==m)break}catch(e){i=v,c=1,u=e}finally{f=1}}return{value:b,done:l}}),!0),r;function g(e,r){var t=s;for(c=e,u=r,b=0;!l&&f&&!n&&b<p[t(195)];b++){var n,o=p[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(203)],e=[][r]?b(b([][r]())):(_regeneratorDefine2(b={},r,function(){return this}),b),i=a[h(162)]=y[h(162)]=Object[h(200)](e);function c(e){var r=h;return Object.setPrototypeOf?Object[r(165)](e,a):(e[r(218)]=a,_regeneratorDefine2(e,t,r(205))),e[r(162)]=Object[r(200)](i),e}return o[h(162)]=a,_regeneratorDefine2(i,h(224),a),_regeneratorDefine2(a,h(224),o),o.displayName=h(205),_regeneratorDefine2(a,t,h(205)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,"Generator"),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return h(160)}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(e,r,t,n){var a=_0xc404,i=Object[a(229)];try{i({},"",{})}catch(e){i=0}(_regeneratorDefine2=function(e,r,t,n){var o=a;r?i?i(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:((n=function(r,t){_regeneratorDefine2(e,r,function(e){return this[_0xc404(180)](r,t,e)})})("next",0),n(o(208),1),n("return",2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0xc404;try{var u=e[a](i),s=u[c(181)]}catch(e){return void t(e)}u[c(215)]?r(s):Promise.resolve(s).then(n,o)}function _0xc404(e,r){var t=_0x2f61();return(_0xc404=function(e,r){return t[e-=155]})(e,r)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0xc404,o=u[n(219)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,"next",e)}function i(e){asyncGeneratorStep(o,r,t,a,i,n(208),e)}a(void 0)})}}(()=>{for(var e=_0xc404,r=_0x2f61();;)try{if(985559==-parseInt(e(228))+parseInt(e(202))/2*(-parseInt(e(185))/3)+-parseInt(e(192))/4+parseInt(e(175))/5+-parseInt(e(186))/6*(-parseInt(e(212))/7)+parseInt(e(214))/8+parseInt(e(197))/9*(parseInt(e(174))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x24feda(231)),BUILD_TARGET_QS=_require[_0x24feda(206)];module[_0x24feda(217)]={install:function(e){var t,r=_0x24feda,e=e[r(156)](r(222))[r(163)](r(168))[r(164)](r(189),r(201)).option(r(207),r(188))[r(164)](r(166),r(155))[r(164)](r(221),r(187))[r(164)](r(182),"Run command on changes been watched")[r(164)](r(159),r(211)).option("--devtool [type]","sourcemap type, default is eval-cheap-source-map").option(r(196),r(177))[r(164)](r(199),"analyze bundle",!1)[r(164)](r(183),"Hoist template to page scope, default is true when have base.hxml")[r(164)](r(230),r(158))[r(164)](r(226),r(178)).option(r(171),r(167))[r(164)](r(190),"Build targets, atomicservice and "[r(209)](BUILD_TARGET_QS));global._supportLegacyHos&&e[r(164)](r(176),r(172)[r(209)](BUILD_TARGET_QS))[r(164)]("--sign-private-key-path [path]",r(220)[r(209)](BUILD_TARGET_QS))[r(164)](r(173),r(227).concat(BUILD_TARGET_QS))[r(164)]("--sign-pwd [pwd]",r(193)[r(209)](BUILD_TARGET_QS))[r(164)]("--sign-profile-path [path]",r(191).concat(BUILD_TARGET_QS)),e.action((t=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0xc404;;)switch(e.n){case 0:return e.n=1,require(r(179))[r(210)](t,n);case 1:return e.a(2)}},e)})),function(e,r){return t[_0xc404(219)](this,arguments)}))}};
|
package/lib/commands/convert.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x546095=_0x1646;function _0x1646(r,e){var t=_0x50cc();return(_0x1646=function(r,e){return t[r-=442]})(r,e)}function _0x50cc(){var r=["apply","prototype","defineProperty","_invoke","constructor","action","convert","throw","create","BUILD_TARGET_QS","bind","Validate path","function","resolve","setPrototypeOf","@@iterator","iterator result is not an object","' method","4196656HwQDmB","-i, --input <input-directory>","7832699ThRpJq","next","7669092ZDzTUz","then","return","call","3385134KmNmEI","981lyzGQN","Convert miniprogram project to ascf project","728kzrrgd","length","exports","2088760PWQuFZ","../common/constants.js","__proto__","GeneratorFunction","Build targets, atomicservice and ","The iterator does not provide a '","Generator","3759000SznGgI","command","Clear convert output path","Generator is already running","option","-notaddtodo, --notaddtodo","done","value","toString","getPrototypeOf","toStringTag"];return(_0x50cc=function(){return r})()}function _regenerator(){var l,y=_0x1646,r=y(469)==typeof Symbol?Symbol:{},e=r.iterator||y(472),t=r[y(456)]||"@@toStringTag";function n(r,e,t,n){var o,a,i,c,u,f,p,_,s,v,d=y,e=e&&e[d(458)]instanceof x?e:x,e=Object[d(465)](e[d(458)]);return _regeneratorDefine2(e,d(460),(o=r,a=t,_=n||[],s=!1,v={p:p=0,n:0,v:l,a:g,f:g[(f=d)(467)](l,4),d:function(r,e){return i=r,c=0,u=l,v.n=e,h}},function(r,e,t){var n=f;if(1<p)throw TypeError(n(449));for(s&&1===e&&g(e,t),c=e,u=t;(m=c<2?l:u)||!s;){i||(c?c<3?(1<c&&(v.n=-1),g(c,u)):v.n=u:v.v=u);try{if(p=2,i){if(c||(r=n(478)),m=i[r]){if(!(m=m[n(482)](i,u)))throw TypeError(n(473));if(!m[n(452)])return m;u=m[n(453)],c<2&&(c=0)}else 1===c&&(m=i[n(481)])&&m[n(482)](i),c<2&&(u=TypeError(n(444)+r+n(474)),c=1);i=l}else if((m=(s=v.n<0)?u:o[n(482)](a,v))!==h)break}catch(r){i=l,c=1,u=r}finally{p=1}}return{value:m,done:s}}),!0),e;function g(r,e){var t=f;for(c=r,u=e,m=0;!s&&p&&!n&&m<_[t(487)];m++){var n,o=_[m],a=v.p,i=o[2];3<r?(n=i===e)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=l):o[0]<=a&&((n=r<2&&a<o[1])?(c=0,v.v=e,v.n=o[1]):a<i&&(n=r<3||o[0]>e||i<e)&&(o[4]=r,o[5]=e,v.n=i,c=0))}if(n||1<r)return h;throw s=!0,e}}var h={};function x(){}function o(){}function a(){}var m=Object[y(455)],r=[][e]?m(m([][e]())):(_regeneratorDefine2(m={},e,function(){return this}),m),i=a[y(458)]=x.prototype=Object[y(465)](r);function c(r){var e=y;return Object[e(471)]?Object.setPrototypeOf(r,a):(r[e(491)]=a,_regeneratorDefine2(r,t,e(442))),r[e(458)]=Object.create(i),r}return o[y(458)]=a,_regeneratorDefine2(i,y(461),a),_regeneratorDefine2(a,y(461),o),o.displayName="GeneratorFunction",_regeneratorDefine2(a,t,y(442)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,y(445)),_regeneratorDefine2(i,e,function(){return this}),_regeneratorDefine2(i,y(454),function(){return"[object Generator]"}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(r,e,t,n){var a=_0x1646,i=Object[a(459)];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[_0x1646(460)](e,t,r)})})(o(478),0),n(o(464),1),n(o(481),2))})(r,e,t,n)}function asyncGeneratorStep(r,e,t,n,o,a,i){var c=_0x1646;try{var u=r[a](i),f=u[c(453)]}catch(r){return void t(r)}u[c(452)]?e(f):Promise[c(470)](f)[c(480)](n,o)}function _asyncToGenerator(u){return function(){var r=this,c=arguments;return new Promise(function(e,t){var n=_0x1646,o=u[n(457)](r,c);function a(r){asyncGeneratorStep(o,e,t,a,i,"next",r)}function i(r){asyncGeneratorStep(o,e,t,a,i,n(464),r)}a(void 0)})}}(()=>{for(var r=_0x1646,e=_0x50cc();;)try{if(648338==+parseInt(r(484))*(-parseInt(r(486))/2)+parseInt(r(483))/3+parseInt(r(475))/4+-parseInt(r(446))/5+-parseInt(r(479))/6+parseInt(r(477))/7+-parseInt(r(489))/8)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require(_0x546095(490)),BUILD_TARGET_QS=_require[_0x546095(466)];module[_0x546095(488)]={install:function(r){var e,t=_0x546095;r[t(447)](t(463)).description(t(485)).requiredOption(t(476)).requiredOption("-o, --output <output-directory>")[t(450)]("-c, --clear",t(448))[t(450)]("-va, --validate",t(468))[t(450)](t(451),"Not add todo for not supported api.").option("--targets [type]",t(443).concat(BUILD_TARGET_QS))[t(462)]((e=_asyncToGenerator(_regenerator().m(function r(t){return _regenerator().w(function(r){for(var e=_0x1646;;)switch(r.n){case 0:return r.n=1,require("../index")[e(463)](t);case 1:return r.a(2)}},r)})),function(r){return e[_0x1646(457)](this,arguments)}))}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x533f82=_0x5a4e;function _0x5a4e(e,r){var n=_0x5104();return(_0x5a4e=function(e,r){return n[e-=148]})(e,r)}function _regenerator(){var d,l=_0x5a4e,e="function"==typeof Symbol?Symbol:{},r=e.iterator||l(186),n=e.toStringTag||l(148);function t(e,r,n,t){var o,a,i,c,u,f,s,p,g,_=l,r=r&&r[_(179)]instanceof h?r:h,r=Object.create(r[_(179)]);return _regeneratorDefine2(r,_(181),(o=e,a=n,s=t||[],p=!1,g={p:f=0,n:0,v:d,a:v,f:v.bind(d,4),d:function(e,r){return i=e,c=0,u=d,g.n=r,b}},function(e,r,n){var t=_0x5a4e;if(1<f)throw TypeError(t(154));for(p&&1===r&&v(r,n),c=r,u=n;(m=c<2?d:u)||!p;){i||(c?c<3?(1<c&&(g.n=-1),v(c,u)):g.n=u:g.v=u);try{if(f=2,i){if(c||(e=t(183)),m=i[e]){if(!(m=m[t(170)](i,u)))throw TypeError(t(192));if(!m.done)return m;u=m[t(199)],c<2&&(c=0)}else 1===c&&(m=i.return)&&m[t(170)](i),c<2&&(u=TypeError("The iterator does not provide a '"+e+"' method"),c=1);i=d}else if((m=(p=g.n<0)?u:o.call(a,g))!==b)break}catch(e){i=d,c=1,u=e}finally{f=1}}return{value:m,done:p}}),!0),r;function v(e,r){var n=_0x5a4e;for(c=e,u=r,m=0;!p&&f&&!t&&m<s[n(175)];m++){var t,o=s[m],a=g.p,i=o[2];3<e?(t=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=d):o[0]<=a&&((t=e<2&&a<o[1])?(c=0,g.v=r,g.n=o[1]):a<i&&(t=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,g.n=i,c=0))}if(t||1<e)return b;throw p=!0,r}}var b={};function h(){}function o(){}function a(){}var m=Object[l(196)],e=[][r]?m(m([][r]())):(_regeneratorDefine2(m={},r,function(){return this}),m),i=a.prototype=h[l(179)]=Object[l(180)](e);function c(e){var r=l;return Object[r(176)]?Object[r(176)](e,a):(e[r(193)]=a,_regeneratorDefine2(e,n,r(200))),e[r(179)]=Object[r(180)](i),e}return o[l(179)]=a,_regeneratorDefine2(i,l(161),a),_regeneratorDefine2(a,l(161),o),o.displayName="GeneratorFunction",_regeneratorDefine2(a,n,l(200)),_regeneratorDefine2(i),_regeneratorDefine2(i,n,l(204)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,l(162),function(){return"[object Generator]"}),(_regenerator=function(){return{w:t,m:c}})()}function _0x5104(){var e=["return","8CEtEqz","defineProperty","1575KzcrHW","throw","exports","call","start-view","command","5755452MjkTvm","resolve","length","setPrototypeOf","handle","112990hXhMln","prototype","create","_invoke","apply","next","then","485613ogVnlL","@@iterator","3KWnItb",'Open default browser, "default","chrome","edge"',"stop","start-service","AscfDebugger","iterator result is not an object","__proto__","select a device to debug","description","getPrototypeOf","bundleName of debugging project","status","value","GeneratorFunction","-t, --deviceId [deviceId]","772qRaUVw","debugger","Generator","@@toStringTag","action","default","option","1088215EthJDu","forEach","Generator is already running","-b, --bundleName [bundleName]","4740FaChWh","stop-view","1124844SBzGZW","6ZRtfGM","2277oWXfwC","constructor","toString","stop-service"];return(_0x5104=function(){return e})()}function _regeneratorDefine2(e,r,n,t){var a=_0x5a4e,i=Object[a(166)];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[_0x5a4e(181)](r,n,e)})})(o(183),0),t(o(168),1),t(o(164),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var c=_0x5a4e;try{var u=e[a](i),f=u[c(199)]}catch(e){return void n(e)}u.done?r(f):Promise[c(174)](f)[c(184)](t,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0x5a4e,o=u[t(182)](e,c);function a(e){asyncGeneratorStep(o,r,n,a,i,t(183),e)}function i(e){asyncGeneratorStep(o,r,n,a,i,t(168),e)}a(void 0)})}}(()=>{for(var e=_0x5a4e,r=_0x5104();;)try{if(113687==-parseInt(e(187))*(parseInt(e(178))/2)+-parseInt(e(167))/3*(parseInt(e(202))/4)+parseInt(e(152))/5*(parseInt(e(159))/6)+-parseInt(e(158))/7+-parseInt(e(165))/8*(parseInt(e(185))/9)+parseInt(e(156))/10*(-parseInt(e(160))/11)+parseInt(e(173))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require("../../ascf-base"),AscfDebugger=_require[_0x533f82(191)];module[_0x533f82(169)]={install:function(e){function n(t){return r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0x5a4e;;)switch(e.n){case 0:new AscfDebugger(n)[r(177)](t);case 1:return e.a(2)}},e)})),function(e){return r[_0x5a4e(182)](this,arguments)};var r}var t=_0x533f82,o=e.command(t(203)).description("Start or stop debugger");[t(198)][t(153)](function(e){var r=t;o.command(e)[r(195)](e)[r(151)]("-b, --bundleName [bundleName]",r(197)).option(r(201),"select a device to debug").action(n(e))}),["start",t(171),t(190)][t(153)](function(e){var r=t;o.command(e)[r(195)](e)[r(151)]("-o, --open <browser>",r(188),r(150))[r(151)](r(155),r(197))[r(151)](r(201),r(194))[r(149)](n(e))}),[t(189),t(157),t(163)][t(153)](function(e){var r=t;o[r(172)](e)[r(195)](e)[r(151)](r(155),"bundleName of debugging project")[r(151)](r(201),"select a device to debug")[r(149)](n(e))})}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x4c10ef=_0x4ddb;function _0x5170(){var e=["call","genP12","mkdirSync","--sign-profile-path [path]","The iterator does not provide a '","__proto__","dirname","-r, --projectRoot [projectRoot]","certificate.pem","resolve","12eyRySn","create","Sign public key path","signPublicKeyPath","Sign tools to generate keypair, p12 file and view fingerprint","displayName","generate keypair","--sign-pwd [pwd]","869354waWMba","' method","private.pem","[object Generator]","Generator","18kkJvng","_invoke","bind","iterator","generate-p12","2442430BlYjdi","join","prototype","concat","Sign private key path","apply","rmSync","genCertAndP12 error","@@toStringTag","signPwd","2197320pTspTp","throw","13044XhXEdr","next","command","printFp","sign/ascf-build.p12","GeneratorFunction","action","-i, --input <input-directory>","sign/private.pem","genCert","1402863TfYVlM","path","function","projectRoot","generate-keypair","ascf-cache-tmp-sign","requiredOption","--sign-public-key-path [path]","Password of the p12 file","return","677072HeNxTL","getLogger","existsSync","catch","Generator is already running","../../common/log4js","p12 File Path","signProfilePath","--sign-private-key-path [path]","defineProperty","description","signPrivateKeyPath","132NelkBm","option","finally","setPrototypeOf","length","4490003EOYruR","value","278DQeyoa","iterator result is not an object","constructor","toString","done","error","then","ascf-sign-tools","8aYfYHn"];return(_0x5170=function(){return e})()}function _regenerator(){var l,y=_0x4ddb,e=y(372)==typeof Symbol?Symbol:{},r=e[y(346)]||"@@iterator",n=e.toStringTag||y(356);function t(e,r,n,t){var o,i,a,c,s,u,f,p,g,d,_=y,r=r&&r[_(350)]instanceof b?r:b,r=Object[_(419)](r.prototype);return _regeneratorDefine2(r,_(344),(o=e,i=n,p=t||[],g=!1,d={p:f=0,n:0,v:l,a:h,f:h[(u=_)(345)](l,4),d:function(e,r){return a=e,c=0,s=l,d.n=r,v}},function(e,r,n){var t=u;if(1<f)throw TypeError(t(384));for(g&&1===r&&h(r,n),c=r,s=n;(x=c<2?l:s)||!g;){a||(c?c<3?(1<c&&(d.n=-1),h(c,s)):d.n=s:d.v=s);try{if(f=2,a){if(x=a[e=c?e:"next"]){if(!(x=x[t(408)](a,s)))throw TypeError(t(400));if(!x[t(403)])return x;s=x[t(398)],c<2&&(c=0)}else 1===c&&(x=a[t(379)])&&x[t(408)](a),c<2&&(s=TypeError(t(412)+e+t(427)),c=1);a=l}else if((x=(g=d.n<0)?s:o.call(i,d))!==v)break}catch(e){a=l,c=1,s=e}finally{f=1}}return{value:x,done:g}}),!0),r;function h(e,r){var n=u;for(c=e,s=r,x=0;!g&&f&&!t&&x<p[n(396)];x++){var t,o=p[x],i=d.p,a=o[2];3<e?(t=a===r)&&(s=o[(c=o[4])?5:c=3],o[4]=o[5]=l):o[0]<=i&&((t=e<2&&i<o[1])?(c=0,d.v=r,d.n=o[1]):i<a&&(t=e<3||o[0]>r||a<r)&&(o[4]=e,o[5]=r,d.n=a,c=0))}if(t||1<e)return v;throw g=!0,r}}var v={};function b(){}function o(){}function i(){}var x=Object.getPrototypeOf,e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),a=i.prototype=b.prototype=Object[y(419)](e);function c(e){var r=y;return Object[r(395)]?Object.setPrototypeOf(e,i):(e[r(413)]=i,_regeneratorDefine2(e,n,r(365))),e[r(350)]=Object[r(419)](a),e}return o.prototype=i,_regeneratorDefine2(a,y(401),i),_regeneratorDefine2(i,"constructor",o),o[y(423)]=y(365),_regeneratorDefine2(i,n,"GeneratorFunction"),_regeneratorDefine2(a),_regeneratorDefine2(a,n,y(430)),_regeneratorDefine2(a,r,function(){return this}),_regeneratorDefine2(a,y(402),function(){return y(429)}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var i=_0x4ddb,a=Object[i(389)];try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,n,t){var o=i;r?a?a(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x4ddb(344)](r,n,e)})})(o(361),0),t(o(359),1),t(o(379),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,i,a){var c=_0x4ddb;try{var s=e[i](a),u=s[c(398)]}catch(e){return void n(e)}s[c(403)]?r(u):Promise[c(417)](u).then(t,o)}function _asyncToGenerator(c){return function(){var e=this,a=arguments;return new Promise(function(r,n){var t=c.apply(e,a);function o(e){asyncGeneratorStep(t,r,n,o,i,_0x4ddb(361),e)}function i(e){asyncGeneratorStep(t,r,n,o,i,_0x4ddb(359),e)}o(void 0)})}}(()=>{for(var e=_0x4ddb,r=_0x5170();;)try{if(649456==+parseInt(e(426))+parseInt(e(399))/2*(parseInt(e(360))/3)+-parseInt(e(380))/4+-parseInt(e(348))/5*(parseInt(e(418))/6)+parseInt(e(397))/7*(-parseInt(e(407))/8)+-parseInt(e(343))/9*(parseInt(e(358))/10)+-parseInt(e(370))/11*(-parseInt(e(392))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var fs=require("fs"),path=require(_0x4c10ef(371)),cachedir=require("cachedir"),signTools=require("../../ascf-sign-tools"),log4js=require(_0x4c10ef(385)),logger=log4js[_0x4c10ef(381)](_0x4c10ef(406));function ensureDir(e){var r=_0x4c10ef,e=path[r(414)](e);return fs[r(382)](e)||fs[r(410)](e,{recursive:!0}),e}function getParams(e){var r=_0x4c10ef,n=e.projectRoot,t=e[r(391)],o=e[r(421)],i=e[r(387)],e=e.signPwd;return{signPrivateKeyPath:t=n&&!t?path[r(349)](n,r(368)):t,signPublicKeyPath:o=n&&!o?path.join(n,"sign/certificate.pem"):o,signProfilePath:i=n&&!i?path.join(n,r(364)):i,signPwd:e}}function genCertAndP12(e,r){return _genCertAndP.apply(this,arguments)}function _0x4ddb(e,r){var n=_0x5170();return(_0x4ddb=function(e,r){return n[e-=343]})(e,r)}function _genCertAndP(){var e=_0x4c10ef;return(_genCertAndP=_asyncToGenerator(_regenerator().m(function e(r,t){var o,i,a;return _regenerator().w(function(e){for(var n=_0x4ddb;;)if(0===e.n)return o=cachedir(n(375)),logger.debug("tmp sign dir "[n(351)](o)),i=path[n(349)](o,n(428)),a=path[n(349)](o,n(416)),ensureDir(i),e.a(2,signTools[n(369)](i,a)[n(405)](function(){return signTools.genP12(r,i,a,t)})[n(383)](function(e){var r=n;logger[r(404)](r(355),e)})[n(394)](function(){fs[n(354)](o,{recursive:!0,force:!0})}))},e)})))[e(353)](this,arguments)}module.exports={install:function(e){var r,n,t,o=_0x4c10ef,e=e[o(362)]("signtools")[o(390)](o(422));e.command(o(374))[o(390)](o(424)).option(o(415),"projectRoot").option(o(388),o(352))[o(393)](o(377),o(420)).action((t=_asyncToGenerator(_regenerator().m(function e(n){var t,o;return _regenerator().w(function(e){for(var r=_0x4ddb;;)if(0===e.n)return o=getParams(n),t=o[r(391)],o=o[r(421)],ensureDir(t),ensureDir(o),e.a(2,signTools[r(369)](t,o))},e)})),function(e){return t.apply(this,arguments)})),e[o(362)](o(347))[o(390)]("generate p12").option(o(415),o(373))[o(393)]("--sign-private-key-path [path]",o(352))[o(393)]("--sign-public-key-path [path]","Sign public key path")[o(393)](o(411),o(386))[o(376)](o(425),o(378))[o(366)]((n=_asyncToGenerator(_regenerator().m(function e(n){var t,o,i,a;return _regenerator().w(function(e){for(var r=_0x4ddb;;)switch(e.n){case 0:if(a=getParams(n),t=a[r(391)],o=a[r(421)],i=a[r(387)],a=a[r(357)],ensureDir(i),fs[r(382)](t)&&fs[r(382)](o)){e.n=1;break}return logger.warn("generate keypair"),e.a(2,genCertAndP12(i,a));case 1:return e.a(2,signTools[r(409)](i,t,o,a))}},e)})),function(e){return n[_0x4ddb(353)](this,arguments)})),e[o(362)](o(363)).description("View Fingerprint")[o(376)](o(367)).action((r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0x4ddb;;)switch(e.n){case 0:signTools[r(363)](n.input);case 1:return e.a(2)}},e)})),function(e){return r[_0x4ddb(353)](this,arguments)}))}};
|
package/lib/common/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x3a9d(c,e){var r=_0x3e42();return(_0x3a9d=function(c,e){return r[c-=292]})(c,e)}var _0x21c69c=_0x3a9d;function _0x3e42(){var c=["54IiTvXS","18tUfwJp","video","472715ogCCYa","camera","image","swiper","slider","72EXWkLK","75255DPrwGq","691977MsVXaR","env","163051wxFhBV","progress","picker-view-column","NODE_ENV","navigator","checkbox-group","checkbox","scroll-view","input","configs","movable-view","switch","label","4QPxsHl","text","radio","154881eGRqQx","development","rich-text","72830Wpdlyg","babel","canvas","swiper-item","109566osEkly","web-view","form","view","textarea","movable-area"];return(_0x3e42=function(){return c})()}(()=>{for(var c=_0x3a9d,e=_0x3e42();;)try{if(171612==+parseInt(c(321))+parseInt(c(306))/2+-parseInt(c(299))/3*(parseInt(c(296))/4)+parseInt(c(315))/5*(parseInt(c(313))/6)+-parseInt(c(324))/7*(parseInt(c(320))/8)+-parseInt(c(312))/9*(parseInt(c(302))/10)+parseInt(c(322))/11)break;e.push(e.shift())}catch(c){e.push(e.shift())}})();var configs={notaddtodo:!1,parser:_0x21c69c(303),devtool:void 0,componentList:[_0x21c69c(311),_0x21c69c(293),_0x21c69c(331),_0x21c69c(318),_0x21c69c(305),_0x21c69c(309),"icon",_0x21c69c(325),_0x21c69c(301),_0x21c69c(297),"button",_0x21c69c(330),_0x21c69c(329),_0x21c69c(308),_0x21c69c(332),_0x21c69c(295),"picker","picker-view",_0x21c69c(326),_0x21c69c(298),"radio-group",_0x21c69c(319),_0x21c69c(294),_0x21c69c(310),_0x21c69c(328),_0x21c69c(317),_0x21c69c(314),_0x21c69c(316),"Map",_0x21c69c(304),_0x21c69c(307)],templateHoist:!1,ascfLazyImportFiles:{},skipApiValidator:!0,serve:!1,deviceId:!1,isProd:function(){var c=_0x21c69c;return process[c(323)][c(327)]!==c(300)},isInjectDebugTimer:function(){return!configs.isProd()},requiredComponents:[],tabBarUsingComponents:{},tabBarList:[],asyncJsList:{},jsLoaderList:new Set,isRelease:!0};exports[_0x21c69c(292)]=configs;
|
package/lib/common/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2374ee=_0x3bb3;function _0x2f78(){var r=["115tJnSep","crossAtomicService","104260KInaOq","282QkvBdi","10991112NrzQpM","25656650Widfxq","165384LapXCQ","16xRUKTP","886770DPBiZX","exports","10921545BmGKoL","130319KOwLlS"];return(_0x2f78=function(){return r})()}function _0x3bb3(r,e){var t=_0x2f78();return(_0x3bb3=function(r,e){return t[r-=167]})(r,e)}(()=>{for(var r=_0x3bb3,e=_0x2f78();;)try{if(687875==-parseInt(r(178))*(-parseInt(r(177))/2)+parseInt(r(167))/3+-parseInt(r(173))/4*(-parseInt(r(171))/5)+-parseInt(r(174))/6*(-parseInt(r(170))/7)+parseInt(r(175))/8+-parseInt(r(169))/9+-parseInt(r(176))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var BUILD_TARGET_AS="atomicservice",BUILD_TARGET_QS=_0x2374ee(172);module[_0x2374ee(168)]={BUILD_TARGET_AS:BUILD_TARGET_AS,BUILD_TARGET_QS:BUILD_TARGET_QS};
|
package/lib/common/log4js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2714(){var e=["578130NEupNV","16689360YAimQj","228408hejnrt","1563332UehXRh","981842fVmcBn","161PdyGIx","setLoggerConfig","5bcAWNm","ASCF_LOG_FILE","3nfafgo","54HwqqVi","11QQGjXy","73398PIoxWD","4112580LXZHIO","exports"];return(_0x2714=function(){return e})()}function _0xc1f3(e,r){var t=_0x2714();return(_0xc1f3=function(e,r){return t[e-=484]})(e,r)}var _0x41e992=_0xc1f3,_require=((()=>{for(var e=_0xc1f3,r=_0x2714();;)try{if(368865==+parseInt(e(487))+-parseInt(e(494))/2*(parseInt(e(484))/3)+parseInt(e(493))/4*(parseInt(e(497))/5)+-parseInt(e(488))/6+-parseInt(e(495))/7*(parseInt(e(492))/8)+-parseInt(e(485))/9*(-parseInt(e(490))/10)+-parseInt(e(486))/11*(-parseInt(e(491))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require("../ascf-base")),ASCF_LOG_FILE=_require[_0x41e992(498)],setLoggerConfig=_require[_0x41e992(496)],getLogger=_require.getLogger;module[_0x41e992(489)]={ASCF_LOG_FILE:ASCF_LOG_FILE,setLoggerConfig:setLoggerConfig,getLogger:getLogger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x32c660=_0x4521;function _typeof(r){var t=_0x4521;return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol[t(215)]?function(r){return typeof r}:function(r){var e=t;return r&&e(255)==typeof Symbol&&r[e(232)]===Symbol&&r!==Symbol[e(206)]?"symbol":typeof r})(r)}function _classCallCheck(r,e){var t=_0x4521;if(!(r instanceof e))throw new TypeError(t(230))}function _defineProperties(r,e){for(var t=_0x4521,n=0;n<e[t(177)];n++){var o=e[n];o[t(220)]=o[t(220)]||!1,o.configurable=!0,t(219)in o&&(o[t(241)]=!0),Object[t(217)](r,_toPropertyKey(o[t(197)]),o)}}function _createClass(r,e,t){var n=_0x4521;return e&&_defineProperties(r.prototype,e),t&&_defineProperties(r,t),Object[n(217)](r,n(206),{writable:!1}),r}function _toPropertyKey(r){var e=_0x4521,r=_toPrimitive(r,e(162));return e(195)==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0x4521;if(t(221)!=_typeof(r)||!r)return r;var n=r[Symbol[t(175)]];if(void 0===n)return(t(162)===e?String:Number)(r);n=n.call(r,e||"default");if(t(221)!=_typeof(n))return n;throw new TypeError(t(211))}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x4521(163))}function _unsupportedIterableToArray(r,e){var t,n=_0x4521;if(r)return n(162)==typeof r?_arrayLikeToArray(r,e):"Map"===(t="Object"===(t={}.toString[n(201)](r).slice(8,-1))&&r[n(232)]?r[n(232)].name:t)||"Set"===t?Array[n(209)](r):n(187)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(223)](t)?_arrayLikeToArray(r,e):void 0}function _iterableToArray(r){var e=_0x4521;if(e(168)!=typeof Symbol&&null!=r[Symbol[e(215)]]||null!=r[e(176)])return Array[e(209)](r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){var t=_0x4521;(null==e||e>r[t(177)])&&(e=r[t(177)]);for(var n=0,o=Array(e);n<e;n++)o[n]=r[n];return o}(()=>{for(var r=_0x4521,e=_0x4ce2();;)try{if(269180==+parseInt(r(243))+-parseInt(r(166))/2*(parseInt(r(235))/3)+-parseInt(r(165))/4+parseInt(r(252))/5+parseInt(r(184))/6*(-parseInt(r(237))/7)+parseInt(r(245))/8*(-parseInt(r(181))/9)+parseInt(r(234))/10*(parseInt(r(248))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x32c660(199),log4js=require(_0x32c660(192)),logger=log4js.getLogger(_0x32c660(186));function defaultFormatter(r,e){var n=_0x32c660;return r[n(240)](function(r,e){var t=n;return[][t(179)](_toConsumableArray(r),["\n"[t(179)](e[t(204)])])},[])}function babelSyntaxError(r){var e=_0x32c660;return isBabelSyntaxError(r)&&(r[e(204)]=cleanStackTrace(r[e(204)])),r}function isBabelSyntaxError(r){var e=_0x32c660;return r.name===e(251)&&r[e(204)].includes("SyntaxError")}function cleanStackTrace(r){var e=_0x32c660;return r[e(196)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"")[e(196)](/^Module build failed.*:\s/,e(244))}function moduleNotFoundError(r){var e,t=_0x32c660;return r[t(253)]===t(238)&&r.message[t(213)](TYPE)&&(r[t(204)]=r[t(204)][t(196)](TYPE,t(216)[t(179)](TYPE)),e=r[t(218)]&&r.origin[t(207)])&&(r[t(204)]+=t(190)[t(179)](e)),r}var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x32c660;return{message:r[e(204)],file:r[e(203)],origin:r[e(218)],name:r[e(253)],severity:0,webpackError:r}}function cleanMessage(r){var e=_0x32c660;return r[e(196)](e(193),"")[e(196)](/Module Warning[^\n]+\n/,"")[e(196)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}var n=_0x32c660;return r[n(250)](extractError)[n(250)](function(r){return e.reduce(t,r)})}function _0x4521(r,e){var t=_0x4ce2();return(_0x4521=function(r,e){return t[r-=161]})(r,e)}function formatErrors(e,r,t){var n=_0x32c660;return r[n(250)](function(r){return r(e,t)||[]})[n(240)](function(r,e){return r[_0x4521(179)](e)},[])}function _0x4ce2(){var r=["logger-plugin","Arguments","printCompileResult","compileTime: ","\n@ ","transformers","./log4js.js","(Emitted value instead of an instance of Error) ","done","symbol","replace","key","endTime","Module not found","round","call","warningCount","file","message","formatters","prototype","resource","getBuildMsg","from","fatal","@@toPrimitive must return a primitive value.","warnCount","includes","showCompileTime","iterator","ERROR: ","defineProperty","origin","value","enumerable","object"," ms","test","some","errorCount","\nCOMPILE RESULT:","ASCF_LOG_FILE","calculate","warning","Cannot call a class as a function","startTime","constructor","beginTime","6998820jGWJSZ","849501iOohPB","stringify","21ifWhwq","ModuleNotFoundError","hasWarnings","reduce","writable","apply","33949ylSqvo","Error: ","3234208IMeRwv","errors","compilation","22ycdmNr","error","map","ModuleBuildError","513435AHWXpf","name","extraInfo","function","tap","noteCount","warn","\n\nYou can check full log: ","hasErrors","string","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","hooks","1720800JsaQiG","2aLAyCe","BuildLogOutputPlugin","undefined",", elapsed: ","info","getTime","warnings","options","dropRepeat","toPrimitive","@@iterator","length","displayErrors","concat","\nCOMPILE RESULT:SUCCESS","9NibVuW","assign","FAIL ","299154NfatUF","forEach"];return(_0x4ce2=function(){return r})()}function getCompileTime(r){var e=_0x32c660,t=r[e(198)],r=r[e(231)];logger[e(170)](e(189)[e(179)](t-r,e(222)))}function _dropRepeat(r){return r.reduce(function(r,e){var t=_0x4521;return r[t(224)](function(r){return r[t(204)]===e.message})?r:r[t(179)](e)},[])}var BuildLogOutputPlugin=(()=>{var l=_0x32c660;return _createClass(function r(){var e=_0x4521,t=0<arguments[e(177)]&&void 0!==arguments[0]?arguments[0]:{},n=t[e(214)],n=void 0!==n&&n,t=t.options;_classCallCheck(this,r),this.errorCount=0,this[e(202)]=0,this[e(257)]=0,this[e(214)]=n||"true"===process.env.showtime,this[e(205)]=defaultFormatters,this.transformers=defaultTransformers,this[e(173)]=t},[{key:l(242),value:function(r){var u=l,s=this;r[u(164)][u(194)][u(256)](u(167),function(e){var t=u,r=(s[t(174)](e),e[t(247)]),n=r[t(246)],o=r[t(172)],a=e[t(161)](),i=e[t(239)]();setTimeout(function(){var r=t;a&&s.displayErrors(n,r(249)),i&&s.displayErrors(o,r(229)),s[r(228)](e,n,o),s[r(188)](),s[r(214)]&&getCompileTime(e)})})}},{key:"dropRepeat",value:function(r){var e=l;r.compilation[e(172)]=_dropRepeat(r[e(247)][e(172)]),r[e(247)][e(246)]=_dropRepeat(r.compilation[e(246)])}},{key:l(228),value:function(r,e){var t=l,n=this,o=2<arguments[t(177)]&&void 0!==arguments[2]?arguments[2]:[],r=r[t(247)][t(254)]||{},a=r[t(225)],a=void 0===a?0:a,i=r[t(212)],i=void 0===i?0:i,r=r[t(257)],r=void 0===r?0:r;this.errorCount=e[t(177)]+a,this[t(202)]=i,this[t(257)]=r,o[t(185)](function(r){var e=t,r=r[e(204)];/^NOTE:/[e(223)](cleanMessage(r))?n[e(257)]++:n[e(202)]++})}},{key:"printCompileResult",value:function(){var r,e=l,t=this[e(225)],n=this[e(202)],o=this[e(257)],a=(new Date)[e(171)]()-global[e(233)],a=e(169)+Math[e(200)](a/1e3)+"s"+e(259)+log4js[e(227)];0<t+n+o?(r=t?e(183):"SUCCESS ",n=Object[e(182)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),t?logger[e(210)](e(226).concat(r).concat(JSON[e(236)](n))+a):logger[e(258)](e(226)[e(179)](r)[e(179)](JSON[e(236)](n))+a)):logger.info(e(180)+a)}},{key:l(178),value:function(r,t){var n=l;formatErrors(transformErrors(r,this.transformers),this[n(205)],t)[n(185)](function(r){var e=n;t===e(249)&&logger.error(cleanMessage(r)),"warning"===t&&logger[e(258)](cleanMessage(r))})}},{key:l(208),value:function(r,e){var t=l;return formatErrors(transformErrors(r,this[t(191)]),this[t(205)],e)[t(250)](function(r){return cleanMessage(r)})}}])})();module.exports=BuildLogOutputPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x1d4340=_0x3e87;function _0x421b(){var r=["42DilFPx","2013664wTitrA","exports","splice","33XSLaDy","41ywJPug","266uHiAYD","2922080PetyhO","355386tpKjgH","directives","length","use strict","10538pSwPzI","392100QRsFgc","23928QCxoLA","value","4551984qbfcTL"];return(_0x421b=function(){return r})()}function _0x3e87(r,t){var e=_0x421b();return(_0x3e87=function(r,t){return e[r-=134]})(r,t)}(()=>{for(var r=_0x3e87,t=_0x421b();;)try{if(400281==-parseInt(r(146))*(-parseInt(r(136))/2)+-parseInt(r(149))/3+-parseInt(r(142))/4+-parseInt(r(137))/5*(-parseInt(r(141))/6)+parseInt(r(147))/7*(-parseInt(r(138))/8)+-parseInt(r(140))/9+-parseInt(r(148))/10*(-parseInt(r(145))/11))break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module[_0x1d4340(143)]=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x3e87,e=r.node[t(150)],n=e[t(134)]-1;0<=n;n--)e[n][t(139)][t(139)]===t(135)&&e[t(144)](n,1)}}}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x10586e=_0x1213;function _0x8040(){var r=["2711850PKErJl","361230qhNsNE","prototype","replace","38785dbRsSR","4022263YEBydA","9BBbWdA","721896QkwVpx","\\$&","591124WRApkR","8ZwhUNu","replaceAll","117fvDJNY","1835135dBWZUS"];return(_0x8040=function(){return r})()}function _0x1213(r,e){var n=_0x8040();return(_0x1213=function(r,e){return n[r-=143]})(r,e)}(()=>{for(var r=_0x1213,e=_0x8040();;)try{if(358378==+parseInt(r(147))*(-parseInt(r(153))/2)+parseInt(r(149))/3*(parseInt(r(152))/4)+-parseInt(r(156))/5+parseInt(r(143))/6+-parseInt(r(148))/7+parseInt(r(150))/8+-parseInt(r(155))/9*(-parseInt(r(144))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),exports[_0x10586e(154)]=function(r,e,n){var t=_0x10586e;return String[t(145)].replaceAll?null==r?void 0:r[t(154)](e,n):(e=e[t(146)](/[.*+?^${}()|[\]\\]/g,t(151)),e=new RegExp(e,"g"),null==r?void 0:r[t(146)](e,n))};
|
package/lib/common/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
var _0x1749c9=_0x52fc;function _createForOfIteratorHelper(r,e){var t,o,n,a,c=_0x52fc,i=c(381)!=typeof Symbol&&r[Symbol.iterator]||r[c(489)];if(i)return n=!(o=!0),{s:function(){i=i.call(r)},n:function(){var r=i[c(403)]();return o=r.done,r},e:function(r){n=!0,t=r},f:function(){var r=c;try{o||null==i[r(468)]||i[r(468)]()}finally{if(n)throw t}}};if(Array[c(492)](r)||(i=_unsupportedIterableToArray(r))||e&&r&&c(375)==typeof r[c(466)])return i&&(r=i),a=0,{s:e=function(){},n:function(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(r){throw r},f:e};throw new TypeError(c(405))}function _unsupportedIterableToArray(r,e){var t,o=_0x52fc;if(r)return o(505)==typeof r?_arrayLikeToArray(r,e):(t={}.toString[o(444)](r)[o(481)](8,-1),o(438)===t&&r[o(383)]&&(t=r[o(383)].name),o(515)===t||o(417)===t?Array[o(457)](r):o(411)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[o(478)](t)?_arrayLikeToArray(r,e):void 0)}function _arrayLikeToArray(r,e){var t=_0x52fc;(null==e||e>r[t(466)])&&(e=r[t(466)]);for(var o=0,n=Array(e);o<e;o++)n[o]=r[o];return n}(()=>{for(var r=_0x52fc,e=_0x6aba();;)try{if(982249==+parseInt(r(431))+parseInt(r(397))/2*(parseInt(r(387))/3)+parseInt(r(394))/4*(parseInt(r(384))/5)+-parseInt(r(491))/6+-parseInt(r(503))/7*(parseInt(r(447))/8)+parseInt(r(372))/9*(-parseInt(r(477))/10)+-parseInt(r(434))/11*(-parseInt(r(448))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var rimraf=require(_0x1749c9(413)),fs=require("fs"),path=require("path"),JSON5=require(_0x1749c9(374)),os=require("os"),_require=require("child_process"),execSync=_require[_0x1749c9(463)],json5=require(_0x1749c9(374)),log4js=require(_0x1749c9(462)),_require2=require(_0x1749c9(388)),configs=_require2[_0x1749c9(428)],logger=log4js.getLogger(_0x1749c9(453)),curProjectPath=null,curProjectInfo=null;function getProjectInfo(){var r,e,t,o=_0x1749c9;return process[o(450)][o(416)]===curProjectPath&&curProjectInfo||(e=readProjectCfgJson(r=process[o(450)][o(416)]||process[o(418)]())||{},t=path[o(404)](r,o(482)),t=e[o(488)]?path[o(404)](t,e[o(488)]):t,o=path[o(404)](r,"ascf",o(456)),curProjectInfo={projectPath:curProjectPath=r,projectCfg:e,ascfSrcPath:t,ascfBuildPath:o}),curProjectInfo}exports.getProjectInfo=getProjectInfo,exports[_0x1749c9(499)]=_0x1749c9(445),exports.TOOLKIT_PATH=path.join(__dirname,"..","..");var SECURE_KEYS=["deviceId",_0x1749c9(430),_0x1749c9(514)];function logJsonStr(r){var o=_0x1749c9;return JSON[o(436)](r,function(r,e){var t=o;return SECURE_KEYS[t(391)](r)?null!=e?t(440):void 0:e})}function fixUniapp(r,e){var t=_0x1749c9,r=path[t(404)](r,"ascf/ascf_src/common/vendor.js");fs[t(490)](r)&&((null==(r=fs[t(441)](r,t(498)))?void 0:r[t(391)](t(458)))||(null==r?void 0:r.includes(t(464))))&&(e.disableSubpackages=!1)}function initOptions(r){var e,t=_0x1749c9;for(e in r)Object.prototype[t(396)].call(r,e)&&(r[e]===t(419)&&(r[e]=!1),r[e]===t(511))&&(r[e]=!0)}function readJsonFile(e){var t=_0x1749c9;if(!fs.existsSync(e))return{};var r={};try{r=JSON5[t(504)](fs[t(441)](e,"utf-8")[t(377)]()||"{}")}catch(r){throw new Error("parse json file error at "[t(378)](e,":")[t(378)](r[t(371)],":").concat(r[t(402)]," "))}return r}function _0x52fc(r,e){var t=_0x6aba();return(_0x52fc=function(r,e){return t[r-=370]})(r,e)}function writeJsonFile(r,e){var t=_0x1749c9;try{fs[t(409)](r,JSON[t(436)](e,null,2))}catch(r){throw t(480).concat(r)}}function readProjectCfgJson(r){var e,t=_0x1749c9,r=path[t(497)](r,t(475),t(474),t(510));return e=fs[t(490)](r)?JSON[t(504)](fs[t(441)](r)[t(377)]()):e}function isOSX(){var r=_0x1749c9;return os.platform()===r(500)}function hasHxml(r){var e=_0x1749c9;try{var t,o=_createForOfIteratorHelper(fs[e(496)](r,{withFileTypes:!0}));try{for(o.s();!(t=o.n()).done;){var n=t[e(395)],a=path.join(r,n[e(415)]);if(n[e(442)]()&&n.name[e(501)](e(507))||n[e(423)]()&&n[e(415)]!==e(479)&&hasHxml(a))return!0}}catch(r){o.e(r)}finally{o.f()}}catch(r){logger[e(509)](e(473),r)}return!1}function moveFiles(n,a){var c=_0x1749c9;try{fs[c(471)](a,{recursive:!0}),fs[c(496)](n,{withFileTypes:!0})[c(520)](function(r){var e=c,t=path[e(497)](n,r.name),o=path.join(a,r[e(415)]);r.isFile()?fs[e(469)](t,o):r[e(423)]()&&r.name!==e(479)&&moveFiles(t,o)})}catch(r){logger.error("Moving files error:",r)}}function handleResolveAlias(r,e){var t,o=_0x1749c9,n=_createForOfIteratorHelper(Object[o(454)](e).sort(function(r,e){var t=o;return e[t(466)]-r[t(466)]}));try{for(n.s();!(t=n.n()).done;){var a,c,i,s=t[o(395)];if(s[o(501)]("/*")&&e[s][o(501)]("/*"))if(r.startsWith(s.slice(0,-1))||r===s.slice(0,-1))return a=e[s].slice(0,-1),c=r[o(481)](s.length-1),i=(i=path[o(497)](a,c)[o(400)](/\\/g,"/"))[o(370)]("/")?i:"/"+i}}catch(r){n.e(r)}finally{n.f()}return r}function getEntryPkgPath(){var r,e=_0x1749c9,t=getProjectInfo()[e(435)],o=readJsonFile(path[e(404)](t,e(513)));if(0<(null==o||null==(r=o[e(465)])?void 0:r[e(466)]))return path[e(497)](t,o[e(465)][0][e(470)]);logger[e(401)](e(392))}function deepMerge(r){for(var e=_0x1749c9,t=arguments[e(466)],o=new Array(1<t?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(!o[e(466)])return r;var a=o[e(379)]();if(!a)return deepMerge[e(472)](void 0,[r][e(378)](o));for(var c=0,i=Object.keys(a);c<i[e(466)];c++){var s=i[c],f=a[s];isObject(f)?(null==r[s]&&(r[s]={}),deepMerge(r[s],f)):void 0!==f&&(r[s]=f)}return deepMerge[e(472)](void 0,[r].concat(o))}function isObject(r){var e=_0x1749c9;return Object.prototype[e(377)].call(r)===e(494)}function getIdeBinPath(){var r=_0x1749c9,e=null==(e=process[r(450)][r(398)]||process[r(450)][r(449)])?void 0:e[r(437)](";")[0][r(421)](),t=e||r(414),e=e||r(376);return isOSX()?t:e}function adjustPathByPlatform(r){return isOSX()?r:'"'.concat(r,'"')}function _0x6aba(){var r=["UNI","modules","length"," is not found","return","copyFileSync","srcPath","mkdirSync","apply","find Hxml error:","ascf_src","ascf","serve","17607890FNSaSu","test","node_modules","ERROR: Write JSON file failed: ","slice","ascf/ascf_src","logJsonStr","sdk","disableSubpackages","src","getHdcPath","ascfRoot","@@iterator","existsSync","11428968xYoUyL","isArray","main","[object Object]","clearResource","readdirSync","join","utf8","RAWFILE_DIR","darwin","endsWith","hdc","8012445jLHPxR","parse","string","hvigor",".hxml","watch","error","ascf.config.json","true","bundleName","build-profile.json5","signPwd","Map","development","hdc.exe","skipApiValidator","parser","forEach","swc","startsWith","lineNumber","9yHMJvj","utf-8","json5","number","C:\\Program Files\\Huawei\\DevEco Studio\\bin","toString","concat","shift","module.json5","undefined","isOSX","constructor","5090KsLgRB","node","debug","245406ThTJca","./config","win32","default","includes","getEntryPkgPath error, build-profile.json5 file modules is null","configs is: ","1880WpwsLI","value","hasOwnProperty","48VoVEHX","DevEco Studio","exec cmd error","replace","fatal","columnNumber","next","resolve","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","tools","hasHxml","projectCfg","writeFileSync","getModuleNames","Arguments","templateHoist","rimraf","/Applications/DevEco-Studio.app/Contents/tools","name","projectRoot","Set","cwd","false","getEntryPkgPath","trim","bin","isDirectory","getNodePath","hvigorw","NODE_ENV","node.exe","configs","getBundleName","deviceList","73219JuKjeW","module","openharmony","4829FzWuTs","projectPath","stringify","split","Object","yes","***","readFileSync","isFile","readJsonFile","call","src/main/resources/rawfile","babel","8yIvujO","89592GHOvwH","DEVECO_DIR","env","writeJsonFile","AppScope","common-utils","keys","map","ascf_build","from","* @dcloudio","getHvigorwPath","handleResolveAlias","sync","./log4js.js","execSync"];return(_0x6aba=function(){return r})()}function getPath(){for(var r=_0x1749c9,e=getIdeBinPath(),t=arguments[r(466)],o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return adjustPathByPlatform(path[r(497)][r(472)](path,[e][r(378)](o)))}exports[_0x1749c9(483)]=logJsonStr,exports.initConfigs=function(r,e){var t=_0x1749c9,o=(initOptions(e),getProjectInfo()),n=e[t(508)]||e[t(476)]||void 0!==e.mode&&"production"!==e.mode;process[t(450)][t(426)]&&!n||(process[t(450)][t(426)]=n?t(516):"production"),deepMerge(configs,o[t(408)],e),process[t(450)][t(495)]=n||configs.clear?t(439):"no",configs[t(519)]=configs[t(521)]?t(521):t(446),void 0===configs[t(412)]&&fs[t(490)](path.resolve(r,"ascf/ascf_src/base.hxml"))&&(configs.templateHoist=!0),configs[t(412)]=!!configs.templateHoist,configs[t(518)]=n||configs[t(518)]!==t(419)&&configs.skipApiValidator,configs.disableSubpackages=configs[t(476)]||(void 0===configs[t(485)]?!!n:configs.disableSubpackages),fixUniapp(r,configs),logger[t(386)](t(393)[t(378)](logJsonStr(configs)))},exports[_0x1749c9(495)]=function(r){var o=_0x1749c9;return Promise.all(r[o(455)](function(e){var t=o;if(fs[t(490)](e))return new Promise(function(r){rimraf[t(461)](e),r()})}))},exports[_0x1749c9(443)]=readJsonFile,exports[_0x1749c9(451)]=writeJsonFile,exports[_0x1749c9(382)]=isOSX,exports[_0x1749c9(407)]=hasHxml,exports.moveFiles=moveFiles,exports[_0x1749c9(460)]=handleResolveAlias,exports[_0x1749c9(420)]=getEntryPkgPath,exports.deepMerge=deepMerge,exports.execSafe=function(r){var e,t=_0x1749c9,o=1<arguments[t(466)]&&void 0!==arguments[1]?arguments[1]:{};try{return null==(e=execSync(r,o))?void 0:e[t(377)](t(498))}catch(r){logger.warn(t(399),r)}},exports[_0x1749c9(410)]=function(){var r,e,t=_0x1749c9,o=getEntryPkgPath(),o=path[t(497)](o,t(486),t(493),t(380));if(fs[t(490)](o))return e=fs[t(441)](o,t(373)),{name:null==(e=json5[t(504)](e))||null==(r=e[t(432)])?void 0:r[t(415)],entryAbility:null==e||null==(r=e[t(432)])||null==(r=r.abilities)?void 0:r.map(function(r){return r[t(415)]})};throw new Error(""[t(378)](o,t(467)))},exports[_0x1749c9(429)]=function(){var r,e=_0x1749c9,t=getProjectInfo()[e(435)],t=path[e(497)](t,e(452),"app.json5");if(fs.existsSync(t))return r=fs[e(441)](t,"utf-8"),null==(r=json5[e(504)](r))||null==(r=r.app)?void 0:r[e(512)];throw new Error(""[e(378)](t,e(467)))},exports[_0x1749c9(424)]=function(){var r=_0x1749c9,e=getIdeBinPath(),e=path[r(497)](e,"..",r(406),r(385));r(385);return adjustPathByPlatform(isOSX()?path[r(497)](e,r(385)):path[r(497)](e,r(427)))},exports[_0x1749c9(459)]=function(){var r=_0x1749c9;return getPath("..",r(406),r(506),r(422),r(425))},exports[_0x1749c9(487)]=function(){var r=_0x1749c9;return getPath("..",r(484),r(390),r(433),"toolchains",process.platform===r(389)?r(517):r(502))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x210ff4=_0x189e;function _0x4c28(){var e=["concat","satisfies","isAscfHspSatisfied","WARNING: ","get ohpm from deveco dir.",'WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"./log4js.js","3770704KrESyr","join","toString","289220pIeTOA","396104tvVcGY","C:\\Program Files\\Huawei\\DevEco Studio\\bin","length","versionCode","WARNING: ASCF Shared Library can be upgraded.","child_process","5EFHKiA","package.json","9TqTtQB","toLowerCase","com.huawei.hms.ascfruntime","debug","899544tRHxzj","latest","module.json5","latest[39m:","1759464vhxPxk","getEntryPkgPath","1330626YMUxpZ","info","dependencies","INFO: ASCF Shared Library can be upgraded.","fatal","version-check","execSync","ERROR: ASCF shared library version is too low,","isOSX","env","191903nfZDUL","update to ","split"," is not exists, please ensure DevEco Studio installed","version","filter",'INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"npm view @atomicservice/ascf-toolkit version"," at entry/src/main/module.json5.","WARN: ASCF shared library not found.","oh-package.json5","getLogger","readJsonFile","bundleName","path"," info @atomicservice/ascfapi","src","ohpm","warn","isLatestAscfHar","TOOLKIT_PATH","main","trim"," does not depend on ASCF Shared Library. Select a project that does, or create a new one."];return(_0x4c28=function(){return e})()}(()=>{for(var e=_0x189e,t=_0x4c28();;)try{if(155314==-parseInt(e(393))+parseInt(e(364))/2+parseInt(e(377))/3+-parseInt(e(365))/4+-parseInt(e(371))/5*(-parseInt(e(383))/6)+parseInt(e(381))/7+parseInt(e(361))/8*(-parseInt(e(373))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var utils=require("./utils"),path=require(_0x210ff4(407)),_require=require("semver"),satisfies=_require[_0x210ff4(418)],_require2=require(_0x210ff4(370)),execSync=_require2[_0x210ff4(389)],log4js=require(_0x210ff4(360)),fs=require("fs"),logger=log4js[_0x210ff4(404)](_0x210ff4(388));function _0x189e(e,t){var r=_0x4c28();return(_0x189e=function(e,t){return r[e-=360]})(e,t)}function getOhpmFile(){var e=_0x210ff4,t=(logger[e(376)](e(421)),null==(t=process.env["DevEco Studio"]||process[e(392)].DEVECO_DIR)?void 0:t[e(395)](";")[0].trim()),r=t||"/Applications/DevEco-Studio.app/Contents/tools",t=t||e(366),r=utils[e(391)]()?r:t;return path.join(r,"..","tools",e(410),"bin",e(410))}exports.isLatestAscfToolkit=function(){var e=_0x210ff4,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=utils[e(405)](path[e(362)](utils[e(413)],e(372)))[e(397)],o=execSync(e(400),{timeout:5e3}).toString().trim();r!==o&&(t?logger[e(411)](e(422)[e(417)](o,'"')):logger[e(384)](e(399)[e(417)](o,'"')))},exports[_0x210ff4(412)]=function(){var e,t,r=_0x210ff4,o=0<arguments[r(367)]&&void 0!==arguments[0]&&arguments[0],i=path.join(utils.getEntryPkgPath(),r(403)),s=utils[r(405)](i)[r(385)]["@atomicservice/ascfapi"];s?(e=getOhpmFile(),fs.existsSync(e)?(t=utils[r(391)]()?e:'"'[r(417)](e,'"'),t=execSync(""[r(417)](t,r(408)),{timeout:5e3})[r(363)]()[r(395)](r(380))[1][r(395)]("\n")[0][r(415)](),satisfies(t,s)||s[r(374)]()===r(378)||(o?logger[r(411)](r(369)):logger[r(384)](r(386)))):logger[r(411)]("DevEco Studio ohpm "[r(417)](e,r(396)))):logger[r(411)](r(420)[r(417)](i,r(416)))},exports[_0x210ff4(419)]=function(e){var r=_0x210ff4,t=(logger[r(376)]("get project entry module.json."),path.join(utils[r(382)](),r(409),r(414),r(379))),t=null==(t=utils[r(405)](t).module)?void 0:t[r(385)],t=null==t?void 0:t[r(398)](function(e){var t=r;return e[t(406)]===t(375)});return!t||t.length<=0?(logger.warn(r(402)),!1):!(Number(t[0][r(368)])<Number(e)&&(logger[r(387)](r(390)+r(394)[r(417)](e,r(401))),1))};
|