@atomicservice/ascf-toolkit 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ascf-base/index.js +1 -1
- package/lib/ascf-common/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 -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/template-compiler/index.js +1 -0
- 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-compiler.d.ts +8 -0
- package/lib/ascf-compiler/vue-compiler/vue-compiler.js +1 -0
- 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/ascfApisDiff.json +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.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/tools/platform-tools-darwin/adb +0 -0
- package/lib/tools/platform-tools-windows/AdbWinApi.dll +0 -0
- package/lib/tools/platform-tools-windows/AdbWinUsbApi.dll +0 -0
- package/lib/tools/platform-tools-windows/adb.exe +0 -0
- package/package.json +7 -2
- package/lib/ascf-base/index.d.ts +0 -79
package/lib/bin/ascf.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function
|
|
2
|
+
var _0x41cc19=_0x4338;function _0x2583(){var r=["legacy","hasArg","option","1663752nFvAgw","../commands/convert","215920oefUbN","logging","--deviceType","3BDpmOI","debug","enable debug logging","preAction","--logging [level]","version","ascf toolkit convert and compile ascf project","11wCWebY","45ozKCyi","_ascfDebug","../commands/compile","Setting the log level, debug,info,warn,error,fatal","10uKSdwQ","-d,--debug","6867300tHeGnu","91wmnrCS","24698yOmvfQ","parse","445540ZQFCJu","description","1753040TbBZLC","BUILD_TARGET_QS","argv","info","_supportLegacyHos","setLoggerConfig","../commands/build-npm","../commands/quickservice","62270bkxJQn","../commands/ascfbuild"];return(_0x2583=function(){return r})()}function _0x4338(r,e){var c=_0x2583();return(_0x4338=function(r,e){return c[r-=151]})(r,e)}(()=>{for(var r=_0x4338,e=_0x2583();;)try{if(191329==-parseInt(r(155))*(-parseInt(r(159))/2)+parseInt(r(181))/3*(-parseInt(r(161))/4)+-parseInt(r(163))/5+parseInt(r(176))/6+-parseInt(r(158))/7*(parseInt(r(178))/8)+parseInt(r(151))/9*(parseInt(r(171))/10)+-parseInt(r(188))/11*(-parseInt(r(157))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require("../ascf-common"),Command=_require.Command,pkg=require("../../package.json"),_require2=require("../common/log4js.js"),setLoggerConfig=_require2[_0x41cc19(168)],convertCmd=require(_0x41cc19(177)),compileCmd=require(_0x41cc19(153)),buildNpmCmd=require(_0x41cc19(169)),debuggerCmd=require("../commands/debugger"),ascfbuildCmd=require(_0x41cc19(172)),quickserviceCmd=require(_0x41cc19(170)),_require3=require("../common/constants.js"),BUILD_TARGET_QS=_require3[_0x41cc19(164)],hasArg=_require3[_0x41cc19(174)],programClass=(global[_0x41cc19(167)]=(r=>{var e=_0x41cc19;return hasArg(r,"--targets",BUILD_TARGET_QS)||hasArg(r,e(180),e(173))})(process[_0x41cc19(165)].slice(2)),new Command),cmds=[convertCmd,compileCmd,buildNpmCmd,debuggerCmd,ascfbuildCmd,quickserviceCmd],program=programClass[_0x41cc19(186)](pkg[_0x41cc19(186)])[_0x41cc19(162)](_0x41cc19(187))[_0x41cc19(175)](_0x41cc19(185),_0x41cc19(154),_0x41cc19(166))[_0x41cc19(175)](_0x41cc19(156),_0x41cc19(183),!1);program.hook(_0x41cc19(184),function(){var r,e=_0x41cc19;global[e(152)]=!(null==(r=program.opts())||!r[e(182)]),setLoggerConfig(global[e(152)]?e(182):null==(r=program.opts())?void 0:r[e(179)]),global._ascfCliProgram=program}),cmds.forEach(function(r){return null==r?void 0:r.install(program)}),program[_0x41cc19(160)](process[_0x41cc19(165)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var _0x1ea03b=_0x2304;function _0x5ec2(){var e=["setPrototypeOf","bind","-m, --buildMode [buildMode]","projectRoot","44sVgIgr","' method","description","GeneratorFunction","assign","from","37315pLhGts","756gnBtTx","[object Generator]","test","@@iterator","create","-r, --projectRoot [projectRoot]","done","56isiKir","assembleHap","constructor","iterator result is not an object","544eFLKmd","select a device","chdir","99UPCmjt","undefined","11744Hbzchu","-t, --deviceId [deviceId]","assembleAndInstallHap","name","prototype","156423SnqgUn","252EUunLb","throw","Build targets, atomicservice and ","iterator","normalizeTargets","Map","apply","../../common/constants","27365WBrEkz","clean","concat","length","next","Generator is already running","displayName","--deviceType [deviceType]","build mode: debug,release","Build ASCF project","opts","defineProperty","debug","handle","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","string","installDeps","getPrototypeOf","parent","60438fpQYpl","119280KLLbMJ","call","BUILD_TARGET_AS","__proto__","device type, hos | legacy","toStringTag","_invoke","forEach","value","cwd","assembleApp","The iterator does not provide a '","start","installHap","@@toStringTag","6818RaxuML","Set","hos","includes","64XuRvpF","Generator","exports","slice","option","Arguments","function","command","BuildProcessFactory"];return(_0x5ec2=function(){return e})()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x2304(295))}function _unsupportedIterableToArray(e,r){var t,n=_0x2304;if(e)return n(296)==typeof e?_arrayLikeToArray(e,r):("Object"===(t={}.toString[n(302)](e)[n(234)](8,-1))&&e.constructor&&(t=e.constructor[n(270)]),n(278)===t||n(317)===t?Array[n(249)](e):n(236)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(253)](t)?_arrayLikeToArray(e,r):void 0)}function _iterableToArray(e){var r=_0x2304;if(r(266)!=typeof Symbol&&null!=e[Symbol[r(276)]]||null!=e[r(254)])return Array[r(249)](e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,r){(null==r||r>e[_0x2304(284)])&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function _regenerator(){var b,v=_0x2304,e=v(237)==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",t=e[v(306)]||v(315);function n(e,r,t,n){var o,a,i,c,u,s,l,f,_,p,y=v,r=r&&r.prototype instanceof m?r:m,r=Object[y(255)](r[y(271)]);return _regeneratorDefine2(r,y(307),(o=e,a=t,f=n||[],_=!1,p={p:l=0,n:0,v:b,a:d,f:d[(s=y)(241)](b,4),d:function(e,r){return i=e,c=0,u=b,p.n=r,g}},function(e,r,t){var n=s;if(1<l)throw TypeError(n(286));for(_&&1===r&&d(r,t),c=r,u=t;(T=c<2?b:u)||!_;){i||(c?c<3?(1<c&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(T=i[e=c?e:"next"]){if(!(T=T.call(i,u)))throw TypeError(n(261));if(!T[n(257)])return T;u=T[n(309)],c<2&&(c=0)}else 1===c&&(T=i.return)&&T[n(302)](i),c<2&&(u=TypeError(n(312)+e+n(245)),c=1);i=b}else if((T=(_=p.n<0)?u:o.call(a,p))!==g)break}catch(e){i=b,c=1,u=e}finally{l=1}}return{value:T,done:_}}),!0),r;function d(e,r){var t=s;for(c=e,u=r,T=0;!_&&l&&!n&&T<f[t(284)];T++){var n,o=f[T],a=p.p,i=o[2];3<e?(n=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=b):o[0]<=a&&((n=e<2&&a<o[1])?(c=0,p.v=r,p.n=o[1]):a<i&&(n=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,p.n=i,c=0))}if(n||1<e)return g;throw _=!0,r}}var g={};function m(){}function o(){}function a(){}var T=Object[v(298)],e=[][r]?T(T([][r]())):(_regeneratorDefine2(T={},r,function(){return this}),T),i=a[v(271)]=m[v(271)]=Object.create(e);function c(e){var r=v;return Object.setPrototypeOf?Object[r(240)](e,a):(e[r(304)]=a,_regeneratorDefine2(e,t,r(247))),e[r(271)]=Object[r(255)](i),e}return o.prototype=a,_regeneratorDefine2(i,v(260),a),_regeneratorDefine2(a,"constructor",o),o[v(287)]=v(247),_regeneratorDefine2(a,t,"GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,t,v(232)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return v(252)}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(e,r,t,n){var i=_0x2304,c=Object[i(292)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,t,n){var o=i;function a(r,t){_regeneratorDefine2(e,r,function(e){return this[_0x2304(307)](r,t,e)})}r?c?c(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(a(o(285),0),a(o(274),1),a("return",2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x2304;try{var u=e[a](i),s=u[c(309)]}catch(e){return void t(e)}u[c(257)]?r(s):Promise.resolve(s).then(n,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0x2304,o=u[n(279)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,n(285),e)}function i(e){asyncGeneratorStep(o,r,t,a,i,n(274),e)}a(void 0)})}}(()=>{for(var e=_0x2304,r=_0x5ec2();;)try{if(472175==-parseInt(e(231))*(-parseInt(e(267))/2)+parseInt(e(272))/3*(parseInt(e(258))/4)+parseInt(e(250))/5*(-parseInt(e(251))/6)+parseInt(e(300))/7*(-parseInt(e(262))/8)+parseInt(e(265))/9*(-parseInt(e(301))/10)+parseInt(e(244))/11*(-parseInt(e(273))/12)+-parseInt(e(281))/13*(-parseInt(e(316))/14))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require("../../ascf-base"),BuildProcessFactory=_require[_0x1ea03b(239)],_require2=require(_0x1ea03b(280)),BUILD_TARGET_QS=_require2.BUILD_TARGET_QS,BUILD_TARGET_AS=_require2[_0x1ea03b(303)],normalizeTargets=_require2[_0x1ea03b(277)];function _0x2304(e,r){var t=_0x5ec2();return(_0x2304=function(e,r){return t[e-=231]})(e,r)}module[_0x1ea03b(233)]={install:function(e){var o=_0x1ea03b,i=e[o(238)]("build")[o(246)](o(290)),e=[o(297),o(282)],c=[o(259),o(311),o(269)],u=[o(314),o(269),"uninstall",o(313)];_toConsumableArray(new Set([][o(283)](e,c,u)))[o(308)](function(e){var a,t,r=o,n=i[r(238)](e)[r(246)](e)[r(235)](r(256),r(243));c[r(319)](e)&&n[r(235)](r(242),r(289),r(293))[r(235)]("--targets [buildTarget]",r(275).concat(BUILD_TARGET_QS),BUILD_TARGET_AS),u.includes(e)&&n[r(235)](r(288),r(305),r(318))[r(235)](r(268),r(263)),n.action((a=e,t=_asyncToGenerator(_regenerator().m(function e(t,n){var o;return _regenerator().w(function(e){for(var r=_0x2304;;)switch(e.n){case 0:return o=Object[r(248)]({},null==n||null==(o=n[r(299)])?void 0:o[r(291)](),t),global._ascfCliOptions=normalizeTargets(o),o[r(243)]?process[r(264)](o.projectRoot):o[r(243)]=process[r(310)](),e.n=1,BuildProcessFactory[r(255)](o);case 1:e.v[r(294)](a);case 2:return e.a(2)}},e)})),function(e,r){return t[_0x2304(279)](this,arguments)}))})}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x210e39=_0x4c1a;function _regenerator(){var m,v=_0x4c1a,e=v(190)==typeof Symbol?Symbol:{},r=e[v(184)]||v(178),n=e[v(165)]||v(199);function t(e,r,n,t){var o,a,i,c,u,s,f,p,l,_,d=v,r=r&&r[d(201)]instanceof b?r:b,r=Object[d(164)](r[d(201)]);return _regeneratorDefine2(r,"_invoke",(o=e,a=n,p=t||[],l=!1,_={p:f=0,n:0,v:m,a:g,f:g[(s=d)(193)](m,4),d:function(e,r){return i=e,c=0,u=m,_.n=r,h}},function(e,r,n){var t=s;if(1<f)throw TypeError(t(212));for(l&&1===r&&g(r,n),c=r,u=n;(x=c<2?m:u)||!l;){i||(c?c<3?(1<c&&(_.n=-1),g(c,u)):_.n=u:_.v=u);try{if(f=2,i){if(x=i[e=c?e:"next"]){if(!(x=x.call(i,u)))throw TypeError(t(208));if(!x[t(169)])return x;u=x[t(203)],c<2&&(c=0)}else 1===c&&(x=i[t(197)])&&x[t(214)](i),c<2&&(u=TypeError("The iterator does not provide a '"+e+t(204)),c=1);i=m}else if((x=(l=_.n<0)?u:o.call(a,_))!==h)break}catch(e){i=m,c=1,u=e}finally{f=1}}return{value:x,done:l}}),!0),r;function g(e,r){for(c=e,u=r,x=0;!l&&f&&!n&&x<p.length;x++){var n,t=p[x],o=_.p,a=t[2];3<e?(n=a===r)&&(u=t[(c=t[4])?5:c=3],t[4]=t[5]=m):t[0]<=o&&((n=e<2&&o<t[1])?(c=0,_.v=r,_.n=t[1]):o<a&&(n=e<3||t[0]>r||a<r)&&(t[4]=e,t[5]=r,_.n=a,c=0))}if(n||1<e)return h;throw l=!0,r}}var h={};function b(){}function o(){}function a(){}var x=Object.getPrototypeOf,e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),i=a[v(201)]=b.prototype=Object[v(164)](e);function c(e){var r=v;return Object[r(187)]?Object[r(187)](e,a):(e[r(213)]=a,_regeneratorDefine2(e,n,"GeneratorFunction")),e[r(201)]=Object.create(i),e}return o[v(201)]=a,_regeneratorDefine2(i,v(200),a),_regeneratorDefine2(a,v(200),o),o[v(167)]=v(186),_regeneratorDefine2(a,n,"GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,n,"Generator"),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return v(175)}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var i=_0x4c1a,c=Object[i(189)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,n,t){var o=i;function a(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x4c1a(196)](r,n,e)})}r?c?c(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(a(o(202),0),a(o(182),1),a(o(197),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var c=_0x4c1a;try{var u=e[a](i),s=u.value}catch(e){return void n(e)}u[c(169)]?r(s):Promise[c(181)](s)[c(191)](t,o)}function _asyncToGenerator(c){return function(){var e=this,i=arguments;return new Promise(function(r,n){var t=c.apply(e,i);function o(e){asyncGeneratorStep(t,r,n,o,a,_0x4c1a(202),e)}function a(e){asyncGeneratorStep(t,r,n,o,a,"throw",e)}o(void 0)})}}function _0x28bb(){var e=["done","ascf","Error: ascf buildNpm error: ","miniprogram_npm","exports","Build ASCF npm dependencies to miniprogram_npm","[object Generator]","join","concat","@@iterator","6240129MTNLdQ","hasOwnProperty","resolve","throw","moveFiles","iterator","hasHxml","GeneratorFunction","setPrototypeOf","readJsonFile","defineProperty","function","then","2073636swdtZV","bind","../../common/utils","129491sdQOzo","_invoke","return","path","@@toStringTag","constructor","prototype","next","value","' method","ascf_src","buildNpm <projectRoot>","dependencies","iterator result is not an object","miniprogram","30nxEpjE","1748430SVgMJg","Generator is already running","__proto__","call","2redhED","5715rqjGhF","13240RWszmi","../../common/log4js","getLogger","21728443rzUwOu","description","error","action","node_modules"," not found in node_modules, please run npm install ","All npm dependencies has been built.","18OvWdvC","create","toStringTag","package.json","displayName","4286667nFFRYa"];return(_0x28bb=function(){return e})()}function _0x4c1a(e,r){var n=_0x28bb();return(_0x4c1a=function(e,r){return n[e-=156]})(e,r)}(()=>{for(var e=_0x4c1a,r=_0x28bb();;)try{if(857720==-parseInt(e(195))*(parseInt(e(215))/2)+-parseInt(e(168))/3+-parseInt(e(192))/4+-parseInt(e(211))/5*(parseInt(e(163))/6)+-parseInt(e(179))/7+parseInt(e(217))/8*(-parseInt(e(216))/9)+-parseInt(e(210))/10*(-parseInt(e(156))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x210e39(194)),readJsonFile=_require[_0x210e39(188)],hasHxml=_require[_0x210e39(185)],moveFiles=_require[_0x210e39(183)],path=require(_0x210e39(198)),fs=require("fs"),log4js=require(_0x210e39(218)),logger=log4js[_0x210e39(219)]("buildNpm");function buildMiniProgramNpm(e){var r=_0x210e39,n=readJsonFile(path[r(176)](e,r(170),r(205),r(166)));if(null!=n&&n[r(207)])for(var t in n.dependencies)if(Object[r(201)][r(180)][r(214)](n[r(207)],t)){var o=path[r(176)](e,r(170),r(205),r(172),t);if(!fs.existsSync(o)){var a=path[r(176)](e,r(170),"ascf_src",r(160),t);if(!fs.existsSync(a))return void logger[r(158)]("".concat(t,r(161))[r(177)](t,"."));hasHxml(a)&&(t=readJsonFile(path.join(a,r(166)))[r(209)],moveFiles(t?path[r(176)](a,t):a,o))}}logger.info(r(162))}function buildNpm(e){var r=_0x210e39;try{buildMiniProgramNpm(e)}catch(e){logger[r(158)](r(171)[r(177)](e,"."))}}module[_0x210e39(173)]={buildNpm:buildNpm,install:function(e){var n,r=_0x210e39;e.command(r(206))[r(157)](r(174))[r(159)]((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
|
-
var
|
|
1
|
+
var _0x4b7398=_0x35a8;function _regenerator(){var v,h=_0x35a8,e=h(411)==typeof Symbol?Symbol:{},r=e.iterator||h(407),t=e.toStringTag||h(461);function n(e,r,t,n){var o,a,i,c,s,u,p,f,l,_,d=h,r=r&&r[d(428)]instanceof b?r:b,r=Object[d(423)](r[d(428)]);return _regeneratorDefine2(r,"_invoke",(o=e,a=t,f=n||[],l=!1,_={p:p=0,n:0,v:v,a:g,f:g[(u=d)(436)](v,4),d:function(e,r){return i=e,c=0,s=v,_.n=r,y}},function(e,r,t){var n=u;if(1<p)throw TypeError(n(386));for(l&&1===r&&g(r,t),c=r,s=t;(m=c<2?v:s)||!l;){i||(c?c<3?(1<c&&(_.n=-1),g(c,s)):_.n=s:_.v=s);try{if(p=2,i){if(c||(e=n(450)),m=i[e]){if(!(m=m.call(i,s)))throw TypeError(n(434));if(!m[n(460)])return m;s=m[n(422)],c<2&&(c=0)}else 1===c&&(m=i[n(394)])&&m.call(i),c<2&&(s=TypeError(n(380)+e+n(387)),c=1);i=v}else if((m=(l=_.n<0)?s:o[n(398)](a,_))!==y)break}catch(e){i=v,c=1,s=e}finally{p=1}}return{value:m,done:l}}),!0),r;function g(e,r){var t=u;for(c=e,s=r,m=0;!l&&p&&!n&&m<f[t(384)];m++){var n,o=f[m],a=_.p,i=o[2];3<e?(n=i===r)&&(s=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 y;throw l=!0,r}}var y={};function b(){}function o(){}function a(){}var m=Object[h(402)],e=[][r]?m(m([][r]())):(_regeneratorDefine2(m={},r,function(){return this}),m),i=a[h(428)]=b[h(428)]=Object[h(423)](e);function c(e){var r=h;return Object[r(385)]?Object[r(385)](e,a):(e[r(399)]=a,_regeneratorDefine2(e,t,r(393))),e.prototype=Object.create(i),e}return o.prototype=a,_regeneratorDefine2(i,h(388),a),_regeneratorDefine2(a,"constructor",o),o[h(424)]="GeneratorFunction",_regeneratorDefine2(a,t,h(393)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,h(418)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return h(396)}),(_regenerator=function(){return{w:n,m:c}})()}function _0x2c36(){var e=["exports","prototype","235hsEqfy","Clear build resource","throw","_invoke","_ascfCliOptions","iterator result is not an object","compile <projectRoot>","bind","defineProperty","action","-c, --clear","Host package for ","-p, --progress","../index","select a device to start hot reload","Watch run for changes","Build targets, atomicservice and ","hos","Use swc parser, default is babel parser","Sign private key path for ","analyze bundle","next","Skip API and components validator, default is true","--devtool [type]","124952goJIcg","resolve","--sign-public-key-path [path]","Show build progress","../common/constants.js","--deviceType [deviceType]","2867011WSVBdr","done","@@toStringTag","apply","then","The iterator does not provide a '","concat","_supportLegacyHos","p12 File Path for ","length","setPrototypeOf","Generator is already running","' method","constructor","198qNCEyq","841028IBElVh","1431810JjLEkw","-r, --run [command]","GeneratorFunction","return","--skipApiValidator [flag]","[object Generator]","--swc","call","__proto__","Hoist template to page scope, default is true when have base.hxml","Password of the p12 file for ","getPrototypeOf","normalizeTargets","--deviceId [deviceId]","sourcemap type, default is eval-cheap-source-map","--sign-pwd [pwd]","@@iterator","4812968uasILC","893548pBuGpo","12IcXPAY","function","command","Environment, empty is production, -m is development","--serve","BUILD_TARGET_QS","5333412MsfyiT","-m, --mode","Generator","Sign public key path for ","option","--templateHoist","value","create","displayName","Start dev-server","description"];return(_0x2c36=function(){return e})()}function _regeneratorDefine2(e,r,t,n){var i=_0x35a8,c=Object[i(437)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,t,n){var o=i;function a(r,t){_regeneratorDefine2(e,r,function(e){return this[_0x35a8(432)](r,t,e)})}r?c?c(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(a(o(450),0),a(o(431),1),a(o(394),2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x35a8;try{var s=e[a](i),u=s.value}catch(e){return void t(e)}s[c(460)]?r(u):Promise[c(454)](u)[c(463)](n,o)}function _0x35a8(e,r){var t=_0x2c36();return(_0x35a8=function(e,r){return t[e-=380]})(e,r)}function _asyncToGenerator(s){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0x35a8,o=s[n(462)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,n(450),e)}function i(e){asyncGeneratorStep(o,r,t,a,i,n(431),e)}a(void 0)})}}(()=>{for(var e=_0x35a8,r=_0x2c36();;)try{if(974269==+parseInt(e(390))+parseInt(e(409))/2+-parseInt(e(416))/3+-parseInt(e(453))/4*(parseInt(e(429))/5)+parseInt(e(410))/6*(-parseInt(e(459))/7)+parseInt(e(408))/8+-parseInt(e(389))/9*(-parseInt(e(391))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x4b7398(457)),BUILD_TARGET_QS=_require[_0x4b7398(415)],BUILD_TARGET_AS=_require.BUILD_TARGET_AS,normalizeTargets=_require[_0x4b7398(403)];module[_0x4b7398(427)]={install:function(e){var t,r=_0x4b7398,e=e[r(412)](r(435))[r(426)]("Compile ascf project")[r(420)](r(441),r(456)).option("-w, --watch",r(444))[r(420)](r(417),r(413)).option(r(439),r(430))[r(420)](r(392),"Run command on changes been watched")[r(420)](r(397),r(447)).option(r(452),r(405))[r(420)]("--disableSubpackages [true or false]","Disable subpackages, default is true for development, false for production")[r(420)]("--analyzeBundle",r(449),!1)[r(420)](r(421),r(400))[r(420)](r(395),r(451))[r(420)](r(414),r(425))[r(420)](r(458),"device type, hos | legacy",r(446))[r(420)](r(404),r(443)).option("--targets [buildTarget]",r(445).concat(BUILD_TARGET_QS),BUILD_TARGET_AS);global[r(382)]&&e[r(420)]("--qs-host-pkg [pkg]",r(440)[r(381)](BUILD_TARGET_QS))[r(420)]("--sign-private-key-path [path]",r(448).concat(BUILD_TARGET_QS))[r(420)](r(455),r(419)[r(381)](BUILD_TARGET_QS))[r(420)](r(406),r(401).concat(BUILD_TARGET_QS))[r(420)]("--sign-profile-path [path]",r(383)[r(381)](BUILD_TARGET_QS)),e[r(438)]((t=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x35a8;;)switch(e.n){case 0:return global[r(433)]=normalizeTargets(n),e.n=1,require(r(442)).compile(t,n);case 1:return e.a(2)}},e)})),function(e,r){return t[_0x35a8(462)](this,arguments)}))}};
|
package/lib/commands/convert.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x39b4(r,e){var t=_0x1c23();return(_0x39b4=function(r,e){return t[r-=303]})(r,e)}var _0x5ce63e=_0x39b4;function _0x1c23(){var r=["Generator is already running","defineProperty","821455gdAQrT","4hCyLlm","iterator","displayName","next","@@iterator","option","requiredOption","../index","_invoke","-c, --clear","create","value","2265946DClvtq","convert","setPrototypeOf","18gCOFVe","iterator result is not an object","[object Generator]","return","19361310amveEo","GeneratorFunction","648042KPQuBY","prototype","then","-i, --input <input-directory>","2574021twmTAX","toString","call","1371784XcGadn","constructor","27VrwtfP","' method","exports","throw","description","-o, --output <output-directory>","Generator","-va, --validate","Validate path","action","11304517BZxdVl","The iterator does not provide a '","function","Convert miniprogram project to ascf project","toStringTag","done","Not add todo for not supported api.","getPrototypeOf","-notaddtodo, --notaddtodo"];return(_0x1c23=function(){return r})()}function _regenerator(){var l,g=_0x39b4,r=g(318)==typeof Symbol?Symbol:{},e=r[g(329)]||g(332),t=r[g(320)]||"@@toStringTag";function n(r,e,t,n){var o,a,i,c,u,f,p,s,_,v=g,e=e&&e[v(350)]instanceof y?e:y,e=Object[v(338)](e[v(350)]);return _regeneratorDefine2(e,v(336),(o=r,a=t,p=n||[],s=!1,_={p:f=0,n:0,v:l,a:d,f:d.bind(l,4),d:function(r,e){return i=r,c=0,u=l,_.n=e,b}},function(r,e,t){var n=_0x39b4;if(1<f)throw TypeError(n(325));for(s&&1===e&&d(e,t),c=e,u=t;(h=c<2?l:u)||!s;){i||(c?c<3?(1<c&&(_.n=-1),d(c,u)):_.n=u:_.v=u);try{if(f=2,i){if(c||(r=n(331)),h=i[r]){if(!(h=h.call(i,u)))throw TypeError(n(344));if(!h[n(321)])return h;u=h[n(339)],c<2&&(c=0)}else 1===c&&(h=i[n(346)])&&h[n(303)](i),c<2&&(u=TypeError(n(317)+r+n(307)),c=1);i=l}else if((h=(s=_.n<0)?u:o[n(303)](a,_))!==b)break}catch(r){i=l,c=1,u=r}finally{f=1}}return{value:h,done:s}}),!0),e;function d(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]=l):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 b;throw s=!0,e}}var b={};function y(){}function o(){}function a(){}var h=Object[g(323)],r=[][e]?h(h([][e]())):(_regeneratorDefine2(h={},e,function(){return this}),h),i=a[g(350)]=y[g(350)]=Object[g(338)](r);function c(r){var e=g;return Object[e(342)]?Object[e(342)](r,a):(r.__proto__=a,_regeneratorDefine2(r,t,e(348))),r.prototype=Object[e(338)](i),r}return o[g(350)]=a,_regeneratorDefine2(i,"constructor",a),_regeneratorDefine2(a,g(305),o),o[g(330)]=g(348),_regeneratorDefine2(a,t,g(348)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,g(312)),_regeneratorDefine2(i,e,function(){return this}),_regeneratorDefine2(i,g(354),function(){return g(345)}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(r,e,t,n){var i=_0x39b4,c=Object[i(326)];try{c({},"",{})}catch(r){c=0}(_regeneratorDefine2=function(r,e,t,n){var o=i;function a(e,t){_regeneratorDefine2(r,e,function(r){return this._invoke(e,t,r)})}e?c?c(r,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):r[e]=t:(a(o(331),0),a("throw",1),a(o(346),2))})(r,e,t,n)}function asyncGeneratorStep(r,e,t,n,o,a,i){var c=_0x39b4;try{var u=r[a](i),f=u[c(339)]}catch(r){return void t(r)}u.done?e(f):Promise.resolve(f)[c(351)](n,o)}function _asyncToGenerator(c){return function(){var r=this,i=arguments;return new Promise(function(e,t){var n=c.apply(r,i);function o(r){asyncGeneratorStep(n,e,t,o,a,_0x39b4(331),r)}function a(r){asyncGeneratorStep(n,e,t,o,a,_0x39b4(309),r)}o(void 0)})}}(()=>{for(var r=_0x39b4,e=_0x1c23();;)try{if(890494==-parseInt(r(349))+-parseInt(r(340))/2+parseInt(r(353))/3*(-parseInt(r(328))/4)+parseInt(r(327))/5*(parseInt(r(343))/6)+parseInt(r(316))/7+parseInt(r(304))/8*(-parseInt(r(306))/9)+parseInt(r(347))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),module[_0x5ce63e(308)]={install:function(r){var e,t=_0x5ce63e;r.command("convert")[t(310)](t(319))[t(334)](t(352))[t(334)](t(311))[t(333)](t(337),"Clear convert output path").option(t(313),t(314))[t(333)](t(324),t(322))[t(315)]((e=_asyncToGenerator(_regenerator().m(function r(t){return _regenerator().w(function(r){for(var e=_0x39b4;;)switch(r.n){case 0:return r.n=1,require(e(335))[e(341)](t);case 1:return r.a(2)}},r)})),function(r){return e.apply(this,arguments)}))}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x6806(e,r){var t=_0x78af();return(_0x6806=function(e,r){return t[e-=453]})(e,r)}var _0x590f09=_0x6806;function _regenerator(){var l,d=_0x6806,e=d(518)==typeof Symbol?Symbol:{},r=e[d(502)]||d(459),t=e[d(498)]||d(489);function n(e,r,t,n){var o,a,i,c,u,f,s,_,p,v=d,r=r&&r[v(500)]instanceof y?r:y,r=Object[v(461)](r.prototype);return _regeneratorDefine2(r,v(514),(o=e,a=t,s=n||[],_=!1,p={p:f=0,n:0,v:l,a:g,f:g.bind(l,4),d:function(e,r){return i=e,c=0,u=l,p.n=r,b}},function(e,r,t){var n=_0x6806;if(1<f)throw TypeError("Generator is already running");for(_&&1===r&&g(r,t),c=r,u=t;(h=c<2?l:u)||!_;){i||(c?c<3?(1<c&&(p.n=-1),g(c,u)):p.n=u:p.v=u);try{if(f=2,i){if(c||(e=n(469)),h=i[e]){if(!(h=h[n(467)](i,u)))throw TypeError(n(487));if(!h[n(510)])return h;u=h[n(479)],c<2&&(c=0)}else 1===c&&(h=i[n(497)])&&h[n(467)](i),c<2&&(u=TypeError(n(488)+e+"' method"),c=1);i=l}else if((h=(_=p.n<0)?u:o[n(467)](a,p))!==b)break}catch(e){i=l,c=1,u=e}finally{f=1}}return{value:h,done:_}}),!0),r;function g(e,r){var t=_0x6806;for(c=e,u=r,h=0;!_&&f&&!n&&h<s[t(475)];h++){var n,o=s[h],a=p.p,i=o[2];3<e?(n=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=l):o[0]<=a&&((n=e<2&&a<o[1])?(c=0,p.v=r,p.n=o[1]):a<i&&(n=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,p.n=i,c=0))}if(n||1<e)return b;throw _=!0,r}}var b={};function y(){}function o(){}function a(){}var h=Object[d(516)],e=[][r]?h(h([][r]())):(_regeneratorDefine2(h={},r,function(){return this}),h),i=a[d(500)]=y[d(500)]=Object[d(461)](e);function c(e){var r=d;return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e[r(512)]=a,_regeneratorDefine2(e,t,r(466))),e[r(500)]=Object[r(461)](i),e}return o[d(500)]=a,_regeneratorDefine2(i,d(455),a),_regeneratorDefine2(a,"constructor",o),o[d(478)]="GeneratorFunction",_regeneratorDefine2(a,t,d(466)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,d(490)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return d(454)}),(_regenerator=function(){return{w:n,m:c}})()}function _0x78af(){var e=["done","3PrPMsJ","__proto__","15464200UDDoxa","_invoke","start","getPrototypeOf","throw","function","start-service","[object Generator]","constructor",'Open default browser, "default","chrome","edge"',"description","--deviceType [deviceType]","@@iterator","DebuggerProcessFactory","create","action","16770fuaSif","exports","1730889hmvRLh","GeneratorFunction","call","../../common/constants","next","assign","status","stop-service","444WqfqiV","1315156FOoxZd","length","command","forEach","displayName","value","2376564feEsJb","-o, --open [browser]","--targets [buildTarget]","then","option","422150JiqIkt","defineProperty","iterator result is not an object","The iterator does not provide a '","@@toStringTag","Generator","37142YyDUwB","apply","stop","concat","BUILD_TARGET_AS","464XrBimj","return","toStringTag","normalizeTargets","prototype","device type, hos | legacy","iterator","--deviceId [deviceId]","../../ascf-base","-b, --bundleName [bundleName]","handle","hos","BUILD_TARGET_QS","stop-view"];return(_0x78af=function(){return e})()}function _regeneratorDefine2(e,r,t,n){var i=_0x6806,c=Object[i(486)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,t,n){var o=i;function a(r,t){_regeneratorDefine2(e,r,function(e){return this._invoke(r,t,e)})}r?c?c(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(a(o(469),0),a(o(517),1),a(o(497),2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x6806;try{var u=e[a](i),f=u[c(479)]}catch(e){return void t(e)}u[c(510)]?r(f):Promise.resolve(f)[c(483)](n,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0x6806,o=u[n(492)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,n(469),e)}function i(e){asyncGeneratorStep(o,r,t,a,i,n(517),e)}a(void 0)})}}(()=>{for(var e=_0x6806,r=_0x78af();;)try{if(439442==-parseInt(e(485))+parseInt(e(474))/2*(parseInt(e(511))/3)+-parseInt(e(480))/4+-parseInt(e(463))/5*(parseInt(e(473))/6)+parseInt(e(491))/7*(-parseInt(e(496))/8)+-parseInt(e(465))/9+parseInt(e(513))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x590f09(504)),DebuggerProcessFactory=_require[_0x590f09(460)],_require2=require(_0x590f09(468)),BUILD_TARGET_QS=_require2[_0x590f09(508)],BUILD_TARGET_AS=_require2[_0x590f09(495)],normalizeTargets=_require2[_0x590f09(499)];module[_0x590f09(464)]={install:function(e){function t(a){return t=_asyncToGenerator(_regenerator().m(function e(t,n){var o;return _regenerator().w(function(e){for(var r=_0x6806;;)switch(e.n){case 0:return o=Object[r(470)]({},null==n||null==(o=n.parent)?void 0:o.opts(),t),global._ascfCliOptions=normalizeTargets(o),e.n=1,DebuggerProcessFactory.create(o);case 1:e.v[r(506)](a);case 2:return e.a(2)}},e)})),function(e,r){return t[_0x6806(492)](this,arguments)};var t}var n=_0x590f09,o=e[n(476)]("debugger")[n(457)]("Start or stop debugger")[n(484)](n(505),"bundleName of debugging project")[n(484)](n(458),n(501),n(507))[n(484)](n(503),"select a device to debug")[n(484)](n(482),"Build targets, atomicservice and "[n(494)](BUILD_TARGET_QS),BUILD_TARGET_AS);[n(471)][n(477)](function(e){var r=n;o[r(476)](e).description(e)[r(462)](t(e))}),[n(515),"start-view",n(453)].forEach(function(e){var r=n;o.command(e)[r(457)](e).option(r(481),r(456))[r(462)](t(e))}),[n(493),n(509),n(472)][n(477)](function(e){var r=n;o[r(476)](e).description(e)[r(462)](t(e))})}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x10c485=_0xc681;function _regenerator(){var v,y=_0xc681,e=y(284)==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e[y(279)]||y(290);function t(e,r,n,t){var i,o,a,c,s,u,f,g,p,_,h=y,r=r&&r[h(304)]instanceof d?r:d,r=Object[h(300)](r[h(304)]);return _regeneratorDefine2(r,"_invoke",(i=e,o=n,g=t||[],p=!1,_={p:f=0,n:0,v:v,a:l,f:l[(u=h)(276)](v,4),d:function(e,r){return a=e,c=0,s=v,_.n=r,P}},function(e,r,n){var t=u;if(1<f)throw TypeError("Generator is already running");for(p&&1===r&&l(r,n),c=r,s=n;(x=c<2?v:s)||!p;){a||(c?c<3?(1<c&&(_.n=-1),l(c,s)):_.n=s:_.v=s);try{if(f=2,a){if(c||(e=t(346)),x=a[e]){if(!(x=x[t(296)](a,s)))throw TypeError(t(324));if(!x[t(322)])return x;s=x[t(331)],c<2&&(c=0)}else 1===c&&(x=a[t(272)])&&x.call(a),c<2&&(s=TypeError(t(291)+e+t(285)),c=1);a=v}else if((x=(p=_.n<0)?s:i.call(o,_))!==P)break}catch(e){a=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(318)];x++){var t,i=g[x],o=_.p,a=i[2];3<e?(t=a===r)&&(s=i[(c=i[4])?5:c=3],i[4]=i[5]=v):i[0]<=o&&((t=e<2&&o<i[1])?(c=0,_.v=r,_.n=i[1]):o<a&&(t=e<3||i[0]>r||a<r)&&(i[4]=e,i[5]=r,_.n=a,c=0))}if(t||1<e)return P;throw p=!0,r}}var P={};function d(){}function i(){}function o(){}var x=Object[y(321)],e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),a=o[y(304)]=d[y(304)]=Object[y(300)](e);function c(e){var r=y;return Object[r(312)]?Object[r(312)](e,o):(e[r(287)]=o,_regeneratorDefine2(e,n,"GeneratorFunction")),e[r(304)]=Object[r(300)](a),e}return i[y(304)]=o,_regeneratorDefine2(a,"constructor",o),_regeneratorDefine2(o,y(332),i),i.displayName="GeneratorFunction",_regeneratorDefine2(o,n,y(333)),_regeneratorDefine2(a),_regeneratorDefine2(a,n,y(310)),_regeneratorDefine2(a,r,function(){return this}),_regeneratorDefine2(a,y(298),function(){return y(347)}),(_regenerator=function(){return{w:t,m:c}})()}function _0xc681(e,r){var n=_0x4b4e();return(_0xc681=function(e,r){return n[e-=262]})(e,r)}function _regeneratorDefine2(e,r,n,t){var a=_0xc681,c=Object[a(275)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,n,t){var i=a;function o(r,n){_regeneratorDefine2(e,r,function(e){return this[_0xc681(295)](r,n,e)})}r?c?c(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o(i(346),0),o(i(283),1),o(i(272),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,i,o,a){var c=_0xc681;try{var s=e[o](a),u=s[c(331)]}catch(e){return void n(e)}s[c(322)]?r(u):Promise[c(286)](u)[c(345)](t,i)}function _0x4b4e(){var e=["Sign private key path","toStringTag","genCertAndP12 error","command","1009374nStGcL","throw","function","' method","resolve","__proto__","../../ascf-sign-tools","signtools","@@toStringTag","The iterator does not provide a '","warn","sign/ascf-build.p12","projectRoot","_invoke","call","finally","toString","--sign-private-key-path [path]","create","dirname","mkdirSync","generate keypair","prototype","certificate.pem","245MaPDSw","generate-keypair","signPrivateKeyPath","join","Generator","sign/private.pem","setPrototypeOf","--sign-profile-path [path]","ascf-sign-tools","concat","sign/certificate.pem","cachedir","length","apply","action","getPrototypeOf","done","signPwd","iterator result is not an object","catch","52ZKDdZP","../../common/log4js","description","-i, --input <input-directory>","2064710QwVxOW","value","constructor","GeneratorFunction","option","requiredOption","Sign public key path","input","tmp sign dir ","5PWWZqO","genP12","existsSync","--sign-public-key-path [path]","path","-r, --projectRoot [projectRoot]","then","next","[object Generator]","9gTvKKu","genCert","--sign-pwd [pwd]","5109203sOiyzQ","83035XeDHLq","printFp","exports","47010IlsDxL","12DcjAOy","66496GJIzwO","signPublicKeyPath","rmSync","generate-p12","ascf-cache-tmp-sign","getLogger","return","signProfilePath","419120eqLQAY","defineProperty","bind","private.pem"];return(_0x4b4e=function(){return e})()}function _asyncToGenerator(s){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0xc681,i=s[t(319)](e,c);function o(e){asyncGeneratorStep(i,r,n,o,a,t(346),e)}function a(e){asyncGeneratorStep(i,r,n,o,a,"throw",e)}o(void 0)})}}(()=>{for(var e=_0xc681,r=_0x4b4e();;)try{if(174190==-parseInt(e(339))*(parseInt(e(266))/2)+-parseInt(e(282))/3+-parseInt(e(326))/4*(parseInt(e(352))/5)+-parseInt(e(264))/6*(-parseInt(e(306))/7)+-parseInt(e(274))/8+parseInt(e(348))/9*(parseInt(e(330))/10)+parseInt(e(351))/11*(parseInt(e(265))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var fs=require("fs"),path=require(_0x10c485(343)),cachedir=require(_0x10c485(317)),signTools=require(_0x10c485(288)),log4js=require(_0x10c485(327)),logger=log4js[_0x10c485(271)](_0x10c485(314));function ensureDir(e){var r=_0x10c485,e=path[r(301)](e);return fs.existsSync(e)||fs[r(302)](e,{recursive:!0}),e}function getParams(e){var r=_0x10c485,n=e[r(294)],t=e.signPrivateKeyPath,i=e.signPublicKeyPath,o=e.signProfilePath,e=e[r(323)];return{signPrivateKeyPath:t=n&&!t?path[r(309)](n,r(311)):t,signPublicKeyPath:i=n&&!i?path.join(n,r(316)):i,signProfilePath:o=n&&!o?path[r(309)](n,r(293)):o,signPwd:e}}function genCertAndP12(e,r){return _genCertAndP[_0x10c485(319)](this,arguments)}function _genCertAndP(){var e=_0x10c485;return(_genCertAndP=_asyncToGenerator(_regenerator().m(function e(r,t){var i,o,a;return _regenerator().w(function(e){for(var n=_0xc681;;)if(0===e.n)return i=cachedir(n(270)),logger.debug(n(338)[n(315)](i)),o=path[n(309)](i,n(277)),a=path[n(309)](i,n(305)),ensureDir(o),e.a(2,signTools[n(349)](o,a).then(function(){return signTools[n(340)](r,o,a,t)})[n(325)](function(e){var r=n;logger.error(r(280),e)})[n(297)](function(){fs[n(268)](i,{recursive:!0,force:!0})}))},e)})))[e(319)](this,arguments)}module[_0x10c485(263)]={install:function(e){var r,n,t,i=_0x10c485,e=e[i(281)](i(289)).description("Sign tools to generate keypair, p12 file and view fingerprint");e[i(281)](i(307))[i(328)](i(303)).option(i(344),i(294))[i(334)](i(299),i(278))[i(334)]("--sign-public-key-path [path]",i(336))[i(320)]((t=_asyncToGenerator(_regenerator().m(function e(n){var t,i;return _regenerator().w(function(e){for(var r=_0xc681;;)if(0===e.n)return i=getParams(n),t=i[r(308)],i=i.signPublicKeyPath,ensureDir(t),ensureDir(i),e.a(2,signTools[r(349)](t,i))},e)})),function(e){return t.apply(this,arguments)})),e.command(i(269))[i(328)]("generate p12")[i(334)](i(344),"projectRoot")[i(334)](i(299),i(278))[i(334)](i(342),i(336)).option(i(313),"p12 File Path")[i(335)](i(350),"Password of the p12 file")[i(320)]((n=_asyncToGenerator(_regenerator().m(function e(n){var t,i,o,a;return _regenerator().w(function(e){for(var r=_0xc681;;)switch(e.n){case 0:if(a=getParams(n),t=a.signPrivateKeyPath,i=a[r(267)],o=a[r(273)],a=a[r(323)],ensureDir(o),fs[r(341)](t)&&fs[r(341)](i)){e.n=1;break}return logger[r(292)]("generate keypair"),e.a(2,genCertAndP12(o,a));case 1:return e.a(2,signTools[r(340)](o,t,i,a))}},e)})),function(e){return n.apply(this,arguments)})),e[i(281)](i(262))[i(328)]("View Fingerprint")[i(335)](i(329))[i(320)]((r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0xc681;;)switch(e.n){case 0:signTools[r(262)](n[r(337)]);case 1:return e.a(2)}},e)})),function(e){return r[_0xc681(319)](this,arguments)}))}};
|
package/lib/common/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x42d100=_0x1727;function _0x4adc(){var e=["input","swiper-item","swiper","checkbox","camera","isProd","form","movable-view","configs","scroll-view","picker-view-column","web-view","140921SshAeS","env","image","switch","movable-area","text","button","34712ZIBdjz","radio","radio-group","picker","1562456tjsMJa","14otxjoy","433256CYAMoi","39ZKRCNw","8515998ltxTwl","label","canvas","development","501804qKrtHz","checkbox-group","1009910WDiUkA","rich-text","babel","NODE_ENV","icon","view"];return(_0x4adc=function(){return e})()}function _0x1727(e,r){var t=_0x4adc();return(_0x1727=function(e,r){return t[e-=303]})(e,r)}(()=>{for(var e=_0x1727,r=_0x4adc();;)try{if(123430==-parseInt(e(315))+-parseInt(e(322))/2*(parseInt(e(329))/3)+parseInt(e(328))/4+-parseInt(e(336))/5+parseInt(e(334))/6*(-parseInt(e(327))/7)+-parseInt(e(326))/8+parseInt(e(330))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var configs={notaddtodo:!1,parser:_0x42d100(338),devtool:void 0,componentList:[_0x42d100(319),_0x42d100(310),_0x42d100(312),_0x42d100(305),_0x42d100(304),_0x42d100(341),_0x42d100(340),"progress",_0x42d100(337),_0x42d100(320),_0x42d100(321),_0x42d100(306),_0x42d100(335),_0x42d100(309),_0x42d100(303),_0x42d100(331),_0x42d100(325),"picker-view",_0x42d100(313),_0x42d100(323),_0x42d100(324),"slider",_0x42d100(318),"textarea","navigator",_0x42d100(317),"video",_0x42d100(307),"Map",_0x42d100(332),_0x42d100(314)],templateHoist:!1,ascfLazyImportFiles:{},skipApiValidator:!0,serve:!1,deviceId:!1,isProd:function(){var e=_0x42d100;return process[e(316)][e(339)]!==e(333)},isInjectDebugTimer:function(){return!configs[_0x42d100(308)]()},requiredComponents:[],tabBarUsingComponents:{},tabBarList:[],asyncJsList:{},jsLoaderList:new Set};exports[_0x42d100(311)]=configs;
|
package/lib/common/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x56ef99=_0x5419,HOS_DEVICE=((()=>{for(var r=_0x5419,e=_0x2901();;)try{if(925593==+parseInt(r(451))+parseInt(r(447))/2*(-parseInt(r(445))/3)+-parseInt(r(448))/4*(parseInt(r(441))/5)+-parseInt(r(442))/6+-parseInt(r(444))/7+-parseInt(r(446))/8+parseInt(r(455))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),_0x56ef99(450)),LEGACY_DEVICE="legacy",BUILD_TARGET_AS=_0x56ef99(449),BUILD_TARGET_QS="crossAtomicService";function normalizeTargets(r){var e=_0x56ef99;return(null==r?void 0:r[e(443)])===LEGACY_DEVICE&&(r[e(454)]=BUILD_TARGET_QS),(null==r?void 0:r[e(454)])===BUILD_TARGET_AS&&(r.deviceType=HOS_DEVICE),r}var hasArg=function(r,e,_){var n=_0x56ef99,e=r[n(452)](e);return-1!==e&&(null==(r=r[e+1])?void 0:r[n(440)](_))};function _0x5419(r,e){var _=_0x2901();return(_0x5419=function(r,e){return _[r-=440]})(r,e)}function _0x2901(){var r=["deviceType","3797619xycXLX","6xMnXiZ","12815096MJkBMr","49114mXIpmC","24036xAotGV","atomicservice","hos","1133988BusZbW","indexOf","exports","targets","40223511RYTpNd","includes","1260xfTWDU","5819328UZIwIA"];return(_0x2901=function(){return r})()}module[_0x56ef99(453)]={HOS_DEVICE:HOS_DEVICE,LEGACY_DEVICE:LEGACY_DEVICE,BUILD_TARGET_AS:BUILD_TARGET_AS,BUILD_TARGET_QS:BUILD_TARGET_QS,normalizeTargets:normalizeTargets,hasArg:hasArg};
|
package/lib/common/log4js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1de7(e,r){var t=_0x6fbd();return(_0x1de7=function(e,r){return t[e-=429]})(e,r)}var _0x10f2f3=_0x1de7,_require=((()=>{for(var e=_0x1de7,r=_0x6fbd();;)try{if(146635==-parseInt(e(436))+-parseInt(e(432))/2+parseInt(e(429))/3+-parseInt(e(431))/4*(-parseInt(e(437))/5)+parseInt(e(430))/6+parseInt(e(434))/7+parseInt(e(433))/8*(parseInt(e(442))/9))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require(_0x10f2f3(441))),ASCF_LOG_FILE=_require[_0x10f2f3(438)],setLoggerConfig=_require[_0x10f2f3(435)],getLogger=_require[_0x10f2f3(439)];function _0x6fbd(){var e=["18yWsiGb","414333VkaRFE","177228EUqVUd","88krANKe","177706JoqwDs","242752zwchpJ","663404BHtaTD","setLoggerConfig","95519YEqHGL","1795yedhUx","ASCF_LOG_FILE","getLogger","exports","../ascf-base"];return(_0x6fbd=function(){return e})()}module[_0x10f2f3(440)]={ASCF_LOG_FILE:ASCF_LOG_FILE,setLoggerConfig:setLoggerConfig,getLogger:getLogger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4d9a(){var r=["stringify","from","test"," ms","map","4415100ZHYHRJ","string","isArray","4kpiBeZ","BuildLogOutputPlugin","configurable","symbol","prototype","SyntaxError","errorCount","logger-plugin","defineProperty","replace","Error: ","ERROR: ","showtime","fatal","warnCount","done","warningCount","concat","getBuildMsg","printCompileResult","default","origin","warn","3879tVIJzN","transformers","formatters","forEach","6477IidBdZ","writable","SUCCESS ","dropRepeat","5269536klNtyB","some","noteCount","warning","showCompileTime","Module not found","extraInfo","resource","\n@ ","FAIL ","beginTime","850THPRxN","apply","4369655IuFzHb","slice","iterator","key","options","toPrimitive","true","function","constructor","ModuleBuildError","endTime","enumerable","name","getTime","error","call","(Emitted value instead of an instance of Error) ","assign","length","object","round","ASCF_LOG_FILE","6355202raowCd","Map","displayErrors","reduce","warnings","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","compilation","@@iterator","message","ModuleNotFoundError","Cannot call a class as a function","errors","18nroBJr","Set","2267832UVyXbF","calculate","\nCOMPILE RESULT:","includes","info","hooks"];return(_0x4d9a=function(){return r})()}var _0x39880a=_0x4242;function _typeof(r){var t=_0x4242;return(_typeof="function"==typeof Symbol&&t(278)==typeof Symbol[t(321)]?function(r){return typeof r}:function(r){var e=t;return r&&e(326)==typeof Symbol&&r[e(233)]===Symbol&&r!==Symbol[e(279)]?"symbol":typeof r})(r)}function _classCallCheck(r,e){var t=_0x4242;if(!(r instanceof e))throw new TypeError(t(257))}function _defineProperties(r,e){for(var t=_0x4242,n=0;n<e[t(243)];n++){var o=e[n];o[t(236)]=o[t(236)]||!1,o[t(277)]=!0,"value"in o&&(o[t(303)]=!0),Object[t(283)](r,_toPropertyKey(o[t(322)]),o)}}function _createClass(r,e,t){var n=_0x4242;return e&&_defineProperties(r[n(279)],e),t&&_defineProperties(r,t),Object[n(283)](r,n(279),{writable:!1}),r}function _toPropertyKey(r){var e=_0x4242,r=_toPrimitive(r,e(273));return e(278)==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0x4242;if(t(244)!=_typeof(r)||!r)return r;var n=r[Symbol[t(324)]];if(void 0===n)return(t(273)===e?String:Number)(r);n=n[t(240)](r,e||t(295));if(t(244)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x4242(252))}function _unsupportedIterableToArray(r,e){var t,n=_0x4242;if(r)return n(273)==typeof r?_arrayLikeToArray(r,e):("Object"===(t={}.toString[n(240)](r)[n(320)](8,-1))&&r.constructor&&(t=r[n(233)][n(237)]),n(248)===t||n(260)===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(269)](t)?_arrayLikeToArray(r,e):void 0)}function _iterableToArray(r){var e=_0x4242;if("undefined"!=typeof Symbol&&null!=r[Symbol[e(321)]]||null!=r[e(254)])return Array[e(268)](r)}function _arrayWithoutHoles(r){if(Array[_0x4242(274)](r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){var t=_0x4242;(null==e||e>r[t(243)])&&(e=r[t(243)]);for(var n=0,o=Array(e);n<e;n++)o[n]=r[n];return o}(()=>{for(var r=_0x4242,e=_0x4d9a();;)try{if(481657==-parseInt(r(302))+parseInt(r(317))/2*(-parseInt(r(298))/3)+parseInt(r(275))/4*(-parseInt(r(319))/5)+parseInt(r(306))/6+parseInt(r(247))/7+parseInt(r(261))/8*(parseInt(r(259))/9)+-parseInt(r(272))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x39880a(311),log4js=require("./log4js.js"),logger=log4js.getLogger(_0x39880a(282));function defaultFormatter(r,e){var n=_0x39880a;return r[n(250)](function(r,e){var t=n;return[][t(292)](_toConsumableArray(r),["\n".concat(e[t(255)])])},[])}function babelSyntaxError(r){var e=_0x39880a;return isBabelSyntaxError(r)&&(r[e(255)]=cleanStackTrace(r[e(255)])),r}function isBabelSyntaxError(r){var e=_0x39880a;return r[e(237)]===e(234)&&r[e(255)][e(264)](e(280))}function cleanStackTrace(r){var e=_0x39880a;return r[e(284)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"")[e(284)](/^Module build failed.*:\s/,e(285))}function moduleNotFoundError(r){var e,t=_0x39880a;return r.name===t(256)&&r.message[t(264)](TYPE)&&(r[t(255)]=r[t(255)][t(284)](TYPE,t(286)[t(292)](TYPE)),e=r[t(296)]&&r[t(296)][t(313)])&&(r[t(255)]+=t(314)[t(292)](e)),r}var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x39880a;return{message:r[e(255)],file:r.file,origin:r[e(296)],name:r[e(237)],severity:0,webpackError:r}}function cleanMessage(r){var e=_0x39880a;return r.replace(e(241),"")[e(284)](/Module Warning[^\n]+\n/,"")[e(284)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}var n=_0x39880a;return r[n(271)](extractError)[n(271)](function(r){return e.reduce(t,r)})}function formatErrors(e,r,t){var n=_0x39880a;return r[n(271)](function(r){return r(e,t)||[]})[n(250)](function(r,e){return r[_0x4242(292)](e)},[])}function getCompileTime(r){var e=_0x39880a,t=r[e(235)],r=r.startTime;logger[e(265)]("compileTime: ".concat(t-r,e(270)))}function _dropRepeat(r){return r.reduce(function(r,e){return r[_0x4242(307)](function(r){return r.message===e.message})?r:r.concat(e)},[])}function _0x4242(r,e){var t=_0x4d9a();return(_0x4242=function(r,e){return t[r-=233]})(r,e)}var BuildLogOutputPlugin=(()=>{var l=_0x39880a;return _createClass(function r(){var e=_0x4242,t=0<arguments[e(243)]&&void 0!==arguments[0]?arguments[0]:{},n=t.showCompileTime,n=void 0!==n&&n,t=t[e(323)];_classCallCheck(this,r),this[e(281)]=0,this[e(291)]=0,this.noteCount=0,this[e(310)]=n||process.env[e(287)]===e(325),this[e(300)]=defaultFormatters,this[e(299)]=defaultTransformers,this[e(323)]=t},[{key:l(318),value:function(r){var u=l,s=this;r[u(266)][u(290)].tap(u(276),function(e){var t=u,r=(s[t(305)](e),e[t(253)]),n=r[t(258)],o=r[t(251)],a=e.hasErrors(),i=e.hasWarnings();setTimeout(function(){var r=t;a&&s[r(249)](n,r(239)),i&&s.displayErrors(o,r(309)),s[r(262)](e,n,o),s[r(294)](),s[r(310)]&&getCompileTime(e)})})}},{key:l(305),value:function(r){var e=l;r.compilation[e(251)]=_dropRepeat(r.compilation[e(251)]),r[e(253)][e(258)]=_dropRepeat(r[e(253)][e(258)])}},{key:l(262),value:function(r,e){var t=l,n=this,o=2<arguments[t(243)]&&void 0!==arguments[2]?arguments[2]:[],r=r[t(253)][t(312)]||{},a=r[t(281)],a=void 0===a?0:a,i=r[t(289)],i=void 0===i?0:i,r=r[t(308)],r=void 0===r?0:r;this.errorCount=e[t(243)]+a,this.warningCount=i,this[t(308)]=r,o.forEach(function(r){var e=t,r=r[e(255)];/^NOTE:/[e(269)](cleanMessage(r))?n[e(308)]++:n[e(291)]++})}},{key:l(294),value:function(){var r,e=l,t=this.errorCount,n=this[e(291)],o=this[e(308)],a=(new Date)[e(238)]()-global[e(316)],a=", elapsed: "+Math[e(245)](a/1e3)+"s\n\nYou can check full log: "+log4js[e(246)];0<t+n+o?(r=e(t?315:304),n=Object[e(242)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),t?logger[e(288)]("\nCOMPILE RESULT:".concat(r)[e(292)](JSON[e(267)](n))+a):logger.warn(e(263)[e(292)](r).concat(JSON[e(267)](n))+a)):logger.info("\nCOMPILE RESULT:SUCCESS"+a)}},{key:l(249),value:function(r,t){var n=l;formatErrors(transformErrors(r,this[n(299)]),this.formatters,t)[n(301)](function(r){var e=n;"error"===t&&logger[e(239)](cleanMessage(r)),"warning"===t&&logger[e(297)](cleanMessage(r))})}},{key:l(293),value:function(r,e){var t=l;return formatErrors(transformErrors(r,this[t(299)]),this[t(300)],e)[t(271)](function(r){return cleanMessage(r)})}}])})();module.exports=BuildLogOutputPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x51d7(r,t){var e=_0x1157();return(_0x51d7=function(r,t){return e[r-=182]})(r,t)}function _0x1157(){var r=["length","6279qCdNWX","5479144YzcEti","6532176zuSAEo","31qsIQHF","use strict","5448sukkFF","28673406WrJuLc","exports","1659285hOwMic","splice","42830uNdVnO","value","3748545ezqErp"];return(_0x1157=function(){return r})()}var _0xa97e5f=_0x51d7;(()=>{for(var r=_0x51d7,t=_0x1157();;)try{if(889498==+parseInt(r(182))*(-parseInt(r(189))/2)+-parseInt(r(187))/3+parseInt(r(194))/4+-parseInt(r(191))/5+-parseInt(r(195))/6+-parseInt(r(193))/7*(parseInt(r(184))/8)+parseInt(r(185))/9)break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module[_0xa97e5f(186)]=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x51d7,e=r.node.directives,n=e[t(192)]-1;0<=n;n--)e[n].value[t(190)]===t(183)&&e[t(188)](n,1)}}}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3ab5(r,n){var e=_0x5182();return(_0x3ab5=function(r,n){return e[r-=345]})(r,n)}function _0x5182(){var r=["1334820oWolZJ","5455232fQMrQT","replace","1554MyKJfG","5480hCxECU","87097XLixxf","replaceAll","\\$&","8gKuOvE","1918044ZApdDY","25179qTBdDa","23973gxkZul","prototype","4hrWJki","8718oJnTHr"];return(_0x5182=function(){return r})()}(()=>{for(var r=_0x3ab5,n=_0x5182();;)try{if(573166==-parseInt(r(354))*(-parseInt(r(347))/2)+parseInt(r(345))/3*(-parseInt(r(357))/4)+-parseInt(r(349))/5+parseInt(r(348))/6*(parseInt(r(352))/7)+-parseInt(r(350))/8+-parseInt(r(358))/9+-parseInt(r(353))/10*(-parseInt(r(359))/11))break;n.push(n.shift())}catch(r){n.push(n.shift())}})(),exports.replaceAll=function(r,n,e){var t=_0x3ab5;return String[t(346)][t(355)]?null==r?void 0:r[t(355)](n,e):(n=n[t(351)](/[.*+?^${}()|[\]\\]/g,t(356)),t=new RegExp(n,"g"),null==r?void 0:r.replace(t,e))};
|
package/lib/common/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x2e8cac=_0x4394;function _createForOfIteratorHelper(e,r){var t,n,o,c,a=_0x4394,i=a(330)!=typeof Symbol&&e[Symbol[a(304)]]||e[a(336)];if(i)return o=!(n=!0),{s:function(){i=i[a(372)](e)},n:function(){var e=a,r=i[e(311)]();return n=r[e(312)],r},e:function(e){o=!0,t=e},f:function(){var e=a;try{n||null==i[e(264)]||i.return()}finally{if(o)throw t}}};if(Array.isArray(e)||(i=_unsupportedIterableToArray(e))||r&&e&&a(291)==typeof e.length)return i&&(e=i),c=0,{s:r=function(){},n:function(){return c>=e[a(368)]?{done:!0}:{done:!1,value:e[c++]}},e:function(e){throw e},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){var t,n=_0x4394;if(e)return n(318)==typeof e?_arrayLikeToArray(e,r):(t={}.toString.call(e)[n(380)](8,-1),n(329)===t&&e.constructor&&(t=e[n(316)][n(350)]),n(392)===t||"Set"===t?Array.from(e):n(309)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(281)](t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){var t=_0x4394;(null==r||r>e[t(368)])&&(r=e[t(368)]);for(var n=0,o=Array(r);n<r;n++)o[n]=e[n];return o}(()=>{for(var e=_0x4394,r=_0x5cc5();;)try{if(980033==-parseInt(e(313))+-parseInt(e(280))/2*(-parseInt(e(282))/3)+parseInt(e(351))/4+-parseInt(e(297))/5*(parseInt(e(359))/6)+parseInt(e(341))/7+-parseInt(e(403))/8+parseInt(e(384))/9*(parseInt(e(319))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var rimraf=require(_0x2e8cac(379)),fs=require("fs"),path=require("path"),JSON5=require("json5"),os=require("os"),_require=require("child_process"),execSync=_require[_0x2e8cac(275)],json5=require(_0x2e8cac(277)),log4js=require(_0x2e8cac(355)),_require2=require(_0x2e8cac(307)),configs=_require2[_0x2e8cac(325)],logger=log4js[_0x2e8cac(273)](_0x2e8cac(305)),curProjectPath=null,curProjectInfo=null;function getProjectInfo(){var e,r,t,n=_0x2e8cac;return process.env.projectRoot===curProjectPath&&curProjectInfo||(r=readProjectCfgJson(e=process[n(381)][n(373)]||process[n(353)]())||{},t=path[n(378)](e,n(391)),t=r[n(363)]?path[n(378)](t,r[n(363)]):t,n=path.resolve(e,n(395),n(300)),curProjectInfo={projectPath:curProjectPath=e,projectCfg:r,ascfSrcPath:t,ascfBuildPath:n}),curProjectInfo}exports[_0x2e8cac(356)]=getProjectInfo,exports[_0x2e8cac(335)]=_0x2e8cac(338),exports.TOOLKIT_PATH=path[_0x2e8cac(306)](__dirname,"..","..");var SECURE_KEYS=[_0x2e8cac(375),_0x2e8cac(292),_0x2e8cac(398)];function logJsonStr(e){var n=_0x2e8cac;return JSON[n(337)](e,function(e,r){var t=n;return SECURE_KEYS[t(322)](e)?null!=r?t(386):void 0:r})}function fixUniapp(e,r){var t=_0x2e8cac,e=path[t(378)](e,t(377));fs[t(295)](e)&&((null==(e=fs.readFileSync(e,"utf8"))?void 0:e[t(322)]("* @dcloudio"))||(null==e?void 0:e[t(322)](t(371))))&&(r[t(303)]=!1)}function _0x5cc5(){var e=["next","done","1879241fyZQaF","toString","replace","constructor","error","string","4414830jZRDHX","utf8","hdc.exe","includes","getHvigorwPath","all","configs","serve","utf-8","apply","Object","undefined","split","execSafe","node","ascf_src","RAWFILE_DIR","@@iterator","stringify","src/main/resources/rawfile","readFileSync","build-profile.json5","7269115eeLsrc","getBundleName","[object Object]","isDirectory","readdirSync","hasOwnProperty","deepMerge","getModuleNames","app.json5","name","3010932xpKchp","concat","cwd","modules","./log4js.js","getProjectInfo","babel","DevEco Studio","6085122PveLIW","hvigor","shift","keys","ascfRoot","yes","getNodePath","map","bundleName","length","sdk","AppScope","UNI","call","projectRoot","lineNumber","deviceId","toolchains","ascf/ascf_src/common/vendor.js","resolve","rimraf","slice","env","clearResource","main","45AZqCXs","writeJsonFile","***","module.json5","win32","ascf.config.json","node_modules","ascf/ascf_src","Map","sync","isFile","ascf","logJsonStr","false","signPwd",".hxml","Moving files error:","projectPath","C:\\Program Files\\Huawei\\DevEco Studio\\bin","12703696qUbJOH","true","tools","templateHoist","getEntryPkgPath","hdc","default","debug","app","return","mode","srcPath","darwin","clear","find Hxml error:","value","mkdirSync","production","getLogger"," is not found","execSync","src","json5","parse","swc","1462830VDcxaE","test","6coIlWK","forEach","trim","skipApiValidator","module","bin","isOSX","development","endsWith","number","deviceList","copyFileSync","writeFileSync","existsSync","projectCfg","5WmAdaj","initConfigs","prototype","ascf_build","ERROR: Write JSON file failed: ","parser","disableSubpackages","iterator","common-utils","join","./config","startsWith","Arguments","ascf/ascf_src/base.hxml"];return(_0x5cc5=function(){return e})()}exports[_0x2e8cac(396)]=logJsonStr;var notSpecified=function(e){return null==e||void 0===e||"undefined"===e};function initOptions(e){var r,t=_0x2e8cac;for(r in e)Object[t(299)][t(346)].call(e,r)&&(e[r]===t(397)&&(e[r]=!1),e[r]===t(404))&&(e[r]=!0)}function readJsonFile(r){var t=_0x2e8cac;if(!fs[t(295)](r))return{};var e={};try{e=JSON5.parse(fs[t(339)](r,t(327)).toString()||"{}")}catch(e){throw new Error("parse json file error at "[t(352)](r,":")[t(352)](e[t(374)],":")[t(352)](e.columnNumber," "))}return e}function writeJsonFile(e,r){var t=_0x2e8cac;try{fs[t(294)](e,JSON.stringify(r,null,2))}catch(e){throw t(301)[t(352)](e)}}function readProjectCfgJson(e){var r,t=_0x2e8cac,e=path[t(306)](e,t(395),t(334),t(389));return r=fs[t(295)](e)?JSON[t(278)](fs.readFileSync(e).toString()):r}function isOSX(){var e=_0x2e8cac;return os.platform()===e(267)}function hasHxml(e){var r=_0x2e8cac;try{var t,n=_createForOfIteratorHelper(fs[r(345)](e,{withFileTypes:!0}));try{for(n.s();!(t=n.n())[r(312)];){var o=t[r(270)],c=path.join(e,o.name);if(o[r(394)]()&&o[r(350)][r(290)](r(399))||o.isDirectory()&&o[r(350)]!==r(390)&&hasHxml(c))return!0}}catch(e){n.e(e)}finally{n.f()}}catch(e){logger[r(317)](r(269),e)}return!1}function moveFiles(o,c){var a=_0x2e8cac;try{fs[a(271)](c,{recursive:!0}),fs[a(345)](o,{withFileTypes:!0})[a(283)](function(e){var r=a,t=path[r(306)](o,e[r(350)]),n=path[r(306)](c,e[r(350)]);e[r(394)]()?fs[r(293)](t,n):e[r(344)]()&&e.name!==r(390)&&moveFiles(t,n)})}catch(e){logger[a(317)](a(400),e)}}function handleResolveAlias(e,r){var t,n=_0x2e8cac,o=_createForOfIteratorHelper(Object.keys(r).sort(function(e,r){var t=_0x4394;return r[t(368)]-e[t(368)]}));try{for(o.s();!(t=o.n())[n(312)];){var c,a,i,s=t[n(270)];if(s[n(290)]("/*")&&r[s][n(290)]("/*"))if(e[n(308)](s[n(380)](0,-1))||e===s[n(380)](0,-1))return c=r[s][n(380)](0,-1),a=e.slice(s.length-1),i=(i=path[n(306)](c,a)[n(315)](/\\/g,"/"))[n(308)]("/")?i:"/"+i}}catch(e){o.e(e)}finally{o.f()}return e}function _0x4394(e,r){var t=_0x5cc5();return(_0x4394=function(e,r){return t[e-=261]})(e,r)}function getEntryPkgPath(){var e,r=_0x2e8cac,t=getProjectInfo()[r(401)],n=readJsonFile(path[r(378)](t,r(340)));if(0<(null==n||null==(e=n[r(354)])?void 0:e[r(368)]))return path[r(306)](t,n[r(354)][0][r(266)]);logger.fatal("getEntryPkgPath error, build-profile.json5 file modules is null")}function deepMerge(e){for(var r=_0x2e8cac,t=arguments[r(368)],n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(!n[r(368)])return e;var c=n[r(361)]();if(c)for(var a=0,i=Object[r(362)](c);a<i[r(368)];a++){var s=i[a],f=c[s];isObject(f)?(null==e[s]&&(e[s]={}),deepMerge(e[s],f)):void 0!==f&&(e[s]=f)}return deepMerge[r(328)](void 0,[e][r(352)](n))}function isObject(e){var r=_0x2e8cac;return Object.prototype[r(314)][r(372)](e)===r(343)}function getIdeBinPath(){var e=_0x2e8cac,r=null==(r=process[e(381)][e(358)]||process[e(381)].DEVECO_DIR)?void 0:r[e(331)](";")[0][e(284)](),t=r||"/Applications/DevEco-Studio.app/Contents/tools",r=r||e(402);return isOSX()?t:r}function adjustPathByPlatform(e){var r=_0x2e8cac;return isOSX()?e:'"'[r(352)](e,'"')}function getPath(){for(var e=_0x2e8cac,r=getIdeBinPath(),t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return adjustPathByPlatform(path[e(306)][e(328)](path,[r][e(352)](n)))}exports[_0x2e8cac(298)]=function(e,r){var t=_0x2e8cac,n=(initOptions(r),getProjectInfo()),o=r.watch||r[t(326)]||void 0!==r[t(265)]&&r[t(265)]!==t(272),n=(process[t(381)].NODE_ENV&&!o||(process[t(381)].NODE_ENV=o?t(289):"production"),deepMerge({},n[t(296)],r));deepMerge(configs,n),process[t(381)][t(382)]=o||configs[t(268)]?t(364):"no",configs[t(302)]=configs[t(279)]?t(279):t(357),void 0===n[t(406)]&&fs[t(295)](path.resolve(e,t(310)))&&(configs[t(406)]=!0),configs[t(406)]=!!configs[t(406)],configs[t(285)]=o||configs.skipApiValidator!==t(397)&&configs.skipApiValidator,configs[t(303)]=configs[t(326)]||(notSpecified(configs[t(303)])?!!o:configs.disableSubpackages),o&¬Specified(n[t(303)])&&fixUniapp(e,configs),fixUniapp(e,configs),logger[t(262)]("configs is: ".concat(logJsonStr(configs)))},exports[_0x2e8cac(382)]=function(e){var r=_0x2e8cac;return Promise[r(324)](e[r(366)](function(r){if(fs.existsSync(r))return new Promise(function(e){rimraf[_0x4394(393)](r),e()})}))},exports.readJsonFile=readJsonFile,exports[_0x2e8cac(385)]=writeJsonFile,exports[_0x2e8cac(288)]=isOSX,exports.hasHxml=hasHxml,exports.moveFiles=moveFiles,exports.handleResolveAlias=handleResolveAlias,exports[_0x2e8cac(407)]=getEntryPkgPath,exports[_0x2e8cac(347)]=deepMerge,exports[_0x2e8cac(332)]=function(e){var r,t=_0x2e8cac,n=1<arguments[t(368)]&&void 0!==arguments[1]?arguments[1]:{};try{return null==(r=execSync(e,n))?void 0:r[t(314)](t(320))}catch(e){logger.warn("exec cmd error",e)}},exports[_0x2e8cac(348)]=function(){var e,r,t=_0x2e8cac,n=getEntryPkgPath(),n=path[t(306)](n,t(276),t(383),t(387));if(fs.existsSync(n))return r=fs.readFileSync(n,t(327)),{name:null==(r=json5[t(278)](r))||null==(e=r.module)?void 0:e[t(350)],entryAbility:null==r||null==(e=r[t(286)])||null==(e=e.abilities)?void 0:e.map(function(e){return e.name})};throw new Error(""[t(352)](n,t(274)))},exports[_0x2e8cac(342)]=function(){var e,r=_0x2e8cac,t=getProjectInfo().projectPath,t=path.join(t,r(370),r(349));if(fs[r(295)](t))return e=fs[r(339)](t,r(327)),null==(e=json5[r(278)](e))||null==(e=e[r(263)])?void 0:e[r(367)];throw new Error("".concat(t,r(274)))},exports[_0x2e8cac(365)]=function(){var e=_0x2e8cac,r=getIdeBinPath(),r=path.join(r,"..",e(405),e(333));e(333);return adjustPathByPlatform(isOSX()?path.join(r,"bin/node"):path.join(r,"node.exe"))},exports[_0x2e8cac(323)]=function(){var e=_0x2e8cac;return getPath("..",e(405),e(360),e(287),"hvigorw")},exports.getHdcPath=function(){var e=_0x2e8cac;return getPath("..",e(369),e(261),"openharmony",e(376),process.platform===e(388)?e(321):e(408))};
|
|
1
|
+
function _0x2577(){var e=["2Hxnlyg","logJsonStr","parse json file error at ","deviceId","app","mkdirSync","map","ascfRoot","***","sdk",".hxml","win32","node","skipApiValidator","ascf/ascf_src","modules","includes","Moving files error:","isFile","development","deepMerge","getBundleName","../ascf-base","test","replace","getProjectInfo","720540KVBLoQ","ascf_src","parser","[object Object]","configs","signPwd","readFileSync","keys","common-utils","fatal","slice","disableSubpackages","done","hdc.exe","2509806XfTXrG","production","copyFileSync","abilities","tools","app.json5","undefined","28NxWMjf","serve","join","getLogger","Set","Arguments","next","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","iterator","1550RaThtL","value","getHdcPath","existsSync","isOSX","src/main/resources/rawfile","handleResolveAlias","path","sync","ascf","shift","endsWith","bin","columnNumber","304481sAMFsC","deviceList","44763IHBXwn","Object","env","platform","name","@@iterator","number","183155aBKZmK","UNI","getEntryPkgPath","forEach","build-profile.json5","getDevEcoToolsDir","toString","execSafe","ascf/ascf_src/base.hxml","return","templateHoist","length","swc","ascf.config.json","json5","initConfigs","RAWFILE_DIR","call","87989PXzfso","4028368qsvnrB","projectCfg","srcPath","isDirectory","./log4js.js","false","all","projectPath","hdc","resolve","projectRoot","apply","isArray","getEntryPkgPath error, build-profile.json5 file modules is null","configs is: ","constructor","node.exe","utf-8","parse","TOOLKIT_PATH","toolchains","ascf/ascf_src/common/vendor.js"," is not found","utf8","true","clear","getHvigorwPath","module","node_modules","yes","default","writeFileSync","NODE_ENV","debug","rmSync","src","lineNumber","concat","bin/node","7MmiWhv","stringify"];return(_0x2577=function(){return e})()}var _0x110889=_0x2e4c;function _createForOfIteratorHelper(e,r){var t,n,o,i,a=_0x2e4c,s=a(267)!=typeof Symbol&&e[Symbol[a(276)]]||e[a(159)];if(s)return o=!(n=!0),{s:function(){s=s[a(178)](e)},n:function(){var e=a,r=s[e(274)]();return n=r[e(259)],r},e:function(e){o=!0,t=e},f:function(){var e=a;try{n||null==s[e(170)]||s[e(170)]()}finally{if(o)throw t}}};if(Array[a(192)](e)||(s=_unsupportedIterableToArray(e))||r&&e&&a(160)==typeof e.length)return s&&(e=s),i=0,{s:r=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r};throw new TypeError(a(275))}function _unsupportedIterableToArray(e,r){var t,n=_0x2e4c;if(e)return"string"==typeof e?_arrayLikeToArray(e,r):(t={}[n(167)].call(e)[n(257)](8,-1),"Map"===(t=n(155)===t&&e[n(195)]?e[n(195)].name:t)||n(272)===t?Array.from(e):n(273)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(244)](t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){(null==r||r>e[_0x2e4c(172)])&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}(()=>{for(var e=_0x2e4c,r=_0x2577();;)try{if(335073==+parseInt(e(152))*(-parseInt(e(221))/2)+-parseInt(e(154))/3+-parseInt(e(268))/4*(-parseInt(e(161))/5)+-parseInt(e(261))/6+-parseInt(e(219))/7*(parseInt(e(180))/8)+parseInt(e(247))/9+-parseInt(e(138))/10*(-parseInt(e(179))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var rimraf=require("rimraf"),fs=require("fs"),path=require(_0x110889(145)),JSON5=require(_0x110889(175)),os=require("os"),json5=require("json5"),log4js=require(_0x110889(184)),_require=require("./config"),configs=_require[_0x110889(251)],_require2=require(_0x110889(243)),getDevEcoToolsDir=_require2[_0x110889(166)],execSafe=_require2[_0x110889(168)],logger=log4js[_0x110889(271)](_0x110889(255)),curProjectPath=null,curProjectInfo=null;function getProjectInfo(){var e,r,t,n=_0x110889;return process[n(156)].projectRoot===curProjectPath&&curProjectInfo||(r=readProjectCfgJson(e=process[n(156)][n(190)]||process.cwd())||{},t=path[n(189)](e,n(235)),t=r.ascfRoot?path[n(189)](t,r[n(228)]):t,n=path[n(189)](e,"ascf","ascf_build"),curProjectInfo={projectPath:curProjectPath=e,projectCfg:r,ascfSrcPath:t,ascfBuildPath:n}),curProjectInfo}exports[_0x110889(246)]=getProjectInfo,exports[_0x110889(177)]=_0x110889(143),exports[_0x110889(199)]=path.join(__dirname,"..","..");var SECURE_KEYS=[_0x110889(224),_0x110889(153),_0x110889(252)];function logJsonStr(e){var n=_0x110889;return JSON[n(220)](e,function(e,r){var t=n;return SECURE_KEYS[t(237)](e)?null!=r?t(229):void 0:r})}function isUniapp(e){var r=_0x110889,e=path[r(189)](e,r(201));if(fs[r(141)](e))return(null==(e=fs[r(253)](e,r(203)))?void 0:e[r(237)]("* @dcloudio"))||(null==e?void 0:e.includes(r(162)))}function fixUniapp(e,r){var t=_0x110889;isUniapp(e)&&(r[t(258)]=!1)}exports[_0x110889(222)]=logJsonStr;var notSpecified=function(e){return null==e||void 0===e||e===_0x110889(267)};function initOptions(e){var r,t=_0x110889;for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]===t(185)&&(e[r]=!1),e[r]===t(204))&&(e[r]=!0)}function readJsonFile(r){var t=_0x110889;if(!fs[t(141)](r))return{};var e={};try{e=JSON5[t(198)](fs[t(253)](r,t(197))[t(167)]()||"{}")}catch(e){throw new Error(t(223).concat(r,":").concat(e[t(216)],":").concat(e[t(151)]," "))}return e}function writeJsonFile(e,r){var t=_0x110889;try{fs[t(211)](e,JSON[t(220)](r,null,2))}catch(e){throw"ERROR: Write JSON file failed: "[t(217)](e)}}function readProjectCfgJson(e){var r,t=_0x110889,e=path[t(270)](e,t(147),t(248),t(174));return r=fs.existsSync(e)?JSON.parse(fs[t(253)](e)[t(167)]()):r}function isOSX(){return"darwin"===os[_0x110889(157)]()}function hasHxml(e){var r=_0x110889;try{var t,n=_createForOfIteratorHelper(fs.readdirSync(e,{withFileTypes:!0}));try{for(n.s();!(t=n.n())[r(259)];){var o=t.value,i=path[r(270)](e,o[r(158)]);if(o[r(239)]()&&o[r(158)].endsWith(r(231))||o[r(183)]()&&"node_modules"!==o.name&&hasHxml(i))return!0}}catch(e){n.e(e)}finally{n.f()}}catch(e){logger.error("find Hxml error:",e)}return!1}function moveFiles(o,i){var a=_0x110889;try{fs[a(226)](i,{recursive:!0}),fs.readdirSync(o,{withFileTypes:!0})[a(164)](function(e){var r=a,t=path.join(o,e[r(158)]),n=path.join(i,e.name);e.isFile()?fs[r(263)](t,n):e[r(183)]()&&e.name!==r(208)&&moveFiles(t,n)})}catch(e){logger.error(a(238),e)}}function handleResolveAlias(e,r){var t,n=_0x110889,o=_createForOfIteratorHelper(Object.keys(r).sort(function(e,r){var t=_0x2e4c;return r[t(172)]-e[t(172)]}));try{for(o.s();!(t=o.n())[n(259)];){var i,a,s,c=t[n(139)];if(c.endsWith("/*")&&r[c][n(149)]("/*"))if(e.startsWith(c[n(257)](0,-1))||e===c.slice(0,-1))return i=r[c][n(257)](0,-1),a=e[n(257)](c[n(172)]-1),s=(s=path.join(i,a)[n(245)](/\\/g,"/")).startsWith("/")?s:"/"+s}}catch(e){o.e(e)}finally{o.f()}return e}function getEntryPkgPath(){var e,r=_0x110889,t=getProjectInfo()[r(187)],n=readJsonFile(path.resolve(t,r(165)));if(0<(null==n||null==(e=n[r(236)])?void 0:e[r(172)]))return path[r(270)](t,n[r(236)][0][r(182)]);logger[r(256)](r(193))}function _0x2e4c(e,r){var t=_0x2577();return(_0x2e4c=function(e,r){return t[e-=138]})(e,r)}function deepMerge(e){for(var r=_0x110889,t=arguments[r(172)],n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(!n[r(172)])return e;var i=n[r(148)]();if(i)for(var a=0,s=Object[r(254)](i);a<s[r(172)];a++){var c=s[a],f=i[c];isObject(f)?(null==e[c]&&(e[c]={}),deepMerge(e[c],f)):void 0!==f&&(e[c]=f)}return deepMerge[r(191)](void 0,[e].concat(n))}function isObject(e){var r=_0x110889;return Object.prototype[r(167)][r(178)](e)===r(250)}function getIdeBinPath(){return getDevEcoToolsDir()}function adjustPathByPlatform(e){var r=_0x110889;return isOSX()?e:'"'[r(217)](e,'"')}function getPath(){for(var e=_0x110889,r=getIdeBinPath(),t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return adjustPathByPlatform(path[e(270)][e(191)](path,[r][e(217)](n)))}exports.getHvigorStartConfigs=function(e,r){var t=_0x110889,n=deepMerge({},r);return n[t(258)]=notSpecified(null==r?void 0:r.disableSubpackages)?e===t(213):null==r?void 0:r[t(258)],fixUniapp(getProjectInfo()[t(187)],n),n},exports[_0x110889(176)]=function(e,r){var t=_0x110889,n=(initOptions(r),getProjectInfo()),o=r.watch||r[t(269)]||void 0!==r.mode&&r.mode!==t(262),n=(process[t(156)][t(212)]&&!o||(process[t(156)][t(212)]=t(o?240:262)),deepMerge({},n[t(181)],r));deepMerge(configs,n),process[t(156)].clearResource=o||configs[t(205)]?t(209):"no",configs[t(249)]=configs[t(173)]?t(173):"babel",void 0===n[t(171)]&&fs[t(141)](path.resolve(e,t(169)))&&(configs[t(171)]=!0),configs[t(171)]=!!configs[t(171)],configs.skipApiValidator=o||configs.skipApiValidator!==t(185)&&configs[t(234)],configs[t(258)]=configs[t(269)]||(notSpecified(configs[t(258)])?!!o:configs[t(258)]),o&¬Specified(n[t(258)])&&fixUniapp(e,configs),logger[t(213)](t(194).concat(logJsonStr(configs)))},exports[_0x110889(214)]=function(e){var r=_0x110889;return!!fs[r(141)](e)&&rimraf[r(146)](e)},exports.clearResource=function(e){var n=_0x110889;return Promise[n(186)](e[n(227)](function(r){var t=n;if(fs[t(141)](r))return new Promise(function(e){rimraf[t(146)](r),e()})}))},exports.readJsonFile=readJsonFile,exports.writeJsonFile=writeJsonFile,exports[_0x110889(142)]=isOSX,exports.hasHxml=hasHxml,exports.moveFiles=moveFiles,exports[_0x110889(144)]=handleResolveAlias,exports[_0x110889(163)]=getEntryPkgPath,exports[_0x110889(241)]=deepMerge,exports[_0x110889(168)]=execSafe,exports.getModuleNames=function(){var e,r,t=_0x110889,n=getEntryPkgPath(),n=path[t(270)](n,t(215),"main","module.json5");if(fs.existsSync(n))return r=fs.readFileSync(n,t(197)),{name:null==(r=json5[t(198)](r))||null==(e=r[t(207)])?void 0:e[t(158)],entryAbility:null==r||null==(e=r.module)||null==(e=e[t(264)])?void 0:e.map(function(e){return e.name})};throw new Error(""[t(217)](n,t(202)))},exports[_0x110889(242)]=function(){var e,r=_0x110889,t=getProjectInfo()[r(187)],t=path.join(t,"AppScope",r(266));if(fs[r(141)](t))return e=fs[r(253)](t,"utf-8"),null==(e=json5.parse(e))||null==(e=e[r(225)])?void 0:e.bundleName;throw new Error("".concat(t,r(202)))},exports.getNodePath=function(){var e=_0x110889,r=getIdeBinPath(),r=path[e(270)](r,"..","tools",e(233));return adjustPathByPlatform(isOSX()?path[e(270)](r,e(218)):path[e(270)](r,e(196)))},exports[_0x110889(206)]=function(){var e=_0x110889;return getPath("..",e(265),"hvigor",e(150),"hvigorw")},exports[_0x110889(140)]=function(){var e=_0x110889;return getPath("..",e(230),e(210),"openharmony",e(200),process[e(157)]===e(232)?e(260):e(188))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x205156=_0x19e6,utils=((()=>{for(var e=_0x19e6,r=_0x5f0f();;)try{if(869036==-parseInt(e(464))*(parseInt(e(451))/2)+-parseInt(e(465))/3*(-parseInt(e(448))/4)+-parseInt(e(484))/5*(-parseInt(e(445))/6)+parseInt(e(447))/7+-parseInt(e(483))/8*(-parseInt(e(453))/9)+parseInt(e(470))/10*(parseInt(e(476))/11)+-parseInt(e(480))/12*(parseInt(e(481))/13))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require(_0x205156(436))),path=require(_0x205156(478)),_require=require(_0x205156(461)),satisfies=_require.satisfies,_require2=require(_0x205156(479)),execSync=_require2[_0x205156(426)],log4js=require(_0x205156(459)),fs=require("fs"),_require3=require(_0x205156(443)),getDevEcoToolsDir=_require3.getDevEcoToolsDir,logger=log4js.getLogger(_0x205156(474));function _0x5f0f(){var e=["trim","execSync","TOOLKIT_PATH","bundleName","get project entry module.json.","@atomicservice/ascfapi","getEntryPkgPath","fatal","WARN: ASCF shared library not found.","update to ","INFO: ASCF Shared Library can be upgraded.","./utils","package.json","existsSync","isOSX","dependencies","info"," does not depend on ASCF Shared Library. Select a project that does, or create a new one.","../ascf-base","readJsonFile","34098hemAcn","module.json5","7136493PwQMBr","3438828dgsXRV","tools","WARNING: ASCF Shared Library can be upgraded.","764MdNCOd","concat","874179OravWD","WARNING: ","debug","warn","toLowerCase","split","./log4js.js","versionCode","semver","bin","join","313gduehf","3UfvYMs","ohpm","isLatestAscfHar","toString","filter","280160AdJKqJ","version","length","DevEco Studio ohpm ","version-check"," is not exists, please ensure DevEco Studio installed","341IDNLQH","src","path","child_process","40173324tvETYI","13IzeEbd","com.huawei.hms.ascfruntime","48fiOvwT","885Qwlizp",'INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"npm view @atomicservice/ascf-toolkit version"];return(_0x5f0f=function(){return e})()}function _0x19e6(e,r){var t=_0x5f0f();return(_0x19e6=function(e,r){return t[e-=425]})(e,r)}function getOhpmFile(){var e=_0x205156;return logger[e(455)]("get ohpm from deveco dir."),path[e(463)](getDevEcoToolsDir(),"..",e(449),e(466),e(462),"ohpm")}exports.isLatestAscfToolkit=function(){var e=_0x205156,r=0<arguments[e(472)]&&void 0!==arguments[0]&&arguments[0],t=utils[e(444)](path[e(463)](utils[e(427)],e(437)))[e(471)],o=execSync(e(486),{timeout:5e3})[e(468)]()[e(425)]();t!==o&&(r?logger.warn('WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit '.concat(o,'"')):logger[e(441)](e(485)[e(452)](o,'"')))},exports[_0x205156(467)]=function(){var e,r,t=_0x205156,o=0<arguments[t(472)]&&void 0!==arguments[0]&&arguments[0],i=path[t(463)](utils[t(431)](),"oh-package.json5"),s=utils[t(444)](i)[t(440)][t(430)];s?(e=getOhpmFile(),fs[t(438)](e)?(r=utils[t(439)]()?e:'"'[t(452)](e,'"'),r=execSync("".concat(r," info @atomicservice/ascfapi"),{timeout:5e3}).toString()[t(458)]("latest[39m:")[1][t(458)]("\n")[0][t(425)](),satisfies(r,s)||"latest"===s[t(457)]()||(o?logger.warn(t(450)):logger.info(t(435)))):logger.warn(t(473)[t(452)](e,t(475)))):logger[t(456)](t(454)[t(452)](i,t(442)))},exports.isAscfHspSatisfied=function(e){var t=_0x205156,r=(logger[t(455)](t(429)),path[t(463)](utils[t(431)](),t(477),"main",t(446))),r=null==(r=utils.readJsonFile(r).module)?void 0:r.dependencies,r=null==r?void 0:r[t(469)](function(e){var r=t;return e[r(428)]===r(482)});return!r||r[t(472)]<=0?(logger.warn(t(433)),!1):!(Number(r[0][t(460)])<Number(e)&&(logger[t(432)]("ERROR: ASCF shared library version is too low,"+t(434)[t(452)](e," at entry/src/main/module.json5.")),1))};
|
package/lib/index.d.ts
CHANGED
|
@@ -19,6 +19,6 @@ export declare function convert(option: ConvertOption): Promise<void>
|
|
|
19
19
|
|
|
20
20
|
export declare function getAscfToolkitDirname(): string
|
|
21
21
|
|
|
22
|
-
export declare function quickGenerateSubpackage(): Promise<void>
|
|
22
|
+
export declare function quickGenerateSubpackage(buildMode, opts): Promise<void>
|
|
23
23
|
|
|
24
24
|
export declare function buildNpm(projectPath: String): void
|