@atomicservice/ascf-toolkit 1.0.6-beta.4 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/lib/ascf-base/index.d.ts +2 -1
  2. package/lib/ascf-base/index.js +1 -1
  3. package/lib/ascf-common/index.d.ts +2 -0
  4. package/lib/ascf-common/index.js +1 -0
  5. package/lib/ascf-compiler/appjson-loader.js +1 -1
  6. package/lib/ascf-compiler/common/appjson-validator.js +1 -1
  7. package/lib/ascf-compiler/common/ascf-define.js +1 -1
  8. package/lib/ascf-compiler/common/beforeLoaderProcess.js +1 -1
  9. package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
  10. package/lib/ascf-compiler/common/eventHappenHjs.js +1 -1
  11. package/lib/ascf-compiler/common/exp-utils.js +1 -1
  12. package/lib/ascf-compiler/common/hash-sum.js +1 -1
  13. package/lib/ascf-compiler/common/hdc-executor.js +1 -1
  14. package/lib/ascf-compiler/common/hjs-utils.js +1 -1
  15. package/lib/ascf-compiler/common/hxml-validator.js +1 -1
  16. package/lib/ascf-compiler/common/logUndefined.js +1 -1
  17. package/lib/ascf-compiler/common/manifest-handler.js +1 -1
  18. package/lib/ascf-compiler/common/manifest-manager.js +1 -1
  19. package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -1
  20. package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
  21. package/lib/ascf-compiler/common/quick-generate-subpackage.js +1 -1
  22. package/lib/ascf-compiler/common/utils.js +1 -1
  23. package/lib/ascf-compiler/css-process-loader.js +1 -1
  24. package/lib/ascf-compiler/extract-loader.js +1 -1
  25. package/lib/ascf-compiler/hcss-loader.js +1 -1
  26. package/lib/ascf-compiler/hjs-loader.js +1 -1
  27. package/lib/ascf-compiler/hxml-loader.js +1 -1
  28. package/lib/ascf-compiler/js-parser/parser-babel.js +1 -1
  29. package/lib/ascf-compiler/js-parser/parser-swc.js +1 -1
  30. package/lib/ascf-compiler/js-parser/parser.js +1 -1
  31. package/lib/ascf-compiler/loader-utils.js +1 -1
  32. package/lib/ascf-compiler/path-process-loader.js +1 -1
  33. package/lib/ascf-compiler/plugin/before-loader-plugin.js +1 -1
  34. package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
  35. package/lib/ascf-compiler/plugin/dynamic-entry-plugin.js +1 -1
  36. package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
  37. package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
  38. package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
  39. package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
  40. package/lib/ascf-compiler/plugin/quick-service-build-plugin.js +1 -1
  41. package/lib/ascf-compiler/plugin/replace-module-id-plugin.js +1 -1
  42. package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
  43. package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
  44. package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
  45. package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
  46. package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
  47. package/lib/ascf-compiler/require-loader.js +1 -1
  48. package/lib/ascf-compiler/server/dev-server.js +1 -1
  49. package/lib/ascf-compiler/server/port-manager.js +1 -1
  50. package/lib/ascf-compiler/swc-loader.js +1 -1
  51. package/lib/ascf-compiler/template/attr-utils.js +1 -1
  52. package/lib/ascf-compiler/template/implicit-model-config.js +1 -1
  53. package/lib/ascf-compiler/template/node-name-utils.js +1 -1
  54. package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
  55. package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
  56. package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
  57. package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
  58. package/lib/ascf-compiler/trustlist-verify/verify-ignore-files.js +1 -1
  59. package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
  60. package/lib/ascf-compiler/web.webpack.config.js +1 -1
  61. package/lib/ascf-converter/common/commonConfig.js +1 -1
  62. package/lib/ascf-converter/common/commonUtils.js +1 -1
  63. package/lib/ascf-converter/common/path-validator.js +1 -1
  64. package/lib/ascf-converter/common/textDocument.js +1 -1
  65. package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
  66. package/lib/ascf-converter/convertManager.js +1 -1
  67. package/lib/ascf-converter/features/converter.js +1 -1
  68. package/lib/ascf-converter/features/fileHandle.js +1 -1
  69. package/lib/ascf-converter/features/transformReport.js +1 -1
  70. package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
  71. package/lib/ascf-converter/parse/babelParser.js +1 -1
  72. package/lib/ascf-converter/parse/importVisitor.js +1 -1
  73. package/lib/ascf-converter/parse/wxssParser.js +1 -1
  74. package/lib/ascf-converter/report/js/index.js +1 -1
  75. package/lib/ascf-sign-tools/cli.js +1 -1
  76. package/lib/ascf-sign-tools/index.js +1 -1
  77. package/lib/bin/ascf.js +1 -1
  78. package/lib/commands/ascfbuild/index.js +1 -1
  79. package/lib/commands/build-npm/index.js +1 -1
  80. package/lib/commands/compile.js +1 -1
  81. package/lib/commands/convert.js +1 -1
  82. package/lib/commands/debugger/index.js +1 -1
  83. package/lib/commands/quickservice/index.js +1 -1
  84. package/lib/common/config.js +1 -1
  85. package/lib/common/constants.js +1 -1
  86. package/lib/common/log4js.js +1 -1
  87. package/lib/common/logger-plugin.js +1 -1
  88. package/lib/common/remove-strict-mode-plugin.js +1 -1
  89. package/lib/common/string-utils.js +1 -1
  90. package/lib/common/utils.js +1 -1
  91. package/lib/common/version-check.js +1 -1
  92. package/lib/index.js +1 -1
  93. package/package.json +11 -15
@@ -1 +1 @@
1
- var _0x3055fa=_0x4977;function _0x3319(){var e=["1669HDQxlX","9692AByjow","readJsonFile","4760904OrFnCq","error","srcPath","path","113146DheKjc","modules","7551lMkGln","pathValidator","1968273wFLltX","oh-package.json5","existsSync","resolve","../features/converter.js","data","160htGvvw","info","721QyXSiI","206aQCicl","@atomicservice/ascf","Output path is not an ASCF project.","85mIwgsZ","dependencies","Input path is not MiniProgram src.","5896HClbPs","returnCode","32658zPoAIk","../../common/utils"];return(_0x3319=function(){return e})()}function _0x4977(e,r){var n=_0x3319();return(_0x4977=function(e,r){return n[e-=373]})(e,r)}(()=>{for(var e=_0x4977,r=_0x3319();;)try{if(350923==-parseInt(e(399))*(parseInt(e(389))/2)+parseInt(e(380))/3+parseInt(e(400))/4*(parseInt(e(392))/5)+-parseInt(e(397))/6*(parseInt(e(388))/7)+-parseInt(e(395))/8*(-parseInt(e(378))/9)+parseInt(e(386))/10*(parseInt(e(376))/11)+-parseInt(e(402))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var fs=require("fs"),path=require(_0x3055fa(375)),_require=require(_0x3055fa(398)),readJsonFile=_require[_0x3055fa(401)];exports[_0x3055fa(379)]=function(e,r){var n,a=_0x3055fa;require(a(384)).checkInputPathFun(e)[a(385)][a(396)]?(e=path[a(383)](r,"build-profile.json5"),null!=(r=(n=0<(null==(e=fs[a(382)](e)?readJsonFile(e):void 0)||null==(n=e[a(377)])?void 0:n.length)?path[a(383)](r,e[a(377)][0][a(374)],a(381)):void 0)?readJsonFile(n):void 0)&&r[a(393)]&&(r[a(393)]["@atomicservice/ascfapi"]||r[a(393)][a(390)])?console[a(387)]("Check success."):console[a(373)](a(391))):console[a(373)](a(394))};
1
+ var _0x551877=_0xd3d0;function _0xd3d0(e,r){var n=_0x2d25();return(_0xd3d0=function(e,r){return n[e-=419]})(e,r)}function _0x2d25(){var e=["39yxSYcu","329gqErnc","resolve","checkInputPathFun","oh-package.json5","error","data","3839408pgtIuH","Check success.","23336dBmkwV","3vOalFa","dependencies","existsSync","1395475HLssFt","path","21659YWrNkD","113254XWSijE","288WxeBUj","Output path is not an ASCF project.","@atomicservice/ascf","64422kXVjFz","modules","build-profile.json5","10HlWEIB","length","readJsonFile","131778ffyJQZ","Input path is not MiniProgram src.","srcPath"];return(_0x2d25=function(){return e})()}(()=>{for(var e=_0xd3d0,r=_0x2d25();;)try{if(286523==-parseInt(e(421))*(-parseInt(e(427))/2)+-parseInt(e(440))/3*(parseInt(e(420))/4)+parseInt(e(424))/5+parseInt(e(431))/6*(-parseInt(e(441))/7)+parseInt(e(447))/8+parseInt(e(437))/9*(-parseInt(e(434))/10)+-parseInt(e(426))/11*(parseInt(e(428))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var fs=require("fs"),path=require(_0x551877(425)),_require=require("../../common/utils"),readJsonFile=_require[_0x551877(436)];exports.pathValidator=function(e,r){var n,t=_0x551877;require("../features/converter.js")[t(443)](e)[t(446)].returnCode?(e=path[t(442)](r,t(433)),null!=(r=(n=0<(null==(e=fs[t(423)](e)?readJsonFile(e):void 0)||null==(n=e[t(432)])?void 0:n[t(435)])?path[t(442)](r,e[t(432)][0][t(439)],t(444)):void 0)?readJsonFile(n):void 0)&&r[t(422)]&&(r[t(422)]["@atomicservice/ascfapi"]||r[t(422)][t(430)])?console.info(t(419)):console[t(445)](t(429))):console.error(t(438))};
@@ -1 +1 @@
1
- var _0x40e8c1=_0x2311;function _0x2311(t,e){var r=_0x154d();return(_0x2311=function(t,e){return r[t-=304]})(t,e)}function _typeof(t){var r=_0x2311;return(_typeof=r(308)==typeof Symbol&&r(332)==typeof Symbol[r(307)]?function(t){return typeof t}:function(t){var e=r;return t&&e(308)==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?e(332):typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=_0x2311,n=0;n<e[r(314)];n++){var i=e[n];i[r(337)]=i[r(337)]||!1,i.configurable=!0,r(329)in i&&(i[r(319)]=!0),Object.defineProperty(t,_toPropertyKey(i[r(315)]),i)}}function _createClass(t,e,r){var n=_0x2311;return e&&_defineProperties(t[n(328)],e),r&&_defineProperties(t,r),Object[n(305)](t,"prototype",{writable:!1}),t}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"==_typeof(t)?t:t+""}function _0x154d(){var t=["@@toPrimitive must return a primitive value.","679437wSUCSx","enumerable","9516784QPxUGg","floor","_content","540OSLNXb","charCodeAt","defineProperty","_lineOffsets","iterator","function","line","292yeeTUN","toPrimitive","positionAt","exports","length","key","7gVdIbO","min","3254601BatADH","writable","push","computeLineOffsets","object","69455arDNjs","string","211974fVqszt","2YUsqDi","max","prototype","value","252444ZBegEq","7049502yOIOYh","symbol","getLineOffsets","default"];return(_0x154d=function(){return t})()}function _toPrimitive(t,e){var r=_0x2311;if(r(322)!=_typeof(t)||!t)return t;var n=t[Symbol[r(311)]];if(void 0===n)return(r(324)===e?String:Number)(t);n=n.call(t,e||r(334));if(r(322)!=_typeof(n))return n;throw new TypeError(r(335))}(()=>{for(var t=_0x2311,e=_0x154d();;)try{if(613073==-parseInt(t(330))*(parseInt(t(326))/2)+-parseInt(t(318))/3+parseInt(t(310))/4*(-parseInt(t(323))/5)+parseInt(t(325))/6+-parseInt(t(316))/7*(parseInt(t(338))/8)+parseInt(t(331))/9+parseInt(t(341))/10*(parseInt(t(336))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();var TextDocument=(()=>{var u=_0x2311;return _createClass(function t(e,r){var n=_0x2311;_classCallCheck(this,t),this._uri=e,this._content=r,this[n(306)]=void 0},[{key:"getText",value:function(){return this._content}},{key:"uri",value:function(){return this._uri}},{key:"offsetAt",value:function(t){var e,r=_0x2311,n=this[r(333)]();return t[r(309)]>=n[r(314)]?this[r(340)][r(314)]:t.line<0?0:(e=n[t.line],n=t[r(309)]+1<n[r(314)]?n[t[r(309)]+1]:this[r(340)][r(314)],Math[r(327)](Math[r(317)](e+t.character,n),e))}},{key:u(333),value:function(){var t=u;return void 0===this[t(306)]&&(this[t(306)]=this.computeLineOffsets(this._content,!0)),this[t(306)]}},{key:u(321),value:function(t,e,r){for(var n=u,i=(void 0===r&&(r=0),e?[r]:[]),o=0;o<t[n(314)];o++){var a=t[n(304)](o);13!==a&&10!==a||(13===a&&o+1<t[n(314)]&&10===t.charCodeAt(o+1)&&o++,i[n(320)](r+o+1))}return i}},{key:u(312),value:function(t){var e=u,r=(t=Math[e(327)](Math[e(317)](t,this[e(340)][e(314)]),0),this[e(333)]()),n=0,i=r.length;if(0===i)return{line:0,character:t};for(;n<i;){var o=Math[e(339)]((n+i)/2);r[o]>t?i=o:n=o+1}var a=n-1;return{line:a,character:t-r[a]}}}])})();function create(t,e){return new TextDocument(t,e)}module[_0x40e8c1(313)]={create:create};
1
+ var _0x49e733=_0x1655;function _0x1655(t,e){var r=_0xdc29();return(_0x1655=function(t,e){return r[t-=147]})(t,e)}function _typeof(t){var r=_0x1655;return(_typeof=r(185)==typeof Symbol&&r(166)==typeof Symbol[r(170)]?function(t){return typeof t}:function(t){var e=r;return t&&e(185)==typeof Symbol&&t[e(181)]===Symbol&&t!==Symbol[e(159)]?"symbol":typeof t})(t)}function _classCallCheck(t,e){var r=_0x1655;if(!(t instanceof e))throw new TypeError(r(162))}function _defineProperties(t,e){for(var r=_0x1655,n=0;n<e[r(187)];n++){var i=e[n];i[r(158)]=i[r(158)]||!1,i[r(180)]=!0,r(148)in i&&(i.writable=!0),Object[r(183)](t,_toPropertyKey(i[r(184)]),i)}}function _0xdc29(){var t=["1544217cqyLuf","4rjEONE","7319685jXRJzy","configurable","constructor","min","defineProperty","key","function","object","length","offsetAt","_content","value","426803ullycJ","9026969ORWgvU","exports","max","_lineOffsets","default","string","6SPLIIM","charCodeAt","enumerable","prototype","50990rxPcjV","getLineOffsets","Cannot call a class as a function","toPrimitive","8CPIWnw","floor","symbol","5170WFWcyA","_uri","10137996JQVYoU","iterator","6469416tAVzeS","call","line","uri","getText","positionAt"];return(_0xdc29=function(){return t})()}function _createClass(t,e,r){var n=_0x1655;return e&&_defineProperties(t[n(159)],e),r&&_defineProperties(t,r),Object[n(183)](t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_0x1655,t=_toPrimitive(t,e(155));return e(166)==_typeof(t)?t:t+""}function _toPrimitive(t,e){var r=_0x1655;if("object"!=_typeof(t)||!t)return t;var n=t[Symbol[r(163)]];if(void 0===n)return(r(155)===e?String:Number)(t);n=n[r(172)](t,e||r(154));if(r(186)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{for(var t=_0x1655,e=_0xdc29();;)try{if(823960==-parseInt(t(149))*(parseInt(t(156))/2)+parseInt(t(177))/3*(-parseInt(t(178))/4)+parseInt(t(179))/5+-parseInt(t(171))/6+-parseInt(t(150))/7*(parseInt(t(164))/8)+parseInt(t(169))/9+parseInt(t(160))/10*(parseInt(t(167))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();var TextDocument=(()=>{var u=_0x1655;return _createClass(function t(e,r){var n=_0x1655;_classCallCheck(this,t),this[n(168)]=e,this[n(147)]=r,this[n(153)]=void 0},[{key:u(175),value:function(){return this[u(147)]}},{key:u(174),value:function(){return this._uri}},{key:u(188),value:function(t){var e,r=u,n=this[r(161)]();return t[r(173)]>=n.length?this._content[r(187)]:t[r(173)]<0?0:(e=n[t[r(173)]],n=t.line+1<n[r(187)]?n[t.line+1]:this[r(147)][r(187)],Math[r(152)](Math[r(182)](e+t.character,n),e))}},{key:"getLineOffsets",value:function(){var t=u;return void 0===this[t(153)]&&(this[t(153)]=this.computeLineOffsets(this[t(147)],!0)),this._lineOffsets}},{key:"computeLineOffsets",value:function(t,e,r){for(var n=u,i=(void 0===r&&(r=0),e?[r]:[]),o=0;o<t[n(187)];o++){var a=t[n(157)](o);13!==a&&10!==a||(13===a&&o+1<t[n(187)]&&10===t[n(157)](o+1)&&o++,i.push(r+o+1))}return i}},{key:u(176),value:function(t){var e=u,r=(t=Math.max(Math[e(182)](t,this._content[e(187)]),0),this[e(161)]()),n=0,i=r[e(187)];if(0===i)return{line:0,character:t};for(;n<i;){var o=Math[e(165)]((n+i)/2);r[o]>t?i=o:n=o+1}var a=n-1;return{line:a,character:t-r[a]}}}])})();function create(t,e){return new TextDocument(t,e)}module[_0x49e733(151)]={create:create};