@univer-cli/content-execution 1.0.2 → 1.0.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 _0x18982d=_0x58e5;(function(_0xb94b87,_0x49b681){const _0x2bdbca=_0x58e5,_0x10ed5c=_0xb94b87();while(!![]){try{const _0x3c6f57=-parseInt(_0x2bdbca(0x179))/0x1*(parseInt(_0x2bdbca(0x185))/0x2)+parseInt(_0x2bdbca(0x19c))/0x3+-parseInt(_0x2bdbca(0x191))/0x4*(parseInt(_0x2bdbca(0x17c))/0x5)+parseInt(_0x2bdbca(0x184))/0x6+-parseInt(_0x2bdbca(0x177))/0x7+-parseInt(_0x2bdbca(0x174))/0x8*(parseInt(_0x2bdbca(0x19d))/0x9)+parseInt(_0x2bdbca(0x192))/0xa;if(_0x3c6f57===_0x49b681)break;else _0x10ed5c['push'](_0x10ed5c['shift']());}catch(_0x232dde){_0x10ed5c['push'](_0x10ed5c['shift']());}}}(_0x42b0,0xa7a35));var e=class extends Error{[_0x18982d(0x176)];[_0x18982d(0x186)];constructor(_0x57410d,_0x562937,_0x56c032){const _0x51aa67=_0x18982d;super(_0x562937),this[_0x51aa67(0x176)]=_0x57410d,this[_0x51aa67(0x186)]=_0x56c032,this[_0x51aa67(0x19b)]='ContentExecutionError';}},t=[_0x18982d(0x19f),_0x18982d(0x182),_0x18982d(0x171),_0x18982d(0x172),_0x18982d(0x17d)];function n(_0x315d70){const _0x377b86=_0x18982d;if(typeof _0x315d70[_0x377b86(0x176)]!=_0x377b86(0x199))throw new e('CONTENT_EXECUTION_INVALID_INPUT',_0x377b86(0x170));if(typeof _0x315d70[_0x377b86(0x180)]!='string'||_0x315d70['unitId'][_0x377b86(0x193)]()[_0x377b86(0x175)]===0x0)throw new e(_0x377b86(0x19a),_0x377b86(0x188),{'unitId':_0x315d70['unitId']});if(!c(_0x315d70[_0x377b86(0x18b)]))throw new e('CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED',_0x377b86(0x178)+String(_0x315d70[_0x377b86(0x18b)]),{'supportedUnitTypes':t,'unitType':_0x315d70[_0x377b86(0x18b)]});let _0x211fc7=i(_0x315d70[_0x377b86(0x18b)]);return o(_0x315d70[_0x377b86(0x176)],_0x315d70[_0x377b86(0x18b)],_0x211fc7),r(_0x315d70[_0x377b86(0x18b)],_0x315d70['unitId'])+'\x0a'+_0x315d70[_0x377b86(0x176)];}function r(_0x3016d9,_0x295a87){const _0x4350ed=_0x18982d;let _0x413c0f=JSON[_0x4350ed(0x17b)](_0x295a87);return _0x3016d9===_0x4350ed(0x19f)?[_0x4350ed(0x189),'const\x20workbook\x20=\x20api.getWorkbook('+_0x413c0f+');',_0x4350ed(0x195)+JSON['stringify'](_0x4350ed(0x18e)+_0x295a87)+');'][_0x4350ed(0x17a)]('\x0a'):_0x3016d9==='doc'?[_0x4350ed(0x189),_0x4350ed(0x17f)+_0x413c0f+');',_0x4350ed(0x18f)+JSON[_0x4350ed(0x17b)]('Cannot\x20find\x20doc\x20'+_0x295a87)+');'][_0x4350ed(0x17a)]('\x0a'):_0x3016d9===_0x4350ed(0x171)?['const\x20api\x20=\x20univerAPI;',_0x4350ed(0x17e)+_0x413c0f+');',_0x4350ed(0x18a)+JSON[_0x4350ed(0x17b)](_0x4350ed(0x187)+_0x295a87)+');'][_0x4350ed(0x17a)]('\x0a'):_0x3016d9==='base'?['const\x20api\x20=\x20univerAPI;',_0x4350ed(0x196)+_0x413c0f+');',_0x4350ed(0x18c)+JSON['stringify'](_0x4350ed(0x181)+_0x295a87)+');'][_0x4350ed(0x17a)]('\x0a'):_0x3016d9===_0x4350ed(0x17d)?[_0x4350ed(0x189),_0x4350ed(0x197)+_0x413c0f+');',_0x4350ed(0x19e)+JSON[_0x4350ed(0x17b)]('Cannot\x20find\x20board\x20'+_0x295a87)+');'][_0x4350ed(0x17a)]('\x0a'):a(_0x3016d9);}function i(_0x1ead2a){const _0x200feb=_0x18982d;return _0x1ead2a===_0x200feb(0x19f)?[_0x200feb(0x16f),_0x200feb(0x194),_0x200feb(0x1a1)]:_0x1ead2a===_0x200feb(0x182)?['univerAPI','api',_0x200feb(0x182)]:_0x1ead2a===_0x200feb(0x171)?[_0x200feb(0x16f),_0x200feb(0x194),_0x200feb(0x183)]:_0x1ead2a===_0x200feb(0x172)?[_0x200feb(0x16f),_0x200feb(0x194),_0x200feb(0x172)]:_0x1ead2a===_0x200feb(0x17d)?['univerAPI','api','board']:a(_0x1ead2a);}function a(_0x491ce1){const _0x405f06=_0x18982d;throw Error(_0x405f06(0x190)+String(_0x491ce1));}function o(_0x5b25b7,_0x4ff52e,_0x3e03b9){const _0x4da670=_0x18982d;if(s(_0x5b25b7)){for(let _0x4754a4 of _0x3e03b9)if(!s('const\x20'+_0x4754a4+_0x4da670(0x18d)+_0x5b25b7))throw new e('CONTENT_EXECUTION_RESERVED_BINDING','`'+_0x4754a4+_0x4da670(0x1a0)+_0x4ff52e+'\x20content\x20execution\x20prelude',{'binding':_0x4754a4,'reservedBindings':_0x3e03b9,'unitType':_0x4ff52e});}}function _0x42b0(){const _0x659d5d=['Cannot\x20find\x20workbook\x20','if\x20(!doc)\x20throw\x20new\x20Error(','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','405464rPFtrI','17983790IRFPdv','trim','api','if\x20(!workbook)\x20throw\x20new\x20Error(','const\x20base\x20=\x20api.getBase(','const\x20board\x20=\x20api.getBoard(','\x0a})();','string','CONTENT_EXECUTION_INVALID_INPUT','name','677124RZhPbY','659061HwZbZD','if\x20(!board)\x20throw\x20new\x20Error(','sheet','`\x20is\x20reserved\x20by\x20the\x20','workbook','univerAPI','Content\x20execution\x20code\x20must\x20be\x20a\x20string','slide','base','some','48MyDEPA','length','code','113253cKEpDY','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','4eSorYg','join','stringify','45TJwhRT','board','const\x20presentation\x20=\x20api.getPresentation(','const\x20doc\x20=\x20api.getDocument(','unitId','Cannot\x20find\x20base\x20','doc','presentation','5105526pSEYth','410258cnnSRu','details','Cannot\x20find\x20presentation\x20','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','const\x20api\x20=\x20univerAPI;','if\x20(!presentation)\x20throw\x20new\x20Error(','unitType','if\x20(!base)\x20throw\x20new\x20Error(','\x20=\x20undefined;\x0a'];_0x42b0=function(){return _0x659d5d;};return _0x42b0();}function _0x58e5(_0x4c336a,_0x19ef04){_0x4c336a=_0x4c336a-0x16f;const _0x42b0d1=_0x42b0();let _0x58e50e=_0x42b0d1[_0x4c336a];return _0x58e50e;}function s(_0x2fbc4e){const _0x2883a7=_0x18982d;try{return Function(_0x2883a7(0x16f),'return\x20(async\x20()\x20=>\x20{\x20'+_0x2fbc4e+_0x2883a7(0x198)),!0x0;}catch{return!0x1;}}function c(_0x53fa91){const _0x231108=_0x18982d;return t[_0x231108(0x173)](_0x591184=>_0x591184===_0x53fa91);}export{e as ContentExecutionError,n as prepareContentExecutionProgram};
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};
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.2",
4
+ "version": "1.0.3",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",