@univer-cli/content-execution 1.0.0-rc.0 → 1.0.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 _0x2e5622=_0x5a51;(function(_0x282979,_0x35ed91){const _0xaa713d=_0x5a51,_0x58055e=_0x282979();while(!![]){try{const _0x436e76=-parseInt(_0xaa713d(0x13a))/0x1+-parseInt(_0xaa713d(0x123))/0x2+parseInt(_0xaa713d(0x110))/0x3*(parseInt(_0xaa713d(0x138))/0x4)+-parseInt(_0xaa713d(0x134))/0x5*(parseInt(_0xaa713d(0x107))/0x6)+-parseInt(_0xaa713d(0x10a))/0x7*(parseInt(_0xaa713d(0x121))/0x8)+parseInt(_0xaa713d(0x135))/0x9+parseInt(_0xaa713d(0x112))/0xa;if(_0x436e76===_0x35ed91)break;else _0x58055e['push'](_0x58055e['shift']());}catch(_0x509400){_0x58055e['push'](_0x58055e['shift']());}}}(_0x34db,0xbbe78));function _0x34db(){const _0x32dbab=['Cannot\x20find\x20base\x20','3590thKqKI','2106432XDzHbi','CONTENT_EXECUTION_RESERVED_BINDING','name','52CAQBHL','length','47816yQlHAe','some','5580vAeKda','trim','return\x20(async\x20()\x20=>\x20{\x20','5789ZZEBgs','join','unitType','ContentExecutionError','if\x20(!board)\x20throw\x20new\x20Error(','Cannot\x20find\x20board\x20','217095nCGfOo','if\x20(!workbook)\x20throw\x20new\x20Error(','24799910WnNQos','const\x20','workbook','unitId','stringify','CONTENT_EXECUTION_INVALID_INPUT','\x20content\x20execution\x20prelude','board','\x0a})();','`\x20is\x20reserved\x20by\x20the\x20','if\x20(!doc)\x20throw\x20new\x20Error(','const\x20base\x20=\x20api.getBase(','Cannot\x20find\x20workbook\x20','slide','api','14264GQgyZR','const\x20api\x20=\x20univerAPI;','1390062xEyzWU','details','presentation','univerAPI','base','string','code','const\x20board\x20=\x20api.getBoard(','const\x20doc\x20=\x20api.getDocument(','doc','if\x20(!presentation)\x20throw\x20new\x20Error(','const\x20workbook\x20=\x20api.getWorkbook(','Cannot\x20find\x20doc\x20','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','sheet','Unexpected\x20content\x20execution\x20Unit\x20type:\x20'];_0x34db=function(){return _0x32dbab;};return _0x34db();}var e=class extends Error{[_0x2e5622(0x129)];[_0x2e5622(0x124)];constructor(_0x22fa8f,_0x314821,_0x5c39b7){const _0x8af374=_0x2e5622;super(_0x314821),this[_0x8af374(0x129)]=_0x22fa8f,this[_0x8af374(0x124)]=_0x5c39b7,this[_0x8af374(0x137)]=_0x8af374(0x10d);}},t=[_0x2e5622(0x131),_0x2e5622(0x12c),_0x2e5622(0x11f),'base','board'];function n(_0x324179){const _0x81c076=_0x2e5622;if(typeof _0x324179[_0x81c076(0x129)]!=_0x81c076(0x128))throw new e(_0x81c076(0x117),'Content\x20execution\x20code\x20must\x20be\x20a\x20string');if(typeof _0x324179[_0x81c076(0x115)]!=_0x81c076(0x128)||_0x324179['unitId'][_0x81c076(0x108)]()[_0x81c076(0x139)]===0x0)throw new e(_0x81c076(0x117),_0x81c076(0x130),{'unitId':_0x324179[_0x81c076(0x115)]});if(!c(_0x324179['unitType']))throw new e('CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20'+String(_0x324179['unitType']),{'supportedUnitTypes':t,'unitType':_0x324179[_0x81c076(0x10c)]});let _0x26370d=i(_0x324179[_0x81c076(0x10c)]);return o(_0x324179['code'],_0x324179[_0x81c076(0x10c)],_0x26370d),r(_0x324179[_0x81c076(0x10c)],_0x324179[_0x81c076(0x115)])+'\x0a'+_0x324179['code'];}function r(_0x12be0d,_0x1c48f9){const _0x192d99=_0x2e5622;let _0x302e8d=JSON[_0x192d99(0x116)](_0x1c48f9);return _0x12be0d==='sheet'?[_0x192d99(0x122),_0x192d99(0x12e)+_0x302e8d+');',_0x192d99(0x111)+JSON[_0x192d99(0x116)](_0x192d99(0x11e)+_0x1c48f9)+');'][_0x192d99(0x10b)]('\x0a'):_0x12be0d===_0x192d99(0x12c)?[_0x192d99(0x122),_0x192d99(0x12b)+_0x302e8d+');',_0x192d99(0x11c)+JSON['stringify'](_0x192d99(0x12f)+_0x1c48f9)+');']['join']('\x0a'):_0x12be0d===_0x192d99(0x11f)?[_0x192d99(0x122),'const\x20presentation\x20=\x20api.getPresentation('+_0x302e8d+');',_0x192d99(0x12d)+JSON[_0x192d99(0x116)]('Cannot\x20find\x20presentation\x20'+_0x1c48f9)+');'][_0x192d99(0x10b)]('\x0a'):_0x12be0d===_0x192d99(0x127)?['const\x20api\x20=\x20univerAPI;',_0x192d99(0x11d)+_0x302e8d+');','if\x20(!base)\x20throw\x20new\x20Error('+JSON[_0x192d99(0x116)](_0x192d99(0x133)+_0x1c48f9)+');'][_0x192d99(0x10b)]('\x0a'):_0x12be0d==='board'?[_0x192d99(0x122),_0x192d99(0x12a)+_0x302e8d+');',_0x192d99(0x10e)+JSON[_0x192d99(0x116)](_0x192d99(0x10f)+_0x1c48f9)+');'][_0x192d99(0x10b)]('\x0a'):a(_0x12be0d);}function i(_0x527284){const _0x3088de=_0x2e5622;return _0x527284==='sheet'?['univerAPI','api',_0x3088de(0x114)]:_0x527284===_0x3088de(0x12c)?[_0x3088de(0x126),'api',_0x3088de(0x12c)]:_0x527284===_0x3088de(0x11f)?[_0x3088de(0x126),'api',_0x3088de(0x125)]:_0x527284===_0x3088de(0x127)?['univerAPI',_0x3088de(0x120),'base']:_0x527284===_0x3088de(0x119)?[_0x3088de(0x126),_0x3088de(0x120),_0x3088de(0x119)]:a(_0x527284);}function a(_0x18a6be){const _0x45ae2e=_0x2e5622;throw Error(_0x45ae2e(0x132)+String(_0x18a6be));}function o(_0x2a114c,_0x17a045,_0x567c84){const _0x39efc9=_0x2e5622;if(s(_0x2a114c)){for(let _0x144069 of _0x567c84)if(!s(_0x39efc9(0x113)+_0x144069+'\x20=\x20undefined;\x0a'+_0x2a114c))throw new e(_0x39efc9(0x136),'`'+_0x144069+_0x39efc9(0x11b)+_0x17a045+_0x39efc9(0x118),{'binding':_0x144069,'reservedBindings':_0x567c84,'unitType':_0x17a045});}}function s(_0x10034b){const _0x284aed=_0x2e5622;try{return Function(_0x284aed(0x126),_0x284aed(0x109)+_0x10034b+_0x284aed(0x11a)),!0x0;}catch{return!0x1;}}function c(_0xde4220){const _0xa2ad5=_0x2e5622;return t[_0xa2ad5(0x13b)](_0x470b01=>_0x470b01===_0xde4220);}function _0x5a51(_0x2699c8,_0x4b09a4){_0x2699c8=_0x2699c8-0x107;const _0x34dbbd=_0x34db();let _0x5a510d=_0x34dbbd[_0x2699c8];return _0x5a510d;}export{e as ContentExecutionError,n as prepareContentExecutionProgram};
1
+ const _0x30d86b=_0x5b92;(function(_0x4beb35,_0x10f0c8){const _0x967b26=_0x5b92,_0x119649=_0x4beb35();while(!![]){try{const _0x324a10=parseInt(_0x967b26(0xbb))/0x1+parseInt(_0x967b26(0xa7))/0x2+-parseInt(_0x967b26(0xbd))/0x3*(parseInt(_0x967b26(0xbf))/0x4)+-parseInt(_0x967b26(0x99))/0x5+parseInt(_0x967b26(0xaa))/0x6+-parseInt(_0x967b26(0xa3))/0x7*(parseInt(_0x967b26(0x9c))/0x8)+parseInt(_0x967b26(0xa1))/0x9;if(_0x324a10===_0x10f0c8)break;else _0x119649['push'](_0x119649['shift']());}catch(_0x150561){_0x119649['push'](_0x119649['shift']());}}}(_0x3581,0x68335));var e=class extends Error{['code'];[_0x30d86b(0xa4)];constructor(_0x2841d7,_0x334603,_0x394cd7){const _0x37573d=_0x30d86b;super(_0x334603),this[_0x37573d(0x94)]=_0x2841d7,this[_0x37573d(0xa4)]=_0x394cd7,this[_0x37573d(0xad)]=_0x37573d(0x97);}},t=[_0x30d86b(0xa8),'doc','slide','base',_0x30d86b(0xb7)];function n(_0x3680d9){const _0x10b3c5=_0x30d86b;if(typeof _0x3680d9[_0x10b3c5(0x94)]!=_0x10b3c5(0x9a))throw new e(_0x10b3c5(0xb1),_0x10b3c5(0x98));if(typeof _0x3680d9[_0x10b3c5(0xaf)]!='string'||_0x3680d9[_0x10b3c5(0xaf)][_0x10b3c5(0xa0)]()[_0x10b3c5(0x9b)]===0x0)throw new e(_0x10b3c5(0xb1),'Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty',{'unitId':_0x3680d9[_0x10b3c5(0xaf)]});if(!c(_0x3680d9['unitType']))throw new e('CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED',_0x10b3c5(0x9e)+String(_0x3680d9[_0x10b3c5(0xc1)]),{'supportedUnitTypes':t,'unitType':_0x3680d9[_0x10b3c5(0xc1)]});let _0x3cf78d=i(_0x3680d9[_0x10b3c5(0xc1)]);return o(_0x3680d9[_0x10b3c5(0x94)],_0x3680d9[_0x10b3c5(0xc1)],_0x3cf78d),r(_0x3680d9[_0x10b3c5(0xc1)],_0x3680d9[_0x10b3c5(0xaf)])+'\x0a'+_0x3680d9[_0x10b3c5(0x94)];}function _0x3581(){const _0x26b317=['if\x20(!workbook)\x20throw\x20new\x20Error(','join','\x0a})();','slide','\x20=\x20undefined;\x0a','code','const\x20base\x20=\x20api.getBase(','const\x20presentation\x20=\x20api.getPresentation(','ContentExecutionError','Content\x20execution\x20code\x20must\x20be\x20a\x20string','3496525EckdyG','string','length','536bxOcVd','\x20content\x20execution\x20prelude','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','CONTENT_EXECUTION_RESERVED_BINDING','trim','9760410ZmmPQz','api','79688WDcmPh','details','stringify','const\x20doc\x20=\x20api.getDocument(','421326UCDLhf','sheet','const\x20board\x20=\x20api.getBoard(','2035608mPjbbp','if\x20(!base)\x20throw\x20new\x20Error(','Cannot\x20find\x20base\x20','name','const\x20api\x20=\x20univerAPI;','unitId','doc','CONTENT_EXECUTION_INVALID_INPUT','univerAPI','if\x20(!presentation)\x20throw\x20new\x20Error(','Cannot\x20find\x20board\x20','base','Cannot\x20find\x20presentation\x20','board','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','const\x20','`\x20is\x20reserved\x20by\x20the\x20','790384Qawtfx','if\x20(!board)\x20throw\x20new\x20Error(','1607901OnFkVy','const\x20workbook\x20=\x20api.getWorkbook(','4QgVJme','presentation','unitType'];_0x3581=function(){return _0x26b317;};return _0x3581();}function _0x5b92(_0x2a488d,_0x1fac21){_0x2a488d=_0x2a488d-0x92;const _0x358153=_0x3581();let _0x5b921a=_0x358153[_0x2a488d];return _0x5b921a;}function r(_0x24b25a,_0x1dd314){const _0xd859fc=_0x30d86b;let _0x14c0f3=JSON[_0xd859fc(0xa5)](_0x1dd314);return _0x24b25a===_0xd859fc(0xa8)?[_0xd859fc(0xae),_0xd859fc(0xbe)+_0x14c0f3+');',_0xd859fc(0xc2)+JSON[_0xd859fc(0xa5)]('Cannot\x20find\x20workbook\x20'+_0x1dd314)+');'][_0xd859fc(0xc3)]('\x0a'):_0x24b25a==='doc'?[_0xd859fc(0xae),_0xd859fc(0xa6)+_0x14c0f3+');','if\x20(!doc)\x20throw\x20new\x20Error('+JSON[_0xd859fc(0xa5)]('Cannot\x20find\x20doc\x20'+_0x1dd314)+');'][_0xd859fc(0xc3)]('\x0a'):_0x24b25a===_0xd859fc(0x92)?['const\x20api\x20=\x20univerAPI;',_0xd859fc(0x96)+_0x14c0f3+');',_0xd859fc(0xb3)+JSON[_0xd859fc(0xa5)](_0xd859fc(0xb6)+_0x1dd314)+');']['join']('\x0a'):_0x24b25a===_0xd859fc(0xb5)?['const\x20api\x20=\x20univerAPI;',_0xd859fc(0x95)+_0x14c0f3+');',_0xd859fc(0xab)+JSON[_0xd859fc(0xa5)](_0xd859fc(0xac)+_0x1dd314)+');'][_0xd859fc(0xc3)]('\x0a'):_0x24b25a===_0xd859fc(0xb7)?[_0xd859fc(0xae),_0xd859fc(0xa9)+_0x14c0f3+');',_0xd859fc(0xbc)+JSON[_0xd859fc(0xa5)](_0xd859fc(0xb4)+_0x1dd314)+');'][_0xd859fc(0xc3)]('\x0a'):a(_0x24b25a);}function i(_0x366832){const _0x464887=_0x30d86b;return _0x366832===_0x464887(0xa8)?[_0x464887(0xb2),_0x464887(0xa2),'workbook']:_0x366832===_0x464887(0xb0)?['univerAPI','api','doc']:_0x366832===_0x464887(0x92)?['univerAPI','api',_0x464887(0xc0)]:_0x366832===_0x464887(0xb5)?[_0x464887(0xb2),_0x464887(0xa2),_0x464887(0xb5)]:_0x366832===_0x464887(0xb7)?['univerAPI',_0x464887(0xa2),_0x464887(0xb7)]:a(_0x366832);}function a(_0x1185c8){const _0x1bac62=_0x30d86b;throw Error(_0x1bac62(0xb8)+String(_0x1185c8));}function o(_0xe7ebca,_0x3dd1b8,_0x5ad47e){const _0x5f4c7c=_0x30d86b;if(s(_0xe7ebca)){for(let _0x1a2cc5 of _0x5ad47e)if(!s(_0x5f4c7c(0xb9)+_0x1a2cc5+_0x5f4c7c(0x93)+_0xe7ebca))throw new e(_0x5f4c7c(0x9f),'`'+_0x1a2cc5+_0x5f4c7c(0xba)+_0x3dd1b8+_0x5f4c7c(0x9d),{'binding':_0x1a2cc5,'reservedBindings':_0x5ad47e,'unitType':_0x3dd1b8});}}function s(_0x5d036c){const _0x4428aa=_0x30d86b;try{return Function(_0x4428aa(0xb2),'return\x20(async\x20()\x20=>\x20{\x20'+_0x5d036c+_0x4428aa(0xc4)),!0x0;}catch{return!0x1;}}function c(_0x37f22b){return t['some'](_0x4a8b16=>_0x4a8b16===_0x37f22b);}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.0-rc.0",
4
+ "version": "1.0.1",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",