@univer-cli/content-execution 1.0.3 → 1.0.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.
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 _0x586d16=_0x50af;(function(_0x2218e4,_0x45cb8c){const _0x3a927c=_0x50af,_0x2ece98=_0x2218e4();while(!![]){try{const _0x401c4c=parseInt(_0x3a927c(0x149))/0x1*(parseInt(_0x3a927c(0x14a))/0x2)+-parseInt(_0x3a927c(0x131))/0x3+parseInt(_0x3a927c(0x150))/0x4+parseInt(_0x3a927c(0x12e))/0x5*(parseInt(_0x3a927c(0x135))/0x6)+parseInt(_0x3a927c(0x134))/0x7+parseInt(_0x3a927c(0x14e))/0x8+-parseInt(_0x3a927c(0x156))/0x9*(parseInt(_0x3a927c(0x12c))/0xa);if(_0x401c4c===_0x45cb8c)break;else _0x2ece98['push'](_0x2ece98['shift']());}catch(_0x44b112){_0x2ece98['push'](_0x2ece98['shift']());}}}(_0x1f5c,0x8ce52));var e=class extends Error{[_0x586d16(0x15b)];[_0x586d16(0x137)];constructor(_0x215b17,_0x128064,_0x2fe28c){const _0x26fd4a=_0x586d16;super(_0x128064),this['code']=_0x215b17,this[_0x26fd4a(0x137)]=_0x2fe28c,this['name']=_0x26fd4a(0x12d);}},t=[_0x586d16(0x12f),_0x586d16(0x136),_0x586d16(0x14d),_0x586d16(0x15a),_0x586d16(0x130)];function n(_0x2a4be5){const _0x80d1d1=_0x586d16;if(typeof _0x2a4be5[_0x80d1d1(0x15b)]!=_0x80d1d1(0x145))throw new e(_0x80d1d1(0x141),_0x80d1d1(0x15c));if(typeof _0x2a4be5[_0x80d1d1(0x139)]!=_0x80d1d1(0x145)||_0x2a4be5[_0x80d1d1(0x139)]['trim']()['length']===0x0)throw new e('CONTENT_EXECUTION_INVALID_INPUT',_0x80d1d1(0x13e),{'unitId':_0x2a4be5[_0x80d1d1(0x139)]});if(!c(_0x2a4be5[_0x80d1d1(0x13a)]))throw new e('CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED',_0x80d1d1(0x14c)+String(_0x2a4be5[_0x80d1d1(0x13a)]),{'supportedUnitTypes':t,'unitType':_0x2a4be5['unitType']});let _0xe0b64=i(_0x2a4be5['unitType']);return o(_0x2a4be5[_0x80d1d1(0x15b)],_0x2a4be5[_0x80d1d1(0x13a)],_0xe0b64),r(_0x2a4be5[_0x80d1d1(0x13a)],_0x2a4be5[_0x80d1d1(0x139)])+'\x0a'+_0x2a4be5['code'];}function _0x50af(_0x38b892,_0xbafedc){_0x38b892=_0x38b892-0x12a;const _0x1f5c05=_0x1f5c();let _0x50afcd=_0x1f5c05[_0x38b892];return _0x50afcd;}function r(_0x5d715f,_0x1dfec9){const _0x56dfa1=_0x586d16;let _0x4f413f=JSON[_0x56dfa1(0x12a)](_0x1dfec9);return _0x5d715f===_0x56dfa1(0x12f)?[_0x56dfa1(0x13d),'const\x20workbook\x20=\x20api.getWorkbook('+_0x4f413f+');',_0x56dfa1(0x12b)+JSON['stringify'](_0x56dfa1(0x159)+_0x1dfec9)+');']['join']('\x0a'):_0x5d715f===_0x56dfa1(0x136)?[_0x56dfa1(0x13d),_0x56dfa1(0x154)+_0x4f413f+');',_0x56dfa1(0x147)+JSON[_0x56dfa1(0x12a)]('Cannot\x20find\x20doc\x20'+_0x1dfec9)+');'][_0x56dfa1(0x138)]('\x0a'):_0x5d715f==='slide'?[_0x56dfa1(0x13d),_0x56dfa1(0x140)+_0x4f413f+');',_0x56dfa1(0x13f)+JSON[_0x56dfa1(0x12a)](_0x56dfa1(0x148)+_0x1dfec9)+');'][_0x56dfa1(0x138)]('\x0a'):_0x5d715f===_0x56dfa1(0x15a)?[_0x56dfa1(0x13d),_0x56dfa1(0x146)+_0x4f413f+');','if\x20(!base)\x20throw\x20new\x20Error('+JSON[_0x56dfa1(0x12a)](_0x56dfa1(0x153)+_0x1dfec9)+');'][_0x56dfa1(0x138)]('\x0a'):_0x5d715f===_0x56dfa1(0x130)?[_0x56dfa1(0x13d),_0x56dfa1(0x14b)+_0x4f413f+');',_0x56dfa1(0x132)+JSON['stringify']('Cannot\x20find\x20board\x20'+_0x1dfec9)+');'][_0x56dfa1(0x138)]('\x0a'):a(_0x5d715f);}function i(_0x2edf4b){const _0x473e1a=_0x586d16;return _0x2edf4b===_0x473e1a(0x12f)?[_0x473e1a(0x142),_0x473e1a(0x151),'workbook']:_0x2edf4b===_0x473e1a(0x136)?[_0x473e1a(0x142),_0x473e1a(0x151),'doc']:_0x2edf4b===_0x473e1a(0x14d)?[_0x473e1a(0x142),_0x473e1a(0x151),_0x473e1a(0x158)]:_0x2edf4b===_0x473e1a(0x15a)?[_0x473e1a(0x142),_0x473e1a(0x151),_0x473e1a(0x15a)]:_0x2edf4b==='board'?[_0x473e1a(0x142),_0x473e1a(0x151),'board']:a(_0x2edf4b);}function a(_0x1b8b97){const _0x27f277=_0x586d16;throw Error(_0x27f277(0x155)+String(_0x1b8b97));}function o(_0x2dbe41,_0x25d1c1,_0x19cdb8){const _0x43cfdd=_0x586d16;if(s(_0x2dbe41)){for(let _0x9568d9 of _0x19cdb8)if(!s(_0x43cfdd(0x133)+_0x9568d9+_0x43cfdd(0x152)+_0x2dbe41))throw new e(_0x43cfdd(0x13c),'`'+_0x9568d9+_0x43cfdd(0x144)+_0x25d1c1+_0x43cfdd(0x143),{'binding':_0x9568d9,'reservedBindings':_0x19cdb8,'unitType':_0x25d1c1});}}function s(_0x233790){const _0x26a9e2=_0x586d16;try{return Function('univerAPI',_0x26a9e2(0x157)+_0x233790+_0x26a9e2(0x13b)),!0x0;}catch{return!0x1;}}function c(_0x1982d3){const _0x198a7e=_0x586d16;return t[_0x198a7e(0x14f)](_0x3c9855=>_0x3c9855===_0x1982d3);}function _0x1f5c(){const _0x3a89af=['Cannot\x20find\x20workbook\x20','base','code','Content\x20execution\x20code\x20must\x20be\x20a\x20string','stringify','if\x20(!workbook)\x20throw\x20new\x20Error(','10qFGIWr','ContentExecutionError','3165185CfhkON','sheet','board','579582pedUHC','if\x20(!board)\x20throw\x20new\x20Error(','const\x20','1725227KkQPsK','6jCoqFJ','doc','details','join','unitId','unitType','\x0a})();','CONTENT_EXECUTION_RESERVED_BINDING','const\x20api\x20=\x20univerAPI;','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','if\x20(!presentation)\x20throw\x20new\x20Error(','const\x20presentation\x20=\x20api.getPresentation(','CONTENT_EXECUTION_INVALID_INPUT','univerAPI','\x20content\x20execution\x20prelude','`\x20is\x20reserved\x20by\x20the\x20','string','const\x20base\x20=\x20api.getBase(','if\x20(!doc)\x20throw\x20new\x20Error(','Cannot\x20find\x20presentation\x20','1zLHwuP','1724246yvRiCk','const\x20board\x20=\x20api.getBoard(','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','slide','3325072GCNyym','some','1564512EYOBoQ','api','\x20=\x20undefined;\x0a','Cannot\x20find\x20base\x20','const\x20doc\x20=\x20api.getDocument(','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','16002747QQXTRu','return\x20(async\x20()\x20=>\x20{\x20','presentation'];_0x1f5c=function(){return _0x3a89af;};return _0x1f5c();}export{e as ContentExecutionError,n as prepareContentExecutionProgram};
1
+ const _0x593055=_0x57b6;(function(_0x38d4fd,_0x4e556f){const _0x2baba3=_0x57b6,_0x35d919=_0x38d4fd();while(!![]){try{const _0x5e0666=parseInt(_0x2baba3(0x103))/0x1*(parseInt(_0x2baba3(0x117))/0x2)+-parseInt(_0x2baba3(0x106))/0x3+parseInt(_0x2baba3(0x100))/0x4+parseInt(_0x2baba3(0x11b))/0x5+-parseInt(_0x2baba3(0x111))/0x6+parseInt(_0x2baba3(0xf7))/0x7+-parseInt(_0x2baba3(0x104))/0x8*(-parseInt(_0x2baba3(0x10a))/0x9);if(_0x5e0666===_0x4e556f)break;else _0x35d919['push'](_0x35d919['shift']());}catch(_0x3125a6){_0x35d919['push'](_0x35d919['shift']());}}}(_0x3953,0x2c656));var e=class extends Error{['code'];['details'];constructor(_0x19c2fd,_0x23e048,_0x411425){const _0x33382c=_0x57b6;super(_0x23e048),this[_0x33382c(0x115)]=_0x19c2fd,this[_0x33382c(0xfc)]=_0x411425,this[_0x33382c(0x10c)]=_0x33382c(0x107);}},t=[_0x593055(0x126),'doc','slide','base',_0x593055(0x10d)];function n(_0x33316b){const _0x46bd49=_0x593055;if(typeof _0x33316b[_0x46bd49(0x115)]!=_0x46bd49(0x11d))throw new e(_0x46bd49(0x101),'Content\x20execution\x20code\x20must\x20be\x20a\x20string');if(typeof _0x33316b[_0x46bd49(0x105)]!=_0x46bd49(0x11d)||_0x33316b[_0x46bd49(0x105)][_0x46bd49(0x123)]()[_0x46bd49(0x122)]===0x0)throw new e(_0x46bd49(0x101),_0x46bd49(0x112),{'unitId':_0x33316b[_0x46bd49(0x105)]});if(!c(_0x33316b[_0x46bd49(0xfb)]))throw new e('CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED',_0x46bd49(0xff)+String(_0x33316b[_0x46bd49(0xfb)]),{'supportedUnitTypes':t,'unitType':_0x33316b[_0x46bd49(0xfb)]});let _0x3f7553=i(_0x33316b[_0x46bd49(0xfb)]);return o(_0x33316b[_0x46bd49(0x115)],_0x33316b[_0x46bd49(0xfb)],_0x3f7553),r(_0x33316b['unitType'],_0x33316b[_0x46bd49(0x105)])+'\x0a'+_0x33316b['code'];}function r(_0x354279,_0x90daa3){const _0x4fcf47=_0x593055;let _0x387469=JSON[_0x4fcf47(0xf8)](_0x90daa3);return _0x354279===_0x4fcf47(0x126)?['const\x20api\x20=\x20univerAPI;',_0x4fcf47(0x116)+_0x387469+');',_0x4fcf47(0x119)+JSON[_0x4fcf47(0xf8)](_0x4fcf47(0x110)+_0x90daa3)+');'][_0x4fcf47(0x11e)]('\x0a'):_0x354279===_0x4fcf47(0xf6)?[_0x4fcf47(0xfe),_0x4fcf47(0x10e)+_0x387469+');','if\x20(!doc)\x20throw\x20new\x20Error('+JSON[_0x4fcf47(0xf8)](_0x4fcf47(0x10b)+_0x90daa3)+');'][_0x4fcf47(0x11e)]('\x0a'):_0x354279==='slide'?[_0x4fcf47(0xfe),'const\x20presentation\x20=\x20api.getPresentation('+_0x387469+');',_0x4fcf47(0x102)+JSON['stringify']('Cannot\x20find\x20presentation\x20'+_0x90daa3)+');'][_0x4fcf47(0x11e)]('\x0a'):_0x354279===_0x4fcf47(0x11c)?[_0x4fcf47(0xfe),_0x4fcf47(0x121)+_0x387469+');',_0x4fcf47(0x11f)+JSON[_0x4fcf47(0xf8)](_0x4fcf47(0x128)+_0x90daa3)+');'][_0x4fcf47(0x11e)]('\x0a'):_0x354279===_0x4fcf47(0x10d)?[_0x4fcf47(0xfe),_0x4fcf47(0xfa)+_0x387469+');',_0x4fcf47(0x113)+JSON['stringify'](_0x4fcf47(0x127)+_0x90daa3)+');'][_0x4fcf47(0x11e)]('\x0a'):a(_0x354279);}function i(_0x4576d2){const _0x50a4f2=_0x593055;return _0x4576d2===_0x50a4f2(0x126)?[_0x50a4f2(0xfd),_0x50a4f2(0x124),'workbook']:_0x4576d2===_0x50a4f2(0xf6)?[_0x50a4f2(0xfd),_0x50a4f2(0x124),_0x50a4f2(0xf6)]:_0x4576d2===_0x50a4f2(0x11a)?['univerAPI',_0x50a4f2(0x124),_0x50a4f2(0x114)]:_0x4576d2===_0x50a4f2(0x11c)?[_0x50a4f2(0xfd),_0x50a4f2(0x124),_0x50a4f2(0x11c)]:_0x4576d2===_0x50a4f2(0x10d)?['univerAPI','api','board']:a(_0x4576d2);}function _0x57b6(_0x585996,_0x143312){_0x585996=_0x585996-0xf6;const _0x3953f6=_0x3953();let _0x57b6c8=_0x3953f6[_0x585996];return _0x57b6c8;}function a(_0x5e10ee){const _0x24af2f=_0x593055;throw Error(_0x24af2f(0x109)+String(_0x5e10ee));}function _0x3953(){const _0x4b5b5c=['const\x20base\x20=\x20api.getBase(','length','trim','api','\x20content\x20execution\x20prelude','sheet','Cannot\x20find\x20board\x20','Cannot\x20find\x20base\x20','doc','2354604qTFEih','stringify','const\x20','const\x20board\x20=\x20api.getBoard(','unitType','details','univerAPI','const\x20api\x20=\x20univerAPI;','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','112584KGswkw','CONTENT_EXECUTION_INVALID_INPUT','if\x20(!presentation)\x20throw\x20new\x20Error(','941GNqOVK','24FGEelV','unitId','983658apaHxW','ContentExecutionError','`\x20is\x20reserved\x20by\x20the\x20','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','284175AKxjnn','Cannot\x20find\x20doc\x20','name','board','const\x20doc\x20=\x20api.getDocument(','\x0a})();','Cannot\x20find\x20workbook\x20','1841376YmtSiw','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','if\x20(!board)\x20throw\x20new\x20Error(','presentation','code','const\x20workbook\x20=\x20api.getWorkbook(','326BgzXRE','\x20=\x20undefined;\x0a','if\x20(!workbook)\x20throw\x20new\x20Error(','slide','1020010ycSdyb','base','string','join','if\x20(!base)\x20throw\x20new\x20Error(','return\x20(async\x20()\x20=>\x20{\x20'];_0x3953=function(){return _0x4b5b5c;};return _0x3953();}function o(_0x3548d5,_0x43a86b,_0x574da2){const _0x44e545=_0x593055;if(s(_0x3548d5)){for(let _0x5e6e74 of _0x574da2)if(!s(_0x44e545(0xf9)+_0x5e6e74+_0x44e545(0x118)+_0x3548d5))throw new e('CONTENT_EXECUTION_RESERVED_BINDING','`'+_0x5e6e74+_0x44e545(0x108)+_0x43a86b+_0x44e545(0x125),{'binding':_0x5e6e74,'reservedBindings':_0x574da2,'unitType':_0x43a86b});}}function s(_0x31771e){const _0x165fb3=_0x593055;try{return Function('univerAPI',_0x165fb3(0x120)+_0x31771e+_0x165fb3(0x10f)),!0x0;}catch{return!0x1;}}function c(_0x57640f){return t['some'](_0x10e826=>_0x10e826===_0x57640f);}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.0.3",
4
+ "version": "1.0.4",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",