@univer-cli/content-execution 1.6.0 → 1.6.1

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 _0x164afc=_0x3e47;(function(_0x557e0e,_0x10d0df){const _0xa548eb=_0x3e47,_0x126cce=_0x557e0e();while(!![]){try{const _0x1c131f=parseInt(_0xa548eb(0xc2))/0x1*(parseInt(_0xa548eb(0xcb))/0x2)+parseInt(_0xa548eb(0xd4))/0x3*(parseInt(_0xa548eb(0xb2))/0x4)+parseInt(_0xa548eb(0xb5))/0x5+-parseInt(_0xa548eb(0xcd))/0x6*(-parseInt(_0xa548eb(0xbd))/0x7)+-parseInt(_0xa548eb(0xd9))/0x8*(-parseInt(_0xa548eb(0xaf))/0x9)+parseInt(_0xa548eb(0xba))/0xa*(-parseInt(_0xa548eb(0xdc))/0xb)+-parseInt(_0xa548eb(0xb4))/0xc;if(_0x1c131f===_0x10d0df)break;else _0x126cce['push'](_0x126cce['shift']());}catch(_0xf1be8b){_0x126cce['push'](_0x126cce['shift']());}}}(_0x2bc2,0x7f75f));var e=class extends Error{[_0x164afc(0xac)];[_0x164afc(0xae)];constructor(_0x8b0f4e,_0xc03511,_0x86f1e){const _0x1928cf=_0x164afc;super(_0xc03511),this[_0x1928cf(0xac)]=_0x8b0f4e,this[_0x1928cf(0xae)]=_0x86f1e,this[_0x1928cf(0xc7)]=_0x1928cf(0xd5);}},t=[_0x164afc(0xb3),'doc','slide',_0x164afc(0xd7),_0x164afc(0xd6)];function n(_0x3b4809){const _0x6a45b2=_0x164afc;if(typeof _0x3b4809[_0x6a45b2(0xac)]!='string')throw new e(_0x6a45b2(0xcf),'Content\x20execution\x20code\x20must\x20be\x20a\x20string');if(typeof _0x3b4809['unitId']!=_0x6a45b2(0xb0)||_0x3b4809[_0x6a45b2(0xcc)]['trim']()[_0x6a45b2(0xbc)]===0x0)throw new e('CONTENT_EXECUTION_INVALID_INPUT','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty',{'unitId':_0x3b4809[_0x6a45b2(0xcc)]});if(!c(_0x3b4809['unitType']))throw new e(_0x6a45b2(0xd3),'Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20'+String(_0x3b4809[_0x6a45b2(0xc5)]),{'supportedUnitTypes':t,'unitType':_0x3b4809[_0x6a45b2(0xc5)]});let _0x29194f=i(_0x3b4809[_0x6a45b2(0xc5)]);return o(_0x3b4809['code'],_0x3b4809[_0x6a45b2(0xc5)],_0x29194f),r(_0x3b4809[_0x6a45b2(0xc5)],_0x3b4809[_0x6a45b2(0xcc)])+'\x0a'+_0x3b4809[_0x6a45b2(0xac)];}function r(_0x5d3f32,_0xae3918){const _0x176d1c=_0x164afc;let _0x4b9003=JSON['stringify'](_0xae3918);return _0x5d3f32==='sheet'?['const\x20api\x20=\x20univerAPI;','const\x20workbook\x20=\x20api.getWorkbook('+_0x4b9003+');',_0x176d1c(0xc8)+JSON[_0x176d1c(0xc9)](_0x176d1c(0xd0)+_0xae3918)+');'][_0x176d1c(0xc6)]('\x0a'):_0x5d3f32===_0x176d1c(0xc1)?[_0x176d1c(0xb6),_0x176d1c(0xb8)+_0x4b9003+');','if\x20(!doc)\x20throw\x20new\x20Error('+JSON[_0x176d1c(0xc9)](_0x176d1c(0xd2)+_0xae3918)+');'][_0x176d1c(0xc6)]('\x0a'):_0x5d3f32===_0x176d1c(0xd8)?[_0x176d1c(0xb6),_0x176d1c(0xbf)+_0x4b9003+');',_0x176d1c(0xb9)+JSON[_0x176d1c(0xc9)](_0x176d1c(0xdb)+_0xae3918)+');']['join']('\x0a'):_0x5d3f32===_0x176d1c(0xd7)?[_0x176d1c(0xb6),_0x176d1c(0xdd)+_0x4b9003+');',_0x176d1c(0xb1)+JSON[_0x176d1c(0xc9)](_0x176d1c(0xad)+_0xae3918)+');'][_0x176d1c(0xc6)]('\x0a'):_0x5d3f32===_0x176d1c(0xd6)?[_0x176d1c(0xb6),'const\x20board\x20=\x20api.getBoard('+_0x4b9003+');','if\x20(!board)\x20throw\x20new\x20Error('+JSON[_0x176d1c(0xc9)](_0x176d1c(0xb7)+_0xae3918)+');'][_0x176d1c(0xc6)]('\x0a'):a(_0x5d3f32);}function i(_0x4b33b9){const _0x2c9aab=_0x164afc;return _0x4b33b9===_0x2c9aab(0xb3)?[_0x2c9aab(0xc4),'api',_0x2c9aab(0xca)]:_0x4b33b9===_0x2c9aab(0xc1)?['univerAPI',_0x2c9aab(0xbb),'doc']:_0x4b33b9===_0x2c9aab(0xd8)?[_0x2c9aab(0xc4),'api',_0x2c9aab(0xdf)]:_0x4b33b9===_0x2c9aab(0xd7)?['univerAPI',_0x2c9aab(0xbb),'base']:_0x4b33b9===_0x2c9aab(0xd6)?[_0x2c9aab(0xc4),_0x2c9aab(0xbb),'board']:a(_0x4b33b9);}function a(_0x2efa5d){const _0x587906=_0x164afc;throw Error(_0x587906(0xda)+String(_0x2efa5d));}function o(_0x4c9c92,_0x312cc8,_0x28769b){const _0xe2da70=_0x164afc;if(s(_0x4c9c92)){for(let _0x177ee3 of _0x28769b)if(!s(_0xe2da70(0xc3)+_0x177ee3+_0xe2da70(0xde)+_0x4c9c92))throw new e('CONTENT_EXECUTION_RESERVED_BINDING','`'+_0x177ee3+_0xe2da70(0xce)+_0x312cc8+_0xe2da70(0xd1),{'binding':_0x177ee3,'reservedBindings':_0x28769b,'unitType':_0x312cc8});}}function s(_0x3fe158){const _0x544dbe=_0x164afc;try{return Function(_0x544dbe(0xc4),_0x544dbe(0xbe)+_0x3fe158+'\x0a})();'),!0x0;}catch{return!0x1;}}function _0x3e47(_0x258f37,_0x7868c3){_0x258f37=_0x258f37-0xac;const _0x2bc287=_0x2bc2();let _0x3e47dd=_0x2bc287[_0x258f37];return _0x3e47dd;}function _0x2bc2(){const _0x4a43fc=['3463965Ljjslz','const\x20api\x20=\x20univerAPI;','Cannot\x20find\x20board\x20','const\x20doc\x20=\x20api.getDocument(','if\x20(!presentation)\x20throw\x20new\x20Error(','30BBXALV','api','length','1281iezEuI','return\x20(async\x20()\x20=>\x20{\x20','const\x20presentation\x20=\x20api.getPresentation(','some','doc','116898EwvzZr','const\x20','univerAPI','unitType','join','name','if\x20(!workbook)\x20throw\x20new\x20Error(','stringify','workbook','8ulevdF','unitId','20142Pbccpc','`\x20is\x20reserved\x20by\x20the\x20','CONTENT_EXECUTION_INVALID_INPUT','Cannot\x20find\x20workbook\x20','\x20content\x20execution\x20prelude','Cannot\x20find\x20doc\x20','CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','867516UDhRDj','ContentExecutionError','board','base','slide','8PSNwjC','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','Cannot\x20find\x20presentation\x20','2453341bORirM','const\x20base\x20=\x20api.getBase(','\x20=\x20undefined;\x0a','presentation','code','Cannot\x20find\x20base\x20','details','1589373KfummF','string','if\x20(!base)\x20throw\x20new\x20Error(','4LVRutb','sheet','12591756gGYbjb'];_0x2bc2=function(){return _0x4a43fc;};return _0x2bc2();}function c(_0x53293f){const _0x59382e=_0x164afc;return t[_0x59382e(0xc0)](_0x1b51c8=>_0x1b51c8===_0x53293f);}export{e as ContentExecutionError,n as prepareContentExecutionProgram};
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};
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.0",
4
+ "version": "1.6.1",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",