@univer-cli/content-execution 1.3.1 → 1.4.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 _0x579d9f=_0x21e0;(function(_0x59e898,_0x54bd29){const _0x2dac0c=_0x21e0,_0x5224f8=_0x59e898();while(!![]){try{const _0x23c76d=parseInt(_0x2dac0c(0x1ef))/0x1+-parseInt(_0x2dac0c(0x205))/0x2*(parseInt(_0x2dac0c(0x1fd))/0x3)+-parseInt(_0x2dac0c(0x210))/0x4+parseInt(_0x2dac0c(0x1f6))/0x5*(-parseInt(_0x2dac0c(0x1f5))/0x6)+parseInt(_0x2dac0c(0x1e5))/0x7*(parseInt(_0x2dac0c(0x1e9))/0x8)+-parseInt(_0x2dac0c(0x200))/0x9+parseInt(_0x2dac0c(0x1f3))/0xa;if(_0x23c76d===_0x54bd29)break;else _0x5224f8['push'](_0x5224f8['shift']());}catch(_0x376303){_0x5224f8['push'](_0x5224f8['shift']());}}}(_0x5d5f,0xd24e8));var e=class extends Error{[_0x579d9f(0x1f7)];[_0x579d9f(0x20d)];constructor(_0x3a676d,_0x7f3213,_0x26eb6a){const _0x4922cf=_0x579d9f;super(_0x7f3213),this['code']=_0x3a676d,this[_0x4922cf(0x20d)]=_0x26eb6a,this[_0x4922cf(0x1e8)]='ContentExecutionError';}},t=[_0x579d9f(0x1ee),_0x579d9f(0x1f1),_0x579d9f(0x20b),_0x579d9f(0x1e1),_0x579d9f(0x20f)];function n(_0x3f3b00){const _0x446667=_0x579d9f;if(typeof _0x3f3b00['code']!=_0x446667(0x1e2))throw new e(_0x446667(0x1f8),_0x446667(0x201));if(typeof _0x3f3b00[_0x446667(0x1f0)]!='string'||_0x3f3b00[_0x446667(0x1f0)]['trim']()[_0x446667(0x1fc)]===0x0)throw new e('CONTENT_EXECUTION_INVALID_INPUT',_0x446667(0x1f4),{'unitId':_0x3f3b00[_0x446667(0x1f0)]});if(!c(_0x3f3b00['unitType']))throw new e('CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20'+String(_0x3f3b00[_0x446667(0x1ed)]),{'supportedUnitTypes':t,'unitType':_0x3f3b00[_0x446667(0x1ed)]});let _0x6f1005=i(_0x3f3b00[_0x446667(0x1ed)]);return o(_0x3f3b00[_0x446667(0x1f7)],_0x3f3b00[_0x446667(0x1ed)],_0x6f1005),r(_0x3f3b00['unitType'],_0x3f3b00[_0x446667(0x1f0)])+'\x0a'+_0x3f3b00[_0x446667(0x1f7)];}function _0x21e0(_0x71bc91,_0x2a62cc){_0x71bc91=_0x71bc91-0x1e1;const _0x5d5f7d=_0x5d5f();let _0x21e0c8=_0x5d5f7d[_0x71bc91];return _0x21e0c8;}function r(_0x2ff64c,_0x17c6a3){const _0x20defa=_0x579d9f;let _0x19134b=JSON[_0x20defa(0x206)](_0x17c6a3);return _0x2ff64c===_0x20defa(0x1ee)?[_0x20defa(0x1e7),'const\x20workbook\x20=\x20api.getWorkbook('+_0x19134b+');','if\x20(!workbook)\x20throw\x20new\x20Error('+JSON['stringify'](_0x20defa(0x209)+_0x17c6a3)+');'][_0x20defa(0x1fe)]('\x0a'):_0x2ff64c===_0x20defa(0x1f1)?[_0x20defa(0x1e7),_0x20defa(0x1e3)+_0x19134b+');',_0x20defa(0x1ea)+JSON[_0x20defa(0x206)](_0x20defa(0x1fa)+_0x17c6a3)+');'][_0x20defa(0x1fe)]('\x0a'):_0x2ff64c===_0x20defa(0x20b)?[_0x20defa(0x1e7),'const\x20presentation\x20=\x20api.getPresentation('+_0x19134b+');',_0x20defa(0x20a)+JSON[_0x20defa(0x206)]('Cannot\x20find\x20presentation\x20'+_0x17c6a3)+');'][_0x20defa(0x1fe)]('\x0a'):_0x2ff64c===_0x20defa(0x1e1)?[_0x20defa(0x1e7),_0x20defa(0x20c)+_0x19134b+');',_0x20defa(0x1e6)+JSON[_0x20defa(0x206)]('Cannot\x20find\x20base\x20'+_0x17c6a3)+');']['join']('\x0a'):_0x2ff64c===_0x20defa(0x20f)?[_0x20defa(0x1e7),_0x20defa(0x1e4)+_0x19134b+');',_0x20defa(0x202)+JSON[_0x20defa(0x206)](_0x20defa(0x208)+_0x17c6a3)+');'][_0x20defa(0x1fe)]('\x0a'):a(_0x2ff64c);}function i(_0x2dfab2){const _0x309afd=_0x579d9f;return _0x2dfab2===_0x309afd(0x1ee)?[_0x309afd(0x20e),'api','workbook']:_0x2dfab2===_0x309afd(0x1f1)?['univerAPI',_0x309afd(0x1ff),_0x309afd(0x1f1)]:_0x2dfab2===_0x309afd(0x20b)?[_0x309afd(0x20e),_0x309afd(0x1ff),_0x309afd(0x203)]:_0x2dfab2===_0x309afd(0x1e1)?[_0x309afd(0x20e),_0x309afd(0x1ff),_0x309afd(0x1e1)]:_0x2dfab2===_0x309afd(0x20f)?[_0x309afd(0x20e),_0x309afd(0x1ff),'board']:a(_0x2dfab2);}function a(_0x78f90a){const _0x1b4244=_0x579d9f;throw Error(_0x1b4244(0x207)+String(_0x78f90a));}function o(_0x492112,_0x3f4c5f,_0x506d85){const _0x4cb7a8=_0x579d9f;if(s(_0x492112)){for(let _0x488e4f of _0x506d85)if(!s(_0x4cb7a8(0x1ec)+_0x488e4f+_0x4cb7a8(0x1f2)+_0x492112))throw new e(_0x4cb7a8(0x1f9),'`'+_0x488e4f+_0x4cb7a8(0x1eb)+_0x3f4c5f+_0x4cb7a8(0x204),{'binding':_0x488e4f,'reservedBindings':_0x506d85,'unitType':_0x3f4c5f});}}function s(_0x408774){const _0x160899=_0x579d9f;try{return Function('univerAPI','return\x20(async\x20()\x20=>\x20{\x20'+_0x408774+_0x160899(0x1fb)),!0x0;}catch{return!0x1;}}function c(_0x18cd75){return t['some'](_0x3bc427=>_0x3bc427===_0x18cd75);}function _0x5d5f(){const _0x22bd97=['base','string','const\x20doc\x20=\x20api.getDocument(','const\x20board\x20=\x20api.getBoard(','7kQywJR','if\x20(!base)\x20throw\x20new\x20Error(','const\x20api\x20=\x20univerAPI;','name','11062488ZHQtGo','if\x20(!doc)\x20throw\x20new\x20Error(','`\x20is\x20reserved\x20by\x20the\x20','const\x20','unitType','sheet','269780msPMad','unitId','doc','\x20=\x20undefined;\x0a','26236960xpAjqy','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','800502BCRdeH','5inlibq','code','CONTENT_EXECUTION_INVALID_INPUT','CONTENT_EXECUTION_RESERVED_BINDING','Cannot\x20find\x20doc\x20','\x0a})();','length','2251227nZspPw','join','api','9719523CoXGwB','Content\x20execution\x20code\x20must\x20be\x20a\x20string','if\x20(!board)\x20throw\x20new\x20Error(','presentation','\x20content\x20execution\x20prelude','2RpaLxh','stringify','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','Cannot\x20find\x20board\x20','Cannot\x20find\x20workbook\x20','if\x20(!presentation)\x20throw\x20new\x20Error(','slide','const\x20base\x20=\x20api.getBase(','details','univerAPI','board','5804392XVsPRd'];_0x5d5f=function(){return _0x22bd97;};return _0x5d5f();}export{e as ContentExecutionError,n as prepareContentExecutionProgram};
1
+ const _0x3b479e=_0xbf6a;(function(_0x4c7f0c,_0x390133){const _0x3d9e04=_0xbf6a,_0x121c51=_0x4c7f0c();while(!![]){try{const _0x37c286=parseInt(_0x3d9e04(0x9e))/0x1*(-parseInt(_0x3d9e04(0xd4))/0x2)+-parseInt(_0x3d9e04(0xd1))/0x3+-parseInt(_0x3d9e04(0xc8))/0x4*(parseInt(_0x3d9e04(0xce))/0x5)+-parseInt(_0x3d9e04(0xc7))/0x6*(-parseInt(_0x3d9e04(0xd0))/0x7)+-parseInt(_0x3d9e04(0xca))/0x8+parseInt(_0x3d9e04(0x9f))/0x9+parseInt(_0x3d9e04(0xad))/0xa*(parseInt(_0x3d9e04(0xbf))/0xb);if(_0x37c286===_0x390133)break;else _0x121c51['push'](_0x121c51['shift']());}catch(_0x102747){_0x121c51['push'](_0x121c51['shift']());}}}(_0x132d,0x32875));var e=class extends Error{[_0x3b479e(0xa1)];['details'];constructor(_0x230ebb,_0x57fb47,_0x39118d){const _0x86350f=_0x3b479e;super(_0x57fb47),this[_0x86350f(0xa1)]=_0x230ebb,this[_0x86350f(0xb5)]=_0x39118d,this[_0x86350f(0xa5)]=_0x86350f(0xb3);}},t=[_0x3b479e(0xd3),_0x3b479e(0xb4),_0x3b479e(0xcd),_0x3b479e(0xa4),_0x3b479e(0xc2)];function n(_0x51b7a2){const _0x1bf467=_0x3b479e;if(typeof _0x51b7a2[_0x1bf467(0xa1)]!='string')throw new e(_0x1bf467(0xaf),'Content\x20execution\x20code\x20must\x20be\x20a\x20string');if(typeof _0x51b7a2[_0x1bf467(0xa8)]!='string'||_0x51b7a2[_0x1bf467(0xa8)][_0x1bf467(0xa9)]()[_0x1bf467(0xc6)]===0x0)throw new e(_0x1bf467(0xaf),_0x1bf467(0xd2),{'unitId':_0x51b7a2[_0x1bf467(0xa8)]});if(!c(_0x51b7a2['unitType']))throw new e(_0x1bf467(0xc9),_0x1bf467(0xbe)+String(_0x51b7a2[_0x1bf467(0xc3)]),{'supportedUnitTypes':t,'unitType':_0x51b7a2[_0x1bf467(0xc3)]});let _0x159b28=i(_0x51b7a2['unitType']);return o(_0x51b7a2['code'],_0x51b7a2[_0x1bf467(0xc3)],_0x159b28),r(_0x51b7a2[_0x1bf467(0xc3)],_0x51b7a2[_0x1bf467(0xa8)])+'\x0a'+_0x51b7a2[_0x1bf467(0xa1)];}function _0x132d(){const _0x159c50=['name','Cannot\x20find\x20doc\x20','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','unitId','trim','const\x20api\x20=\x20univerAPI;','return\x20(async\x20()\x20=>\x20{\x20','\x20=\x20undefined;\x0a','20xcgKYi','Cannot\x20find\x20presentation\x20','CONTENT_EXECUTION_INVALID_INPUT','const\x20','univerAPI','const\x20workbook\x20=\x20api.getWorkbook(','ContentExecutionError','doc','details','Cannot\x20find\x20board\x20','join','const\x20board\x20=\x20api.getBoard(','Cannot\x20find\x20workbook\x20','workbook','if\x20(!doc)\x20throw\x20new\x20Error(','api','if\x20(!base)\x20throw\x20new\x20Error(','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','1689182eyzIea','\x0a})();','if\x20(!presentation)\x20throw\x20new\x20Error(','board','unitType','\x20content\x20execution\x20prelude','CONTENT_EXECUTION_RESERVED_BINDING','length','450582BnOUjW','20viRFCi','CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','1748832aoZkou','if\x20(!board)\x20throw\x20new\x20Error(','`\x20is\x20reserved\x20by\x20the\x20','slide','345SinEXp','some','35GLwcAj','1209801GEfIAc','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','sheet','4Mfmhdh','34201wOdPqH','1934766akvabS','const\x20presentation\x20=\x20api.getPresentation(','code','Cannot\x20find\x20base\x20','stringify','base'];_0x132d=function(){return _0x159c50;};return _0x132d();}function r(_0x3f6781,_0x34d36d){const _0x4a8ae5=_0x3b479e;let _0x58079b=JSON['stringify'](_0x34d36d);return _0x3f6781===_0x4a8ae5(0xd3)?[_0x4a8ae5(0xaa),_0x4a8ae5(0xb2)+_0x58079b+');','if\x20(!workbook)\x20throw\x20new\x20Error('+JSON['stringify'](_0x4a8ae5(0xb9)+_0x34d36d)+');'][_0x4a8ae5(0xb7)]('\x0a'):_0x3f6781===_0x4a8ae5(0xb4)?[_0x4a8ae5(0xaa),'const\x20doc\x20=\x20api.getDocument('+_0x58079b+');',_0x4a8ae5(0xbb)+JSON[_0x4a8ae5(0xa3)](_0x4a8ae5(0xa6)+_0x34d36d)+');'][_0x4a8ae5(0xb7)]('\x0a'):_0x3f6781===_0x4a8ae5(0xcd)?['const\x20api\x20=\x20univerAPI;',_0x4a8ae5(0xa0)+_0x58079b+');',_0x4a8ae5(0xc1)+JSON[_0x4a8ae5(0xa3)](_0x4a8ae5(0xae)+_0x34d36d)+');'][_0x4a8ae5(0xb7)]('\x0a'):_0x3f6781===_0x4a8ae5(0xa4)?['const\x20api\x20=\x20univerAPI;','const\x20base\x20=\x20api.getBase('+_0x58079b+');',_0x4a8ae5(0xbd)+JSON['stringify'](_0x4a8ae5(0xa2)+_0x34d36d)+');'][_0x4a8ae5(0xb7)]('\x0a'):_0x3f6781===_0x4a8ae5(0xc2)?['const\x20api\x20=\x20univerAPI;',_0x4a8ae5(0xb8)+_0x58079b+');',_0x4a8ae5(0xcb)+JSON['stringify'](_0x4a8ae5(0xb6)+_0x34d36d)+');'][_0x4a8ae5(0xb7)]('\x0a'):a(_0x3f6781);}function i(_0x1d4762){const _0x34b2ba=_0x3b479e;return _0x1d4762===_0x34b2ba(0xd3)?[_0x34b2ba(0xb1),_0x34b2ba(0xbc),_0x34b2ba(0xba)]:_0x1d4762===_0x34b2ba(0xb4)?[_0x34b2ba(0xb1),_0x34b2ba(0xbc),_0x34b2ba(0xb4)]:_0x1d4762===_0x34b2ba(0xcd)?[_0x34b2ba(0xb1),_0x34b2ba(0xbc),'presentation']:_0x1d4762===_0x34b2ba(0xa4)?[_0x34b2ba(0xb1),_0x34b2ba(0xbc),_0x34b2ba(0xa4)]:_0x1d4762===_0x34b2ba(0xc2)?['univerAPI',_0x34b2ba(0xbc),_0x34b2ba(0xc2)]:a(_0x1d4762);}function _0xbf6a(_0x4be124,_0x2eff24){_0x4be124=_0x4be124-0x9e;const _0x132d9b=_0x132d();let _0xbf6a84=_0x132d9b[_0x4be124];return _0xbf6a84;}function a(_0x28c780){const _0x58e421=_0x3b479e;throw Error(_0x58e421(0xa7)+String(_0x28c780));}function o(_0x13a58f,_0x3787b0,_0x1aa160){const _0x43b87f=_0x3b479e;if(s(_0x13a58f)){for(let _0x15fbeb of _0x1aa160)if(!s(_0x43b87f(0xb0)+_0x15fbeb+_0x43b87f(0xac)+_0x13a58f))throw new e(_0x43b87f(0xc5),'`'+_0x15fbeb+_0x43b87f(0xcc)+_0x3787b0+_0x43b87f(0xc4),{'binding':_0x15fbeb,'reservedBindings':_0x1aa160,'unitType':_0x3787b0});}}function s(_0x2003c2){const _0xddf79a=_0x3b479e;try{return Function(_0xddf79a(0xb1),_0xddf79a(0xab)+_0x2003c2+_0xddf79a(0xc0)),!0x0;}catch{return!0x1;}}function c(_0x37333f){const _0x5ad916=_0x3b479e;return t[_0x5ad916(0xcf)](_0x5b10d1=>_0x5b10d1===_0x37333f);}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.3.1",
4
+ "version": "1.4.0",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",