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