@univer-cli/content-execution 1.6.1 → 1.7.0-alpha.0

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 _0x5e46d8=_0x40e3;(function(_0x18eb87,_0x3bb859){const _0x4fb1f5=_0x40e3,_0x2f7160=_0x18eb87();while(!![]){try{const _0x919b22=-parseInt(_0x4fb1f5(0x10f))/0x1*(parseInt(_0x4fb1f5(0x10e))/0x2)+-parseInt(_0x4fb1f5(0x105))/0x3+parseInt(_0x4fb1f5(0xfa))/0x4*(-parseInt(_0x4fb1f5(0x107))/0x5)+parseInt(_0x4fb1f5(0xfd))/0x6+parseInt(_0x4fb1f5(0x113))/0x7+-parseInt(_0x4fb1f5(0xff))/0x8+parseInt(_0x4fb1f5(0x11a))/0x9*(parseInt(_0x4fb1f5(0x115))/0xa);if(_0x919b22===_0x3bb859)break;else _0x2f7160['push'](_0x2f7160['shift']());}catch(_0x30c396){_0x2f7160['push'](_0x2f7160['shift']());}}}(_0x4c81,0xb27ca));var e=class extends Error{[_0x5e46d8(0xf9)];['details'];constructor(_0x910356,_0x2827d5,_0x3d3602){const _0x1964bd=_0x5e46d8;super(_0x2827d5),this[_0x1964bd(0xf9)]=_0x910356,this[_0x1964bd(0x116)]=_0x3d3602,this['name']=_0x1964bd(0xe9);}},t=[_0x5e46d8(0x11b),_0x5e46d8(0x119),'slide',_0x5e46d8(0xee),_0x5e46d8(0xf8)];function n(_0x31a880){const _0x5b82f3=_0x5e46d8;if(typeof _0x31a880[_0x5b82f3(0xf9)]!=_0x5b82f3(0x110))throw new e('CONTENT_EXECUTION_INVALID_INPUT',_0x5b82f3(0xf0));if(typeof _0x31a880[_0x5b82f3(0xfe)]!=_0x5b82f3(0x110)||_0x31a880[_0x5b82f3(0xfe)][_0x5b82f3(0x10a)]()[_0x5b82f3(0x114)]===0x0)throw new e(_0x5b82f3(0x10c),_0x5b82f3(0x109),{'unitId':_0x31a880[_0x5b82f3(0xfe)]});if(!c(_0x31a880[_0x5b82f3(0x101)]))throw new e(_0x5b82f3(0xf6),_0x5b82f3(0xf2)+String(_0x31a880[_0x5b82f3(0x101)]),{'supportedUnitTypes':t,'unitType':_0x31a880[_0x5b82f3(0x101)]});let _0x4d5566=i(_0x31a880['unitType']);return o(_0x31a880[_0x5b82f3(0xf9)],_0x31a880[_0x5b82f3(0x101)],_0x4d5566),r(_0x31a880[_0x5b82f3(0x101)],_0x31a880[_0x5b82f3(0xfe)])+'\x0a'+_0x31a880[_0x5b82f3(0xf9)];}function r(_0x189c85,_0x4716cc){const _0x2736de=_0x5e46d8;let _0x200efc=JSON[_0x2736de(0xfb)](_0x4716cc);return _0x189c85===_0x2736de(0x11b)?['const\x20api\x20=\x20univerAPI;',_0x2736de(0x118)+_0x200efc+');',_0x2736de(0xf1)+JSON[_0x2736de(0xfb)](_0x2736de(0x117)+_0x4716cc)+');'][_0x2736de(0x112)]('\x0a'):_0x189c85===_0x2736de(0x119)?['const\x20api\x20=\x20univerAPI;',_0x2736de(0xe7)+_0x200efc+');',_0x2736de(0x100)+JSON[_0x2736de(0xfb)](_0x2736de(0x102)+_0x4716cc)+');'][_0x2736de(0x112)]('\x0a'):_0x189c85===_0x2736de(0xf7)?['const\x20api\x20=\x20univerAPI;',_0x2736de(0xfc)+_0x200efc+');',_0x2736de(0xea)+JSON[_0x2736de(0xfb)](_0x2736de(0xe8)+_0x4716cc)+');']['join']('\x0a'):_0x189c85===_0x2736de(0xee)?[_0x2736de(0x111),'const\x20base\x20=\x20api.getBase('+_0x200efc+');','if\x20(!base)\x20throw\x20new\x20Error('+JSON[_0x2736de(0xfb)](_0x2736de(0x108)+_0x4716cc)+');'][_0x2736de(0x112)]('\x0a'):_0x189c85===_0x2736de(0xf8)?[_0x2736de(0x111),'const\x20board\x20=\x20api.getBoard('+_0x200efc+');',_0x2736de(0x106)+JSON[_0x2736de(0xfb)](_0x2736de(0x10b)+_0x4716cc)+');']['join']('\x0a'):a(_0x189c85);}function i(_0x4bc687){const _0x56b9d8=_0x5e46d8;return _0x4bc687==='sheet'?['univerAPI',_0x56b9d8(0xeb),_0x56b9d8(0xf5)]:_0x4bc687==='doc'?[_0x56b9d8(0xf3),_0x56b9d8(0xeb),_0x56b9d8(0x119)]:_0x4bc687==='slide'?['univerAPI',_0x56b9d8(0xeb),'presentation']:_0x4bc687===_0x56b9d8(0xee)?[_0x56b9d8(0xf3),_0x56b9d8(0xeb),_0x56b9d8(0xee)]:_0x4bc687==='board'?[_0x56b9d8(0xf3),'api',_0x56b9d8(0xf8)]:a(_0x4bc687);}function a(_0x5bce04){throw Error('Unexpected\x20content\x20execution\x20Unit\x20type:\x20'+String(_0x5bce04));}function o(_0x3c97f5,_0x37ffd9,_0x2d6968){const _0x330e2f=_0x5e46d8;if(s(_0x3c97f5)){for(let _0x55ab8f of _0x2d6968)if(!s('const\x20'+_0x55ab8f+_0x330e2f(0xec)+_0x3c97f5))throw new e(_0x330e2f(0xef),'`'+_0x55ab8f+_0x330e2f(0xf4)+_0x37ffd9+_0x330e2f(0x104),{'binding':_0x55ab8f,'reservedBindings':_0x2d6968,'unitType':_0x37ffd9});}}function _0x40e3(_0x927deb,_0x263fa0){_0x927deb=_0x927deb-0xe7;const _0x4c81c7=_0x4c81();let _0x40e333=_0x4c81c7[_0x927deb];return _0x40e333;}function _0x4c81(){const _0x5888eb=['if\x20(!board)\x20throw\x20new\x20Error(','15KOULeE','Cannot\x20find\x20base\x20','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','trim','Cannot\x20find\x20board\x20','CONTENT_EXECUTION_INVALID_INPUT','some','2CPeqCh','674551QhsxMA','string','const\x20api\x20=\x20univerAPI;','join','3086937KZOcoW','length','26148710qtgmOt','details','Cannot\x20find\x20workbook\x20','const\x20workbook\x20=\x20api.getWorkbook(','doc','9FkvDsg','sheet','const\x20doc\x20=\x20api.getDocument(','Cannot\x20find\x20presentation\x20','ContentExecutionError','if\x20(!presentation)\x20throw\x20new\x20Error(','api','\x20=\x20undefined;\x0a','\x0a})();','base','CONTENT_EXECUTION_RESERVED_BINDING','Content\x20execution\x20code\x20must\x20be\x20a\x20string','if\x20(!workbook)\x20throw\x20new\x20Error(','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','univerAPI','`\x20is\x20reserved\x20by\x20the\x20','workbook','CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','slide','board','code','1340516btvInk','stringify','const\x20presentation\x20=\x20api.getPresentation(','6274194nzVmho','unitId','7021280djPJMm','if\x20(!doc)\x20throw\x20new\x20Error(','unitType','Cannot\x20find\x20doc\x20','return\x20(async\x20()\x20=>\x20{\x20','\x20content\x20execution\x20prelude','2438643TbgrJo'];_0x4c81=function(){return _0x5888eb;};return _0x4c81();}function s(_0x296a07){const _0x341e68=_0x5e46d8;try{return Function('univerAPI',_0x341e68(0x103)+_0x296a07+_0x341e68(0xed)),!0x0;}catch{return!0x1;}}function c(_0x346501){const _0x577c6b=_0x5e46d8;return t[_0x577c6b(0x10d)](_0x94b4fc=>_0x94b4fc===_0x346501);}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.7.0-alpha.0",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",