@univer-cli/content-execution 1.6.1 → 1.6.3

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 _0x272b2e=_0x388a;function _0x388a(_0x2d5495,_0x17d81e){_0x2d5495=_0x2d5495-0x11b;const _0x57cc71=_0x57cc();let _0x388a01=_0x57cc71[_0x2d5495];return _0x388a01;}(function(_0x56d461,_0x37c9c0){const _0x277a4c=_0x388a,_0xeab8e5=_0x56d461();while(!![]){try{const _0x5c2d15=-parseInt(_0x277a4c(0x14b))/0x1*(-parseInt(_0x277a4c(0x13e))/0x2)+parseInt(_0x277a4c(0x14e))/0x3*(parseInt(_0x277a4c(0x11f))/0x4)+-parseInt(_0x277a4c(0x128))/0x5+-parseInt(_0x277a4c(0x12e))/0x6+-parseInt(_0x277a4c(0x11e))/0x7+-parseInt(_0x277a4c(0x14d))/0x8*(-parseInt(_0x277a4c(0x121))/0x9)+-parseInt(_0x277a4c(0x137))/0xa*(-parseInt(_0x277a4c(0x14f))/0xb);if(_0x5c2d15===_0x37c9c0)break;else _0xeab8e5['push'](_0xeab8e5['shift']());}catch(_0x46cbf6){_0xeab8e5['push'](_0xeab8e5['shift']());}}}(_0x57cc,0x69bcf));var e=class extends Error{[_0x272b2e(0x13d)];['details'];constructor(_0x5028ce,_0x346e4c,_0x3b6435){const _0x34cc8=_0x272b2e;super(_0x346e4c),this[_0x34cc8(0x13d)]=_0x5028ce,this[_0x34cc8(0x125)]=_0x3b6435,this[_0x34cc8(0x147)]=_0x34cc8(0x13a);}},t=['sheet',_0x272b2e(0x145),'slide',_0x272b2e(0x144),_0x272b2e(0x129)];function n(_0x1a4947){const _0xbbf10=_0x272b2e;if(typeof _0x1a4947['code']!=_0xbbf10(0x131))throw new e(_0xbbf10(0x142),_0xbbf10(0x139));if(typeof _0x1a4947[_0xbbf10(0x126)]!='string'||_0x1a4947[_0xbbf10(0x126)][_0xbbf10(0x135)]()[_0xbbf10(0x11b)]===0x0)throw new e(_0xbbf10(0x142),_0xbbf10(0x150),{'unitId':_0x1a4947[_0xbbf10(0x126)]});if(!c(_0x1a4947[_0xbbf10(0x143)]))throw new e(_0xbbf10(0x134),_0xbbf10(0x12d)+String(_0x1a4947[_0xbbf10(0x143)]),{'supportedUnitTypes':t,'unitType':_0x1a4947[_0xbbf10(0x143)]});let _0x15c6fd=i(_0x1a4947['unitType']);return o(_0x1a4947[_0xbbf10(0x13d)],_0x1a4947['unitType'],_0x15c6fd),r(_0x1a4947[_0xbbf10(0x143)],_0x1a4947['unitId'])+'\x0a'+_0x1a4947[_0xbbf10(0x13d)];}function r(_0x482a96,_0x5d6faa){const _0x5e284d=_0x272b2e;let _0x3f5037=JSON['stringify'](_0x5d6faa);return _0x482a96===_0x5e284d(0x12c)?['const\x20api\x20=\x20univerAPI;',_0x5e284d(0x136)+_0x3f5037+');','if\x20(!workbook)\x20throw\x20new\x20Error('+JSON[_0x5e284d(0x13c)](_0x5e284d(0x123)+_0x5d6faa)+');'][_0x5e284d(0x122)]('\x0a'):_0x482a96===_0x5e284d(0x145)?[_0x5e284d(0x146),_0x5e284d(0x130)+_0x3f5037+');',_0x5e284d(0x124)+JSON[_0x5e284d(0x13c)]('Cannot\x20find\x20doc\x20'+_0x5d6faa)+');'][_0x5e284d(0x122)]('\x0a'):_0x482a96===_0x5e284d(0x132)?[_0x5e284d(0x146),_0x5e284d(0x140)+_0x3f5037+');',_0x5e284d(0x138)+JSON[_0x5e284d(0x13c)](_0x5e284d(0x12b)+_0x5d6faa)+');'][_0x5e284d(0x122)]('\x0a'):_0x482a96===_0x5e284d(0x144)?[_0x5e284d(0x146),_0x5e284d(0x127)+_0x3f5037+');',_0x5e284d(0x133)+JSON[_0x5e284d(0x13c)]('Cannot\x20find\x20base\x20'+_0x5d6faa)+');'][_0x5e284d(0x122)]('\x0a'):_0x482a96==='board'?[_0x5e284d(0x146),_0x5e284d(0x12a)+_0x3f5037+');',_0x5e284d(0x13b)+JSON[_0x5e284d(0x13c)]('Cannot\x20find\x20board\x20'+_0x5d6faa)+');'][_0x5e284d(0x122)]('\x0a'):a(_0x482a96);}function i(_0x2d3816){const _0x5882d7=_0x272b2e;return _0x2d3816===_0x5882d7(0x12c)?[_0x5882d7(0x120),_0x5882d7(0x14c),_0x5882d7(0x13f)]:_0x2d3816==='doc'?['univerAPI',_0x5882d7(0x14c),_0x5882d7(0x145)]:_0x2d3816===_0x5882d7(0x132)?[_0x5882d7(0x120),_0x5882d7(0x14c),_0x5882d7(0x149)]:_0x2d3816===_0x5882d7(0x144)?[_0x5882d7(0x120),_0x5882d7(0x14c),_0x5882d7(0x144)]:_0x2d3816==='board'?['univerAPI',_0x5882d7(0x14c),'board']:a(_0x2d3816);}function a(_0x5087d4){throw Error('Unexpected\x20content\x20execution\x20Unit\x20type:\x20'+String(_0x5087d4));}function o(_0x452e81,_0x575357,_0x3bfbd6){const _0x23b285=_0x272b2e;if(s(_0x452e81)){for(let _0xd6d42e of _0x3bfbd6)if(!s(_0x23b285(0x11d)+_0xd6d42e+_0x23b285(0x12f)+_0x452e81))throw new e(_0x23b285(0x11c),'`'+_0xd6d42e+_0x23b285(0x141)+_0x575357+_0x23b285(0x148),{'binding':_0xd6d42e,'reservedBindings':_0x3bfbd6,'unitType':_0x575357});}}function s(_0x40ae4d){const _0x3cb782=_0x272b2e;try{return Function(_0x3cb782(0x120),'return\x20(async\x20()\x20=>\x20{\x20'+_0x40ae4d+_0x3cb782(0x14a)),!0x0;}catch{return!0x1;}}function _0x57cc(){const _0x34f282=['\x0a})();','35FgvSCn','api','4360fhnkXK','2841hVlXDn','94589jPVQYB','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','length','CONTENT_EXECUTION_RESERVED_BINDING','const\x20','4288340dyPzSI','2764KFWuGk','univerAPI','6543FvQAJC','join','Cannot\x20find\x20workbook\x20','if\x20(!doc)\x20throw\x20new\x20Error(','details','unitId','const\x20base\x20=\x20api.getBase(','292255fWkcUi','board','const\x20board\x20=\x20api.getBoard(','Cannot\x20find\x20presentation\x20','sheet','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','4951878DOoLUa','\x20=\x20undefined;\x0a','const\x20doc\x20=\x20api.getDocument(','string','slide','if\x20(!base)\x20throw\x20new\x20Error(','CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','trim','const\x20workbook\x20=\x20api.getWorkbook(','150EkpvwX','if\x20(!presentation)\x20throw\x20new\x20Error(','Content\x20execution\x20code\x20must\x20be\x20a\x20string','ContentExecutionError','if\x20(!board)\x20throw\x20new\x20Error(','stringify','code','42852ulFqjH','workbook','const\x20presentation\x20=\x20api.getPresentation(','`\x20is\x20reserved\x20by\x20the\x20','CONTENT_EXECUTION_INVALID_INPUT','unitType','base','doc','const\x20api\x20=\x20univerAPI;','name','\x20content\x20execution\x20prelude','presentation'];_0x57cc=function(){return _0x34f282;};return _0x57cc();}function c(_0x4299db){return t['some'](_0x5a22f1=>_0x5a22f1===_0x4299db);}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.3",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",