@atomicservice/ascf-toolkit 1.0.3 → 1.0.5-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 +68 -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/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/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/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 -0
- package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
- package/lib/ascf-compiler/watch/watch.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/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/debugger/index.js +1 -0
- package/lib/common/config.js +1 -1
- package/lib/common/log4js.js +1 -1
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/string-utils.js +1 -1
- package/lib/common/url.json +3 -0
- package/lib/common/utils.js +1 -1
- package/lib/common/version-check.js +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/package.json +17 -53
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x542728=_0x3510;function _typeof(t){var r=_0x3510;return(_typeof=r(538)==typeof Symbol&&"symbol"==typeof Symbol[r(511)]?function(t){return typeof t}:function(t){var e=r;return t&&e(538)==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?e(488):typeof t})(t)}function _0x3510(t,e){var r=_0x7b0f();return(_0x3510=function(t,e){return r[t-=479]})(t,e)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _0x7b0f(){var t=["symbol","@@toPrimitive must return a primitive value.","enumerable","string","target","toPrimitive","innerHTML",".mask .title",'<div class="opation-item">',"属性名称","querySelectorAll","keys","Map",'<span class="status-icon warning-icon">⚠</span>',"onload","otherModular",'</div>\n <div class="topname">文件总数</div>\n </div>\n <div class="itembox itembox_completely">\n <div class="botval">',"unsupported","30899718mfZgik","不支持的部分(参数/返回值)","apply","getOwnPropertySymbols","\n <thead>\n <tr>\n ","iterator","tbody","</td>\n </tr>\n ","from","push","toString","createElement","textContent","getOwnPropertyDescriptors","slice","icon-warning","ulBox",".mask .table-box","tableBox","22RxzdyW","values","querySelector","tableInfo",'</td>\n <td>\n <div class="show-instruct" data-path="','<div class="itembox itembox_completely">\n <div class="botval">',"maskTitle","templete","defineProperties","value","组件名","hide","thead","function","partial","ERROR","completely","return",'</div>\n <div class="topname">部分转换</div>\n </div>\n <div class="itembox itembox_failed">\n <div class="botval">',"appendChild",'\n <tr>\n <td class="name">',"forEach","opations",".js",".result",".mask .table-box table","样式文件","data-type","65yVUUTj","tab-item","10360707SRUZNp",'</td>\n <td class="opations">',"</th>",".table-info:first-child",".table-info","开放能力","\n </td>\n </tr>","err","icon-zhengque","pagePaths","components",'</div>\n <div class="topname">无法转换</div>\n </div>','</div>\n <div class="topname">完全转换</div>\n </div>\n <div class="itembox itembox_portion">\n <div class="botval">',"#col1","path","next","166732SOBXyO","app.json","如何解决","constructor","innerText","join","tabBox","isArray","click","className","不支持","assign","table-head","filter","table-info","getOwnPropertyDescriptor","notsupport","closeBtn","div","cls","getTransformData","location",'">帮助文档</td>',"actived","mask","cardBox","type","\n </tr>\n ",'<tr>\n <td class="apges">\n ',"remove","name",'\n <tr>\n <td class="text-left">',"val","default",'<tr><td colspan="3">完整支持</td></tr>',"li:first-child","支持程度","api/生命周期","dataSources","entries","length","部分支持",' header" id="col1">',".rep-allbox","getAttribute","href","none","2585406UUSNiw","call","transforms","modelAll","Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",'">\n 查看相关能力\n </div>\n </td>\n <td class="apges">',"json文件","模板文件","addEventListener","不支持文件","classList",".card-box","13644480EKECPl","concat","unsupportedNum","table",'<td class="unsupported">暂不支持,请尝试其他实现方式</td>',"docpath","#project tbody","span","icon-cuowu",".tab-box","num ","Object",'<tr class="pages">\n <th>文件路径</th>\n <th>转换结果</th>\n </tr>',"warn","tab-item actived","add",'<td class="result" path="',"projectTable","supportType","</td>\n ","499971PEMCIj",'\n </td>\n <td class="file-path">\n ',".mask .close","surroundings",".mask","</div>","其他文件","style","undefined","status","concept","CORRECT","dataset","setAttribute","defineProperty","map","219788GhTrAk","@@iterator","\n <tr>\n <td>","endsWith","doc"];return(_0x7b0f=function(){return t})()}function _nonIterableRest(){throw new TypeError(_0x3510(622))}function _iterableToArrayLimit(t,e){var r=_0x3510,n=null==t?null:r(658)!=typeof Symbol&&t[Symbol[r(511)]]||t[r(484)];if(null!=n){var a,o,i,s,c=[],l=!0,u=!1;try{if(i=(n=n.call(t))[r(570)],0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a[r(534)]),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n[r(542)]&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function _arrayWithHoles(t){if(Array[_0x3510(578)](t))return t}function ownKeys(r,t){var e,n=_0x3510,a=Object.keys(r);return Object.getOwnPropertySymbols&&(e=Object[n(509)](r),t&&(e=e[n(584)](function(t){var e=n;return Object[e(586)](r,t)[e(490)]})),a.push[n(508)](a,e)),a}function _objectSpread(r){for(var n=_0x3510,t=1;t<arguments[n(611)];t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(a),!0)[n(546)](function(t){_defineProperty(r,t,a[t])}):Object.getOwnPropertyDescriptors?Object[n(533)](r,Object[n(519)](a)):ownKeys(Object(a))[n(546)](function(t){var e=n;Object[e(481)](r,t,Object[e(586)](a,t))})}return r}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){var r,n=_0x3510;if(t)return n(491)==typeof t?_arrayLikeToArray(t,e):(r={}[n(516)][n(619)](t)[n(520)](8,-1),n(641)===r&&t[n(574)]&&(r=t[n(574)].name),n(500)===r||"Set"===r?Array[n(514)](t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0)}function _iterableToArray(t){var e=_0x3510;if(e(658)!=typeof Symbol&&null!=t[Symbol[e(511)]]||null!=t[e(484)])return Array.from(t)}function _arrayWithoutHoles(t){if(Array[_0x3510(578)](t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t[_0x3510(611)])&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function _defineProperty(t,e,r){var n=_0x3510;return(e=_toPropertyKey(e))in t?Object[n(481)](t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_0x3510,t=_toPrimitive(t,"string");return e(488)==_typeof(t)?t:t+""}function _toPrimitive(t,e){var r=_0x3510;if("object"!=_typeof(t)||!t)return t;var n=t[Symbol[r(493)]];if(void 0===n)return(r(491)===e?String:Number)(t);n=n[r(619)](t,e||r(604));if("object"!=_typeof(n))return n;throw new TypeError(r(489))}function concepteleMade(){var t=_0x542728,e=t(530).concat(pageData[t(660)][t(621)],t(504))[t(631)](pageData[t(660)][t(541)],t(567))[t(631)](pageData[t(660)][t(539)],t(543)).concat(pageData.concept[t(587)],t(566));document[t(527)](t(614)).innerHTML=e}function fileDetails(o,t){var i=_0x542728,e={templete:i(625),jsonModular:i(624),otherModular:i(656),jsModular:"脚本文件",wxssModular:i(551),modularWxs:"自定义脚本",unsupported:i(627),supportPart:i(612)};if(0===(v=Object[i(499)](o))[i(611)])return!1;function r(r){var n=i,a=[];return v[n(546)](function(t){var e=n;o[t][e(659)]===r&&a[e(515)](t)}),a}var n,a,s=document.querySelector(i(639)),c=s[i(527)](".ul"),l=c.querySelectorAll("li")[0],u=(l&&l[i(628)][i(645)](i(594)),document[i(517)]("li")),d=(u[i(628)][i(645)](i(554)),u[i(480)](i(552),t),u[i(494)]=e[t],c[i(544)](u),s.querySelector(i(629))),l=d[i(498)](i(559))[0],e=(l&&l[i(628)][i(645)]("actived"),document.createElement(i(589))),s=(e[i(628)][i(645)](i(585)),e[i(628)].add(t),document[i(517)](i(633))),l=(s[i(628)][i(645)]("table"),document.createElement(i(537))),t=(l.classList[i(645)](i(583)),l[i(494)]=i(642),document[i(517)](i(512))),p="",f=0,y=r(1),b=r(2),v=r(3).concat(b)[i(631)](y),m=i(643);v[i(546)](function(t){var e=i,r="";1===o[t][e(659)]?r='<span class="status-icon success-icon">✓</span>':2===o[t][e(659)]?r=e(501):3===o[t][e(659)]&&(r='<span class="status-icon danger-icon">✕</span>'),p="".concat(p,e(599))[e(631)](r,e(651)).concat(t,e(561)),o[t][e(648)]&&1!==o[t].supportType&&f++,3===o[t][e(648)]&&(m=e(562))}),t[i(494)]=p;u.appendChild((b=f||"",y=f?m:i(617),n=i,(a=document[n(517)]("span"))[n(628)][n(645)]("num"),a[n(494)]=b,a[n(628)][n(645)](y),a)),s.appendChild(l),s[i(544)](t),e[i(544)](s),d[i(544)](e),u[i(626)](i(579),function(){var r=i,t=(c[r(498)]("li").forEach(function(t){var e=r;t[e(628)][e(600)](e(594))}),d.querySelectorAll(r(559))[r(546)](function(t){var e=r;t[e(628)][e(600)](e(594))}),u[r(615)](r(552)));d[r(527)]("."[r(631)](t))[r(628)][r(645)]("actived"),u[r(628)][r(645)](r(594))})}function openingMade(){var o=_0x542728,i=pageData.opening;if(0===Object[o(499)](i)[o(611)])return!1;var t,e,r,n,a,s,c,l,u={tabBox:document.querySelector(o(639)),get ulBox(){var t=o;return this[t(577)][t(527)](".ul")},get cardBox(){var t=o;return this[t(577)][t(527)](t(629))}},d={CORRECT:1,WARNING:2,ERROR:3};t=u[(e=o)(522)].querySelector(e(606)),l=u[e(596)][e(527)](e(558)),null!=t&&t[e(628)].add(e(594)),null!=l&&l[e(628)][e(645)]("actived"),t=o,l=(()=>{var r=o,n=0,a="none";return Object[r(526)](i)[r(546)](function(t){var e=r;t[e(659)]!==d.CORRECT&&n++,t.status===d[e(540)]?a=e(562):n&&a!==e(562)&&(a=e(643))}),{unsupportedNum:n,statusClass:a}})(),e=l[t(632)],l=l.statusClass,(r=document[t(517)]("li"))[t(580)]=t(644),r[t(479)][t(597)]="openability",(n=document.createElement(t(637))).className=t(640)[t(631)](l),n[t(518)]=e||"",r[t(494)]=t(560),r.prepend(n),u.ulBox[t(544)](r),l=r,e=o,(n=document[e(517)](e(589)))[e(580)]="table-info openability actived",(t=document[e(517)](e(633))).className=e(633),t[e(494)]='\n <thead class="table-head">\n <tr>\n <th>能力名称</th>\n <th>页面路径</th>\n <th>如何解决</th>\n <th>转换结果</th>\n </tr>\n </thead>\n <tbody>'[e(631)]((()=>{var n=o;return(()=>{var r=o,n=_defineProperty(_defineProperty(_defineProperty({},d[r(540)],[]),d.WARNING,[]),d[r(661)],[]);return Object[r(499)](i)[r(546)](function(t){var e=r;return n[i[t][e(659)]].push(t)}),[][r(631)](_toConsumableArray(n[d[r(540)]]),_toConsumableArray(n[d.WARNING]),_toConsumableArray(n[d[r(661)]]))})()[n(482)](function(t){var e=n,r=i[t];return e(485)[e(631)](t,"</td>\n <td>")[e(631)](r.pathArr.join("、"),e(529))[e(631)](r[e(635)],e(623))[e(631)]((t=r[e(659)],r=_defineProperty(_defineProperty(_defineProperty({},d[(r=o)(661)],r(563)),d.WARNING,r(521)),d[r(540)],r(638)),'<i class="iconfont '.concat(r[t],'"></i>')),e(513))}).join("")})(),"</tbody>\n "),n[e(544)](t),u[e(596)].appendChild(n),s=n,(a=l)[(c=o)(626)](c(579),function(){var r=c;u[r(522)][r(498)]("li")[r(546)](function(t){var e=r;return t.classList[e(600)]("actived")}),u[r(596)].querySelectorAll(r(559))[r(546)](function(t){var e=r;return t[e(628)].remove(e(594))}),a[r(628)].add(r(594)),s[r(628)].add("actived")}),u.cardBox[c(626)](c(579),function(t){var e=c,t=t[e(492)].closest(".show-instruct");t&&(window[e(592)][e(616)]=t[e(479)][e(569)])})}(()=>{for(var t=_0x3510,e=_0x7b0f();;)try{if(924474==-parseInt(t(571))+parseInt(t(525))/2*(-parseInt(t(650))/3)+-parseInt(t(483))/4*(parseInt(t(553))/5)+parseInt(t(618))/6+parseInt(t(555))/7+-parseInt(t(630))/8+parseInt(t(506))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}})(),window[_0x542728(502)]=function(){projectResult(),concepteleMade(),temelatetable(),openingMade(),supportiveness(),fileInfo(),maskClose()};var byStatus=function(e){var r=_0x542728,n={};return Object[r(499)](pageData[r(620)])[r(546)](function(t){pageData[r(620)][t].status===e&&(n[t]=pageData.transforms[t])}),n};function supportiveness(){var t=_0x542728;fileDetails(byStatus(2),"supportPart"),fileDetails(byStatus(3),t(505))}var byType=function(t){var e,r=_0x542728,n={};for(e in pageData[r(620)])pageData[r(620)][e].type===t&&(n[e]=Object[r(582)]({},pageData.transforms[e]),n[e][r(648)]=n[e][r(659)]);fileDetails(n,t)};function temelatetable(){var t=_0x542728;byType(t(532)),byType("jsModular"),byType("wxssModular"),byType("jsonModular"),byType(t(503)),byType("modularWxs")}function fileInfo(){var e,u=_0x542728,d={mask:document[u(527)](u(654)),maskTitle:document[u(527)](u(495)),tableBox:document[u(527)](u(523)),pagePaths:document[u(498)](".file-path")},p={getTransformData:function(t){return pageData.transforms[t]}};function f(t){var e=u;d[e(524)][e(527)](e(568)).innerText=t}function y(t){var r=u,e=t.attrs[r(482)](function(t){var e=r;return e(496)[e(631)](t,e(655))}).join("");return r(545)[r(631)](t[r(601)],r(556))[r(631)](e,r(649))[r(631)](!(e=t)[(t=u)(487)]||"无"===e[t(487)]?t(634):t(646)[t(631)](e[t(487)],t(593)),r(598))}d[(e=u)(564)][e(546)](function(l){var t=e;l[t(626)](t(579),function(){var t,e,n,a,r,o,i,s,c;t=(t=l)[(s=u)(575)],(c=p[s(591)](t))&&(o=c[s(597)],e=t,(a=d[(n=u)(524)].querySelectorAll("th"))[n(546)](function(t){return t[n(657)].display=""}),null!=(o=(r={templete:function(){var t=n;return f(t(535),t(581))},jsModular:function(){var t=n;return f(t(608),t(507))},otherModular:function(){var r=n;return e[r(486)](r(548))?f(r(608),r(507)):a[r(546)](function(t){var e=r;return t.style.display=e(617)})},jsonModular:function(){var t=n;return f(t(497),e===t(572)||t(607))}})[o])&&o[n(619)](r),o=t,d[(r=u)(531)][r(575)]=o,t=c[s(565)],d[(r=u)(524)][r(527)](r(512))[r(494)]=0<t[r(611)]?t.map(y)[r(576)](""):r(605),d[(o=u)(595)].classList[o(600)](o(536)),d[(i=u)(595)][i(498)](i(549))[i(546)](function(e){var r=i;e[r(626)](r(579),function(){var t=r;window.open(e[t(615)](t(569)))})}))})})}var createTable=function(t){var r=_0x542728;return[r(510),t[r(482)](function(t){var e=r;return'<th class="'[e(631)](t[e(590)],e(613))[e(631)](t.title,e(557))}),"\n </tr>\n </thead>\n <tbody></tbody>\n "][r(576)]("\n")};function maskClose(){var t,e=_0x542728,r={mask:document[e(527)](".mask"),closeBtn:document.querySelector(e(652)),table:document[e(527)](e(550))},n=createTable([{cls:e(601),title:e(535)},{cls:e(547),title:e(581)},{cls:"result",title:e(573)}]);function a(){var t;r[(t=e)(633)][t(494)]=n,r[(t=e)(595)][t(628)][t(645)]("hide")}r[(t=e)(588)].addEventListener(t(579),a)}function projectResult(){var a,t,e=_0x542728,r={projectTable:document[e(527)](e(636)),dataSources:{surroundings:pageData[e(653)],tableInfo:pageData[e(528)]}};a=e,t=Object[a(526)](r[a(609)][a(653)]).reduce(function(t,e){var r=a,n=e[r(601)],e=e[r(603)];return _objectSpread(_objectSpread({},t),{},_defineProperty({},n,e))},{}),t=t=_objectSpread(_objectSpread({},r.dataSources[a(528)]),t),r[(r=e)(647)][r(494)]=(t=>{var n=e;return Object[n(610)](t)[n(482)](function(t){var e=n,t=_slicedToArray(t,2),r=t[0],t=t[1];return e(602).concat(r,'</td>\n <td class="text-right">').concat(t,e(513))}).join("")})(t)}
|
package/lib/bin/ascf.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var _global$_ascfCliProgr,_0xf3123=_0x35ba;function _0x35ba(t,r){var e=_0x2e62();return(_0x35ba=function(t,r){return e[t-=270]})(t,r)}function _typeof(t){var e=_0x35ba;return(_typeof="function"==typeof Symbol&&e(366)==typeof Symbol.iterator?function(t){return typeof t}:function(t){var r=e;return t&&r(402)==typeof Symbol&&t[r(336)]===Symbol&&t!==Symbol.prototype?r(366):typeof t})(t)}function _regeneratorRuntime(){var u=_0x35ba;_regeneratorRuntime=function(){return f};var s,f={},t=Object[u(405)],l=t[u(341)],p=Object[u(298)]||function(t,r,e){var n=u;t[r]=e[n(348)]},r=u(402)==typeof Symbol?Symbol:{},i=r[u(285)]||u(271),e=r[u(398)]||u(372),n=r[u(401)]||u(392);function o(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function c(t,r,e,n){var o,i,a,f,c=u,r=r&&r[c(405)]instanceof y?r:y,r=Object[c(323)](r[c(405)]),n=new E(n||[]);return p(r,c(283),{value:(o=t,i=e,a=n,f=_,function(t,r){var e=_0x35ba;if(f===g)throw Error(e(378));if(f===x){if("throw"===t)throw r;return{value:s,done:!0}}for(a.method=t,a[e(371)]=r;;){var n=a[e(403)];if(n){n=function t(r,e){var n=u,o=e[n(373)],i=r[n(285)][o];if(i===s)return e[n(403)]=null,n(387)===o&&r[n(285)].return&&(e[n(373)]="return",e[n(371)]=s,t(r,e),n(387)===e[n(373)])||n(289)!==o&&(e[n(373)]=n(387),e[n(371)]=new TypeError(n(357)+o+n(276))),d;o=h(i,r.iterator,e.arg);if(n(387)===o[n(352)])return e[n(373)]=n(387),e[n(371)]=o[n(371)],e[n(403)]=null,d;i=o[n(371)];return i?i.done?(e[r.resultName]=i[n(348)],e[n(280)]=r[n(344)],n(289)!==e[n(373)]&&(e.method=n(280),e[n(371)]=s),e[n(403)]=null,d):i:(e.method=n(387),e[n(371)]=new TypeError(n(314)),e[n(403)]=null,d)}(n,a);if(n){if(n===d)continue;return n}}if(e(280)===a[e(373)])a[e(293)]=a[e(306)]=a.arg;else if(e(387)===a[e(373)]){if(f===_)throw f=x,a[e(371)];a.dispatchException(a[e(371)])}else e(289)===a.method&&a.abrupt(e(289),a[e(371)]);f=g;n=h(o,i,a);if(e(329)===n.type){if(f=a[e(311)]?x:v,n[e(371)]===d)continue;return{value:n[e(371)],done:a.done}}"throw"===n[e(352)]&&(f=x,a[e(373)]=e(387),a[e(371)]=n[e(371)])}})}),r}function h(t,r,e){var n=u;try{return{type:n(329),arg:t[n(343)](r,e)}}catch(t){return{type:"throw",arg:t}}}f.wrap=c;var _=u(327),v=u(315),g=u(287),x=u(381),d={};function y(){}function a(){}function m(){}var r={},b=(o(r,i,function(){return this}),Object[u(337)]),b=b&&b(b(I([]))),w=(b&&b!==t&&l[u(343)](b,i)&&(r=b),m[u(405)]=y[u(405)]=Object[u(323)](r));function j(t){var r=u;[r(280),r(387),r(289)].forEach(function(r){o(t,r,function(t){return this._invoke(r,t)})})}function S(f,c){var r,o=u;p(this,o(283),{value:function(e,n){function t(){return new c(function(t,r){!function r(t,e,n,o){var i,a=_0x35ba,t=h(f[t],f,e);if(a(387)!==t.type)return(e=(i=t[a(371)])[a(348)])&&a(364)==_typeof(e)&&l[a(343)](e,"__await")?c.resolve(e[a(317)])[a(319)](function(t){r("next",t,n,o)},function(t){r(a(387),t,n,o)}):c[a(288)](e)[a(319)](function(t){i[a(348)]=t,n(i)},function(t){return r(a(387),t,n,o)});o(t[a(371)])}(e,n,t,r)})}return r=r?r[o(319)](t,t):t()}})}function O(t){var r=u,e={tryLoc:t[0]};1 in t&&(e[r(356)]=t[1]),2 in t&&(e[r(277)]=t[2],e[r(349)]=t[3]),this[r(380)][r(325)](e)}function C(t){var r=u,e=t[r(273)]||{};e[r(352)]=r(329),delete e[r(371)],t[r(273)]=e}function E(t){var r=u;this[r(380)]=[{tryLoc:r(272)}],t[r(340)](O,this),this.reset(!0)}function I(e){var n=u;if(e||""===e){var o,t=e[i];if(t)return t.call(e);if(n(402)==typeof e[n(280)])return e;if(!isNaN(e[n(385)]))return o=-1,(t=function t(){for(var r=n;++o<e[r(385)];)if(l[r(343)](e,o))return t.value=e[o],t[r(311)]=!1,t;return t[r(348)]=s,t[r(311)]=!0,t})[n(280)]=t}throw new TypeError(_typeof(e)+n(404))}return a[u(405)]=m,p(w,"constructor",{value:m,configurable:!0}),p(m,u(336),{value:a,configurable:!0}),a[u(301)]=o(m,n,u(292)),f[u(274)]=function(t){var r=u,t=r(402)==typeof t&&t[r(336)];return!!t&&(t===a||r(292)===(t[r(301)]||t[r(342)]))},f[u(362)]=function(t){var r=u;return Object[r(353)]?Object.setPrototypeOf(t,m):(t[r(312)]=m,o(t,n,r(292))),t[r(405)]=Object[r(323)](w),t},f[u(326)]=function(t){return{__await:t}},j(S[u(405)]),o(S[u(405)],e,function(){return this}),f[u(321)]=S,f[u(302)]=function(t,r,e,n,o){var i=u,a=(void 0===o&&(o=Promise),new S(c(t,r,e,n),o));return f[i(274)](r)?a:a[i(280)]()[i(319)](function(t){var r=i;return t.done?t[r(348)]:a[r(280)]()})},j(w),o(w,n,u(394)),o(w,i,function(){return this}),o(w,u(320),function(){return u(365)}),f[u(305)]=function(t){var r,n=u,o=Object(t),i=[];for(r in o)i[n(325)](r);return i.reverse(),function t(){for(var r=n;i[r(385)];){var e=i.pop();if(e in o)return t[r(348)]=e,t[r(311)]=!1,t}return t[r(311)]=!0,t}},f[u(322)]=I,E.prototype={constructor:E,reset:function(t){var r=u;if(this[r(354)]=0,this[r(280)]=0,this[r(293)]=this[r(306)]=s,this.done=!1,this.delegate=null,this[r(373)]=r(280),this[r(371)]=s,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e[r(374)](0)&&l[r(343)](this,e)&&!isNaN(+e.slice(1))&&(this[e]=s)},stop:function(){var t=u,r=(this[t(311)]=!0,this[t(380)][0][t(273)]);if(t(387)===r.type)throw r[t(371)];return this.rval},dispatchException:function(n){var o=u;if(this[o(311)])throw n;var i=this;function t(t,r){var e=o;return a[e(352)]=e(387),a[e(371)]=n,i[e(280)]=t,r&&(i[e(373)]="next",i[e(371)]=s),!!r}for(var r=this[o(380)][o(385)]-1;0<=r;--r){var e=this[o(380)][r],a=e[o(273)];if(o(272)===e.tryLoc)return t("end");if(e[o(308)]<=this[o(354)]){var f=l.call(e,"catchLoc"),c=l.call(e,o(277));if(f&&c){if(this.prev<e[o(356)])return t(e.catchLoc,!0);if(this[o(354)]<e[o(277)])return t(e[o(277)])}else if(f){if(this[o(354)]<e[o(356)])return t(e[o(356)],!0)}else{if(!c)throw Error(o(379));if(this[o(354)]<e.finallyLoc)return t(e[o(277)])}}}},abrupt:function(t,r){for(var e=u,n=this.tryEntries[e(385)]-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&l[e(343)](o,e(277))&&this[e(354)]<o[e(277)]){var i=o;break}}var a=(i=i&&("break"===t||e(346)===t)&&i[e(308)]<=r&&r<=i[e(277)]?null:i)?i[e(273)]:{};return a[e(352)]=t,a[e(371)]=r,i?(this[e(373)]="next",this[e(280)]=i[e(277)],d):this[e(345)](a)},complete:function(t,r){var e=u;if(e(387)===t[e(352)])throw t.arg;return e(399)===t.type||e(346)===t[e(352)]?this[e(280)]=t.arg:e(289)===t[e(352)]?(this[e(333)]=this[e(371)]=t.arg,this.method=e(289),this.next=e(279)):e(329)===t[e(352)]&&r&&(this[e(280)]=r),d},finish:function(t){for(var r=u,e=this[r(380)].length-1;0<=e;--e){var n=this[r(380)][e];if(n[r(277)]===t)return this[r(345)](n[r(273)],n[r(349)]),C(n),d}},catch:function(t){for(var r=u,e=this.tryEntries[r(385)]-1;0<=e;--e){var n,o,i=this[r(380)][e];if(i[r(308)]===t)return n=i[r(273)],r(387)===n[r(352)]&&(o=n[r(371)],C(i)),o}throw Error(r(310))},delegateYield:function(t,r,e){var n=u;return this.delegate={iterator:I(t),resultName:r,nextLoc:e},n(280)===this[n(373)]&&(this.arg=s),d}},f}function asyncGeneratorStep(t,r,e,n,o,i,a){var f=_0x35ba;try{var c=t[i](a),u=c[f(348)]}catch(t){return void e(t)}c[f(311)]?r(u):Promise[f(288)](u)[f(319)](n,o)}function _0x2e62(){var t=["setPrototypeOf","prev","Watch for changes","catchLoc","The iterator does not provide a '","Control if and how source maps are generated","--templateHoist","compile","convert","mark","apply","object","[object Generator]","symbol","../index","-c, --clear","_ascfDebug","-va, --validate","arg","@@asyncIterator","method","charAt","-w, --watch","2491380ROdeMt","Skip API and components validator","Generator is already running","try statement without catch or finally","tryEntries","completed","16ttYvXb","--devtool [type]","Environment is development","length","../../package.json","throw","Use swc parser","-p, --progress","-i, --input <input-directory>","opts","@@toStringTag","command","Generator","enable debug logging","--swc","stop","asyncIterator","break","3172644wNzfyy","toStringTag","function","delegate"," is not iterable","prototype","11QatHIk","-o, --output <output-directory>","@@iterator","root","completion","isGeneratorFunction","22231360JZnIsN","' method","finallyLoc","Setting the log level","end","next","Not add todo for not supported api.","Show build progress","_invoke","-m, --mode","iterator","5445030WdRBpD","executing","resolve","return","wrap","Clear convert output path","GeneratorFunction","sent","version","Run command on changes been watched","5PJoqSh","_ascfCliProgram","defineProperty","option","9440001uqeoOs","displayName","async","145437lQrTZR","description","keys","_sent","-notaddtodo, --notaddtodo","tryLoc","4963gSOhtC","illegal catch attempt","done","__proto__","ascf toolkit convert and compile ascf project","iterator result is not an object","suspendedYield","commander","__await","action","then","toString","AsyncIterator","values","create","../common/log4js.js","push","awrap","suspendedStart","setLoggerConfig","normal","Validate path","--logging [level]","5272yRrlSd","rval","logging","Convert miniprogram project to ascf project","constructor","getPrototypeOf","requiredOption","--skipApiValidator","forEach","hasOwnProperty","name","call","nextLoc","complete","continue","Clear build resource","value","afterLoc","-r, --run [command]","Hoist template to page scope","type"];return(_0x2e62=function(){return t})()}function _asyncToGenerator(c){return function(){var t=this,f=arguments;return new Promise(function(r,e){var n=_0x35ba,o=c[n(363)](t,f);function i(t){asyncGeneratorStep(o,r,e,i,a,n(280),t)}function a(t){asyncGeneratorStep(o,r,e,i,a,"throw",t)}i(void 0)})}}(()=>{for(var t=_0x35ba,r=_0x2e62();;)try{if(959097==+parseInt(t(303))*(parseInt(t(382))/2)+parseInt(t(286))/3+-parseInt(t(400))/4+parseInt(t(296))/5*(parseInt(t(376))/6)+-parseInt(t(309))/7*(parseInt(t(332))/8)+parseInt(t(300))/9+-parseInt(t(275))/10*(parseInt(t(406))/11))break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var ascf=require(_0xf3123(367)),_require=require(_0xf3123(316)),Command=_require.Command,pkg=require(_0xf3123(386)),program=new Command,_require2=require(_0xf3123(324)),setLoggerConfig=_require2[_0xf3123(328)];program[_0xf3123(294)](pkg[_0xf3123(294)])[_0xf3123(304)](_0xf3123(313))[_0xf3123(299)]("--debug",_0xf3123(395)),program[_0xf3123(393)]("convert")[_0xf3123(304)](_0xf3123(335))[_0xf3123(338)](_0xf3123(390))[_0xf3123(338)](_0xf3123(270)).option(_0xf3123(368),_0xf3123(291)).option(_0xf3123(370),_0xf3123(330))[_0xf3123(299)](_0xf3123(307),_0xf3123(281))[_0xf3123(299)](_0xf3123(331),_0xf3123(278))[_0xf3123(318)]((()=>{var r=_0xf3123,e=_asyncToGenerator(_regeneratorRuntime()[r(362)](function t(e){var n=r;return _regeneratorRuntime()[n(290)](function(t){for(var r=n;;)switch(t[r(354)]=t[r(280)]){case 0:return setLoggerConfig(e[r(334)]),t.next=3,ascf[r(361)](e);case 3:case r(279):return t[r(397)]()}},t)}));return function(t){return e[r(363)](this,arguments)}})()),program[_0xf3123(393)]("compile <projectRoot>")[_0xf3123(304)]("Compile ascf project")[_0xf3123(299)](_0xf3123(389),_0xf3123(282))[_0xf3123(299)](_0xf3123(375),_0xf3123(355))[_0xf3123(299)](_0xf3123(284),_0xf3123(384)).option(_0xf3123(368),_0xf3123(347))[_0xf3123(299)](_0xf3123(350),_0xf3123(295))[_0xf3123(299)](_0xf3123(331),"Setting the log level")[_0xf3123(299)](_0xf3123(396),_0xf3123(388)).option(_0xf3123(383),_0xf3123(358))[_0xf3123(299)](_0xf3123(359),_0xf3123(351))[_0xf3123(299)](_0xf3123(339),_0xf3123(377)).action((()=>{var i=_0xf3123,e=_asyncToGenerator(_regeneratorRuntime()[i(362)](function t(e,n){var o=i;return _regeneratorRuntime()[o(290)](function(t){for(var r=o;;)switch(t[r(354)]=t.next){case 0:return setLoggerConfig(n.logging),t.next=3,ascf[r(360)](e,n);case 3:case r(279):return t[r(397)]()}},t)}));return function(t,r){return e[i(363)](this,arguments)}})()),program.parse(process.argv),global[_0xf3123(297)]=program,global[_0xf3123(369)]=!(null==(_global$_ascfCliProgr=global[_0xf3123(297)][_0xf3123(391)]())||!_global$_ascfCliProgr.debug);
|
|
2
|
+
var _0x261e81=_0x3f39;function _typeof(e){var r=_0x3f39;return(_typeof=r(384)==typeof Symbol&&"symbol"==typeof Symbol[r(428)]?function(e){return typeof e}:function(e){var t=r;return e&&t(384)==typeof Symbol&&e[t(385)]===Symbol&&e!==Symbol[t(452)]?t(371):typeof e})(e)}function _regeneratorRuntime(){var s=_0x3f39;_regeneratorRuntime=function(){return u};var f,u={},e=Object[s(452)],l=e[s(456)],p=Object[s(364)]||function(e,t,r){var n=s;e[t]=r[n(330)]},t=s(384)==typeof Symbol?Symbol:{},i=t.iterator||s(395),r=t[s(341)]||"@@asyncIterator",n=t[s(366)]||"@@toStringTag";function o(e,t,r){return Object[s(364)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o,i,a,u,c=s,t=t&&t.prototype instanceof g?t:g,t=Object[c(338)](t.prototype),n=new L(n||[]);return p(t,c(453),{value:(o=e,i=r,a=n,u=d,function(e,t){var r=_0x3f39;if(u===v)throw Error(r(436));if(u===m){if(r(351)===e)throw t;return{value:f,done:!0}}for(a[r(439)]=e,a.arg=t;;){var n=a[r(416)];if(n){n=function e(t,r){var n=s,o=r[n(439)],i=t[n(428)][o];if(i===f)return r[n(416)]=null,n(351)===o&&t[n(428)].return&&(r[n(439)]=n(430),r[n(414)]=f,e(t,r),n(351)===r[n(439)])||n(430)!==o&&(r.method="throw",r[n(414)]=new TypeError(n(360)+o+n(423))),x;o=h(i,t[n(428)],r[n(414)]);if(n(351)===o[n(440)])return r[n(439)]=n(351),r[n(414)]=o[n(414)],r[n(416)]=null,x;i=o.arg;return i?i[n(381)]?(r[t[n(383)]]=i.value,r.next=t[n(358)],n(430)!==r[n(439)]&&(r[n(439)]=n(441),r[n(414)]=f),r[n(416)]=null,x):i:(r[n(439)]=n(351),r[n(414)]=new TypeError(n(388)),r[n(416)]=null,x)}(n,a);if(n){if(n===x)continue;return n}}if(r(441)===a[r(439)])a[r(368)]=a[r(421)]=a.arg;else if(r(351)===a[r(439)]){if(u===d)throw u=m,a[r(414)];a[r(396)](a[r(414)])}else r(430)===a.method&&a.abrupt(r(430),a[r(414)]);u=v;n=h(o,i,a);if(r(376)===n[r(440)]){if(u=a[r(381)]?m:_,n[r(414)]===x)continue;return{value:n[r(414)],done:a[r(381)]}}r(351)===n.type&&(u=m,a.method=r(351),a[r(414)]=n.arg)}})}),t}function h(e,t,r){var n=s;try{return{type:n(376),arg:e[n(392)](t,r)}}catch(e){return{type:n(351),arg:e}}}u[s(409)]=c;var d=s(432),_="suspendedYield",v=s(431),m=s(378),x={};function g(){}function a(){}function y(){}var t={},b=(o(t,i,function(){return this}),Object.getPrototypeOf),b=b&&b(b(k([]))),w=(b&&b!==e&&l.call(b,i)&&(t=b),y[s(452)]=g[s(452)]=Object[s(338)](t));function j(e){var t=s;[t(441),"throw",t(430)][t(442)](function(t){o(e,t,function(e){return this[_0x3f39(453)](t,e)})})}function S(u,c){var t,o=s;p(this,o(453),{value:function(r,n){function e(){return new c(function(e,t){!function t(e,r,n,o){var i,a=_0x3f39,e=h(u[e],u,r);if(a(351)!==e[a(440)])return(r=(i=e[a(414)])[a(330)])&&a(339)==_typeof(r)&&l[a(392)](r,a(336))?c[a(454)](r[a(336)])[a(455)](function(e){t(a(441),e,n,o)},function(e){t(a(351),e,n,o)}):c[a(454)](r).then(function(e){i[a(330)]=e,n(i)},function(e){return t("throw",e,n,o)});o(e[a(414)])}(r,n,e,t)})}return t=t?t[o(455)](e,e):e()}})}function C(e){var t=s,r={tryLoc:e[0]};1 in e&&(r[t(380)]=e[1]),2 in e&&(r.finallyLoc=e[2],r[t(331)]=e[3]),this[t(443)].push(r)}function E(e){var t=s,r=e[t(370)]||{};r[t(440)]=t(376),delete r[t(414)],e[t(370)]=r}function L(e){var t=s;this.tryEntries=[{tryLoc:t(448)}],e[t(442)](C,this),this[t(390)](!0)}function k(r){var n=s;if(r||""===r){var o,e=r[i];if(e)return e[n(392)](r);if("function"==typeof r[n(441)])return r;if(!isNaN(r.length))return o=-1,(e=function e(){for(var t=n;++o<r[t(415)];)if(l[t(392)](r,o))return e[t(330)]=r[o],e[t(381)]=!1,e;return e[t(330)]=f,e[t(381)]=!0,e})[n(441)]=e}throw new TypeError(_typeof(r)+n(418))}return a[s(452)]=y,p(w,s(385),{value:y,configurable:!0}),p(y,s(385),{value:a,configurable:!0}),a[s(398)]=o(y,n,s(399)),u[s(357)]=function(e){var t=s,e=t(384)==typeof e&&e[t(385)];return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e[t(424)]))},u[s(451)]=function(e){var t=s;return Object[t(342)]?Object[t(342)](e,y):(e[t(426)]=y,o(e,n,"GeneratorFunction")),e[t(452)]=Object[t(338)](w),e},u[s(367)]=function(e){return{__await:e}},j(S[s(452)]),o(S[s(452)],r,function(){return this}),u[s(410)]=S,u.async=function(e,t,r,n,o){var i=s,a=(void 0===o&&(o=Promise),new S(c(e,t,r,n),o));return u[i(357)](t)?a:a.next()[i(455)](function(e){var t=i;return e[t(381)]?e[t(330)]:a[t(441)]()})},j(w),o(w,n,"Generator"),o(w,i,function(){return this}),o(w,"toString",function(){return"[object Generator]"}),u[s(408)]=function(e){var t,n=s,o=Object(e),i=[];for(t in o)i.push(t);return i[n(347)](),function e(){for(var t=n;i[t(415)];){var r=i[t(372)]();if(r in o)return e[t(330)]=r,e.done=!1,e}return e.done=!0,e}},u[s(352)]=k,L[s(452)]={constructor:L,reset:function(e){var t=s;if(this[t(359)]=0,this[t(441)]=0,this.sent=this[t(421)]=f,this[t(381)]=!1,this[t(416)]=null,this[t(439)]=t(441),this.arg=f,this[t(443)].forEach(E),!e)for(var r in this)"t"===r[t(355)](0)&&l.call(this,r)&&!isNaN(+r[t(427)](1))&&(this[r]=f)},stop:function(){var e=s,t=(this[e(381)]=!0,this[e(443)][0][e(370)]);if(e(351)===t[e(440)])throw t[e(414)];return this.rval},dispatchException:function(n){var o=s;if(this[o(381)])throw n;var i=this;function e(e,t){var r=o;return a[r(440)]=r(351),a[r(414)]=n,i[r(441)]=e,t&&(i.method=r(441),i[r(414)]=f),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var r=this[o(443)][t],a=r[o(370)];if("root"===r[o(402)])return e("end");if(r.tryLoc<=this[o(359)]){var u=l[o(392)](r,o(380)),c=l[o(392)](r,"finallyLoc");if(u&&c){if(this[o(359)]<r[o(380)])return e(r[o(380)],!0);if(this[o(359)]<r.finallyLoc)return e(r[o(438)])}else if(u){if(this[o(359)]<r[o(380)])return e(r[o(380)],!0)}else{if(!c)throw Error(o(346));if(this[o(359)]<r[o(438)])return e(r[o(438)])}}}},abrupt:function(e,t){for(var r=s,n=this[r(443)][r(415)]-1;0<=n;--n){var o=this[r(443)][n];if(o[r(402)]<=this[r(359)]&&l[r(392)](o,r(438))&&this[r(359)]<o.finallyLoc){var i=o;break}}var a=(i=i&&(r(459)===e||r(334)===e)&&i[r(402)]<=t&&t<=i[r(438)]?null:i)?i[r(370)]:{};return a.type=e,a[r(414)]=t,i?(this[r(439)]="next",this[r(441)]=i.finallyLoc,x):this[r(335)](a)},complete:function(e,t){var r=s;if(r(351)===e[r(440)])throw e[r(414)];return"break"===e[r(440)]||"continue"===e[r(440)]?this[r(441)]=e.arg:r(430)===e.type?(this.rval=this.arg=e[r(414)],this[r(439)]=r(430),this[r(441)]=r(329)):r(376)===e[r(440)]&&t&&(this.next=t),x},finish:function(e){for(var t=s,r=this.tryEntries[t(415)]-1;0<=r;--r){var n=this[t(443)][r];if(n[t(438)]===e)return this[t(335)](n.completion,n.afterLoc),E(n),x}},catch:function(e){for(var t=s,r=this.tryEntries[t(415)]-1;0<=r;--r){var n,o,i=this.tryEntries[r];if(i[t(402)]===e)return"throw"===(n=i[t(370)])[t(440)]&&(o=n[t(414)],E(i)),o}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){var n=s;return this[n(416)]={iterator:k(e),resultName:t,nextLoc:r},n(441)===this[n(439)]&&(this[n(414)]=f),x}},u}function asyncGeneratorStep(e,t,r,n,o,i,a){var u=_0x3f39;try{var c=e[i](a),s=c[u(330)]}catch(e){return void r(e)}c[u(381)]?t(s):Promise.resolve(s)[u(455)](n,o)}function _0x263c(){var e=["version","action","-c, --clear","arg","length","delegate","--deviceId [deviceId]"," is not iterable","enable debug logging","compile <projectRoot>","_sent","Setting the log level","' method","name","Clear build resource","__proto__","slice","iterator","3543650hWDHsx","return","executing","suspendedStart","Validate path","6300448MFpMyU","compile","Generator is already running","--disableSubpackages [true or false]","finallyLoc","method","type","next","forEach","tryEntries","556548HjzDog","-r, --run [command]","_ascfCliProgram","hook","root","analyze bundle","install","mark","prototype","_invoke","resolve","then","hasOwnProperty","../common/log4js.js","-w, --watch","break","parse","ascf toolkit convert and compile ascf project","Convert miniprogram project to ascf project","Use swc parser, default is babel parser","--templateHoist","-m, --mode","option","310238sMEdsu","end","value","afterLoc","5639328PDnthQ","Command","continue","complete","__await","_ascfDebug","create","object","--serve","asyncIterator","setPrototypeOf","Run command on changes been watched","Watch run for changes","--debug","try statement without catch or finally","reverse","../../package.json","stop","requiredOption","throw","values","opts","command","charAt","219jlAnde","isGeneratorFunction","nextLoc","prev","The iterator does not provide a '","Disable subpackages, default is true for development, false for production","Hoist template to page scope, default is true when have base.hxml","setLoggerConfig","defineProperty","--skipApiValidator [flag]","toStringTag","awrap","sent","-i, --input <input-directory>","completion","symbol","pop","13356288qTiFPC","Not add todo for not supported api.","--analyzeBundle","normal","../commands/ascfbuild","completed","apply","catchLoc","done","Start dev-server","resultName","function","constructor","argv","commander","iterator result is not an object","preAction","reset","--devtool [type]","call","--logging [level]","Clear convert output path","@@iterator","dispatchException","sourcemap type, default is eval-cheap-source-map","displayName","GeneratorFunction","debug","convert","tryLoc","-p, --progress","description","../index","32070jpSltu","Skip API and components validator, default is true","keys","wrap","AsyncIterator"];return(_0x263c=function(){return e})()}function _0x3f39(e,t){var r=_0x263c();return(_0x3f39=function(e,t){return r[e-=325]})(e,t)}function _asyncToGenerator(u){return function(){var e=this,a=arguments;return new Promise(function(t,r){var n=u.apply(e,a);function o(e){asyncGeneratorStep(n,t,r,o,i,_0x3f39(441),e)}function i(e){asyncGeneratorStep(n,t,r,o,i,_0x3f39(351),e)}o(void 0)})}}(()=>{for(var e=_0x3f39,t=_0x263c();;)try{if(884705==-parseInt(e(328))+parseInt(e(406))/2*(parseInt(e(356))/3)+parseInt(e(332))/4+-parseInt(e(429))/5+parseInt(e(444))/6+parseInt(e(434))/7+-parseInt(e(373))/8)break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var _require=require(_0x261e81(387)),Command=_require[_0x261e81(333)],pkg=require(_0x261e81(348)),program=new Command,_require2=require(_0x261e81(457)),setLoggerConfig=_require2[_0x261e81(363)],buildNpmCmd=require("../commands/build-npm"),debuggerCmd=require("../commands/debugger"),ascfbuildCmd=require(_0x261e81(377)),cmds=[buildNpmCmd,debuggerCmd,ascfbuildCmd];program[_0x261e81(411)](pkg[_0x261e81(411)])[_0x261e81(404)](_0x261e81(461))[_0x261e81(327)](_0x261e81(393),_0x261e81(422))[_0x261e81(327)](_0x261e81(345),_0x261e81(419)),program[_0x261e81(447)](_0x261e81(389),function(){var e,t=_0x261e81;setLoggerConfig(null==(e=program[t(353)]())?void 0:e.logging),global[t(446)]=program,global[t(337)]=!(null==(e=program[t(353)]())||!e[t(400)])}),program[_0x261e81(354)](_0x261e81(401)).description(_0x261e81(462))[_0x261e81(350)](_0x261e81(369))[_0x261e81(350)]("-o, --output <output-directory>").option(_0x261e81(413),_0x261e81(394))[_0x261e81(327)]("-va, --validate",_0x261e81(433))[_0x261e81(327)]("-notaddtodo, --notaddtodo",_0x261e81(374))[_0x261e81(412)]((()=>{var t=_0x261e81,r=_asyncToGenerator(_regeneratorRuntime()[t(451)](function e(r){var n=t;return _regeneratorRuntime()[n(409)](function(e){for(var t=n;;)switch(e[t(359)]=e[t(441)]){case 0:return e[t(441)]=2,require(t(405)).convert(r);case 2:case t(329):return e[t(349)]()}},e)}));return function(e){return r[t(379)](this,arguments)}})()),program.command(_0x261e81(420)).description("Compile ascf project").option(_0x261e81(403),"Show build progress").option(_0x261e81(458),_0x261e81(344))[_0x261e81(327)](_0x261e81(326),"Environment, empty is production, -m is development").option("-c, --clear",_0x261e81(425))[_0x261e81(327)](_0x261e81(445),_0x261e81(343))[_0x261e81(327)]("--swc",_0x261e81(463)).option(_0x261e81(391),_0x261e81(397)).option(_0x261e81(437),_0x261e81(361))[_0x261e81(327)](_0x261e81(375),_0x261e81(449),!1).option(_0x261e81(325),_0x261e81(362))[_0x261e81(327)](_0x261e81(365),_0x261e81(407))[_0x261e81(327)](_0x261e81(340),_0x261e81(382)).option(_0x261e81(417),"select a device to start hot reload").action((()=>{var i=_0x261e81,r=_asyncToGenerator(_regeneratorRuntime()[i(451)](function e(r,n){var o=i;return _regeneratorRuntime()[o(409)](function(e){for(var t=o;;)switch(e.prev=e[t(441)]){case 0:return e.next=2,require(t(405))[t(435)](r,n);case 2:case"end":return e[t(349)]()}},e)}));return function(e,t){return r[i(379)](this,arguments)}})()),cmds[_0x261e81(442)](function(e){return e[_0x261e81(450)](program)}),program[_0x261e81(460)](process[_0x261e81(386)]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _typeof(t){var e=_0x34d7;return(_typeof=e(351)==typeof Symbol&&e(336)==typeof Symbol[e(316)]?function(t){return typeof t}:function(t){var r=e;return t&&r(351)==typeof Symbol&&t.constructor===Symbol&&t!==Symbol[r(327)]?r(336):typeof t})(t)}function _regeneratorRuntime(){var s=_0x34d7;_regeneratorRuntime=function(){return c};var f,c={},t=Object[s(327)],h=t[s(362)],l=Object.defineProperty||function(t,r,e){var n=s;t[r]=e[n(317)]},r=s(351)==typeof Symbol?Symbol:{},i=r[s(316)]||s(337),e=r[s(332)]||s(309),n=r[s(271)]||s(277);function o(t,r,e){return Object[s(335)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function u(t,r,e,n){var o,i,a,c,u=s,r=r&&r.prototype instanceof b?r:b,r=Object[u(338)](r[u(327)]),n=new L(n||[]);return l(r,u(311),{value:(o=t,i=e,a=n,c=v,function(t,r){var e=_0x34d7;if(c===d)throw Error(e(278));if(c===m){if(e(314)===t)throw r;return{value:f,done:!0}}for(a[e(354)]=t,a[e(323)]=r;;){var n=a[e(280)];if(n){n=function t(r,e){var n=s,o=e[n(354)],i=r.iterator[o];if(i===f)return e[n(280)]=null,n(314)===o&&r.iterator[n(333)]&&(e[n(354)]=n(333),e[n(323)]=f,t(r,e),"throw"===e[n(354)])||n(333)!==o&&(e[n(354)]=n(314),e[n(323)]=new TypeError(n(321)+o+n(334))),_;o=p(i,r.iterator,e[n(323)]);if("throw"===o[n(274)])return e.method=n(314),e[n(323)]=o[n(323)],e.delegate=null,_;i=o[n(323)];return i?i[n(282)]?(e[r[n(310)]]=i[n(317)],e[n(305)]=r[n(319)],n(333)!==e[n(354)]&&(e[n(354)]=n(305),e[n(323)]=f),e[n(280)]=null,_):i:(e[n(354)]=n(314),e[n(323)]=new TypeError(n(290)),e[n(280)]=null,_)}(n,a);if(n){if(n===_)continue;return n}}if(e(305)===a[e(354)])a[e(367)]=a._sent=a.arg;else if(e(314)===a[e(354)]){if(c===v)throw c=m,a[e(323)];a[e(339)](a[e(323)])}else e(333)===a[e(354)]&&a[e(356)](e(333),a[e(323)]);c=d;n=p(o,i,a);if("normal"===n[e(274)]){if(c=a[e(282)]?m:y,n.arg===_)continue;return{value:n.arg,done:a.done}}e(314)===n[e(274)]&&(c=m,a[e(354)]="throw",a[e(323)]=n.arg)}})}),r}function p(t,r,e){var n=s;try{return{type:"normal",arg:t[n(320)](r,e)}}catch(t){return{type:n(314),arg:t}}}c[s(312)]=u;var v=s(306),y=s(303),d="executing",m=s(308),_={};function b(){}function a(){}function w(){}var r={},x=(o(r,i,function(){return this}),Object[s(325)]),x=x&&x(x(E([]))),g=(x&&x!==t&&h[s(320)](x,i)&&(r=x),w[s(327)]=b.prototype=Object[s(338)](r));function j(t){var r=s;[r(305),r(314),r(333)].forEach(function(r){o(t,r,function(t){return this[_0x34d7(311)](r,t)})})}function I(c,u){var r,o=s;l(this,o(311),{value:function(e,n){function t(){return new u(function(t,r){!function r(t,e,n,o){var i,a=_0x34d7,t=p(c[t],c,e);if("throw"!==t.type)return(e=(i=t[a(323)]).value)&&a(279)==_typeof(e)&&h[a(320)](e,a(285))?u.resolve(e.__await).then(function(t){r(a(305),t,n,o)},function(t){r("throw",t,n,o)}):u[a(268)](e).then(function(t){i[a(317)]=t,n(i)},function(t){return r(a(314),t,n,o)});o(t[a(323)])}(e,n,t,r)})}return r=r?r[o(345)](t,t):t()}})}function O(t){var r=s,e={tryLoc:t[0]};1 in t&&(e[r(304)]=t[1]),2 in t&&(e.finallyLoc=t[2],e[r(315)]=t[3]),this[r(289)].push(e)}function S(t){var r=s,e=t[r(283)]||{};e.type=r(307),delete e[r(323)],t[r(283)]=e}function L(t){var r=s;this[r(289)]=[{tryLoc:"root"}],t.forEach(O,this),this[r(292)](!0)}function E(e){var n=s;if(e||""===e){var o,t=e[i];if(t)return t[n(320)](e);if(n(351)==typeof e.next)return e;if(!isNaN(e[n(281)]))return o=-1,(t=function t(){for(var r=n;++o<e[r(281)];)if(h[r(320)](e,o))return t[r(317)]=e[o],t.done=!1,t;return t[r(317)]=f,t.done=!0,t})[n(305)]=t}throw new TypeError(_typeof(e)+n(276))}return a[s(327)]=w,l(g,s(269),{value:w,configurable:!0}),l(w,s(269),{value:a,configurable:!0}),a[s(272)]=o(w,n,"GeneratorFunction"),c[s(313)]=function(t){var r=s,t=r(351)==typeof t&&t[r(269)];return!!t&&(t===a||r(294)===(t[r(272)]||t.name))},c[s(331)]=function(t){var r=s;return Object.setPrototypeOf?Object[r(286)](t,w):(t[r(343)]=w,o(t,n,"GeneratorFunction")),t.prototype=Object[r(338)](g),t},c[s(302)]=function(t){return{__await:t}},j(I[s(327)]),o(I[s(327)],e,function(){return this}),c.AsyncIterator=I,c[s(366)]=function(t,r,e,n,o){var i=s,a=(void 0===o&&(o=Promise),new I(u(t,r,e,n),o));return c[i(313)](r)?a:a[i(305)]()[i(345)](function(t){var r=i;return t[r(282)]?t.value:a[r(305)]()})},j(g),o(g,n,s(358)),o(g,i,function(){return this}),o(g,s(364),function(){return s(296)}),c.keys=function(t){var r,n=s,o=Object(t),i=[];for(r in o)i.push(r);return i[n(361)](),function t(){for(var r=n;i[r(281)];){var e=i.pop();if(e in o)return t.value=e,t[r(282)]=!1,t}return t[r(282)]=!0,t}},c[s(355)]=E,L[s(327)]={constructor:L,reset:function(t){var r=s;if(this[r(346)]=0,this[r(305)]=0,this[r(367)]=this[r(273)]=f,this[r(282)]=!1,this[r(280)]=null,this[r(354)]=r(305),this[r(323)]=f,this[r(289)][r(363)](S),!t)for(var e in this)"t"===e.charAt(0)&&h.call(this,e)&&!isNaN(+e[r(301)](1))&&(this[e]=f)},stop:function(){var t=s,r=(this.done=!0,this[t(289)][0][t(283)]);if(t(314)===r[t(274)])throw r[t(323)];return this[t(349)]},dispatchException:function(n){var t=s;if(this.done)throw n;var o=this;function r(t,r){var e=_0x34d7;return a[e(274)]=e(314),a[e(323)]=n,o[e(305)]=t,r&&(o[e(354)]="next",o.arg=f),!!r}for(var e=this[t(289)][t(281)]-1;0<=e;--e){var i=this[t(289)][e],a=i[t(283)];if("root"===i[t(365)])return r(t(350));if(i[t(365)]<=this[t(346)]){var c=h[t(320)](i,"catchLoc"),u=h.call(i,t(322));if(c&&u){if(this[t(346)]<i[t(304)])return r(i[t(304)],!0);if(this[t(346)]<i.finallyLoc)return r(i[t(322)])}else if(c){if(this.prev<i[t(304)])return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[t(346)]<i[t(322)])return r(i[t(322)])}}}},abrupt:function(t,r){for(var e=s,n=this[e(289)][e(281)]-1;0<=n;--n){var o=this[e(289)][n];if(o.tryLoc<=this[e(346)]&&h[e(320)](o,e(322))&&this[e(346)]<o[e(322)]){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i[e(322)]?null:i)?i[e(283)]:{};return a.type=t,a[e(323)]=r,i?(this[e(354)]="next",this.next=i[e(322)],_):this[e(275)](a)},complete:function(t,r){var e=s;if(e(314)===t.type)throw t[e(323)];return e(295)===t.type||e(284)===t.type?this[e(305)]=t.arg:e(333)===t[e(274)]?(this[e(349)]=this[e(323)]=t[e(323)],this[e(354)]=e(333),this.next="end"):e(307)===t[e(274)]&&r&&(this[e(305)]=r),_},finish:function(t){for(var r=s,e=this[r(289)][r(281)]-1;0<=e;--e){var n=this[r(289)][e];if(n[r(322)]===t)return this.complete(n[r(283)],n[r(315)]),S(n),_}},catch:function(t){for(var r=s,e=this.tryEntries[r(281)]-1;0<=e;--e){var n,o,i=this[r(289)][e];if(i[r(365)]===t)return n=i.completion,r(314)===n[r(274)]&&(o=n[r(323)],S(i)),o}throw Error(r(340))},delegateYield:function(t,r,e){var n=s;return this[n(280)]={iterator:E(t),resultName:r,nextLoc:e},n(305)===this[n(354)]&&(this.arg=f),_}},c}function asyncGeneratorStep(t,r,e,n,o,i,a){var c=_0x34d7;try{var u=t[i](a),s=u[c(317)]}catch(t){return void e(t)}u[c(282)]?r(s):Promise[c(268)](s).then(n,o)}function _0x34d7(t,r){var e=_0x1263();return(_0x34d7=function(t,r){return e[t-=268]})(t,r)}function _asyncToGenerator(u){return function(){var t=this,c=arguments;return new Promise(function(r,e){var n=_0x34d7,o=u[n(352)](t,c);function i(t){asyncGeneratorStep(o,r,e,i,a,n(305),t)}function a(t){asyncGeneratorStep(o,r,e,i,a,n(314),t)}i(void 0)})}}function _0x1263(){var t=["2750OfQQyv","__proto__","289773KSCjYS","then","prev","148MCbATI","cwd","rval","end","function","apply","-t, --deviceId [deviceId]","method","values","abrupt","1883922XHRUOc","Generator","42477HJrYZh","action","reverse","hasOwnProperty","forEach","toString","tryLoc","async","sent","start","description","resolve","constructor","95695PpOsZM","toStringTag","displayName","_sent","type","complete"," is not iterable","@@toStringTag","Generator is already running","object","delegate","length","done","completion","continue","__await","setPrototypeOf","4801174RSxyQf","210BQLdAx","tryEntries","iterator result is not an object","chdir","reset","assembleAndInstallHap","GeneratorFunction","break","[object Generator]","37543Qkhayp","handle","projectRoot","8eEWpAC","slice","awrap","suspendedYield","catchLoc","next","suspendedStart","normal","completed","@@asyncIterator","resultName","_invoke","wrap","isGeneratorFunction","throw","afterLoc","iterator","value","1518777mlakhA","nextLoc","call","The iterator does not provide a '","finallyLoc","arg","command","getPrototypeOf","option","prototype","installHap","uninstall","select a device","mark","asyncIterator","return","' method","defineProperty","symbol","@@iterator","create","dispatchException","illegal catch attempt","stop"];return(_0x1263=function(){return t})()}(()=>{for(var t=_0x34d7,r=_0x1263();;)try{if(990444==+parseInt(t(344))+-parseInt(t(288))/2*(parseInt(t(359))/3)+parseInt(t(347))/4*(parseInt(t(270))/5)+-parseInt(t(357))/6+parseInt(t(287))/7+parseInt(t(300))/8*(parseInt(t(318))/9)+-parseInt(t(342))/10*(-parseInt(t(297))/11))break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var _require=require("../../ascf-base"),AscfBuilder=_require.AscfBuilder;module.exports={install:function(t){function e(o){return r=_0x34d7,e=_asyncToGenerator(_regeneratorRuntime()[r(331)](function t(e){var n=r;return _regeneratorRuntime()[n(312)](function(t){for(var r=n;;)switch(t[r(346)]=t.next){case 0:e[r(299)]?process[r(291)](e[r(299)]):e[r(299)]=process[r(348)](),new AscfBuilder(e)[r(298)](o);case 3:case r(350):return t[r(341)]()}},t)})),function(t){return e[r(352)](this,arguments)};var r,e}var n=_0x34d7,o=t.command("build");["installDeps","assembleHap","clean"][n(363)](function(t){var r=n;o[r(324)](t)[r(369)](t)[r(326)]("-r, --projectRoot [projectRoot]",r(299)).action(e(t))}),[n(328),n(293),n(329),n(368)][n(363)](function(t){var r=n;o.command(t).description(t)[r(326)]("-r, --projectRoot [projectRoot]",r(299))[r(326)](r(353),r(330))[r(360)](e(t))})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x3045b6=_0x3de3;function _typeof(t){var e=_0x3de3;return(_typeof=e(253)==typeof Symbol&&e(257)==typeof Symbol[e(336)]?function(t){return typeof t}:function(t){var r=e;return t&&r(253)==typeof Symbol&&t[r(325)]===Symbol&&t!==Symbol[r(313)]?r(257):typeof t})(t)}function _regeneratorRuntime(){var s=_0x3de3;_regeneratorRuntime=function(){return u};var f,u={},t=Object[s(313)],l=t[s(304)],p=Object[s(330)]||function(t,r,e){t[r]=e.value},r=s(253)==typeof Symbol?Symbol:{},i=r[s(336)]||s(308),e=r[s(361)]||s(351),n=r[s(283)]||s(322);function o(t,r,e){return Object[s(330)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function c(t,r,e,n){var o,i,a,u,c=s,r=r&&r.prototype instanceof b?r:b,r=Object[c(298)](r[c(313)]),n=new O(n||[]);return p(r,c(359),{value:(o=t,i=e,a=n,u=v,function(t,r){var e=_0x3de3;if(u===y)throw Error("Generator is already running");if(u===m){if(e(338)===t)throw r;return{value:f,done:!0}}for(a.method=t,a[e(262)]=r;;){var n=a[e(263)];if(n){n=function t(r,e){var n=s,o=e[n(324)],i=r[n(336)][o];if(i===f)return e[n(263)]=null,n(338)===o&&r[n(336)].return&&(e[n(324)]=n(348),e[n(262)]=f,t(r,e),n(338)===e[n(324)])||n(348)!==o&&(e.method=n(338),e[n(262)]=new TypeError(n(297)+o+n(340))),_;o=h(i,r[n(336)],e[n(262)]);if(n(338)===o.type)return e.method="throw",e[n(262)]=o[n(262)],e[n(263)]=null,_;i=o[n(262)];return i?i[n(329)]?(e[r[n(349)]]=i[n(353)],e[n(272)]=r[n(344)],n(348)!==e[n(324)]&&(e[n(324)]="next",e.arg=f),e.delegate=null,_):i:(e[n(324)]="throw",e[n(262)]=new TypeError(n(333)),e[n(263)]=null,_)}(n,a);if(n){if(n===_)continue;return n}}if(e(272)===a[e(324)])a[e(356)]=a[e(321)]=a[e(262)];else if(e(338)===a[e(324)]){if(u===v)throw u=m,a[e(262)];a[e(296)](a[e(262)])}else e(348)===a.method&&a[e(346)](e(348),a[e(262)]);u=y;n=h(o,i,a);if(e(306)===n[e(295)]){if(u=a.done?m:d,n[e(262)]===_)continue;return{value:n[e(262)],done:a[e(329)]}}e(338)===n.type&&(u=m,a[e(324)]=e(338),a[e(262)]=n[e(262)])}})}),r}function h(t,r,e){var n=s;try{return{type:n(306),arg:t.call(r,e)}}catch(t){return{type:n(338),arg:t}}}u[s(264)]=c;var v="suspendedStart",d=s(310),y=s(252),m=s(280),_={};function b(){}function a(){}function g(){}var r={},x=(o(r,i,function(){return this}),Object.getPrototypeOf),x=x&&x(x(E([]))),w=(x&&x!==t&&l.call(x,i)&&(r=x),g.prototype=b[s(313)]=Object[s(298)](r));function j(t){var r=s;[r(272),r(338),r(348)][r(318)](function(r){o(t,r,function(t){return this._invoke(r,t)})})}function S(u,c){var r;p(this,s(359),{value:function(e,n){function t(){return new c(function(t,r){!function r(t,e,n,o){var i,a=_0x3de3,t=h(u[t],u,e);if(a(338)!==t[a(295)])return(e=(i=t[a(262)]).value)&&a(311)==_typeof(e)&&l[a(287)](e,"__await")?c[a(277)](e[a(250)])[a(293)](function(t){r(a(272),t,n,o)},function(t){r("throw",t,n,o)}):c[a(277)](e)[a(293)](function(t){i[a(353)]=t,n(i)},function(t){return r(a(338),t,n,o)});o(t[a(262)])}(e,n,t,r)})}return r=r?r.then(t,t):t()}})}function N(t){var r=s,e={tryLoc:t[0]};1 in t&&(e[r(316)]=t[1]),2 in t&&(e[r(360)]=t[2],e[r(315)]=t[3]),this.tryEntries.push(e)}function L(t){var r=s,e=t[r(285)]||{};e[r(295)]=r(306),delete e[r(262)],t[r(285)]=e}function O(t){var r=s;this[r(354)]=[{tryLoc:r(317)}],t[r(318)](N,this),this[r(258)](!0)}function E(e){var n=s;if(e||""===e){var o,t=e[i];if(t)return t[n(287)](e);if("function"==typeof e[n(272)])return e;if(!isNaN(e[n(339)]))return o=-1,(t=function t(){for(var r=n;++o<e.length;)if(l[r(287)](e,o))return t[r(353)]=e[o],t[r(329)]=!1,t;return t[r(353)]=f,t[r(329)]=!0,t})[n(272)]=t}throw new TypeError(_typeof(e)+" is not iterable")}return p(w,"constructor",{value:a.prototype=g,configurable:!0}),p(g,s(325),{value:a,configurable:!0}),a[s(289)]=o(g,n,"GeneratorFunction"),u.isGeneratorFunction=function(t){var r=s,t="function"==typeof t&&t[r(325)];return!!t&&(t===a||r(303)===(t[r(289)]||t[r(276)]))},u[s(319)]=function(t){var r=s;return Object[r(281)]?Object[r(281)](t,g):(t[r(328)]=g,o(t,n,r(303))),t.prototype=Object[r(298)](w),t},u[s(305)]=function(t){return{__await:t}},j(S.prototype),o(S.prototype,e,function(){return this}),u[s(284)]=S,u[s(362)]=function(t,r,e,n,o){var i=s,a=(void 0===o&&(o=Promise),new S(c(t,r,e,n),o));return u[i(331)](r)?a:a[i(272)]()[i(293)](function(t){var r=i;return t[r(329)]?t[r(353)]:a[r(272)]()})},j(w),o(w,n,s(312)),o(w,i,function(){return this}),o(w,s(273),function(){return"[object Generator]"}),u[s(286)]=function(t){var r,n=s,o=Object(t),i=[];for(r in o)i[n(278)](r);return i[n(350)](),function t(){for(var r=n;i.length;){var e=i[r(341)]();if(e in o)return t.value=e,t[r(329)]=!1,t}return t[r(329)]=!0,t}},u.values=E,O[s(313)]={constructor:O,reset:function(t){var r=s;if(this[r(267)]=0,this[r(272)]=0,this[r(356)]=this[r(321)]=f,this[r(329)]=!1,this[r(263)]=null,this.method="next",this.arg=f,this[r(354)][r(318)](L),!t)for(var e in this)"t"===e[r(256)](0)&&l[r(287)](this,e)&&!isNaN(+e[r(314)](1))&&(this[e]=f)},stop:function(){var t=s,r=(this[t(329)]=!0,this[t(354)][0][t(285)]);if(t(338)===r.type)throw r.arg;return this[t(320)]},dispatchException:function(n){var o=s;if(this[o(329)])throw n;var i=this;function t(t,r){var e=o;return a[e(295)]=e(338),a[e(262)]=n,i.next=t,r&&(i[e(324)]=e(272),i[e(262)]=f),!!r}for(var r=this[o(354)][o(339)]-1;0<=r;--r){var e=this[o(354)][r],a=e[o(285)];if(o(317)===e[o(355)])return t(o(301));if(e[o(355)]<=this[o(267)]){var u=l[o(287)](e,o(316)),c=l.call(e,o(360));if(u&&c){if(this[o(267)]<e[o(316)])return t(e[o(316)],!0);if(this.prev<e[o(360)])return t(e.finallyLoc)}else if(u){if(this.prev<e[o(316)])return t(e[o(316)],!0)}else{if(!c)throw Error(o(343));if(this.prev<e.finallyLoc)return t(e[o(360)])}}}},abrupt:function(t,r){for(var e=s,n=this[e(354)][e(339)]-1;0<=n;--n){var o=this.tryEntries[n];if(o[e(355)]<=this[e(267)]&&l[e(287)](o,e(360))&&this.prev<o[e(360)]){var i=o;break}}var a=(i=i&&(e(275)===t||e(248)===t)&&i[e(355)]<=r&&r<=i[e(360)]?null:i)?i[e(285)]:{};return a[e(295)]=t,a[e(262)]=r,i?(this[e(324)]=e(272),this[e(272)]=i.finallyLoc,_):this[e(260)](a)},complete:function(t,r){var e=s;if(e(338)===t[e(295)])throw t[e(262)];return"break"===t[e(295)]||e(248)===t.type?this[e(272)]=t[e(262)]:e(348)===t[e(295)]?(this[e(320)]=this[e(262)]=t.arg,this[e(324)]="return",this[e(272)]=e(301)):"normal"===t[e(295)]&&r&&(this.next=r),_},finish:function(t){for(var r=s,e=this[r(354)][r(339)]-1;0<=e;--e){var n=this[r(354)][e];if(n[r(360)]===t)return this[r(260)](n[r(285)],n.afterLoc),L(n),_}},catch:function(t){for(var r=s,e=this[r(354)][r(339)]-1;0<=e;--e){var n,o,i=this.tryEntries[e];if(i[r(355)]===t)return"throw"===(n=i[r(285)])[r(295)]&&(o=n[r(262)],L(i)),o}throw Error(r(292))},delegateYield:function(t,r,e){var n=s;return this[n(263)]={iterator:E(t),resultName:r,nextLoc:e},n(272)===this[n(324)]&&(this[n(262)]=f),_}},u}function asyncGeneratorStep(t,r,e,n,o,i,a){var u=_0x3de3;try{var c=t[i](a),s=c[u(353)]}catch(t){return void e(t)}c[u(329)]?r(s):Promise.resolve(s)[u(293)](n,o)}function _asyncToGenerator(u){return function(){var t=this,a=arguments;return new Promise(function(r,e){var n=u.apply(t,a);function o(t){asyncGeneratorStep(n,r,e,o,i,_0x3de3(272),t)}function i(t){asyncGeneratorStep(n,r,e,o,i,_0x3de3(338),t)}o(void 0)})}}(()=>{for(var t=_0x3de3,r=_0x5254();;)try{if(119141==+parseInt(t(251))+-parseInt(t(282))/2+parseInt(t(261))/3*(parseInt(t(307))/4)+-parseInt(t(337))/5+-parseInt(t(332))/6*(parseInt(t(291))/7)+parseInt(t(266))/8+parseInt(t(345))/9)break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var _require=require("../../common/utils"),readJsonFile=_require[_0x3045b6(323)],hasHxml=_require[_0x3045b6(259)],moveFiles=_require[_0x3045b6(309)],path=require("path"),fs=require("fs"),log4js=require(_0x3045b6(327)),logger=log4js[_0x3045b6(265)](_0x3045b6(268));function buildMiniProgramNpm(t){var r=_0x3045b6,e=readJsonFile(path[r(288)](t,"ascf",r(342),"package.json"));if(e==={})logger[r(255)](r(335));else{if(e[r(302)])for(var n in e[r(302)])if(Object[r(313)][r(304)][r(287)](e[r(302)],n)){var o=path[r(288)](t,"ascf",r(342),r(326),n);if(!fs.existsSync(o)){var i=path[r(288)](t,r(299),r(342),"node_modules",n);if(!fs[r(357)](i))return void logger[r(279)]("".concat(n,r(358))[r(290)](n,"."));hasHxml(i)&&(n=readJsonFile(path[r(288)](i,r(254)))[r(294)],moveFiles(n?path[r(288)](i,n):i,o))}}logger[r(300)](r(334))}}function _0x3de3(t,r){var e=_0x5254();return(_0x3de3=function(t,r){return e[t-=248]})(t,r)}function _0x5254(){var t=["8QdTSjS","@@iterator","moveFiles","suspendedYield","object","Generator","prototype","slice","afterLoc","catchLoc","root","forEach","mark","rval","_sent","@@toStringTag","readJsonFile","method","constructor","miniprogram_npm","../../common/log4js","__proto__","done","defineProperty","isGeneratorFunction","138kXhrQj","iterator result is not an object","All npm dependencies has been built.","Dependencies info not found.","iterator","522160hauJuB","throw","length","' method","pop","ascf_src","try statement without catch or finally","nextLoc","1809396rxVLxv","abrupt","exports","return","resultName","reverse","@@asyncIterator","buildNpm <projectRoot>","value","tryEntries","tryLoc","sent","existsSync"," not found in node_modules, please run npm install ","_invoke","finallyLoc","asyncIterator","async","continue","Build ASCF npm dependencies to miniprogram_npm","__await","114196mTDXtk","executing","function","package.json","warn","charAt","symbol","reset","hasHxml","complete","74631sNuiUB","arg","delegate","wrap","getLogger","223184bSOpqk","prev","buildNpm","stop","action","apply","next","toString","description","break","name","resolve","push","error","completed","setPrototypeOf","204180TGNZKe","toStringTag","AsyncIterator","completion","keys","call","join","displayName","concat","20461YLCXGR","illegal catch attempt","then","miniprogram","type","dispatchException","The iterator does not provide a '","create","ascf","info","end","dependencies","GeneratorFunction","hasOwnProperty","awrap","normal"];return(_0x5254=function(){return t})()}function buildNpm(t){try{buildMiniProgramNpm(t)}catch(t){logger.error("Error: ascf buildNpm error: ".concat(t,"."))}}module[_0x3045b6(347)]={buildNpm:buildNpm,install:function(t){var o,e,r=_0x3045b6;t.command(r(352))[r(274)](r(249))[r(270)]((o=r,e=_asyncToGenerator(_regeneratorRuntime()[o(319)](function t(e,r){var n=o;return _regeneratorRuntime()[n(264)](function(t){for(var r=n;;)switch(t.prev=t[r(272)]){case 0:buildNpm(e);case 1:case"end":return t[r(269)]()}},t)})),function(t,r){return e[o(271)](this,arguments)}))}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x4cf00a=_0x2d91;function _typeof(t){var e=_0x2d91;return(_typeof=e(299)==typeof Symbol&&e(321)==typeof Symbol[e(259)]?function(t){return typeof t}:function(t){var r=e;return t&&r(299)==typeof Symbol&&t.constructor===Symbol&&t!==Symbol[r(312)]?r(321):typeof t})(t)}function _regeneratorRuntime(){var f=_0x2d91;_regeneratorRuntime=function(){return u};var s,u={},t=Object[f(312)],h=t.hasOwnProperty,l=Object[f(296)]||function(t,r,e){t[r]=e.value},r=f(299)==typeof Symbol?Symbol:{},i=r[f(259)]||f(303),e=r[f(273)]||f(341),n=r.toStringTag||f(279);function o(t,r,e){return Object[f(296)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function c(t,r,e,n){var o,i,a,u,c=f,r=r&&r[c(312)]instanceof m?r:m,r=Object[c(332)](r[c(312)]),n=new E(n||[]);return l(r,c(260),{value:(o=t,i=e,a=n,u=p,function(t,r){var e=_0x2d91;if(u===y)throw Error(e(277));if(u===b){if(e(261)===t)throw r;return{value:s,done:!0}}for(a.method=t,a[e(263)]=r;;){var n=a[e(272)];if(n){n=function t(r,e){var n=f,o=e.method,i=r[n(259)][o];if(i===s)return e[n(272)]=null,"throw"===o&&r.iterator[n(346)]&&(e.method=n(346),e[n(263)]=s,t(r,e),n(261)===e.method)||n(346)!==o&&(e.method=n(261),e.arg=new TypeError(n(255)+o+"' method")),g;o=v(i,r[n(259)],e.arg);if("throw"===o.type)return e.method="throw",e[n(263)]=o[n(263)],e[n(272)]=null,g;i=o.arg;return i?i.done?(e[r[n(311)]]=i[n(350)],e[n(351)]=r[n(254)],n(346)!==e[n(315)]&&(e[n(315)]="next",e.arg=s),e.delegate=null,g):i:(e[n(315)]=n(261),e.arg=new TypeError(n(286)),e[n(272)]=null,g)}(n,a);if(n){if(n===g)continue;return n}}if(e(351)===a[e(315)])a[e(348)]=a[e(288)]=a[e(263)];else if("throw"===a.method){if(u===p)throw u=b,a[e(263)];a[e(349)](a[e(263)])}else e(346)===a[e(315)]&&a[e(308)](e(346),a[e(263)]);u=y;n=v(o,i,a);if(e(262)===n[e(268)]){if(u=a.done?b:d,n.arg===g)continue;return{value:n[e(263)],done:a[e(258)]}}e(261)===n.type&&(u=b,a.method=e(261),a[e(263)]=n.arg)}})}),r}function v(t,r,e){var n=f;try{return{type:n(262),arg:t[n(269)](r,e)}}catch(t){return{type:n(261),arg:t}}}u[f(293)]=c;var p=f(294),d=f(304),y=f(287),b="completed",g={};function m(){}function a(){}function _(){}var r={},w=(o(r,i,function(){return this}),Object.getPrototypeOf),w=w&&w(w(N([]))),x=(w&&w!==t&&h.call(w,i)&&(r=w),_.prototype=m[f(312)]=Object[f(332)](r));function I(t){var r=f;["next",r(261),r(346)].forEach(function(r){o(t,r,function(t){return this[_0x2d91(260)](r,t)})})}function j(u,c){var r,o=f;l(this,o(260),{value:function(e,n){function t(){return new c(function(t,r){!function r(t,e,n,o){var i,a=_0x2d91,t=v(u[t],u,e);if("throw"!==t[a(268)])return(e=(i=t.arg)[a(350)])&&"object"==_typeof(e)&&h[a(269)](e,a(301))?c[a(276)](e[a(301)]).then(function(t){r(a(351),t,n,o)},function(t){r(a(261),t,n,o)}):c[a(276)](e)[a(256)](function(t){i[a(350)]=t,n(i)},function(t){return r("throw",t,n,o)});o(t[a(263)])}(e,n,t,r)})}return r=r?r[o(256)](t,t):t()}})}function O(t){var r=f,e={tryLoc:t[0]};1 in t&&(e[r(257)]=t[1]),2 in t&&(e[r(266)]=t[2],e.afterLoc=t[3]),this.tryEntries[r(316)](e)}function S(t){var r=f,e=t[r(274)]||{};e[r(268)]="normal",delete e.arg,t[r(274)]=e}function E(t){var r=f;this.tryEntries=[{tryLoc:r(331)}],t[r(317)](O,this),this[r(335)](!0)}function N(e){var n=f;if(e||""===e){var o,t=e[i];if(t)return t[n(269)](e);if(n(299)==typeof e[n(351)])return e;if(!isNaN(e.length))return o=-1,(t=function t(){for(var r=n;++o<e[r(314)];)if(h[r(269)](e,o))return t[r(350)]=e[o],t[r(258)]=!1,t;return t[r(350)]=s,t[r(258)]=!0,t})[n(351)]=t}throw new TypeError(_typeof(e)+n(333))}return a.prototype=_,l(x,f(298),{value:_,configurable:!0}),l(_,f(298),{value:a,configurable:!0}),a[f(275)]=o(_,n,f(313)),u[f(271)]=function(t){var r=f,t=r(299)==typeof t&&t[r(298)];return!!t&&(t===a||r(313)===(t[r(275)]||t[r(306)]))},u[f(325)]=function(t){var r=f;return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,o(t,n,r(313))),t.prototype=Object[r(332)](x),t},u.awrap=function(t){return{__await:t}},I(j[f(312)]),o(j[f(312)],e,function(){return this}),u[f(310)]=j,u.async=function(t,r,e,n,o){var i=f,a=(void 0===o&&(o=Promise),new j(c(t,r,e,n),o));return u[i(271)](r)?a:a[i(351)]()[i(256)](function(t){var r=i;return t[r(258)]?t[r(350)]:a[r(351)]()})},I(x),o(x,n,f(322)),o(x,i,function(){return this}),o(x,f(330),function(){return f(329)}),u[f(302)]=function(t){var r,n=f,o=Object(t),i=[];for(r in o)i.push(r);return i[n(319)](),function t(){for(var r=n;i[r(314)];){var e=i[r(282)]();if(e in o)return t.value=e,t[r(258)]=!1,t}return t[r(258)]=!0,t}},u[f(355)]=N,E[f(312)]={constructor:E,reset:function(t){var r=f;if(this[r(343)]=0,this[r(351)]=0,this[r(348)]=this._sent=s,this[r(258)]=!1,this[r(272)]=null,this[r(315)]=r(351),this[r(263)]=s,this[r(253)][r(317)](S),!t)for(var e in this)"t"===e[r(342)](0)&&h.call(this,e)&&!isNaN(+e[r(344)](1))&&(this[e]=s)},stop:function(){var t=f,r=(this.done=!0,this[t(253)][0][t(274)]);if(t(261)===r[t(268)])throw r[t(263)];return this.rval},dispatchException:function(n){var o=f;if(this[o(258)])throw n;var i=this;function t(t,r){var e=o;return a[e(268)]=e(261),a[e(263)]=n,i.next=t,r&&(i.method=e(351),i[e(263)]=s),!!r}for(var r=this[o(253)][o(314)]-1;0<=r;--r){var e=this[o(253)][r],a=e[o(274)];if(o(331)===e[o(340)])return t(o(278));if(e[o(340)]<=this[o(343)]){var u=h[o(269)](e,o(257)),c=h.call(e,"finallyLoc");if(u&&c){if(this[o(343)]<e[o(257)])return t(e[o(257)],!0);if(this[o(343)]<e[o(266)])return t(e[o(266)])}else if(u){if(this.prev<e[o(257)])return t(e[o(257)],!0)}else{if(!c)throw Error(o(353));if(this[o(343)]<e[o(266)])return t(e[o(266)])}}}},abrupt:function(t,r){for(var e=f,n=this.tryEntries.length-1;0<=n;--n){var o=this[e(253)][n];if(o[e(340)]<=this.prev&&h[e(269)](o,e(266))&&this.prev<o[e(266)]){var i=o;break}}var a=(i=i&&("break"===t||e(289)===t)&&i[e(340)]<=r&&r<=i[e(266)]?null:i)?i[e(274)]:{};return a[e(268)]=t,a.arg=r,i?(this[e(315)]=e(351),this[e(351)]=i[e(266)],g):this[e(318)](a)},complete:function(t,r){var e=f;if(e(261)===t[e(268)])throw t[e(263)];return e(309)===t.type||e(289)===t[e(268)]?this[e(351)]=t[e(263)]:e(346)===t[e(268)]?(this[e(270)]=this[e(263)]=t[e(263)],this.method=e(346),this[e(351)]=e(278)):e(262)===t[e(268)]&&r&&(this[e(351)]=r),g},finish:function(t){for(var r=f,e=this[r(253)][r(314)]-1;0<=e;--e){var n=this[r(253)][e];if(n[r(266)]===t)return this.complete(n[r(274)],n[r(305)]),S(n),g}},catch:function(t){for(var r=f,e=this[r(253)].length-1;0<=e;--e){var n,o,i=this[r(253)][e];if(i[r(340)]===t)return n=i[r(274)],r(261)===n[r(268)]&&(o=n.arg,S(i)),o}throw Error(r(326))},delegateYield:function(t,r,e){var n=f;return this[n(272)]={iterator:N(t),resultName:r,nextLoc:e},"next"===this[n(315)]&&(this.arg=s),g}},u}function asyncGeneratorStep(t,r,e,n,o,i,a){var u=_0x2d91;try{var c=t[i](a),f=c[u(350)]}catch(t){return void e(t)}c.done?r(f):Promise.resolve(f)[u(256)](n,o)}function _asyncToGenerator(u){return function(){var t=this,a=arguments;return new Promise(function(r,e){var n=u.apply(t,a);function o(t){asyncGeneratorStep(n,r,e,o,i,_0x2d91(351),t)}function i(t){asyncGeneratorStep(n,r,e,o,i,"throw",t)}o(void 0)})}}function _0x2d91(t,r){var e=_0x2b9a();return(_0x2d91=function(t,r){return e[t-=251]})(t,r)}(()=>{for(var t=_0x2d91,r=_0x2b9a();;)try{if(217184==-parseInt(t(339))+parseInt(t(324))/2+-parseInt(t(347))/3+parseInt(t(265))/4+-parseInt(t(300))/5+-parseInt(t(281))/6+-parseInt(t(345))/7*(-parseInt(t(328))/8))break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var _require=require(_0x4cf00a(283)),AscfDebugger=_require[_0x4cf00a(334)];function _0x2b9a(){var t=["defineProperty","start-service","constructor","function","1213890gqPsrA","__await","keys","@@iterator","suspendedYield","afterLoc","name",'Open default browser, "default","chrome","edge"',"abrupt","break","AsyncIterator","resultName","prototype","GeneratorFunction","length","method","push","forEach","complete","reverse","start","symbol","Generator","status","418762FoBqMp","mark","illegal catch attempt","command","483976rrClKo","[object Generator]","toString","root","create"," is not iterable","AscfDebugger","reset","apply","exports","-o, --open <browser>","368877BWoQtR","tryLoc","@@asyncIterator","charAt","prev","slice","119qfRyWV","return","955308YIcDTv","sent","dispatchException","value","next","stop-view","try statement without catch or finally","-t, --deviceId [deviceId]","values","select a device to debug","debugger","tryEntries","nextLoc","The iterator does not provide a '","then","catchLoc","done","iterator","_invoke","throw","normal","arg","bundleName of debugging project","816204WAAtAG","finallyLoc","stop-service","type","call","rval","isGeneratorFunction","delegate","asyncIterator","completion","displayName","resolve","Generator is already running","end","@@toStringTag","handle","1767636mSDTkJ","pop","../../ascf-base","description","option","iterator result is not an object","executing","_sent","continue","-b, --bundleName [bundleName]","start-view","stop","wrap","suspendedStart","action"];return(_0x2b9a=function(){return t})()}module[_0x4cf00a(337)]={install:function(t){function e(n){return r=_0x2d91,e=_asyncToGenerator(_regeneratorRuntime()[r(325)](function t(e){return _regeneratorRuntime().wrap(function(t){for(var r=_0x2d91;;)switch(t[r(343)]=t[r(351)]){case 0:new AscfDebugger(e)[r(280)](n);case 2:case"end":return t[r(292)]()}},t)})),function(t){return e[r(336)](this,arguments)};var r,e}var n=_0x4cf00a,o=t[n(327)](n(252));[n(323)][n(317)](function(t){var r=n;o.command(t)[r(284)](t).option("-b, --bundleName [bundleName]","bundleName of debugging project")[r(285)](r(354),r(251))[r(295)](e(t))}),[n(320),n(291),n(297)][n(317)](function(t){var r=n;o[r(327)](t).description(t).option(r(338),r(307),"default")[r(285)](r(290),r(264))[r(285)](r(354),r(251))[r(295)](e(t))}),[n(292),n(352),n(267)][n(317)](function(t){var r=n;o[r(327)](t)[r(284)](t)[r(285)](r(290),r(264))[r(285)]("-t, --deviceId [deviceId]",r(251))[r(295)](e(t))})}};
|
package/lib/common/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3bf2(c,e){var r=_0x49ac();return(_0x3bf2=function(c,e){return r[c-=332]})(c,e)}var _0x3c616c=_0x3bf2;function _0x49ac(){var c=["isProd","textarea","NODE_ENV","form","video","movable-view","4995zYDNcM","2307854PwquOj","development","picker-view-column","configs","env","checkbox","navigator","2527adhlWB","camera","19728UDtxsl","babel","image","slider","switch","movable-area","picker","radio","769620pymZXy","canvas","text","378296JQWXse","web-view","swiper","4556PpgQwT","4352436zrqZvM","icon","button","6415208oHllAk","checkbox-group","radio-group","input"];return(_0x49ac=function(){return c})()}(()=>{for(var c=_0x3bf2,e=_0x49ac();;)try{if(749439==+parseInt(c(346))+parseInt(c(364))/2+parseInt(c(343))/3+-parseInt(c(349))/4*(parseInt(c(363))/5)+-parseInt(c(335))/6*(parseInt(c(333))/7)+parseInt(c(353))/8+parseInt(c(350))/9)break;e.push(e.shift())}catch(c){e.push(e.shift())}})();var configs={notaddtodo:!1,parser:_0x3c616c(336),devtool:void 0,componentList:[_0x3c616c(340),_0x3c616c(362),"scroll-view",_0x3c616c(348),"swiper-item","view",_0x3c616c(351),"progress","rich-text",_0x3c616c(345),_0x3c616c(352),_0x3c616c(369),_0x3c616c(354),_0x3c616c(360),_0x3c616c(356),"label",_0x3c616c(341),"picker-view",_0x3c616c(366),_0x3c616c(342),_0x3c616c(355),_0x3c616c(338),_0x3c616c(339),_0x3c616c(358),_0x3c616c(332),_0x3c616c(337),_0x3c616c(361),_0x3c616c(334),"Map",_0x3c616c(344),_0x3c616c(347)],templateHoist:!1,ascfLazyImportFiles:{},skipApiValidator:!0,serve:!1,deviceId:!1,isProd:function(){var c=_0x3c616c;return process[c(368)][c(359)]!==c(365)},isInjectDebugTimer:function(){return!configs[_0x3c616c(357)]()},requiredComponents:[],tabBarUsingComponents:{},tabBarList:[]};exports[_0x3c616c(367)]=configs;
|
package/lib/common/log4js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1958(e,r){var t=_0x1dbf();return(_0x1958=function(e,r){return t[e-=183]})(e,r)}function _0x1dbf(){var e=["2417344HkEkWU","36Vbdpqw","../ascf-base","1346505EcpJKn","1633795mzyBml","2dgyhws","586912HxmbyP","6CoZmIA","16396880IUhCtl","ASCF_LOG_FILE","390204jNxPNH","exports","543599FwhkSg"];return(_0x1dbf=function(){return e})()}var _0x3dc7c=_0x1958,_require=((()=>{for(var e=_0x1958,r=_0x1dbf();;)try{if(307273==-parseInt(e(189))+parseInt(e(184))/2*(-parseInt(e(195))/3)+-parseInt(e(192))/4+-parseInt(e(183))/5*(-parseInt(e(186))/6)+parseInt(e(191))/7+-parseInt(e(185))/8*(parseInt(e(193))/9)+parseInt(e(187))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require(_0x3dc7c(194))),ASCF_LOG_FILE=_require[_0x3dc7c(188)],setLoggerConfig=_require.setLoggerConfig,getLogger=_require.getLogger;module[_0x3dc7c(190)]={ASCF_LOG_FILE:ASCF_LOG_FILE,setLoggerConfig:setLoggerConfig,getLogger:getLogger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x672a28=_0x748f;function _typeof(r){var t=_0x748f;return(_typeof=t(516)==typeof Symbol&&"symbol"==typeof Symbol[t(491)]?function(r){return typeof r}:function(r){var e=t;return r&&e(516)==typeof Symbol&&r[e(510)]===Symbol&&r!==Symbol.prototype?e(466):typeof r})(r)}function _0x748f(r,e){var t=_0x20d5();return(_0x748f=function(r,e){return t[r-=454]})(r,e)}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=_0x748f,n=0;n<e[t(527)];n++){var o=e[n];o[t(506)]=o[t(506)]||!1,o[t(479)]=!0,"value"in o&&(o[t(523)]=!0),Object[t(492)](r,_toPropertyKey(o.key),o)}}function _0x20d5(){var r=["hooks","322892SQFjxa","reduce","string","noteCount","stringify","@@iterator","default","errorCount","enumerable","hasErrors","apply","warningCount","constructor","dropRepeat","ModuleNotFoundError","getLogger","(Emitted value instead of an instance of Error) ","exports","function","showCompileTime","33RWcQtQ","warnCount","3269260RydXWM","resource","done","writable","3792273wVZnjF","assign","env","length","undefined","Module not found","1542244wZGypY","15VqNddx","BuildLogOutputPlugin","1228353wgqhIB","from","startTime","fatal","Error: ","slice","showtime","4523368JwbPCu","forEach","\nCOMPILE RESULT:SUCCESS","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."," ms","\nCOMPILE RESULT:","true","898830JvlvHQ","extraInfo","warning","origin","object","prototype","Object","map","error","concat","7jaeOdm","file","symbol","call","9wIBvrm","name","compilation","beginTime","toPrimitive","formatters","\n@ ","replace","message","transformers","displayErrors","configurable",", elapsed: ","compileTime: ","round","ASCF_LOG_FILE","warn","isArray","warnings","ModuleBuildError","Arguments","printCompileResult","options","iterator","defineProperty","test","calculate","includes","tap"];return(_0x20d5=function(){return r})()}function _createClass(r,e,t){var n=_0x748f;return e&&_defineProperties(r[n(459)],e),t&&_defineProperties(r,t),Object[n(492)](r,n(459),{writable:!1}),r}function _toPropertyKey(r){var e=_0x748f,r=_toPrimitive(r,"string");return e(466)==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0x748f;if("object"!=_typeof(r)||!r)return r;var n=r[Symbol[t(472)]];if(void 0===n)return("string"===e?String:Number)(r);n=n.call(r,e||t(504));if(t(458)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x748f(543))}function _unsupportedIterableToArray(r,e){var t,n=_0x748f;if(r)return n(500)==typeof r?_arrayLikeToArray(r,e):(t={}.toString[n(467)](r)[n(538)](8,-1),"Map"===(t=n(460)===t&&r[n(510)]?r[n(510)][n(469)]:t)||"Set"===t?Array.from(r):n(488)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(493)](t)?_arrayLikeToArray(r,e):void 0)}function _iterableToArray(r){var e=_0x748f;if(e(528)!=typeof Symbol&&null!=r[Symbol[e(491)]]||null!=r[e(503)])return Array[e(534)](r)}function _arrayWithoutHoles(r){if(Array[_0x748f(485)](r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){(null==e||e>r[_0x748f(527)])&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}(()=>{for(var r=_0x748f,e=_0x20d5();;)try{if(908763==+parseInt(r(533))+-parseInt(r(498))/2+parseInt(r(524))/3+-parseInt(r(530))/4*(parseInt(r(531))/5)+-parseInt(r(454))/6*(-parseInt(r(464))/7)+-parseInt(r(540))/8*(-parseInt(r(468))/9)+-parseInt(r(520))/10*(parseInt(r(518))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x672a28(529),log4js=require("./log4js.js"),logger=log4js[_0x672a28(513)]("logger-plugin");function defaultFormatter(r,e){return r.reduce(function(r,e){var t=_0x748f;return[].concat(_toConsumableArray(r),["\n"[t(463)](e.message)])},[])}function babelSyntaxError(r){var e=_0x672a28;return isBabelSyntaxError(r)&&(r[e(476)]=cleanStackTrace(r[e(476)])),r}function isBabelSyntaxError(r){var e=_0x672a28;return r[e(469)]===e(487)&&r.message[e(495)]("SyntaxError")}function cleanStackTrace(r){var e=_0x672a28;return r[e(475)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"")[e(475)](/^Module build failed.*:\s/,e(537))}function moduleNotFoundError(r){var e,t=_0x672a28;return r[t(469)]===t(512)&&r.message[t(495)](TYPE)&&(r[t(476)]=r[t(476)][t(475)](TYPE,"ERROR: ".concat(TYPE)),e=r[t(457)]&&r.origin[t(521)])&&(r.message+=t(474)[t(463)](e)),r}var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x672a28;return{message:r[e(476)],file:r[e(465)],origin:r[e(457)],name:r.name,severity:0,webpackError:r}}function cleanMessage(r){var e=_0x672a28;return r[e(475)](e(514),"")[e(475)](/Module Warning[^\n]+\n/,"")[e(475)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}var n=_0x672a28;return r[n(461)](extractError)[n(461)](function(r){return e[_0x748f(499)](t,r)})}function formatErrors(e,r,t){var n=_0x672a28;return r[n(461)](function(r){return r(e,t)||[]})[n(499)](function(r,e){return r.concat(e)},[])}function getCompileTime(r){var e=_0x672a28,t=r.endTime,r=r[e(535)];logger.info(e(481)[e(463)](t-r,e(544)))}function _dropRepeat(r){return r.reduce(function(r,t){var e=_0x748f;return r.some(function(r){var e=_0x748f;return r.message===t[e(476)]})?r:r[e(463)](t)},[])}var BuildLogOutputPlugin=(()=>{var l=_0x672a28;return _createClass(function r(){var e=_0x748f,t=0<arguments[e(527)]&&void 0!==arguments[0]?arguments[0]:{},n=t[e(517)],n=void 0!==n&&n,t=t.options;_classCallCheck(this,r),this[e(505)]=0,this.warningCount=0,this.noteCount=0,this[e(517)]=n||process[e(526)][e(539)]===e(546),this[e(473)]=defaultFormatters,this.transformers=defaultTransformers,this[e(490)]=t},[{key:l(508),value:function(r){var u=l,s=this;r[u(497)][u(522)][u(496)](u(532),function(e){var t=u,r=(s[t(511)](e),e[t(470)]),n=r.errors,o=r[t(486)],a=e[t(507)](),i=e.hasWarnings();setTimeout(function(){var r=t;a&&s[r(478)](n,r(462)),i&&s[r(478)](o,r(456)),s.calculate(e,n,o),s[r(489)](),s[r(517)]&&getCompileTime(e)})})}},{key:"dropRepeat",value:function(r){var e=l;r[e(470)][e(486)]=_dropRepeat(r[e(470)][e(486)]),r.compilation.errors=_dropRepeat(r.compilation.errors)}},{key:l(494),value:function(r,e){var t=l,n=this,o=2<arguments[t(527)]&&void 0!==arguments[2]?arguments[2]:[],r=r[t(470)][t(455)]||{},a=r[t(505)],a=void 0===a?0:a,i=r[t(519)],i=void 0===i?0:i,r=r.noteCount,r=void 0===r?0:r;this.errorCount=e[t(527)]+a,this[t(509)]=i,this.noteCount=r,o[t(541)](function(r){var e=t,r=r[e(476)];/^NOTE:/[e(493)](cleanMessage(r))?n[e(501)]++:n[e(509)]++})}},{key:l(489),value:function(){var r,e=l,t=this[e(505)],n=this[e(509)],o=this.noteCount,a=(new Date).getTime()-global[e(471)],a=e(480)+Math[e(482)](a/1e3)+"s\n\nYou can check full log: "+log4js[e(483)];0<t+n+o?(r=t?"FAIL ":"SUCCESS ",n=Object[e(525)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),t?logger[e(536)](e(545)[e(463)](r).concat(JSON.stringify(n))+a):logger.warn(e(545)[e(463)](r)[e(463)](JSON[e(502)](n))+a)):logger.info(e(542)+a)}},{key:l(478),value:function(r,t){var n=l;formatErrors(transformErrors(r,this[n(477)]),this[n(473)],t).forEach(function(r){var e=n;"error"===t&&logger.error(cleanMessage(r)),t===e(456)&&logger[e(484)](cleanMessage(r))})}},{key:"getBuildMsg",value:function(r,e){var t=l;return formatErrors(transformErrors(r,this[t(477)]),this[t(473)],e).map(function(r){return cleanMessage(r)})}}])})();module[_0x672a28(515)]=BuildLogOutputPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x53ce21=_0x19b5;function _0x19b5(r,t){var e=_0x3db1();return(_0x19b5=function(r,t){return e[r-=426]})(r,t)}function _0x3db1(){var r=["13547760MMIXPX","5124025QxFgpV","splice","use strict","3812192jeZxpV","1874546LLSHYP","2845927pGPkkm","value","938232zmjRvQ","787520VXVIIQ","exports","6tipbBU","length"];return(_0x3db1=function(){return r})()}(()=>{for(var r=_0x19b5,t=_0x3db1();;)try{if(584675==-parseInt(r(437))+parseInt(r(433))/2+parseInt(r(436))/3+-parseInt(r(432))/4+-parseInt(r(429))/5+-parseInt(r(426))/6*(-parseInt(r(434))/7)+parseInt(r(428))/8)break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module[_0x53ce21(438)]=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x19b5,e=r.node.directives,n=e[t(427)]-1;0<=n;n--)e[n][t(435)][t(435)]===t(431)&&e[t(430)](n,1)}}}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var _0x4adad9=_0x3f8a;function _0x3f8a(r,a){var n=_0x2175();return(_0x3f8a=function(r,a){return n[r-=445]})(r,a)}function _0x2175(){var r=["241625eojexo","584488LZucSv","33192SDzavT","2387700ofPkMf","replace","replaceAll","3zSHaaI","5818722AmUECC","prototype","6493648ZBeTKZ","4416UJbRgZ","1200520EyvrVQ"];return(_0x2175=function(){return r})()}(()=>{for(var r=_0x3f8a,a=_0x2175();;)try{if(528106==-parseInt(r(452))+-parseInt(r(451))/2+-parseInt(r(446))/3*(parseInt(r(453))/4)+-parseInt(r(455))/5+-parseInt(r(447))/6+parseInt(r(449))/7+-parseInt(r(450))/8*(-parseInt(r(454))/9))break;a.push(a.shift())}catch(r){a.push(a.shift())}})(),exports[_0x4adad9(445)]=function(r,a,n){var t=_0x4adad9;return String[t(448)][t(445)]?null==r?void 0:r[t(445)](a,n):(a=a[t(456)](/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(a,"g"),null==r?void 0:r[t(456)](a,n))};
|
package/lib/common/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x4b4e3e=_0x2f5a;function _createForOfIteratorHelper(e,r){var t,n,o,i,s=_0x2f5a,a=s(316)!=typeof Symbol&&e[Symbol[s(401)]]||e[s(378)];if(a)return o=!(n=!0),{s:function(){a=a[s(359)](e)},n:function(){var e=s,r=a[e(354)]();return n=r[e(328)],r},e:function(e){o=!0,t=e},f:function(){var e=s;try{n||null==a.return||a[e(323)]()}finally{if(o)throw t}}};if(Array[s(382)](e)||(a=_unsupportedIterableToArray(e))||r&&e&&s(356)==typeof e.length)return a&&(e=a),i=0,{s:r=function(){},n:function(){return i>=e[s(394)]?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){var t,n=_0x2f5a;if(e)return n(350)==typeof e?_arrayLikeToArray(e,r):(t={}[n(290)][n(359)](e)[n(297)](8,-1),"Map"===(t=n(385)===t&&e[n(270)]?e.constructor[n(348)]:t)||n(368)===t?Array[n(376)](e):n(390)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){(null==r||r>e[_0x2f5a(394)])&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function _0x5d8e(){var e=["done","8SAYsxF","11646675hjksrh","prototype","build-profile.json5","forEach","value","2089360rhbMwE","readFileSync","ascfRoot","projectRoot","DEVECO_DIR","main","json5","keys","modules","ascf/ascf_src/base.hxml","node","module","isOSX","name","development","string","2105UXzMUy","moveFiles"," is not found","next","templateHoist","number","hvigorw","mode","call","projectPath","versionType","serve","true","_versionType","getBundleName","handleResolveAlias","debug","Set","production","endsWith","execSafe","app.json5","concat","getEntryPkgPath","false","from","writeFileSync","@@iterator","DevEco Studio","1201207wMIGkk","configs is: ","isArray","1529972bxujRz","5262WMnOJb","Object","columnNumber","beta","split","common-utils","Arguments","babel","bin","disableSubpackages","length","find Hxml error:","fatal","bundleName","includes","cwd","tools","iterator","getModuleNames","isDirectory","existsSync","getLogger","error","ascf","getHvigorwPath","constructor","child_process","projectCfg","join","startsWith","darwin","path","getNodePath","readJsonFile","RAWFILE_DIR","replace","isFile","clearResource","all","ascf_build","hasHxml","copyFileSync","release","5522SAVVDI","ascf_src","toString","trim","initConfigs","uglifyjs","env","lineNumber","utf-8","slice","skipApiValidator","swc","ascf/ascf_src","ascf.config.json","./log4js.js","src/main/resources/rawfile","Moving files error:","3010365mGVstn","app","parse","hasOwnProperty","execSync","mkdirSync","utf8","resolve","apply","C:\\Program Files\\Huawei\\DevEco Studio\\bin","watch","undefined","module.json5","deepMerge","abilities","map","parse json file error at ","stringify","return","./config","readdirSync","node_modules","NODE_ENV"];return(_0x5d8e=function(){return e})()}(()=>{for(var e=_0x2f5a,r=_0x5d8e();;)try{if(587471==+parseInt(e(288))*(-parseInt(e(329))/2)+-parseInt(e(305))/3+parseInt(e(383))/4+parseInt(e(351))/5*(parseInt(e(384))/6)+-parseInt(e(380))/7+-parseInt(e(335))/8+parseInt(e(330))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var rimraf=require("rimraf"),fs=require("fs"),path=require(_0x4b4e3e(276)),JSON5=require(_0x4b4e3e(341)),os=require("os"),_require=require(_0x4b4e3e(271)),execSync=_require[_0x4b4e3e(309)],json5=require(_0x4b4e3e(341)),log4js=require(_0x4b4e3e(302)),_require2=require(_0x4b4e3e(324)),configs=_require2.configs,logger=log4js[_0x4b4e3e(405)](_0x4b4e3e(389)),curProjectPath=null,curProjectInfo=null;function getProjectInfo(){var e,r,t,n=_0x4b4e3e;return process.env[n(338)]===curProjectPath&&curProjectInfo||(r=readProjectCfgJson(e=process.env[n(338)]||process[n(399)]())||{},t=path.resolve(e,n(300)),t=r[n(337)]?path[n(312)](t,r[n(337)]):t,n=path[n(312)](e,n(407),n(284)),initVersionType(),curProjectInfo={projectPath:curProjectPath=e,projectCfg:r,ascfSrcPath:t,ascfBuildPath:n}),curProjectInfo}function _0x2f5a(e,r){var t=_0x5d8e();return(_0x2f5a=function(e,r){return t[e-=270]})(e,r)}function initOptions(e){var r,t=_0x4b4e3e;for(r in e)Object.prototype[t(308)][t(359)](e,r)&&(e[r]===t(375)&&(e[r]=!1),e[r]===t(363))&&(e[r]=!0)}function readJsonFile(r){var t=_0x4b4e3e;if(!fs[t(404)](r))return{};var e={};try{e=JSON5[t(307)](fs[t(336)](r,t(296))[t(290)]()||"{}")}catch(e){throw new Error(t(321).concat(r,":")[t(373)](e[t(295)],":")[t(373)](e[t(386)]," "))}return e}function writeJsonFile(e,r){var t=_0x4b4e3e;try{fs[t(377)](e,JSON[t(322)](r,null,2))}catch(e){throw"ERROR: Write JSON file failed: "[t(373)](e)}}function initVersionType(){var e=_0x4b4e3e,r=[e(367),e(387),"release"],t=process.env[e(361)];global._versionType=e(367),t&&r[e(398)](t)?global[e(364)]=t:(r=process.env[e(293)]===e(363),global[e(364)]=e(r?287:367))}function readProjectCfgJson(e){var r,t=_0x4b4e3e,e=path[t(273)](e,t(407),t(289),t(301));return r=fs.existsSync(e)?JSON[t(307)](fs[t(336)](e)[t(290)]()):r}function isOSX(){var e=_0x4b4e3e;return os.platform()===e(275)}function hasHxml(e){var r=_0x4b4e3e;try{var t,n=_createForOfIteratorHelper(fs[r(325)](e,{withFileTypes:!0}));try{for(n.s();!(t=n.n())[r(328)];){var o=t[r(334)],i=path[r(273)](e,o[r(348)]);if(o[r(281)]()&&o[r(348)].endsWith(".hxml")||o.isDirectory()&&o[r(348)]!==r(326)&&hasHxml(i))return!0}}catch(e){n.e(e)}finally{n.f()}}catch(e){logger[r(406)](r(395),e)}return!1}function moveFiles(o,i){var s=_0x4b4e3e;try{fs[s(310)](i,{recursive:!0}),fs[s(325)](o,{withFileTypes:!0})[s(333)](function(e){var r=s,t=path[r(273)](o,e[r(348)]),n=path[r(273)](i,e[r(348)]);e[r(281)]()?fs[r(286)](t,n):e[r(403)]()&&e[r(348)]!==r(326)&&moveFiles(t,n)})}catch(e){logger[s(406)](s(304),e)}}function handleResolveAlias(e,r){var t,n=_0x4b4e3e,o=_createForOfIteratorHelper(Object[n(342)](r).sort(function(e,r){return r[n(394)]-e.length}));try{for(o.s();!(t=o.n())[n(328)];){var i,s,a,c=t[n(334)];if(c.endsWith("/*")&&r[c][n(370)]("/*"))if(e[n(274)](c[n(297)](0,-1))||e===c[n(297)](0,-1))return i=r[c][n(297)](0,-1),s=e[n(297)](c.length-1),a=(a=path[n(273)](i,s)[n(280)](/\\/g,"/"))[n(274)]("/")?a:"/"+a}}catch(e){o.e(e)}finally{o.f()}return e}function getEntryPkgPath(){var e,r=_0x4b4e3e,t=getProjectInfo().projectPath,n=readJsonFile(path[r(312)](t,r(332)));if(0<(null==n||null==(e=n.modules)?void 0:e.length))return path[r(273)](t,n[r(343)][0].srcPath);logger[r(396)]("getEntryPkgPath error, build-profile.json5 file modules is null")}function deepMerge(e){for(var r=_0x4b4e3e,t=arguments[r(394)],n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(!n[r(394)])return e;var i=n.shift();if(!i)return deepMerge.apply(void 0,[e][r(373)](n));for(var s=0,a=Object[r(342)](i);s<a.length;s++){var c=a[s],f=i[c];isObject(f)?(null==e[c]&&(e[c]={}),deepMerge(e[c],f)):void 0!==f&&(e[c]=f)}return deepMerge[r(313)](void 0,[e].concat(n))}function isObject(e){var r=_0x4b4e3e;return"[object Object]"===Object[r(331)][r(290)][r(359)](e)}function getIdeBinPath(){var e=_0x4b4e3e,r=null==(r=process[e(294)][e(379)]||process.env[e(339)])?void 0:r[e(388)](";")[0][e(291)](),t=r||"/Applications/DevEco-Studio.app/Contents/tools",r=r||e(314);return isOSX()?t:r}function adjustPathByPlatform(e){return isOSX()?e:'"'.concat(e,'"')}exports.getProjectInfo=getProjectInfo,exports[_0x4b4e3e(279)]=_0x4b4e3e(303),exports.TOOLKIT_PATH=path[_0x4b4e3e(273)](__dirname,"..",".."),exports[_0x4b4e3e(292)]=function(e,r){var t=_0x4b4e3e,n=(initOptions(r),getProjectInfo()),o=r[t(315)]||r[t(362)]||void 0!==r[t(358)]&&r[t(358)]!==t(369);process[t(294)][t(327)]&&!o||(process[t(294)][t(327)]=o?t(349):"production"),deepMerge(configs,n[t(272)],r),process.env[t(282)]=o||configs.clear?"yes":"no",configs.parser=configs[t(299)]?t(299):t(391),void 0===configs[t(355)]&&fs[t(404)](path[t(312)](e,t(344)))&&(configs.templateHoist=!0),configs[t(355)]=!!configs[t(355)],configs[t(298)]=o||configs[t(298)]!==t(375)&&configs[t(298)],configs[t(393)]=configs[t(362)]||(void 0===configs[t(393)]?!!o:configs[t(393)]),logger.debug(t(381)[t(373)](JSON[t(322)](configs)))},exports[_0x4b4e3e(282)]=function(e){var t=_0x4b4e3e;return Promise[t(283)](e[t(320)](function(r){if(fs[t(404)](r))return new Promise(function(e){rimraf.sync(r),e()})}))},exports[_0x4b4e3e(278)]=readJsonFile,exports.writeJsonFile=writeJsonFile,exports[_0x4b4e3e(347)]=isOSX,exports[_0x4b4e3e(285)]=hasHxml,exports[_0x4b4e3e(352)]=moveFiles,exports[_0x4b4e3e(366)]=handleResolveAlias,exports[_0x4b4e3e(374)]=getEntryPkgPath,exports[_0x4b4e3e(318)]=deepMerge,exports[_0x4b4e3e(371)]=function(e){var r,t=_0x4b4e3e,n=1<arguments[t(394)]&&void 0!==arguments[1]?arguments[1]:{};try{return null==(r=execSync(e,n))?void 0:r[t(290)](t(311))}catch(e){logger.warn("exec cmd error",e)}},exports[_0x4b4e3e(402)]=function(){var e,r,t=_0x4b4e3e,n=getEntryPkgPath(),n=path.join(n,"src",t(340),t(317));if(fs[t(404)](n))return r=fs[t(336)](n,t(296)),{name:null==(r=json5[t(307)](r))||null==(e=r[t(346)])?void 0:e[t(348)],entryAbility:null==r||null==(e=r[t(346)])||null==(e=e[t(319)])?void 0:e[t(320)](function(e){return e[t(348)]})};throw new Error(""[t(373)](n," is not found"))},exports[_0x4b4e3e(365)]=function(){var e,r=_0x4b4e3e,t=getProjectInfo()[r(360)],t=path[r(273)](t,"AppScope",r(372));if(fs.existsSync(t))return e=fs[r(336)](t,r(296)),null==(e=json5[r(307)](e))||null==(e=e[r(306)])?void 0:e[r(397)];throw new Error(""[r(373)](t,r(353)))},exports[_0x4b4e3e(277)]=function(){var e=_0x4b4e3e,r=getIdeBinPath(),r=path.join(r,"..","tools",e(345));e(345);return adjustPathByPlatform(isOSX()?path.join(r,e(345)):path[e(273)](r,"node.exe"))},exports[_0x4b4e3e(408)]=function(){var e=_0x4b4e3e,r=getIdeBinPath();return adjustPathByPlatform(path[e(273)](r,"..",e(400),"hvigor",e(392),e(357)))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x150111=_0x3e70;function _0x3e70(e,t){var r=_0x5977();return(_0x3e70=function(e,t){return r[e-=303]})(e,t)}function _0x5977(){var e=["debug","path","DevEco Studio","tools","update to ","readJsonFile","14263320gmZOFF","1770108TQvmca","latest[39m:","INFO: ASCF Shared Library can be upgraded.","WARNING: ASCF Shared Library can be upgraded.","@atomicservice/ascfapi","isOSX","version-check","./log4js.js","isLatestAscfHar","WARN: ASCF shared library not found.","src","isLatestAscfToolkit","get ohpm from deveco dir.","/Applications/DevEco-Studio.app/Contents/tools","length"," info @atomicservice/ascfapi","799638OWqWSu","dependencies","execSync","warn","getLogger","isAscfHspSatisfied","./utils","DEVECO_DIR","5MltuQE","concat","env"," at entry/src/main/module.json5.","existsSync","child_process","com.huawei.hms.ascfruntime","npm view @atomicservice/ascf-toolkit version","2CFadkj","trim","14RErmdU","split","get project entry module.json.","versionCode","info","getEntryPkgPath","bin","ohpm","374889HwmeKT","2216632cBsqDY","2233242vIlPvD"," is not exists, please ensure DevEco Studio installed","toString","bundleName","satisfies","ERROR: ASCF shared library version is too low,","837894WaWrKS","DevEco Studio ohpm "," does not depend on ASCF Shared Library. Select a project that does, or create a new one.","join"];return(_0x5977=function(){return e})()}(()=>{for(var e=_0x3e70,t=_0x5977();;)try{if(279103==-parseInt(e(342))+-parseInt(e(332))/2*(parseInt(e(350))/3)+parseInt(e(361))/4*(parseInt(e(324))/5)+-parseInt(e(316))/6+parseInt(e(334))/7*(-parseInt(e(343))/8)+-parseInt(e(344))/9+parseInt(e(360))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var utils=require(_0x150111(322)),path=require(_0x150111(355)),_require=require("semver"),satisfies=_require[_0x150111(348)],_require2=require(_0x150111(329)),execSync=_require2[_0x150111(318)],log4js=require(_0x150111(307)),fs=require("fs"),logger=log4js[_0x150111(320)](_0x150111(306));function getOhpmFile(){var e=_0x150111,t=(logger[e(354)](e(312)),null==(t=process[e(326)][e(356)]||process[e(326)][e(323)])?void 0:t[e(335)](";")[0][e(333)]()),r=t||e(313),t=t||"C:\\Program Files\\Huawei\\DevEco Studio\\bin",r=utils.isOSX()?r:t;return path[e(353)](r,"..",e(357),e(341),e(340),e(341))}exports[_0x150111(311)]=function(){var e=_0x150111,t=0<arguments[e(314)]&&void 0!==arguments[0]&&arguments[0],r=utils[e(359)](path[e(353)](utils.TOOLKIT_PATH,"package.json")).version,o=execSync(e(331),{timeout:5e3}).toString()[e(333)]();r!==o&&(t?logger[e(319)]('WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit '.concat(o,'"')):logger[e(338)]('INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit '[e(325)](o,'"')))},exports[_0x150111(308)]=function(){var e,t,r=_0x150111,o=0<arguments.length&&void 0!==arguments[0]&&arguments[0],i=path[r(353)](utils[r(339)](),"oh-package.json5"),s=utils[r(359)](i)[r(317)][r(304)];s?(e=getOhpmFile(),fs[r(328)](e)?(t=utils[r(305)]()?e:'"'[r(325)](e,'"'),t=execSync(""[r(325)](t,r(315)),{timeout:5e3})[r(346)]()[r(335)](r(362))[1][r(335)]("\n")[0].trim(),satisfies(t,s)||"latest"===s.toLowerCase()||(o?logger.warn(r(303)):logger[r(338)](r(363)))):logger[r(319)](r(351)[r(325)](e,r(345)))):logger[r(319)]("WARNING: ".concat(i,r(352)))},exports[_0x150111(321)]=function(e){var r=_0x150111,t=(logger[r(354)](r(336)),path.join(utils[r(339)](),r(310),"main","module.json5")),t=null==(t=utils[r(359)](t).module)?void 0:t[r(317)],t=null==t?void 0:t.filter(function(e){var t=r;return e[t(347)]===t(330)});return!t||t.length<=0?(logger.warn(r(309)),!1):!(Number(t[0][r(337)])<Number(e)&&(logger.fatal(r(349)+r(358)[r(325)](e,r(327))),1))};
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1cd288=_0x183d;function _typeof(r){var t=_0x183d;return(_typeof="function"==typeof Symbol&&t(484)==typeof Symbol[t(501)]?function(r){return typeof r}:function(r){var e=t;return r&&e(476)==typeof Symbol&&r[e(577)]===Symbol&&r!==Symbol.prototype?e(484):typeof r})(r)}function _regeneratorRuntime(){var s=_0x183d;_regeneratorRuntime=function(){return c};var f,c={},r=Object[s(451)],l=r[s(543)],p=Object.defineProperty||function(r,e,t){var n=s;r[e]=t[n(431)]},e=s(476)==typeof Symbol?Symbol:{},i=e[s(501)]||s(527),t=e.asyncIterator||s(539),n=e.toStringTag||s(550);function o(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{o({},"")}catch(r){o=function(r,e,t){return r[e]=t}}function u(r,e,t,n){var o,i,a,c,u=s,e=e&&e.prototype instanceof y?e:y,e=Object[u(563)](e[u(451)]),n=new S(n||[]);return p(e,u(547),{value:(o=r,i=t,a=n,c=g,function(r,e){var t=_0x183d;if(c===d)throw Error(t(442));if(c===m){if(t(578)===r)throw e;return{value:f,done:!0}}for(a[t(462)]=r,a[t(488)]=e;;){var n=a[t(529)];if(n){n=function r(e,t){var n=s,o=t[n(462)],i=e[n(501)][o];if(i===f)return t[n(529)]=null,n(578)===o&&e[n(501)][n(542)]&&(t[n(462)]="return",t[n(488)]=f,r(e,t),n(578)===t[n(462)])||n(542)!==o&&(t[n(462)]=n(578),t[n(488)]=new TypeError(n(531)+o+n(456))),_;o=h(i,e[n(501)],t[n(488)]);if(n(578)===o[n(552)])return t[n(462)]=n(578),t[n(488)]=o[n(488)],t[n(529)]=null,_;i=o[n(488)];return i?i[n(463)]?(t[e[n(535)]]=i[n(431)],t[n(459)]=e[n(487)],n(542)!==t.method&&(t[n(462)]=n(459),t[n(488)]=f),t[n(529)]=null,_):i:(t[n(462)]=n(578),t.arg=new TypeError("iterator result is not an object"),t[n(529)]=null,_)}(n,a);if(n){if(n===_)continue;return n}}if(t(459)===a[t(462)])a[t(574)]=a[t(523)]=a[t(488)];else if(t(578)===a[t(462)]){if(c===g)throw c=m,a[t(488)];a[t(536)](a[t(488)])}else t(542)===a[t(462)]&&a[t(495)](t(542),a[t(488)]);c=d;n=h(o,i,a);if("normal"===n[t(552)]){if(c=a[t(463)]?m:v,n[t(488)]===_)continue;return{value:n[t(488)],done:a.done}}"throw"===n[t(552)]&&(c=m,a[t(462)]=t(578),a.arg=n.arg)}})}),e}function h(r,e,t){var n=s;try{return{type:n(468),arg:r[n(506)](e,t)}}catch(r){return{type:n(578),arg:r}}}c.wrap=u;var g=s(493),v=s(497),d="executing",m=s(522),_={};function y(){}function a(){}function b(){}var e={},x=(o(e,i,function(){return this}),Object[s(567)]),x=x&&x(x(E([]))),w=(x&&x!==r&&l[s(506)](x,i)&&(e=x),b[s(451)]=y[s(451)]=Object.create(e));function k(r){var e=s;[e(459),e(578),e(542)][e(568)](function(e){o(r,e,function(r){return this[_0x183d(547)](e,r)})})}function G(c,u){var e,o=s;p(this,o(547),{value:function(t,n){function r(){return new u(function(r,e){!function e(r,t,n,o){var i,a=_0x183d,r=h(c[r],c,t);if(a(578)!==r.type)return(t=(i=r.arg).value)&&a(582)==_typeof(t)&&l[a(506)](t,a(453))?u[a(471)](t[a(453)])[a(561)](function(r){e("next",r,n,o)},function(r){e("throw",r,n,o)}):u[a(471)](t)[a(561)](function(r){i[a(431)]=r,n(i)},function(r){return e("throw",r,n,o)});o(r[a(488)])}(t,n,r,e)})}return e=e?e[o(561)](r,r):r()}})}function j(r){var e=s,t={tryLoc:r[0]};1 in r&&(t[e(541)]=r[1]),2 in r&&(t[e(520)]=r[2],t.afterLoc=r[3]),this.tryEntries[e(579)](t)}function q(r){var e=s,t=r.completion||{};t[e(552)]="normal",delete t[e(488)],r[e(457)]=t}function S(r){var e=s;this[e(524)]=[{tryLoc:e(514)}],r[e(568)](j,this),this[e(510)](!0)}function E(t){var n=s;if(t||""===t){var o,r=t[i];if(r)return r[n(506)](t);if("function"==typeof t[n(459)])return t;if(!isNaN(t[n(538)]))return o=-1,(r=function r(){for(var e=n;++o<t[e(538)];)if(l[e(506)](t,o))return r[e(431)]=t[o],r.done=!1,r;return r[e(431)]=f,r[e(463)]=!0,r})[n(459)]=r}throw new TypeError(_typeof(t)+n(508))}return a[s(451)]=b,p(w,s(577),{value:b,configurable:!0}),p(b,s(577),{value:a,configurable:!0}),a.displayName=o(b,n,"GeneratorFunction"),c[s(557)]=function(r){var e=s,r=e(476)==typeof r&&r[e(577)];return!!r&&(r===a||e(489)===(r[e(491)]||r[e(473)]))},c.mark=function(r){var e=s;return Object[e(525)]?Object[e(525)](r,b):(r.__proto__=b,o(r,n,e(489))),r[e(451)]=Object[e(563)](w),r},c.awrap=function(r){return{__await:r}},k(G[s(451)]),o(G[s(451)],t,function(){return this}),c.AsyncIterator=G,c[s(478)]=function(r,e,t,n,o){var i=s,a=(void 0===o&&(o=Promise),new G(u(r,e,t,n),o));return c[i(557)](e)?a:a.next().then(function(r){var e=i;return r[e(463)]?r[e(431)]:a[e(459)]()})},k(w),o(w,n,s(534)),o(w,i,function(){return this}),o(w,s(440),function(){return s(500)}),c[s(477)]=function(r){var e,n=s,o=Object(r),i=[];for(e in o)i[n(579)](e);return i[n(504)](),function r(){for(var e=n;i[e(538)];){var t=i.pop();if(t in o)return r.value=t,r.done=!1,r}return r[e(463)]=!0,r}},c[s(565)]=E,S[s(451)]={constructor:S,reset:function(r){var e=s;if(this.prev=0,this[e(459)]=0,this[e(574)]=this[e(523)]=f,this[e(463)]=!1,this[e(529)]=null,this[e(462)]="next",this[e(488)]=f,this[e(524)][e(568)](q),!r)for(var t in this)"t"===t[e(464)](0)&&l[e(506)](this,t)&&!isNaN(+t.slice(1))&&(this[t]=f)},stop:function(){var r=s,e=(this[r(463)]=!0,this[r(524)][0][r(457)]);if(r(578)===e[r(552)])throw e[r(488)];return this[r(458)]},dispatchException:function(n){var o=s;if(this[o(463)])throw n;var i=this;function r(r,e){var t=o;return a[t(552)]=t(578),a[t(488)]=n,i[t(459)]=r,e&&(i[t(462)]=t(459),i[t(488)]=f),!!e}for(var e=this[o(524)][o(538)]-1;0<=e;--e){var t=this.tryEntries[e],a=t[o(457)];if(o(514)===t[o(505)])return r(o(540));if(t[o(505)]<=this.prev){var c=l[o(506)](t,"catchLoc"),u=l[o(506)](t,"finallyLoc");if(c&&u){if(this[o(573)]<t[o(541)])return r(t.catchLoc,!0);if(this[o(573)]<t[o(520)])return r(t[o(520)])}else if(c){if(this[o(573)]<t[o(541)])return r(t[o(541)],!0)}else{if(!u)throw Error(o(443));if(this[o(573)]<t[o(520)])return r(t[o(520)])}}}},abrupt:function(r,e){for(var t=s,n=this[t(524)].length-1;0<=n;--n){var o=this[t(524)][n];if(o.tryLoc<=this[t(573)]&&l[t(506)](o,t(520))&&this[t(573)]<o[t(520)]){var i=o;break}}var a=(i=i&&(t(533)===r||t(580)===r)&&i[t(505)]<=e&&e<=i[t(520)]?null:i)?i[t(457)]:{};return a.type=r,a[t(488)]=e,i?(this[t(462)]="next",this[t(459)]=i[t(520)],_):this.complete(a)},complete:function(r,e){var t=s;if(t(578)===r[t(552)])throw r[t(488)];return t(533)===r.type||t(580)===r.type?this[t(459)]=r[t(488)]:"return"===r[t(552)]?(this[t(458)]=this[t(488)]=r[t(488)],this[t(462)]=t(542),this[t(459)]="end"):t(468)===r[t(552)]&&e&&(this[t(459)]=e),_},finish:function(r){for(var e=s,t=this[e(524)].length-1;0<=t;--t){var n=this.tryEntries[t];if(n[e(520)]===r)return this[e(498)](n.completion,n[e(494)]),q(n),_}},catch:function(r){for(var e=s,t=this[e(524)][e(538)]-1;0<=t;--t){var n,o,i=this[e(524)][t];if(i[e(505)]===r)return n=i[e(457)],e(578)===n[e(552)]&&(o=n[e(488)],q(i)),o}throw Error(e(469))},delegateYield:function(r,e,t){var n=s;return this[n(529)]={iterator:E(r),resultName:e,nextLoc:t},n(459)===this[n(462)]&&(this[n(488)]=f),_}},c}function asyncGeneratorStep(r,e,t,n,o,i,a){var c=_0x183d;try{var u=r[i](a),s=u[c(431)]}catch(r){return void t(r)}u[c(463)]?e(s):Promise[c(471)](s)[c(561)](n,o)}function _asyncToGenerator(u){return function(){var r=this,c=arguments;return new Promise(function(e,t){var n=_0x183d,o=u[n(449)](r,c);function i(r){asyncGeneratorStep(o,e,t,i,a,n(459),r)}function a(r){asyncGeneratorStep(o,e,t,i,a,n(578),r)}i(void 0)})}}(()=>{for(var r=_0x183d,e=_0x2af4();;)try{if(533730==+parseInt(r(581))*(-parseInt(r(470))/2)+-parseInt(r(583))/3*(-parseInt(r(509))/4)+-parseInt(r(485))/5+-parseInt(r(447))/6+parseInt(r(432))/7*(parseInt(r(576))/8)+parseInt(r(548))/9*(parseInt(r(475))/10)+-parseInt(r(516))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require(_0x1cd288(571)),watchExec=_require[_0x1cd288(560)],pkg=require("../package.json"),_require2=require(_0x1cd288(553)),configs=_require2[_0x1cd288(454)],log4js=require(_0x1cd288(544)),logger=log4js[_0x1cd288(490)](_0x1cd288(518));function _0x2af4(){var r=["prev","sent","catch","8ZRiiQG","constructor","throw","push","continue","257063gefMqw","object","195612tnMJPV","unhandledRejection","value","5505269DgOSRO",'"command":"',"errorMessage","folderUrl","pathValidator","ProgressPlugin","clearResource","Devtool: ","toString","_isAscfMode","Generator is already running","try statement without catch or finally","concat","reason:","output","2219550WTcMSU","./ascf-compiler/common/quick-generate-subpackage","apply","./ascf-converter/features/converter.js","prototype",'","errorMessage":"',"__await","configs","projectRoot","' method","completion","rval","next","plugins","input","method","done","charAt","exit","fatal","ASCF uncaught error","normal","illegal catch attempt","6bPkxEG","resolve","EnvironmentPlugin","name","check","35770TxaiNH","function","keys","async","Using ","./common/version-check.js","./ascf-converter/common/path-validator","checkInputPathFun","error","symbol","993405xuMBdP","isLatestAscfHar","nextLoc","arg","GeneratorFunction","getLogger","displayName","skipApiValidator","suspendedStart","afterLoc","abrupt","command","suspendedYield","complete","existsVerifyLog","[object Generator]","iterator","wrap","development","reverse","tryLoc","call","templateHoist"," is not iterable","28BNizQM","reset","devtool","run","notaddtodo","root","babel","3057208neAcjG","verbose","index","NODE_ENV","finallyLoc","stop","completed","_sent","tryEntries","setPrototypeOf","isLatestAscfToolkit","@@iterator","validate","delegate","quickGenSub","The iterator does not provide a '","_ascfDebug","break","Generator","resultName","dispatchException","info","length","@@asyncIterator","end","catchLoc","return","hasOwnProperty","./common/log4js.js","warn","mode","_invoke","2286HqvDJz","yes","@@toStringTag","WARNING: Get @atomicservice/ascfapi info failed: ","type","./common/config","clear","./ascf-compiler/web.webpack.config.js","_isMiniAppConvertMode","isGeneratorFunction","webpack","ASCF unhandled rejection at:","watchExec","then","watch","create","swc","values","env","getPrototypeOf","forEach","ascf/ascf_src","Run compiler with ","./ascf-compiler/watch/watch","path"];return(_0x2af4=function(){return r})()}function convert(r){return _convert.apply(this,arguments)}function _convert(){var r=_0x1cd288;return(_convert=_asyncToGenerator(_regeneratorRuntime().mark(function r(e){var n,o,i=_0x183d;return _regeneratorRuntime()[i(502)](function(r){for(var t=i;;)switch(r.prev=r.next){case 0:if(configs[t(513)]=!!e[t(513)],n=require(t(450)),global[t(556)]=!0,global[t(441)]=!0,process[t(566)][t(438)]=e[t(554)]?t(549):"no",o=require(t(481)),o=o[t(436)],e[t(528)]&&(o(e[t(461)],e.output),process[t(465)](0)),n[t(482)](e[t(461)]),e[t(474)]){r.next=13;break}return r[t(459)]=11,n.confirmConverterFun({inputPath:e.input,outPath:e[t(446)],confirmAddConfig:!0});case 11:(o=r.sent)[t(434)]?logger[t(483)](t(433)[t(444)](o[t(496)],t(452))[t(444)](o[t(434)],'"')):logger[t(537)](t(433).concat(o.command,'","folderUrl":"')[t(444)](o[t(435)],'"'));case 13:setTimeout(function(){var e=t,r=require(e(480))[e(526)];try{r()}catch(r){logger[e(545)]("WARNING: Get @atomicservice/ascf-toolkit version failed: "[e(444)](r,"."))}});case 14:case t(540):return r[t(521)]()}},r)})))[r(449)](this,arguments)}function compile(r,e){return _compile.apply(this,arguments)}function _compile(){var r=_0x1cd288;return(_compile=_asyncToGenerator(_regeneratorRuntime().mark(function r(t,n){var o,i,a,c=_0x183d;return _regeneratorRuntime()[c(502)](function(r){for(var e=c;;)switch(r.prev=r[e(459)]){case 0:return o=require(e(572)),process[e(566)][e(455)]=o[e(471)](t),process.chdir(o[e(471)](t,e(569))),process[e(566)][e(519)]=n[e(546)]?e(503):"production",process[e(566)][e(438)]=n.clear?e(549):"no",configs.parser=n[e(564)]?e(564):e(515),configs[e(511)]=n[e(511)],configs[e(507)]=!!n[e(507)],logger.debug(e(439).concat(configs[e(511)])),configs[e(507)]=!!n[e(507)],configs[e(492)]=!!n[e(492)],o=require(e(558)),r[e(573)]=12,i=require(e(555)),r[e(459)]=16,i();case 16:(i=r[e(574)])[e(460)]=i[e(460)]||[],i.plugins[e(579)](new o[e(472)]({projectRoot:t})),n.progress&&i[e(460)][e(579)](new o[e(437)]),n[e(562)]&&(i[e(562)]=!0),global[e(532)]&&(i.infrastructureLogging={level:e(517)}),a=o(i),logger[e(537)](e(570)[e(444)](configs.parser,".")),n.watch?(watchExec(a,n[e(512)]),r[e(459)]=30):r[e(459)]=28;break;case 28:return r[e(459)]=30,run(a);case 30:r[e(459)]=35;break;case 32:r[e(573)]=32,r.t0=r[e(575)](12),logger[e(466)](r.t0);case 35:case e(540):return r.stop()}},r,null,[[12,32]])})))[r(449)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function run(r){return new Promise(function(t,o){var i=_0x183d;r[i(512)](function(r,e){var n=i;e&&logger.info(e.toString({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global._ascfDebug?n(517):"info"})),r?(logger.error(r),o(r)):(setTimeout(function(){var e=n,r=require(e(480)),t=r.isLatestAscfToolkit,r=r[e(486)];try{r(global[e(499)])}catch(r){logger[e(545)](e(551)[e(444)](r,"."))}try{t(global[e(499)])}catch(r){logger[e(545)]("WARNING: Get @atomicservice/ascf-toolkit version failed: "[e(444)](r,"."))}}),t(e))})})}function _0x183d(r,e){var t=_0x2af4();return(_0x183d=function(r,e){return t[r-=430]})(r,e)}function quickGenerateSubpackage(){return _quickGenerateSubpackage[_0x1cd288(449)](this,arguments)}function _quickGenerateSubpackage(){return(_quickGenerateSubpackage=_asyncToGenerator(_regeneratorRuntime().mark(function r(){var t;return _regeneratorRuntime().wrap(function(r){for(var e=_0x183d;;)switch(r[e(573)]=r.next){case 0:return t=require(e(448)),t=t[e(530)],r[e(459)]=3,t()[e(575)](function(r){logger[e(483)](r)});case 3:case e(540):return r.stop()}},r)}))).apply(this,arguments)}logger.debug(_0x1cd288(479)[_0x1cd288(444)](pkg.name," ").concat(pkg.version,".")),global._isAscfMode=!0,process.on("uncaughtException",function(r){var e=_0x1cd288;logger[e(483)](e(467),r)}),process.on(_0x1cd288(430),function(r,e){var t=_0x1cd288;logger[t(483)](t(559),e,t(445),r)}),module.exports={convert:convert,compile:compile,getAscfToolkitDirname:getAscfToolkitDirname,quickGenerateSubpackage:quickGenerateSubpackage};
|
|
1
|
+
var _0x11a87e=_0xaa2f;function _typeof(e){var t=_0xaa2f;return(_typeof=t(497)==typeof Symbol&&t(488)==typeof Symbol[t(492)]?function(e){return typeof e}:function(e){var r=t;return e&&r(497)==typeof Symbol&&e[r(563)]===Symbol&&e!==Symbol[r(569)]?r(488):typeof e})(e)}function _0x319b(){var e=["./ascf-converter/common/path-validator","./ascf-compiler/web.webpack.config.js","isLatestAscfHar","defineProperty","catchLoc","input","afterLoc","Generator","wrap","tryLoc","105NZMBCY","create","command","WARNING: Get @atomicservice/ascf-toolkit version failed: ","./commands/build-npm","The iterator does not provide a '","resultName","watchExec","exports","existsVerifyLog","errorMessage","getPrototypeOf","reset",'","folderUrl":"',"normal","exit","method","getTime","isLatestAscfToolkit","projectRoot","2622786wQPQKW","env","checkInputPathFun","reason:","compile close error :","ASCF unhandled rejection at:","ProgressPlugin","finallyLoc","suspendedYield",'","errorMessage":"',"symbol","fatal","clearResource","call","iterator","notaddtodo","8996169DrcPhK","validate","forEach","function","output","stop dev server error:","./common/config","getLogger","clear","../package.json","./ascf-converter/features/converter.js","tryEntries","infrastructureLogging","_ascfDebug","beginTime","@@asyncIterator","quickGenSub","./ascf-compiler/server/dev-server","7566732NsXkBL","_isAscfMode","mark","length","isGeneratorFunction","Generator is already running","toString","AsyncIterator","completion","break","suspendedStart","continue","ASCF uncaught error","6024328BaTfUP","./common/version-check.js","check","slice","illegal catch attempt","return","uncaughtException","displayName","done","name","pathValidator","type","verbose","then","webpackCfg","value","@@toStringTag","unhandledRejection","reverse","restartDevServer","@@iterator","rval","hasOwnProperty"," is not iterable","3zXoyKp","delegate","WARNING: Get @atomicservice/ascfapi info failed: ","sent","abrupt","prev","startServer","_invoke","version","setPrototypeOf","48912oJLxxF","toStringTag","next","folderUrl","constructor","configs","apply","[object Generator]","warn","arg","prototype","stop","GeneratorFunction","progress","close","resolve","./ascf-compiler/common/quick-generate-subpackage","dispatchException","complete","./ascf-compiler/watch/watch","watch","pop","1285594kTOTvF","push","values","chdir","ascf/ascf_src","error","./common/log4js.js","' method",'"command":"',"object","root","keys","EnvironmentPlugin","run","webpack","concat","861548lyKAUt","async","throw","end","nextLoc","__await","plugins"];return(_0x319b=function(){return e})()}function _regeneratorRuntime(){var s=_0xaa2f;_regeneratorRuntime=function(){return c};var f,c={},e=Object.prototype,l=e[s(547)],p=Object.defineProperty||function(e,r,t){var n=s;e[r]=t[n(540)]},r=s(497)==typeof Symbol?Symbol:{},a=r.iterator||s(545),t=r.asyncIterator||s(509),n=r[s(560)]||s(541);function o(e,r,t){return Object[s(451)](e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{o({},"")}catch(e){o=function(e,r,t){return e[r]=t}}function u(e,r,t,n){var o,a,i,c,u=s,r=r&&r[u(569)]instanceof b?r:b,r=Object[u(459)](r[u(569)]),n=new j(n||[]);return p(r,u(556),{value:(o=e,a=t,i=n,c=v,function(e,r){var t=_0xaa2f;if(c===m)throw Error(t(517));if(c===_){if(t(443)===e)throw r;return{value:f,done:!0}}for(i[t(474)]=e,i[t(568)]=r;;){var n=i[t(550)];if(n){n=function e(r,t){var n=s,o=t[n(474)],a=r[n(492)][o];if(a===f)return t.delegate=null,n(443)===o&&r.iterator[n(530)]&&(t[n(474)]="return",t[n(568)]=f,e(r,t),"throw"===t[n(474)])||n(530)!==o&&(t[n(474)]=n(443),t[n(568)]=new TypeError(n(463)+o+n(432))),y;o=h(a,r[n(492)],t[n(568)]);if(n(443)===o[n(536)])return t[n(474)]=n(443),t[n(568)]=o[n(568)],t[n(550)]=null,y;a=o[n(568)];return a?a[n(533)]?(t[r[n(464)]]=a[n(540)],t[n(561)]=r[n(445)],n(530)!==t.method&&(t[n(474)]="next",t[n(568)]=f),t[n(550)]=null,y):a:(t.method=n(443),t[n(568)]=new TypeError("iterator result is not an object"),t[n(550)]=null,y)}(n,i);if(n){if(n===y)continue;return n}}if(t(561)===i[t(474)])i.sent=i._sent=i[t(568)];else if("throw"===i.method){if(c===v)throw c=_,i[t(568)];i[t(576)](i[t(568)])}else t(530)===i[t(474)]&&i[t(553)]("return",i.arg);c=m;n=h(o,a,i);if(t(472)===n[t(536)]){if(c=i.done?_:g,n.arg===y)continue;return{value:n[t(568)],done:i[t(533)]}}t(443)===n[t(536)]&&(c=_,i[t(474)]=t(443),i[t(568)]=n[t(568)])}})}),r}function h(e,r,t){var n=s;try{return{type:"normal",arg:e[n(491)](r,t)}}catch(e){return{type:"throw",arg:e}}}c[s(456)]=u;var v=s(522),g=s(486),m="executing",_="completed",y={};function b(){}function i(){}function d(){}var r={},x=(o(r,a,function(){return this}),Object[s(469)]),x=x&&x(x(T([]))),w=(x&&x!==e&&l[s(491)](x,a)&&(r=x),d[s(569)]=b[s(569)]=Object[s(459)](r));function k(e){var r=s;["next",r(443),r(530)][r(496)](function(r){o(e,r,function(e){return this[_0xaa2f(556)](r,e)})})}function q(c,u){var r;p(this,s(556),{value:function(t,n){function e(){return new u(function(e,r){!function r(e,t,n,o){var a,i=_0xaa2f,e=h(c[e],c,t);if(i(443)!==e[i(536)])return(t=(a=e.arg).value)&&i(434)==_typeof(t)&&l[i(491)](t,i(446))?u[i(574)](t[i(446)]).then(function(e){r(i(561),e,n,o)},function(e){r(i(443),e,n,o)}):u[i(574)](t)[i(538)](function(e){a[i(540)]=e,n(a)},function(e){return r("throw",e,n,o)});o(e[i(568)])}(t,n,e,r)})}return r=r?r.then(e,e):e()}})}function S(e){var r=s,t={tryLoc:e[0]};1 in e&&(t[r(452)]=e[1]),2 in e&&(t.finallyLoc=e[2],t[r(454)]=e[3]),this[r(505)][r(582)](t)}function G(e){var r=s,t=e[r(520)]||{};t[r(536)]=r(472),delete t[r(568)],e[r(520)]=t}function j(e){var r=s;this[r(505)]=[{tryLoc:r(435)}],e[r(496)](S,this),this[r(470)](!0)}function T(t){var n=s;if(t||""===t){var o,e=t[a];if(e)return e.call(t);if(n(497)==typeof t.next)return t;if(!isNaN(t[n(515)]))return o=-1,(e=function e(){for(var r=n;++o<t[r(515)];)if(l[r(491)](t,o))return e.value=t[o],e[r(533)]=!1,e;return e.value=f,e[r(533)]=!0,e})[n(561)]=e}throw new TypeError(_typeof(t)+n(548))}return i[s(569)]=d,p(w,s(563),{value:d,configurable:!0}),p(d,s(563),{value:i,configurable:!0}),i[s(532)]=o(d,n,s(571)),c[s(516)]=function(e){var r=s,e=r(497)==typeof e&&e.constructor;return!!e&&(e===i||"GeneratorFunction"===(e[r(532)]||e.name))},c.mark=function(e){var r=s;return Object[r(558)]?Object[r(558)](e,d):(e.__proto__=d,o(e,n,r(571))),e[r(569)]=Object[r(459)](w),e},c.awrap=function(e){return{__await:e}},k(q.prototype),o(q.prototype,t,function(){return this}),c[s(519)]=q,c[s(442)]=function(e,r,t,n,o){var a=s,i=(void 0===o&&(o=Promise),new q(u(e,r,t,n),o));return c[a(516)](r)?i:i[a(561)]()[a(538)](function(e){var r=a;return e[r(533)]?e[r(540)]:i[r(561)]()})},k(w),o(w,n,s(455)),o(w,a,function(){return this}),o(w,s(518),function(){return s(566)}),c[s(436)]=function(e){var r,n=s,o=Object(e),a=[];for(r in o)a[n(582)](r);return a[n(543)](),function e(){for(var r=n;a[r(515)];){var t=a[r(580)]();if(t in o)return e[r(540)]=t,e[r(533)]=!1,e}return e[r(533)]=!0,e}},c[s(583)]=T,j.prototype={constructor:j,reset:function(e){var r=s;if(this[r(554)]=0,this.next=0,this[r(552)]=this._sent=f,this[r(533)]=!1,this.delegate=null,this[r(474)]="next",this[r(568)]=f,this.tryEntries[r(496)](G),!e)for(var t in this)"t"===t.charAt(0)&&l[r(491)](this,t)&&!isNaN(+t[r(528)](1))&&(this[t]=f)},stop:function(){var e=s,r=(this[e(533)]=!0,this[e(505)][0][e(520)]);if(e(443)===r[e(536)])throw r[e(568)];return this[e(546)]},dispatchException:function(n){var o=s;if(this[o(533)])throw n;var a=this;function e(e,r){var t=o;return i[t(536)]=t(443),i.arg=n,a.next=e,r&&(a[t(474)]=t(561),a[t(568)]=f),!!r}for(var r=this.tryEntries[o(515)]-1;0<=r;--r){var t=this[o(505)][r],i=t[o(520)];if("root"===t[o(457)])return e("end");if(t[o(457)]<=this[o(554)]){var c=l[o(491)](t,o(452)),u=l[o(491)](t,o(485));if(c&&u){if(this[o(554)]<t.catchLoc)return e(t[o(452)],!0);if(this[o(554)]<t[o(485)])return e(t[o(485)])}else if(c){if(this[o(554)]<t[o(452)])return e(t.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[o(554)]<t.finallyLoc)return e(t[o(485)])}}}},abrupt:function(e,r){for(var t=s,n=this[t(505)][t(515)]-1;0<=n;--n){var o=this[t(505)][n];if(o[t(457)]<=this[t(554)]&&l[t(491)](o,t(485))&&this[t(554)]<o[t(485)]){var a=o;break}}var i=(a=a&&(t(521)===e||t(523)===e)&&a.tryLoc<=r&&r<=a[t(485)]?null:a)?a[t(520)]:{};return i.type=e,i[t(568)]=r,a?(this[t(474)]=t(561),this[t(561)]=a[t(485)],y):this.complete(i)},complete:function(e,r){var t=s;if(t(443)===e.type)throw e[t(568)];return t(521)===e[t(536)]||t(523)===e[t(536)]?this[t(561)]=e[t(568)]:t(530)===e[t(536)]?(this.rval=this[t(568)]=e.arg,this[t(474)]=t(530),this[t(561)]="end"):t(472)===e[t(536)]&&r&&(this[t(561)]=r),y},finish:function(e){for(var r=s,t=this[r(505)][r(515)]-1;0<=t;--t){var n=this[r(505)][t];if(n[r(485)]===e)return this[r(577)](n[r(520)],n[r(454)]),G(n),y}},catch:function(e){for(var r=s,t=this[r(505)][r(515)]-1;0<=t;--t){var n,o,a=this[r(505)][t];if(a.tryLoc===e)return n=a[r(520)],r(443)===n.type&&(o=n[r(568)],G(a)),o}throw Error(r(529))},delegateYield:function(e,r,t){var n=s;return this[n(550)]={iterator:T(e),resultName:r,nextLoc:t},n(561)===this.method&&(this[n(568)]=f),y}},c}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0xaa2f;try{var u=e[a](i),s=u[c(540)]}catch(e){return void t(e)}u[c(533)]?r(s):Promise.resolve(s)[c(538)](n,o)}function _asyncToGenerator(c){return function(){var e=this,i=arguments;return new Promise(function(r,t){var n=c.apply(e,i);function o(e){asyncGeneratorStep(n,r,t,o,a,_0xaa2f(561),e)}function a(e){asyncGeneratorStep(n,r,t,o,a,_0xaa2f(443),e)}o(void 0)})}}(()=>{for(var e=_0xaa2f,r=_0x319b();;)try{if(680692==-parseInt(e(441))+parseInt(e(581))/2*(-parseInt(e(549))/3)+parseInt(e(559))/4*(-parseInt(e(458))/5)+-parseInt(e(478))/6+parseInt(e(494))/7+parseInt(e(525))/8+parseInt(e(512))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var path=require("path"),_require=require(_0x11a87e(578)),watchExec=_require[_0x11a87e(465)],pkg=require(_0x11a87e(503)),_require2=require(_0x11a87e(500)),configs=_require2[_0x11a87e(564)],log4js=require(_0x11a87e(431)),_require3=require(_0x11a87e(462)),buildNpm=_require3.buildNpm,logger=log4js[_0x11a87e(501)]("index");function convert(e){return _convert.apply(this,arguments)}function _convert(){var t=_0x11a87e;return(_convert=_asyncToGenerator(_regeneratorRuntime()[t(514)](function e(r){var n,o,a=t;return _regeneratorRuntime()[a(456)](function(e){for(var t=a;;)switch(e.prev=e[t(561)]){case 0:if(configs[t(493)]=!!r[t(493)],n=require(t(504)),global._isMiniAppConvertMode=!0,global[t(513)]=!0,process[t(479)][t(490)]=r[t(502)]?"yes":"no",o=require(t(448)),o=o[t(535)],r[t(495)]&&(o(r[t(453)],r[t(498)]),process[t(473)](0)),n[t(480)](r[t(453)]),r[t(527)]){e.next=13;break}return e.next=11,n.confirmConverterFun({inputPath:r.input,outPath:r[t(498)],confirmAddConfig:!0});case 11:(o=e.sent)[t(468)]?logger[t(430)](t(433)[t(440)](o.command,t(487))[t(440)](o.errorMessage,'"')):logger.info('"command":"'[t(440)](o[t(460)],t(471))[t(440)](o[t(562)],'"'));case 13:setTimeout(function(){var r=t,e=require(r(526))[r(476)];try{e()}catch(e){logger[r(567)](r(461)[r(440)](e,"."))}});case 14:case t(444):return e.stop()}},e)}))).apply(this,arguments)}function compile(e,r){return _compile[_0x11a87e(565)](this,arguments)}function _compile(){var a=_0x11a87e;return(_compile=_asyncToGenerator(_regeneratorRuntime()[a(514)](function e(i,c){var u,s,f,r,t,n,o,l,p,h,v=a;return _regeneratorRuntime()[v(456)](function(e){for(var a=v;;)switch(e.prev=e[a(561)]){case 0:return process[a(479)][a(477)]=path[a(574)](i),process[a(428)](path[a(574)](i,a(429))),r=require("./common/utils"),(0,r.initConfigs)(i,c),u=require(a(439)),global[a(508)]=(new Date)[a(475)](),s=require(a(449)),f=(()=>{var r=a,e=_asyncToGenerator(_regeneratorRuntime()[r(514)](function e(){var t,n,o=r;return _regeneratorRuntime()[o(456)](function(e){for(var r=o;;)switch(e[r(554)]=e[r(561)]){case 0:return e.next=2,s();case 2:return(t=e.sent)[r(447)]=t[r(447)]||[],t[r(447)][r(582)](new u[r(437)]({projectRoot:i})),c[r(572)]&&t.plugins[r(582)](new u[r(484)]({})),c[r(579)]&&(t.watch=!0),global[r(507)]&&(t[r(506)]={debug:!0,level:r(537)}),n=u(t),e.abrupt(r(530),{webpackCfg:t,compiler:n});case 10:case r(444):return e[r(570)]()}},e)}));return function(){return e.apply(this,arguments)}})(),e[a(554)]=8,e[a(561)]=11,f();case 11:r=e[a(552)],t=r[a(539)],n=r.compiler,c.watch?(watchExec(n,c.run),e[a(561)]=29):e[a(561)]=18;break;case 18:if(configs.serve)return o=require(a(511)),l=o[a(555)],e[a(561)]=22,l(n,t.devServer);e.next=27;break;case 22:p=e[a(552)],h=!1,global[a(544)]=_asyncToGenerator(_regeneratorRuntime()[a(514)](function e(){var t,n,o=a;return _regeneratorRuntime()[o(456)](function(e){for(var r=o;;)switch(e[r(554)]=e.next){case 0:if(h)return e[r(553)](r(530));e.next=2;break;case 2:if(h=!0,logger.info("restart dev server"),e.prev=4,p){e[r(561)]=9;break}return e[r(561)]=8,p.stop();case 8:p=null;case 9:return e[r(561)]=11,f();case 11:return n=e[r(552)],t=n[r(539)],n=n.compiler,e.next=16,l(n,t.devServer);case 16:p=e[r(552)],e.next=22;break;case 19:e[r(554)]=19,e.t0=e.catch(4),logger[r(430)](r(499),e.t0);case 22:h=!1;case 23:case r(444):return e[r(570)]()}},e,null,[[4,19]])})),e[a(561)]=29;break;case 27:return e.next=29,run(n);case 29:e.next=35;break;case 31:e[a(554)]=31,e.t0=e.catch(8),logger[a(489)](e.t0),process[a(473)](1);case 35:case a(444):return e[a(570)]()}},e,null,[[8,31]])})))[a(565)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function _0xaa2f(e,r){var t=_0x319b();return(_0xaa2f=function(e,r){return t[e-=428]})(e,r)}function run(i){return new Promise(function(t,o){var a=_0xaa2f;i[a(438)](function(e,r){var n=a;r&&logger.info(r[n(518)]({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global[n(507)]?"verbose":"info"})),e?(logger[n(430)](e),o(e)):(setTimeout(function(){var r=n,e=require(r(526)),t=e.isLatestAscfToolkit,e=e[r(450)];try{e(global[r(467)])}catch(e){logger.warn(r(551)[r(440)](e,"."))}try{t(global[r(467)])}catch(e){logger[r(567)](r(461)[r(440)](e,"."))}}),t(r),i[n(573)](function(e){var r=n;e&&logger[r(430)](r(482),e)}))})})}function quickGenerateSubpackage(){return _quickGenerateSubpackage[_0x11a87e(565)](this,arguments)}function _quickGenerateSubpackage(){var e=_0x11a87e;return(_quickGenerateSubpackage=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n=_0xaa2f;return _regeneratorRuntime()[n(456)](function(e){for(var r=n;;)switch(e[r(554)]=e.next){case 0:return t=require(r(575)),t=t[r(510)],e[r(561)]=3,t().catch(function(e){logger[r(430)](e)});case 3:case"end":return e[r(570)]()}},e)})))[e(565)](this,arguments)}logger.debug("Using "[_0x11a87e(440)](pkg[_0x11a87e(534)]," ").concat(pkg[_0x11a87e(557)],".")),global[_0x11a87e(513)]=!0,process.on(_0x11a87e(531),function(e){var r=_0x11a87e;logger[r(430)](r(524),e)}),process.on(_0x11a87e(542),function(e,r){var t=_0x11a87e;logger.error(t(483),r,t(481),e)}),module[_0x11a87e(466)]={convert:convert,compile:compile,buildNpm:buildNpm,getAscfToolkitDirname:getAscfToolkitDirname,quickGenerateSubpackage:quickGenerateSubpackage};
|