@univer-cli/content-execution 1.0.3 → 1.1.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 _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 _0xb36c19=_0xe80d;(function(_0x2c6d12,_0x14943a){const _0x44b212=_0xe80d,_0x4647bb=_0x2c6d12();while(!![]){try{const _0x4236e4=-parseInt(_0x44b212(0x99))/0x1*(parseInt(_0x44b212(0x83))/0x2)+-parseInt(_0x44b212(0xa1))/0x3+-parseInt(_0x44b212(0x9f))/0x4+-parseInt(_0x44b212(0x8c))/0x5+parseInt(_0x44b212(0x88))/0x6*(parseInt(_0x44b212(0x7c))/0x7)+-parseInt(_0x44b212(0x8b))/0x8*(parseInt(_0x44b212(0x76))/0x9)+parseInt(_0x44b212(0xa3))/0xa;if(_0x4236e4===_0x14943a)break;else _0x4647bb['push'](_0x4647bb['shift']());}catch(_0x3810a7){_0x4647bb['push'](_0x4647bb['shift']());}}}(_0xb7aa,0x89fcd));var e=class extends Error{[_0xb36c19(0x87)];[_0xb36c19(0x8f)];constructor(_0x8b7457,_0x469478,_0xbb29b7){const _0x174eeb=_0xb36c19;super(_0x469478),this[_0x174eeb(0x87)]=_0x8b7457,this[_0x174eeb(0x8f)]=_0xbb29b7,this['name']=_0x174eeb(0x95);}},t=[_0xb36c19(0x77),_0xb36c19(0x85),_0xb36c19(0x80),_0xb36c19(0x90),_0xb36c19(0x9d)];function n(_0x5e28b4){const _0x48904e=_0xb36c19;if(typeof _0x5e28b4[_0x48904e(0x87)]!=_0x48904e(0x9a))throw new e(_0x48904e(0x7d),_0x48904e(0x79));if(typeof _0x5e28b4[_0x48904e(0x81)]!=_0x48904e(0x9a)||_0x5e28b4[_0x48904e(0x81)][_0x48904e(0x93)]()['length']===0x0)throw new e('CONTENT_EXECUTION_INVALID_INPUT',_0x48904e(0xa6),{'unitId':_0x5e28b4[_0x48904e(0x81)]});if(!c(_0x5e28b4['unitType']))throw new e(_0x48904e(0x9e),_0x48904e(0xa5)+String(_0x5e28b4[_0x48904e(0x8d)]),{'supportedUnitTypes':t,'unitType':_0x5e28b4[_0x48904e(0x8d)]});let _0x13a63c=i(_0x5e28b4[_0x48904e(0x8d)]);return o(_0x5e28b4[_0x48904e(0x87)],_0x5e28b4[_0x48904e(0x8d)],_0x13a63c),r(_0x5e28b4[_0x48904e(0x8d)],_0x5e28b4[_0x48904e(0x81)])+'\x0a'+_0x5e28b4[_0x48904e(0x87)];}function r(_0x2c2f13,_0x3e9d37){const _0x5917ac=_0xb36c19;let _0x8536ad=JSON[_0x5917ac(0x82)](_0x3e9d37);return _0x2c2f13===_0x5917ac(0x77)?[_0x5917ac(0xa0),_0x5917ac(0x78)+_0x8536ad+');',_0x5917ac(0xa4)+JSON[_0x5917ac(0x82)](_0x5917ac(0x7a)+_0x3e9d37)+');'][_0x5917ac(0xa2)]('\x0a'):_0x2c2f13===_0x5917ac(0x85)?[_0x5917ac(0xa0),_0x5917ac(0x97)+_0x8536ad+');',_0x5917ac(0x7b)+JSON[_0x5917ac(0x82)]('Cannot\x20find\x20doc\x20'+_0x3e9d37)+');']['join']('\x0a'):_0x2c2f13===_0x5917ac(0x80)?['const\x20api\x20=\x20univerAPI;',_0x5917ac(0x92)+_0x8536ad+');',_0x5917ac(0x86)+JSON[_0x5917ac(0x82)](_0x5917ac(0x84)+_0x3e9d37)+');'][_0x5917ac(0xa2)]('\x0a'):_0x2c2f13===_0x5917ac(0x90)?[_0x5917ac(0xa0),_0x5917ac(0x8e)+_0x8536ad+');','if\x20(!base)\x20throw\x20new\x20Error('+JSON[_0x5917ac(0x82)](_0x5917ac(0x91)+_0x3e9d37)+');'][_0x5917ac(0xa2)]('\x0a'):_0x2c2f13===_0x5917ac(0x9d)?['const\x20api\x20=\x20univerAPI;','const\x20board\x20=\x20api.getBoard('+_0x8536ad+');',_0x5917ac(0x8a)+JSON[_0x5917ac(0x82)](_0x5917ac(0x96)+_0x3e9d37)+');'][_0x5917ac(0xa2)]('\x0a'):a(_0x2c2f13);}function _0xb7aa(){const _0x5dd1ee=['if\x20(!board)\x20throw\x20new\x20Error(','24xHQMAv','3103205OkYtDp','unitType','const\x20base\x20=\x20api.getBase(','details','base','Cannot\x20find\x20base\x20','const\x20presentation\x20=\x20api.getPresentation(','trim','`\x20is\x20reserved\x20by\x20the\x20','ContentExecutionError','Cannot\x20find\x20board\x20','const\x20doc\x20=\x20api.getDocument(','return\x20(async\x20()\x20=>\x20{\x20','2IHUyaz','string','univerAPI','presentation','board','CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','2770516DiMDob','const\x20api\x20=\x20univerAPI;','1174188npHOeu','join','34025600QXjBCQ','if\x20(!workbook)\x20throw\x20new\x20Error(','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','const\x20','2173239wtvOSc','sheet','const\x20workbook\x20=\x20api.getWorkbook(','Content\x20execution\x20code\x20must\x20be\x20a\x20string','Cannot\x20find\x20workbook\x20','if\x20(!doc)\x20throw\x20new\x20Error(','798931GVCNrR','CONTENT_EXECUTION_INVALID_INPUT','\x20=\x20undefined;\x0a','api','slide','unitId','stringify','636550qUrsyl','Cannot\x20find\x20presentation\x20','doc','if\x20(!presentation)\x20throw\x20new\x20Error(','code','12FnrTgP','Unexpected\x20content\x20execution\x20Unit\x20type:\x20'];_0xb7aa=function(){return _0x5dd1ee;};return _0xb7aa();}function i(_0x36e330){const _0x114dd5=_0xb36c19;return _0x36e330===_0x114dd5(0x77)?[_0x114dd5(0x9b),_0x114dd5(0x7f),'workbook']:_0x36e330===_0x114dd5(0x85)?['univerAPI','api','doc']:_0x36e330===_0x114dd5(0x80)?['univerAPI',_0x114dd5(0x7f),_0x114dd5(0x9c)]:_0x36e330===_0x114dd5(0x90)?[_0x114dd5(0x9b),'api','base']:_0x36e330===_0x114dd5(0x9d)?[_0x114dd5(0x9b),_0x114dd5(0x7f),_0x114dd5(0x9d)]:a(_0x36e330);}function a(_0x3c996f){const _0x3905fa=_0xb36c19;throw Error(_0x3905fa(0x89)+String(_0x3c996f));}function _0xe80d(_0x234c25,_0x7bdedb){_0x234c25=_0x234c25-0x75;const _0xb7aa35=_0xb7aa();let _0xe80d37=_0xb7aa35[_0x234c25];return _0xe80d37;}function o(_0x31155d,_0x23ad53,_0x18c9d2){const _0x3d3e11=_0xb36c19;if(s(_0x31155d)){for(let _0x37a56c of _0x18c9d2)if(!s(_0x3d3e11(0x75)+_0x37a56c+_0x3d3e11(0x7e)+_0x31155d))throw new e('CONTENT_EXECUTION_RESERVED_BINDING','`'+_0x37a56c+_0x3d3e11(0x94)+_0x23ad53+'\x20content\x20execution\x20prelude',{'binding':_0x37a56c,'reservedBindings':_0x18c9d2,'unitType':_0x23ad53});}}function s(_0x39fd48){const _0x31a60c=_0xb36c19;try{return Function(_0x31a60c(0x9b),_0x31a60c(0x98)+_0x39fd48+'\x0a})();'),!0x0;}catch{return!0x1;}}function c(_0xe379ba){return t['some'](_0x4341d2=>_0x4341d2===_0xe379ba);}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.1.0",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",