@univer-cli/content-execution 1.6.1 → 1.6.2

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 (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x78b400=_0xf71a;(function(_0x100dc2,_0x4be904){const _0x3f26aa=_0xf71a,_0x208f2f=_0x100dc2();while(!![]){try{const _0x45c310=parseInt(_0x3f26aa(0xbe))/0x1+parseInt(_0x3f26aa(0xaa))/0x2*(parseInt(_0x3f26aa(0x9f))/0x3)+parseInt(_0x3f26aa(0xc8))/0x4+parseInt(_0x3f26aa(0x9a))/0x5+-parseInt(_0x3f26aa(0xa4))/0x6+parseInt(_0x3f26aa(0xbb))/0x7+-parseInt(_0x3f26aa(0xb0))/0x8*(parseInt(_0x3f26aa(0xab))/0x9);if(_0x45c310===_0x4be904)break;else _0x208f2f['push'](_0x208f2f['shift']());}catch(_0x10c93f){_0x208f2f['push'](_0x208f2f['shift']());}}}(_0x23fc,0x753b1));var e=class extends Error{[_0x78b400(0xc6)];[_0x78b400(0xa3)];constructor(_0x30bc30,_0x8abc7e,_0xffdeb7){const _0x46c466=_0x78b400;super(_0x8abc7e),this[_0x46c466(0xc6)]=_0x30bc30,this['details']=_0xffdeb7,this['name']=_0x46c466(0xaf);}},t=[_0x78b400(0xb2),'doc',_0x78b400(0xad),_0x78b400(0xa5),_0x78b400(0xb1)];function n(_0x5a832d){const _0x489b31=_0x78b400;if(typeof _0x5a832d['code']!=_0x489b31(0xb3))throw new e(_0x489b31(0xa1),'Content\x20execution\x20code\x20must\x20be\x20a\x20string');if(typeof _0x5a832d[_0x489b31(0xb6)]!=_0x489b31(0xb3)||_0x5a832d[_0x489b31(0xb6)][_0x489b31(0xa9)]()[_0x489b31(0xa8)]===0x0)throw new e(_0x489b31(0xa1),_0x489b31(0xa6),{'unitId':_0x5a832d[_0x489b31(0xb6)]});if(!c(_0x5a832d[_0x489b31(0xb4)]))throw new e(_0x489b31(0xbf),_0x489b31(0xa0)+String(_0x5a832d[_0x489b31(0xb4)]),{'supportedUnitTypes':t,'unitType':_0x5a832d[_0x489b31(0xb4)]});let _0x3261c2=i(_0x5a832d[_0x489b31(0xb4)]);return o(_0x5a832d['code'],_0x5a832d[_0x489b31(0xb4)],_0x3261c2),r(_0x5a832d[_0x489b31(0xb4)],_0x5a832d[_0x489b31(0xb6)])+'\x0a'+_0x5a832d[_0x489b31(0xc6)];}function r(_0x5dad37,_0x1f552b){const _0x297ca1=_0x78b400;let _0x5a5d41=JSON[_0x297ca1(0xba)](_0x1f552b);return _0x5dad37==='sheet'?[_0x297ca1(0x9e),_0x297ca1(0xb5)+_0x5a5d41+');','if\x20(!workbook)\x20throw\x20new\x20Error('+JSON[_0x297ca1(0xba)]('Cannot\x20find\x20workbook\x20'+_0x1f552b)+');'][_0x297ca1(0xc9)]('\x0a'):_0x5dad37===_0x297ca1(0xa2)?[_0x297ca1(0x9e),_0x297ca1(0x9b)+_0x5a5d41+');',_0x297ca1(0x99)+JSON[_0x297ca1(0xba)]('Cannot\x20find\x20doc\x20'+_0x1f552b)+');'][_0x297ca1(0xc9)]('\x0a'):_0x5dad37===_0x297ca1(0xad)?[_0x297ca1(0x9e),_0x297ca1(0xc0)+_0x5a5d41+');','if\x20(!presentation)\x20throw\x20new\x20Error('+JSON['stringify'](_0x297ca1(0xc2)+_0x1f552b)+');'][_0x297ca1(0xc9)]('\x0a'):_0x5dad37==='base'?[_0x297ca1(0x9e),_0x297ca1(0xc4)+_0x5a5d41+');','if\x20(!base)\x20throw\x20new\x20Error('+JSON[_0x297ca1(0xba)](_0x297ca1(0xb9)+_0x1f552b)+');'][_0x297ca1(0xc9)]('\x0a'):_0x5dad37===_0x297ca1(0xb1)?[_0x297ca1(0x9e),_0x297ca1(0xbc)+_0x5a5d41+');',_0x297ca1(0xc3)+JSON[_0x297ca1(0xba)](_0x297ca1(0x9d)+_0x1f552b)+');'][_0x297ca1(0xc9)]('\x0a'):a(_0x5dad37);}function i(_0x40a06c){const _0x4b73d9=_0x78b400;return _0x40a06c===_0x4b73d9(0xb2)?[_0x4b73d9(0xb8),_0x4b73d9(0xac),'workbook']:_0x40a06c===_0x4b73d9(0xa2)?[_0x4b73d9(0xb8),'api','doc']:_0x40a06c===_0x4b73d9(0xad)?[_0x4b73d9(0xb8),_0x4b73d9(0xac),_0x4b73d9(0xb7)]:_0x40a06c===_0x4b73d9(0xa5)?[_0x4b73d9(0xb8),_0x4b73d9(0xac),_0x4b73d9(0xa5)]:_0x40a06c==='board'?[_0x4b73d9(0xb8),_0x4b73d9(0xac),'board']:a(_0x40a06c);}function _0xf71a(_0xc1d772,_0x395f5c){_0xc1d772=_0xc1d772-0x99;const _0x23fc99=_0x23fc();let _0xf71a6e=_0x23fc99[_0xc1d772];return _0xf71a6e;}function _0x23fc(){const _0x10905f=['some','Cannot\x20find\x20presentation\x20','if\x20(!board)\x20throw\x20new\x20Error(','const\x20base\x20=\x20api.getBase(','return\x20(async\x20()\x20=>\x20{\x20','code','\x0a})();','2208104ndCVIc','join','if\x20(!doc)\x20throw\x20new\x20Error(','4526595mGQfQw','const\x20doc\x20=\x20api.getDocument(','\x20=\x20undefined;\x0a','Cannot\x20find\x20board\x20','const\x20api\x20=\x20univerAPI;','58407HrXauW','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','CONTENT_EXECUTION_INVALID_INPUT','doc','details','2616582vpzxCT','base','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','length','trim','24qxvxwa','20449665ONhEXh','api','slide','\x20content\x20execution\x20prelude','ContentExecutionError','8UaycXu','board','sheet','string','unitType','const\x20workbook\x20=\x20api.getWorkbook(','unitId','presentation','univerAPI','Cannot\x20find\x20base\x20','stringify','4638249VovfMV','const\x20board\x20=\x20api.getBoard(','`\x20is\x20reserved\x20by\x20the\x20','834879pVkACZ','CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','const\x20presentation\x20=\x20api.getPresentation('];_0x23fc=function(){return _0x10905f;};return _0x23fc();}function a(_0x1a8139){const _0x475564=_0x78b400;throw Error(_0x475564(0xa7)+String(_0x1a8139));}function o(_0xb1b15,_0x4be7a6,_0x438ef2){const _0x12b99e=_0x78b400;if(s(_0xb1b15)){for(let _0x73b822 of _0x438ef2)if(!s('const\x20'+_0x73b822+_0x12b99e(0x9c)+_0xb1b15))throw new e('CONTENT_EXECUTION_RESERVED_BINDING','`'+_0x73b822+_0x12b99e(0xbd)+_0x4be7a6+_0x12b99e(0xae),{'binding':_0x73b822,'reservedBindings':_0x438ef2,'unitType':_0x4be7a6});}}function s(_0x479f2a){const _0x31448f=_0x78b400;try{return Function(_0x31448f(0xb8),_0x31448f(0xc5)+_0x479f2a+_0x31448f(0xc7)),!0x0;}catch{return!0x1;}}function c(_0x8d7f33){const _0x516bb1=_0x78b400;return t[_0x516bb1(0xc1)](_0x5e9440=>_0x5e9440===_0x8d7f33);}export{e as ContentExecutionError,n as prepareContentExecutionProgram};
1
+ const _0x1cf6e8=_0x9d3b;(function(_0x3247a0,_0x4d920d){const _0x22599c=_0x9d3b,_0x11aa9e=_0x3247a0();while(!![]){try{const _0x479e0d=-parseInt(_0x22599c(0x1a4))/0x1+-parseInt(_0x22599c(0x1a5))/0x2*(-parseInt(_0x22599c(0x1b9))/0x3)+-parseInt(_0x22599c(0x1b2))/0x4+-parseInt(_0x22599c(0x1aa))/0x5+parseInt(_0x22599c(0x19f))/0x6*(parseInt(_0x22599c(0x18d))/0x7)+-parseInt(_0x22599c(0x1ad))/0x8+-parseInt(_0x22599c(0x199))/0x9*(-parseInt(_0x22599c(0x1a2))/0xa);if(_0x479e0d===_0x4d920d)break;else _0x11aa9e['push'](_0x11aa9e['shift']());}catch(_0x3a5e3e){_0x11aa9e['push'](_0x11aa9e['shift']());}}}(_0x37a5,0x8b2c4));var e=class extends Error{['code'];[_0x1cf6e8(0x1a8)];constructor(_0x36bfd7,_0x546079,_0x488ab3){const _0x2e1717=_0x1cf6e8;super(_0x546079),this[_0x2e1717(0x198)]=_0x36bfd7,this[_0x2e1717(0x1a8)]=_0x488ab3,this[_0x2e1717(0x19b)]=_0x2e1717(0x187);}},t=['sheet',_0x1cf6e8(0x1b8),_0x1cf6e8(0x1a6),_0x1cf6e8(0x1b1),'board'];function _0x9d3b(_0x45f435,_0x2c0e41){_0x45f435=_0x45f435-0x185;const _0x37a5a2=_0x37a5();let _0x9d3b60=_0x37a5a2[_0x45f435];return _0x9d3b60;}function n(_0x32673d){const _0x17a19e=_0x1cf6e8;if(typeof _0x32673d[_0x17a19e(0x198)]!='string')throw new e(_0x17a19e(0x1a1),_0x17a19e(0x19d));if(typeof _0x32673d['unitId']!='string'||_0x32673d[_0x17a19e(0x197)]['trim']()[_0x17a19e(0x18e)]===0x0)throw new e(_0x17a19e(0x1a1),'Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty',{'unitId':_0x32673d[_0x17a19e(0x197)]});if(!c(_0x32673d[_0x17a19e(0x18a)]))throw new e(_0x17a19e(0x185),_0x17a19e(0x195)+String(_0x32673d[_0x17a19e(0x18a)]),{'supportedUnitTypes':t,'unitType':_0x32673d[_0x17a19e(0x18a)]});let _0x15de70=i(_0x32673d[_0x17a19e(0x18a)]);return o(_0x32673d[_0x17a19e(0x198)],_0x32673d['unitType'],_0x15de70),r(_0x32673d['unitType'],_0x32673d['unitId'])+'\x0a'+_0x32673d[_0x17a19e(0x198)];}function _0x37a5(){const _0x5373c3=['Cannot\x20find\x20doc\x20','presentation','const\x20presentation\x20=\x20api.getPresentation(','base','2131172JviJus','const\x20base\x20=\x20api.getBase(','sheet','const\x20doc\x20=\x20api.getDocument(','Cannot\x20find\x20board\x20','\x20=\x20undefined;\x0a','doc','347673SVUMJU','if\x20(!presentation)\x20throw\x20new\x20Error(','CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','api','ContentExecutionError','`\x20is\x20reserved\x20by\x20the\x20','if\x20(!doc)\x20throw\x20new\x20Error(','unitType','if\x20(!base)\x20throw\x20new\x20Error(','univerAPI','127365fPlkYT','length','board','\x20content\x20execution\x20prelude','return\x20(async\x20()\x20=>\x20{\x20','const\x20','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','if\x20(!board)\x20throw\x20new\x20Error(','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','const\x20board\x20=\x20api.getBoard(','unitId','code','45wcimYD','const\x20api\x20=\x20univerAPI;','name','\x0a})();','Content\x20execution\x20code\x20must\x20be\x20a\x20string','stringify','24MNXMMs','join','CONTENT_EXECUTION_INVALID_INPUT','5092700CTnxEx','CONTENT_EXECUTION_RESERVED_BINDING','83509wvacQk','6ArSBRE','slide','Cannot\x20find\x20base\x20','details','workbook','4343830BVMrXh','Cannot\x20find\x20presentation\x20','Cannot\x20find\x20workbook\x20','7293464yeJzxi'];_0x37a5=function(){return _0x5373c3;};return _0x37a5();}function r(_0x2a2023,_0x1c8e18){const _0x48ba51=_0x1cf6e8;let _0x8c3337=JSON[_0x48ba51(0x19e)](_0x1c8e18);return _0x2a2023===_0x48ba51(0x1b4)?[_0x48ba51(0x19a),'const\x20workbook\x20=\x20api.getWorkbook('+_0x8c3337+');','if\x20(!workbook)\x20throw\x20new\x20Error('+JSON[_0x48ba51(0x19e)](_0x48ba51(0x1ac)+_0x1c8e18)+');'][_0x48ba51(0x1a0)]('\x0a'):_0x2a2023===_0x48ba51(0x1b8)?['const\x20api\x20=\x20univerAPI;',_0x48ba51(0x1b5)+_0x8c3337+');',_0x48ba51(0x189)+JSON['stringify'](_0x48ba51(0x1ae)+_0x1c8e18)+');'][_0x48ba51(0x1a0)]('\x0a'):_0x2a2023===_0x48ba51(0x1a6)?[_0x48ba51(0x19a),_0x48ba51(0x1b0)+_0x8c3337+');',_0x48ba51(0x1ba)+JSON['stringify'](_0x48ba51(0x1ab)+_0x1c8e18)+');']['join']('\x0a'):_0x2a2023==='base'?[_0x48ba51(0x19a),_0x48ba51(0x1b3)+_0x8c3337+');',_0x48ba51(0x18b)+JSON[_0x48ba51(0x19e)](_0x48ba51(0x1a7)+_0x1c8e18)+');'][_0x48ba51(0x1a0)]('\x0a'):_0x2a2023===_0x48ba51(0x18f)?[_0x48ba51(0x19a),_0x48ba51(0x196)+_0x8c3337+');',_0x48ba51(0x194)+JSON[_0x48ba51(0x19e)](_0x48ba51(0x1b6)+_0x1c8e18)+');']['join']('\x0a'):a(_0x2a2023);}function i(_0x1d298e){const _0x5ea9ba=_0x1cf6e8;return _0x1d298e===_0x5ea9ba(0x1b4)?['univerAPI','api',_0x5ea9ba(0x1a9)]:_0x1d298e==='doc'?['univerAPI',_0x5ea9ba(0x186),_0x5ea9ba(0x1b8)]:_0x1d298e===_0x5ea9ba(0x1a6)?[_0x5ea9ba(0x18c),_0x5ea9ba(0x186),_0x5ea9ba(0x1af)]:_0x1d298e==='base'?[_0x5ea9ba(0x18c),_0x5ea9ba(0x186),_0x5ea9ba(0x1b1)]:_0x1d298e===_0x5ea9ba(0x18f)?[_0x5ea9ba(0x18c),_0x5ea9ba(0x186),'board']:a(_0x1d298e);}function a(_0x50cf7f){const _0x3c88ca=_0x1cf6e8;throw Error(_0x3c88ca(0x193)+String(_0x50cf7f));}function o(_0x28f5ce,_0x5444ad,_0x97c2e5){const _0x1ea7f4=_0x1cf6e8;if(s(_0x28f5ce)){for(let _0x24d273 of _0x97c2e5)if(!s(_0x1ea7f4(0x192)+_0x24d273+_0x1ea7f4(0x1b7)+_0x28f5ce))throw new e(_0x1ea7f4(0x1a3),'`'+_0x24d273+_0x1ea7f4(0x188)+_0x5444ad+_0x1ea7f4(0x190),{'binding':_0x24d273,'reservedBindings':_0x97c2e5,'unitType':_0x5444ad});}}function s(_0x2069b9){const _0x3c1350=_0x1cf6e8;try{return Function(_0x3c1350(0x18c),_0x3c1350(0x191)+_0x2069b9+_0x3c1350(0x19c)),!0x0;}catch{return!0x1;}}function c(_0x55ab53){return t['some'](_0x3a7c69=>_0x3a7c69===_0x55ab53);}export{e as ContentExecutionError,n as prepareContentExecutionProgram};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/content-execution",
3
3
  "type": "module",
4
- "version": "1.6.1",
4
+ "version": "1.6.2",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",