@univer-cli/unit-screenshot-command 1.0.2 → 1.0.4
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.
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4640ae,_0xf1cfc7){const _0x2ad2e6=_0x1a1c,_0x1603d7=_0x4640ae();while(!![]){try{const _0x47cf7c=parseInt(_0x2ad2e6(0x19d))/0x1*(parseInt(_0x2ad2e6(0x1a8))/0x2)+-parseInt(_0x2ad2e6(0x1ce))/0x3+-parseInt(_0x2ad2e6(0x1a1))/0x4+-parseInt(_0x2ad2e6(0x192))/0x5*(parseInt(_0x2ad2e6(0x17e))/0x6)+-parseInt(_0x2ad2e6(0x1b0))/0x7+parseInt(_0x2ad2e6(0x194))/0x8+parseInt(_0x2ad2e6(0x1d6))/0x9;if(_0x47cf7c===_0xf1cfc7)break;else _0x1603d7['push'](_0x1603d7['shift']());}catch(_0x469fbc){_0x1603d7['push'](_0x1603d7['shift']());}}}(_0x3e36,0xef451));import{UnitScreenshotError as _0x6bd2cd}from'@univer-cli/unit-screenshot';import{Command as _0x57b43d}from'commander';import{installUniverRenderBrowser as _0x47e125,probeUniverRenderBrowser as _0x2f51bd,resolveUniverRenderBrowser as _0x5c03ca}from'@univer-cli/univer-render-runtime';var a={'install':async()=>await _0x47e125(),'probe':async _0x1d7a46=>await _0x2f51bd(_0x1d7a46),'resolve':async()=>await _0x5c03ca()};function o(_0x71cb0d=a){const _0xe5d545=_0x1a1c;let _0x2104d9=new _0x57b43d(_0xe5d545(0x17a))[_0xe5d545(0x16a)]('Resolve\x20or\x20install\x20the\x20browser\x20used\x20for\x20Univer\x20rendering')[_0xe5d545(0x1ae)]('--force',_0xe5d545(0x182))[_0xe5d545(0x1ae)]('--json',_0xe5d545(0x1c4));return _0x2104d9[_0xe5d545(0x1c5)](async _0x87a19a=>{const _0x1f0538=_0xe5d545;l(_0x2104d9);let _0x27fe2a={..._0x2104d9[_0x1f0538(0x179)](),..._0x87a19a},_0x2c0cd9;try{_0x2c0cd9=await s(_0x71cb0d,_0x27fe2a[_0x1f0538(0x17c)]===!0x0);}catch(_0xd29e8b){u(_0xd29e8b)&&_0x2104d9[_0x1f0538(0x1d8)](_0xd29e8b['code']+':\x20'+_0xd29e8b[_0x1f0538(0x18f)],{'code':_0x1f0538(0x19e),'exitCode':0x1}),_0x2104d9[_0x1f0538(0x1d8)](_0xd29e8b instanceof Error?_0xd29e8b[_0x1f0538(0x18f)]:'Browser\x20setup\x20failed',{'code':_0x1f0538(0x19e),'exitCode':0x1});}let _0x2c7a62=_0x27fe2a[_0x1f0538(0x172)]===!0x0?JSON[_0x1f0538(0x165)]({'ok':!0x0,..._0x2c0cd9},null,0x2)+'\x0a':c(_0x2c0cd9);_0x2104d9[_0x1f0538(0x191)]()[_0x1f0538(0x177)]?.(_0x2c7a62);}),_0x2104d9;}async function s(_0x469726,_0x4d29eb){const _0x576393=_0x1a1c;if(!_0x4d29eb){let _0xa1bbe4=await _0x469726[_0x576393(0x18b)]();if(_0xa1bbe4[_0x576393(0x1c7)]==='found')return await _0x469726[_0x576393(0x176)]({'executablePath':_0xa1bbe4[_0x576393(0x1da)]}),{'status':'resolved','executablePath':_0xa1bbe4[_0x576393(0x1da)],'source':_0xa1bbe4[_0x576393(0x1b9)]};}let _0x2d6455=await _0x469726[_0x576393(0x17d)]();return await _0x469726[_0x576393(0x176)]({'executablePath':_0x2d6455['executablePath']}),{'status':_0x576393(0x186),..._0x2d6455};}function c(_0x448175){const _0x1acbc3=_0x1a1c;return _0x448175[_0x1acbc3(0x1c7)]===_0x1acbc3(0x1b1)?[_0x1acbc3(0x1b7)+_0x448175['source']+_0x1acbc3(0x199)+_0x448175[_0x1acbc3(0x1da)],'run\x20`screenshot\x20setup\x20--force`\x20to\x20ensure\x20the\x20pinned\x20Chromium\x20build',''][_0x1acbc3(0x1a6)]('\x0a'):[_0x448175[_0x1acbc3(0x173)]?'screenshot\x20browser\x20already\x20installed:\x20'+_0x448175[_0x1acbc3(0x1da)]:_0x1acbc3(0x19c)+_0x448175[_0x1acbc3(0x1da)],'build:\x20'+_0x448175[_0x1acbc3(0x1a0)],'cache:\x20'+_0x448175[_0x1acbc3(0x1cc)],'']['join']('\x0a');}function l(_0x11571d){const _0x18c15a=_0x1a1c;_0x11571d['parent']!==null&&_0x11571d[_0x18c15a(0x191)](_0x11571d[_0x18c15a(0x16d)][_0x18c15a(0x191)]());}function u(_0xd87800){const _0x5ddba0=_0x1a1c;return _0xd87800 instanceof Error&&typeof _0xd87800[_0x5ddba0(0x1a5)]==_0x5ddba0(0x1b8);}function _0x3e36(){const _0x4f55cb=['slide-pages','stringify','out','name','A\x20--pages\x20range\x20cannot\x20exceed\x20','--pages\x20cannot\x20be\x20empty','description','\x20images','Board\x20element\x20IDs\x20separated\x20by\x20commas','parent','Board\x20selector\x20scale\x20between\x200.1\x20and\x204','--region\x20must\x20contain\x20left,top,width,height\x20as\x20finite\x20numbers','--elements\x20<ids>','images','json','alreadyInstalled','length','--range\x20<a1-range>','probe','writeOut','exec','optsWithGlobals','setup','--elements\x20must\x20contain\x20non-empty\x20IDs','force','install','10597566zjmcED','--padding','Sheet','--padding\x20<pixels>','skip\x20discovery\x20and\x20ensure\x20the\x20pinned\x20Chromium\x20build','--region\x20width\x20and\x20height\x20must\x20be\x20positive','isFinite','base','installed','Render\x20a\x20Univer\x20Unit\x20as\x20PNG\x20images','--pages\x20contains\x20an\x20empty\x20selector','--json','--scale\x20<factor>','resolve','board','Contact\x20slide\x20grid,\x20for\x20example\x204x2','loadUnit','message','writeImages','configureOutput','5LmJArQ','unitType','4128120PEhNGK','slide','screenshot','elements','doc','):\x20','board-content','--pages\x20<pages>','screenshot\x20browser\x20installed:\x20','12490VnnInk','screenshot.setup-failed','toLowerCase','buildId','2174340QYzoYa','Board\x20content\x20padding','all','Screenshot\x20writer\x20output\x20','code','join','\x20pages','10toogeM','--sheet\x20<name>','\x20must\x20be\x20a\x20finite\x20number','region','contactSlide','--sheet\x20requires\x20--range','option','every','11316459gtoHKf','resolved','Base','padding','UnitScreenshotCommandInputError','scale','some','usable\x20browser\x20found\x20(','string','source','--elements\x20and\x20--region\x20cannot\x20be\x20used\x20together','--out\x20<destination>','screenshot.invalid-input','Sheet\x20range,\x20for\x20example\x20B2:H40','sheet-range','Opaque\x20output\x20destination\x20passed\x20to\x20the\x20writer','map','range','--tile\x20requires\x20--contact-slide','trim','write\x20the\x20setup\x20result\x20as\x20JSON','action','\x20outputs\x20for\x20','status','sheet','isSafeInteger','pages','Board','cacheDir','push','3933837EZvJWy','unitId','location','capture','tile','\x20does\x20not\x20match\x20the\x20captured\x20image\x20name','Slide\x20overview\x20containing\x20all\x20captured\x20pages','addCommand','50754114edwbtM','--padding\x20and\x20--scale\x20require\x20--region\x20or\x20--elements','error','--pages\x20cannot\x20expand\x20to\x20more\x20than\x20','executablePath','Screenshot\x20failed','split','Sheet\x20name\x20used\x20with\x20--range','replace','screenshot.failed'];_0x3e36=function(){return _0x4f55cb;};return _0x3e36();}var d=0x2710,f=class extends Error{constructor(_0x25e61f){const _0x400b5d=_0x1a1c;super(_0x25e61f),this[_0x400b5d(0x167)]=_0x400b5d(0x1b4);}};function _0x1a1c(_0x42900e,_0xaee9a4){_0x42900e=_0x42900e-0x161;const _0x3e36ae=_0x3e36();let _0x1a1cf2=_0x3e36ae[_0x42900e];return _0x1a1cf2;}function p(_0x5d4fdd){const _0x382f7f=_0x1a1c;let _0x24c4c6=new _0x57b43d(_0x382f7f(0x196))[_0x382f7f(0x16a)](_0x382f7f(0x187))['option']('--unit\x20<unit-id>','Unit\x20to\x20capture')[_0x382f7f(0x1ae)](_0x382f7f(0x19b),'Slide\x20pages\x20or\x20page\x20IDs,\x20for\x20example\x201,3-5,cover')[_0x382f7f(0x1ae)]('--contact-slide',_0x382f7f(0x1d4))[_0x382f7f(0x1ae)]('--tile\x20<columns>x<rows>',_0x382f7f(0x18d))[_0x382f7f(0x1ae)](_0x382f7f(0x1a9),_0x382f7f(0x161))[_0x382f7f(0x1ae)](_0x382f7f(0x175),_0x382f7f(0x1bd))['option']('--region\x20<left,top,width,height>','Board\x20region')[_0x382f7f(0x1ae)](_0x382f7f(0x170),_0x382f7f(0x16c))['option'](_0x382f7f(0x181),_0x382f7f(0x1a2))[_0x382f7f(0x1ae)](_0x382f7f(0x18a),_0x382f7f(0x16e))['option'](_0x382f7f(0x1bb),_0x382f7f(0x1bf))['option'](_0x382f7f(0x189),'write\x20a\x20structured\x20output\x20summary\x20as\x20JSON');return _0x24c4c6[_0x382f7f(0x1d5)](o(_0x5d4fdd['browserSetup'])),_0x24c4c6['action'](async _0x3e24f4=>{const _0x5093fe=_0x382f7f;let _0x55a2a8;try{let _0x341171=await _0x5d4fdd[_0x5093fe(0x18e)](_0x3e24f4['unit']===void 0x0?{}:{'unitId':_0x3e24f4['unit']});_0x55a2a8=await m(_0x5d4fdd[_0x5093fe(0x196)],_0x341171,_0x3e24f4);}catch(_0xbc9c01){C(_0x24c4c6,_0xbc9c01);}let _0xcf47ab;try{_0xcf47ab=await _0x5d4fdd[_0x5093fe(0x190)]({'result':_0x55a2a8,..._0x3e24f4[_0x5093fe(0x166)]===void 0x0?{}:{'destination':_0x3e24f4[_0x5093fe(0x166)]}}),x(_0x55a2a8,_0xcf47ab);}catch(_0x59f076){C(_0x24c4c6,_0x59f076);}let _0x3687b7=_0x3e24f4[_0x5093fe(0x172)]===!0x0?JSON['stringify'](S(_0x55a2a8,_0xcf47ab),null,0x2)+'\x0a':_0xcf47ab[_0x5093fe(0x1c0)](({location:_0x3b7fb5})=>_0x3b7fb5)['join']('\x0a')+'\x0a';_0x24c4c6['configureOutput']()[_0x5093fe(0x177)]?.(_0x3687b7);}),_0x24c4c6;}async function m(_0x569290,_0x5eb9df,_0x39921c){const _0x4dd4c8=_0x1a1c;switch(_0x5eb9df[_0x4dd4c8(0x193)]){case _0x4dd4c8(0x1c8):if(b(_0x39921c,[_0x4dd4c8(0x1ca),'contactSlide',_0x4dd4c8(0x1d2),_0x4dd4c8(0x1ab),_0x4dd4c8(0x197),'padding','scale'],_0x4dd4c8(0x180)),_0x39921c['sheet']!==void 0x0&&_0x39921c[_0x4dd4c8(0x1c1)]===void 0x0)throw new f(_0x4dd4c8(0x1ad));return await _0x569290['capture']({..._0x5eb9df,..._0x39921c[_0x4dd4c8(0x1c1)]===void 0x0?{}:{'target':{'kind':_0x4dd4c8(0x1be),'range':_0x39921c[_0x4dd4c8(0x1c1)],..._0x39921c['sheet']===void 0x0?{}:{'sheetName':_0x39921c['sheet']}}}});case _0x4dd4c8(0x198):return b(_0x39921c,[_0x4dd4c8(0x1ca),_0x4dd4c8(0x1ac),_0x4dd4c8(0x1d2),_0x4dd4c8(0x1c8),'range','region',_0x4dd4c8(0x197),_0x4dd4c8(0x1b3),'scale'],'Doc'),await _0x569290[_0x4dd4c8(0x1d1)](_0x5eb9df);case _0x4dd4c8(0x195):{if(b(_0x39921c,[_0x4dd4c8(0x1c8),_0x4dd4c8(0x1c1),'region','elements','padding',_0x4dd4c8(0x1b5)],'Slide'),_0x39921c[_0x4dd4c8(0x1d2)]!==void 0x0&&_0x39921c[_0x4dd4c8(0x1ac)]!==!0x0)throw new f(_0x4dd4c8(0x1c2));let _0x3d1a5b=h(_0x39921c['pages']),_0x1dbef5=g(_0x39921c[_0x4dd4c8(0x1d2)]);return await _0x569290[_0x4dd4c8(0x1d1)]({..._0x5eb9df,..._0x3d1a5b===void 0x0&&_0x39921c['contactSlide']!==!0x0?{}:{'target':{'kind':_0x4dd4c8(0x164),..._0x3d1a5b===void 0x0?{}:{'pages':_0x3d1a5b},..._0x39921c[_0x4dd4c8(0x1ac)]===!0x0?{'contactSheet':_0x1dbef5===void 0x0?{}:{'tile':_0x1dbef5}}:{}}}});}case _0x4dd4c8(0x18c):{b(_0x39921c,[_0x4dd4c8(0x1ca),_0x4dd4c8(0x1ac),_0x4dd4c8(0x1d2),_0x4dd4c8(0x1c8),_0x4dd4c8(0x1c1)],_0x4dd4c8(0x1cb));let _0x13c989=_(_0x39921c[_0x4dd4c8(0x197)]),_0x4d987e=v(_0x39921c[_0x4dd4c8(0x1ab)]),_0x5d8e7c=y(_0x4dd4c8(0x17f),_0x39921c[_0x4dd4c8(0x1b3)]),_0x12cd8b=y('--scale',_0x39921c[_0x4dd4c8(0x1b5)]);if(_0x13c989!==void 0x0&&_0x4d987e!==void 0x0)throw new f(_0x4dd4c8(0x1ba));if(_0x13c989===void 0x0&&_0x4d987e===void 0x0&&(_0x5d8e7c!==void 0x0||_0x12cd8b!==void 0x0))throw new f(_0x4dd4c8(0x1d7));return await _0x569290['capture']({..._0x5eb9df,..._0x13c989===void 0x0&&_0x4d987e===void 0x0&&_0x5d8e7c===void 0x0&&_0x12cd8b===void 0x0?{}:{'target':{'kind':_0x4dd4c8(0x19a),..._0x13c989===void 0x0?{}:{'elementIds':_0x13c989},..._0x4d987e===void 0x0?{}:{'region':_0x4d987e},..._0x5d8e7c===void 0x0?{}:{'padding':_0x5d8e7c},..._0x12cd8b===void 0x0?{}:{'scale':_0x12cd8b}}}});}case _0x4dd4c8(0x185):return b(_0x39921c,[_0x4dd4c8(0x1ca),'contactSlide',_0x4dd4c8(0x1d2),_0x4dd4c8(0x1c8),_0x4dd4c8(0x1c1),_0x4dd4c8(0x1ab),_0x4dd4c8(0x197),_0x4dd4c8(0x1b3),'scale'],_0x4dd4c8(0x1b2)),await _0x569290[_0x4dd4c8(0x1d1)](_0x5eb9df);}}function h(_0x1c2ffe){const _0x1a0e41=_0x1a1c;if(_0x1c2ffe===void 0x0||_0x1c2ffe['trim']()===_0x1a0e41(0x1a3))return;if(_0x1c2ffe['trim']()['length']===0x0)throw new f(_0x1a0e41(0x169));let _0x2a95b1=[];for(let _0x57bd05 of _0x1c2ffe['split'](',')){let _0x7267cf=_0x57bd05['trim']();if(_0x7267cf[_0x1a0e41(0x174)]===0x0)throw new f(_0x1a0e41(0x188));let _0x44bcdb=/^(\d+)(?:-(\d+))?$/[_0x1a0e41(0x178)](_0x7267cf);if(_0x44bcdb===null){_0x2a95b1[_0x1a0e41(0x1cd)](_0x7267cf);continue;}let _0x48291a=Number(_0x44bcdb[0x1]),_0x65594=Number(_0x44bcdb[0x2]??_0x44bcdb[0x1]);if(!Number[_0x1a0e41(0x1c9)](_0x48291a)||!Number[_0x1a0e41(0x1c9)](_0x65594)||_0x48291a<0x1||_0x65594<_0x48291a)throw new f('Invalid\x20--pages\x20range\x20'+JSON['stringify'](_0x57bd05[_0x1a0e41(0x1c3)]()));if(_0x65594-_0x48291a+0x1>d)throw new f(_0x1a0e41(0x168)+d+_0x1a0e41(0x1a7));for(let _0xdf3dcf=_0x48291a;_0xdf3dcf<=_0x65594;_0xdf3dcf+=0x1)_0x2a95b1[_0x1a0e41(0x1cd)](_0xdf3dcf);if(_0x2a95b1[_0x1a0e41(0x174)]>d)throw new f(_0x1a0e41(0x1d9)+d+'\x20pages');}return[...new Set(_0x2a95b1)];}function g(_0xfcc42a){const _0x2fb230=_0x1a1c;if(_0xfcc42a===void 0x0)return;let _0x2bfb3c=/^(\d+)x(\d+)$/iu[_0x2fb230(0x178)](_0xfcc42a[_0x2fb230(0x1c3)]()),_0xa1e79d=Number(_0x2bfb3c?.[0x1]),_0x4b4ead=Number(_0x2bfb3c?.[0x2]);if(_0x2bfb3c===null||!Number[_0x2fb230(0x1c9)](_0xa1e79d)||_0xa1e79d<0x1||!Number[_0x2fb230(0x1c9)](_0x4b4ead)||_0x4b4ead<0x1)throw new f('Invalid\x20--tile\x20'+JSON[_0x2fb230(0x165)](_0xfcc42a)+';\x20expected\x20<columns>x<rows>');return{'columns':_0xa1e79d,'rows':_0x4b4ead};}function _(_0x56a1ea){const _0x3aa8c9=_0x1a1c;if(_0x56a1ea===void 0x0)return;let _0x4b74fa=[...new Set(_0x56a1ea[_0x3aa8c9(0x1dc)](',')[_0x3aa8c9(0x1c0)](_0x3d9290=>_0x3d9290['trim']()))];if(_0x4b74fa[_0x3aa8c9(0x1b6)](_0x5da973=>_0x5da973[_0x3aa8c9(0x174)]===0x0))throw new f(_0x3aa8c9(0x17b));return _0x4b74fa;}function v(_0x46b3e7){const _0x3590ee=_0x1a1c;if(_0x46b3e7===void 0x0)return;let _0x4c1f68=_0x46b3e7[_0x3590ee(0x1dc)](','),_0x4ee1f3=_0x4c1f68[_0x3590ee(0x1c0)](Number);if(_0x4c1f68[_0x3590ee(0x174)]!==0x4||_0x4c1f68[_0x3590ee(0x1b6)](_0x31e7d7=>_0x31e7d7[_0x3590ee(0x1c3)]()['length']===0x0)||_0x4ee1f3['length']!==0x4||!_0x4ee1f3[_0x3590ee(0x1af)](Number[_0x3590ee(0x184)]))throw new f(_0x3590ee(0x16f));let [_0x4ccb10,_0xeffa70,_0x24e7d6,_0x9abd56]=_0x4ee1f3;if(_0x24e7d6<=0x0||_0x9abd56<=0x0)throw new f(_0x3590ee(0x183));return{'left':_0x4ccb10,'top':_0xeffa70,'width':_0x24e7d6,'height':_0x9abd56};}function y(_0x1003f5,_0x4f9f14){const _0x1a2c28=_0x1a1c;if(_0x4f9f14===void 0x0)return;if(_0x4f9f14['trim']()['length']===0x0)throw new f(_0x1003f5+_0x1a2c28(0x1aa));let _0x29fe73=Number(_0x4f9f14);if(!Number[_0x1a2c28(0x184)](_0x29fe73))throw new f(_0x1003f5+'\x20must\x20be\x20a\x20finite\x20number');return _0x29fe73;}function b(_0x57b715,_0x510c88,_0x1a909a){const _0x4feb32=_0x1a1c;for(let _0x246238 of _0x510c88)if(_0x57b715[_0x246238]!==void 0x0)throw new f('--'+_0x246238[_0x4feb32(0x162)](/[A-Z]/gu,_0x225996=>'-'+_0x225996[_0x4feb32(0x19f)]())+'\x20is\x20not\x20supported\x20for\x20'+_0x1a909a);}function x(_0x2c44ae,_0x2e2a51){const _0x1adc7a=_0x1a1c;if(_0x2e2a51[_0x1adc7a(0x174)]!==_0x2c44ae[_0x1adc7a(0x171)]['length'])throw Error('Screenshot\x20writer\x20returned\x20'+_0x2e2a51['length']+_0x1adc7a(0x1c6)+_0x2c44ae[_0x1adc7a(0x171)][_0x1adc7a(0x174)]+_0x1adc7a(0x16b));for(let _0x4144ef=0x0;_0x4144ef<_0x2e2a51[_0x1adc7a(0x174)];_0x4144ef+=0x1)if(_0x2e2a51[_0x4144ef]?.[_0x1adc7a(0x167)]!==_0x2c44ae[_0x1adc7a(0x171)][_0x4144ef]?.[_0x1adc7a(0x167)])throw Error(_0x1adc7a(0x1a4)+(_0x4144ef+0x1)+_0x1adc7a(0x1d3));}function S(_0x4829c7,_0x12936e){const _0x3ee020=_0x1a1c;return{'ok':!0x0,'unitId':_0x4829c7[_0x3ee020(0x1cf)],'unitKind':_0x4829c7[_0x3ee020(0x193)],'outputs':_0x4829c7[_0x3ee020(0x171)][_0x3ee020(0x1c0)](({bytes:_0x5026d7,..._0x1c9513},_0x1056fe)=>({..._0x1c9513,'location':_0x12936e[_0x1056fe][_0x3ee020(0x1d0)]}))};}function C(_0x243695,_0x2042d8){const _0x1c9520=_0x1a1c;_0x2042d8 instanceof f&&_0x243695[_0x1c9520(0x1d8)](_0x2042d8['message'],{'code':_0x1c9520(0x1bc),'exitCode':0x1}),(_0x2042d8 instanceof _0x6bd2cd||w(_0x2042d8))&&_0x243695[_0x1c9520(0x1d8)](_0x2042d8[_0x1c9520(0x1a5)]+':\x20'+_0x2042d8[_0x1c9520(0x18f)],{'code':_0x1c9520(0x163),'exitCode':0x1}),_0x2042d8 instanceof Error&&_0x243695[_0x1c9520(0x1d8)](_0x2042d8[_0x1c9520(0x18f)],{'code':'screenshot.failed','exitCode':0x1}),_0x243695[_0x1c9520(0x1d8)](_0x1c9520(0x1db),{'code':_0x1c9520(0x163),'exitCode':0x1});}function w(_0xd6333e){const _0x2778f7=_0x1a1c;return _0xd6333e instanceof Error&&typeof _0xd6333e[_0x2778f7(0x1a5)]=='string';}export{f as UnitScreenshotCommandInputError,p as createUnitScreenshotCommand,o as createUniverRenderBrowserSetupCommand};
|
|
1
|
+
(function(_0x3ffea3,_0x54093a){const _0x15a9eb=_0x3a51,_0x2450c2=_0x3ffea3();while(!![]){try{const _0x16b85e=parseInt(_0x15a9eb(0x1c1))/0x1*(parseInt(_0x15a9eb(0x21a))/0x2)+parseInt(_0x15a9eb(0x1b2))/0x3*(parseInt(_0x15a9eb(0x1f8))/0x4)+parseInt(_0x15a9eb(0x1c8))/0x5*(-parseInt(_0x15a9eb(0x1c5))/0x6)+-parseInt(_0x15a9eb(0x1e6))/0x7+-parseInt(_0x15a9eb(0x1ec))/0x8+-parseInt(_0x15a9eb(0x21c))/0x9+-parseInt(_0x15a9eb(0x219))/0xa*(-parseInt(_0x15a9eb(0x1e2))/0xb);if(_0x16b85e===_0x54093a)break;else _0x2450c2['push'](_0x2450c2['shift']());}catch(_0x42f2fa){_0x2450c2['push'](_0x2450c2['shift']());}}}(_0x5ac2,0xc11f4));import{UnitScreenshotError as _0x1ebb8b}from'@univer-cli/unit-screenshot';import{Command as _0x90d868}from'commander';import{installUniverRenderBrowser as _0x184d9b,probeUniverRenderBrowser as _0xad546c,resolveUniverRenderBrowser as _0xf9c9b3}from'@univer-cli/univer-render-runtime';var a={'install':async()=>await _0x184d9b(),'probe':async _0x8dd922=>await _0xad546c(_0x8dd922),'resolve':async()=>await _0xf9c9b3()};function o(_0x1ec116=a){const _0x2ba8ca=_0x3a51;let _0x4e3b37=new _0x90d868(_0x2ba8ca(0x1cd))[_0x2ba8ca(0x220)](_0x2ba8ca(0x1d4))['option'](_0x2ba8ca(0x1af),_0x2ba8ca(0x1f4))[_0x2ba8ca(0x206)](_0x2ba8ca(0x1e1),_0x2ba8ca(0x209));return _0x4e3b37[_0x2ba8ca(0x1fb)](async _0x58284b=>{const _0x3720fd=_0x2ba8ca;l(_0x4e3b37);let _0x358058={..._0x4e3b37[_0x3720fd(0x1e7)](),..._0x58284b},_0x3018ee;try{_0x3018ee=await s(_0x1ec116,_0x358058[_0x3720fd(0x1ee)]===!0x0);}catch(_0x60987b){u(_0x60987b)&&_0x4e3b37[_0x3720fd(0x1bf)](_0x60987b[_0x3720fd(0x200)]+':\x20'+_0x60987b[_0x3720fd(0x207)],{'code':'screenshot.setup-failed','exitCode':0x1}),_0x4e3b37[_0x3720fd(0x1bf)](_0x60987b instanceof Error?_0x60987b[_0x3720fd(0x207)]:_0x3720fd(0x1db),{'code':'screenshot.setup-failed','exitCode':0x1});}let _0x5b98f2=_0x358058[_0x3720fd(0x214)]===!0x0?JSON[_0x3720fd(0x211)]({'ok':!0x0,..._0x3018ee},null,0x2)+'\x0a':c(_0x3018ee);_0x4e3b37['configureOutput']()[_0x3720fd(0x21f)]?.(_0x5b98f2);}),_0x4e3b37;}async function s(_0x5848d9,_0x4dd175){const _0x7bf24=_0x3a51;if(!_0x4dd175){let _0x18ba52=await _0x5848d9[_0x7bf24(0x1df)]();if(_0x18ba52['status']===_0x7bf24(0x1dc))return await _0x5848d9['probe']({'executablePath':_0x18ba52['executablePath']}),{'status':_0x7bf24(0x1cf),'executablePath':_0x18ba52[_0x7bf24(0x20a)],'source':_0x18ba52[_0x7bf24(0x1d6)]};}let _0x162437=await _0x5848d9[_0x7bf24(0x22d)]();return await _0x5848d9[_0x7bf24(0x1e5)]({'executablePath':_0x162437[_0x7bf24(0x20a)]}),{'status':_0x7bf24(0x1eb),..._0x162437};}function c(_0x5beb8f){const _0x446253=_0x3a51;return _0x5beb8f[_0x446253(0x1d9)]==='resolved'?['usable\x20browser\x20found\x20('+_0x5beb8f[_0x446253(0x1d6)]+_0x446253(0x1c6)+_0x5beb8f[_0x446253(0x20a)],_0x446253(0x1f5),''][_0x446253(0x228)]('\x0a'):[_0x5beb8f[_0x446253(0x202)]?'screenshot\x20browser\x20already\x20installed:\x20'+_0x5beb8f[_0x446253(0x20a)]:'screenshot\x20browser\x20installed:\x20'+_0x5beb8f[_0x446253(0x20a)],_0x446253(0x22e)+_0x5beb8f[_0x446253(0x1d2)],_0x446253(0x1d7)+_0x5beb8f['cacheDir'],''][_0x446253(0x228)]('\x0a');}function l(_0x4e1a99){const _0x255b03=_0x3a51;_0x4e1a99[_0x255b03(0x1b1)]!==null&&_0x4e1a99['configureOutput'](_0x4e1a99[_0x255b03(0x1b1)][_0x255b03(0x230)]());}function u(_0x3cadbd){return _0x3cadbd instanceof Error&&typeof _0x3cadbd['code']=='string';}function _0x3a51(_0x419d41,_0x1571d8){_0x419d41=_0x419d41-0x1ae;const _0x5ac273=_0x5ac2();let _0x3a5173=_0x5ac273[_0x419d41];return _0x3a5173;}var d=0x2710,f=class extends Error{constructor(_0x3b5c27){const _0xff28d=_0x3a51;super(_0x3b5c27),this['name']=_0xff28d(0x1bc);}};function p(_0x3d373c){const _0x2819c7=_0x3a51;let _0x198d9e=new _0x90d868(_0x2819c7(0x1f3))[_0x2819c7(0x220)]('Render\x20a\x20Univer\x20Unit\x20as\x20PNG\x20images')['option']('--unit\x20<unit-id>','Unit\x20to\x20capture')[_0x2819c7(0x206)](_0x2819c7(0x229),'Slide\x20pages\x20or\x20page\x20IDs,\x20for\x20example\x201,3-5,cover')['option'](_0x2819c7(0x1e3),_0x2819c7(0x1e9))[_0x2819c7(0x206)]('--tile\x20<columns>x<rows>',_0x2819c7(0x222))[_0x2819c7(0x206)](_0x2819c7(0x1ff),_0x2819c7(0x1be))['option'](_0x2819c7(0x1f7),_0x2819c7(0x21e))[_0x2819c7(0x206)](_0x2819c7(0x20f),'Board\x20region')[_0x2819c7(0x206)](_0x2819c7(0x1bd),'Board\x20element\x20IDs\x20separated\x20by\x20commas')[_0x2819c7(0x206)](_0x2819c7(0x1f9),'Board\x20content\x20padding')[_0x2819c7(0x206)]('--scale\x20<factor>','Board\x20selector\x20scale\x20between\x200.1\x20and\x204')[_0x2819c7(0x206)](_0x2819c7(0x1c0),_0x2819c7(0x1e8))[_0x2819c7(0x206)]('--json',_0x2819c7(0x1c2));return _0x198d9e[_0x2819c7(0x1b6)](o(_0x3d373c['browserSetup'])),_0x198d9e['action'](async _0x5f968b=>{const _0x3754dc=_0x2819c7;let _0x2cce66;try{let _0x2f920c=await _0x3d373c['loadUnit'](_0x5f968b[_0x3754dc(0x1de)]===void 0x0?{}:{'unitId':_0x5f968b[_0x3754dc(0x1de)]});_0x2cce66=await m(_0x3d373c[_0x3754dc(0x1f3)],_0x2f920c,_0x5f968b);}catch(_0x51d31c){C(_0x198d9e,_0x51d31c);}let _0x220cf2;try{_0x220cf2=await _0x3d373c[_0x3754dc(0x215)]({'result':_0x2cce66,..._0x5f968b[_0x3754dc(0x1da)]===void 0x0?{}:{'destination':_0x5f968b[_0x3754dc(0x1da)]}}),x(_0x2cce66,_0x220cf2);}catch(_0x1cd61b){C(_0x198d9e,_0x1cd61b);}let _0x5860b9=_0x5f968b[_0x3754dc(0x214)]===!0x0?JSON[_0x3754dc(0x211)](S(_0x2cce66,_0x220cf2),null,0x2)+'\x0a':_0x220cf2[_0x3754dc(0x1fa)](({location:_0x46dcd0})=>_0x46dcd0)[_0x3754dc(0x228)]('\x0a')+'\x0a';_0x198d9e[_0x3754dc(0x230)]()[_0x3754dc(0x21f)]?.(_0x5860b9);}),_0x198d9e;}function _0x5ac2(){const _0x582bb9=['slide-pages','buildId','isFinite','Resolve\x20or\x20install\x20the\x20browser\x20used\x20for\x20Univer\x20rendering','region','source','cache:\x20','--pages\x20cannot\x20expand\x20to\x20more\x20than\x20','status','out','Browser\x20setup\x20failed','found','--elements\x20must\x20contain\x20non-empty\x20IDs','unit','resolve','contactSlide','--json','13618vZDRxx','--contact-slide','\x20outputs\x20for\x20','probe','767305vBFFLT','optsWithGlobals','Opaque\x20output\x20destination\x20passed\x20to\x20the\x20writer','Slide\x20overview\x20containing\x20all\x20captured\x20pages','tile','installed','7442224ofaEoX','all','force','exec','split','slide',';\x20expected\x20<columns>x<rows>','screenshot','skip\x20discovery\x20and\x20ensure\x20the\x20pinned\x20Chromium\x20build','run\x20`screenshot\x20setup\x20--force`\x20to\x20ensure\x20the\x20pinned\x20Chromium\x20build','--pages\x20contains\x20an\x20empty\x20selector','--range\x20<a1-range>','3739948wBHaSl','--padding\x20<pixels>','map','action','unitType','--padding\x20and\x20--scale\x20require\x20--region\x20or\x20--elements','scale','--sheet\x20<name>','code','Base','alreadyInstalled','toLowerCase','\x20is\x20not\x20supported\x20for\x20','length','option','message','isSafeInteger','write\x20the\x20setup\x20result\x20as\x20JSON','executablePath','Screenshot\x20writer\x20output\x20','--tile\x20requires\x20--contact-slide','A\x20--pages\x20range\x20cannot\x20exceed\x20','capture','--region\x20<left,top,width,height>','--scale','stringify','screenshot.invalid-input','\x20images','json','writeImages','Invalid\x20--pages\x20range\x20','board-content','--region\x20width\x20and\x20height\x20must\x20be\x20positive','21570DXeJOf','14MVJaXQ','\x20must\x20be\x20a\x20finite\x20number','13768623QduerD','trim','Sheet\x20range,\x20for\x20example\x20B2:H40','writeOut','description','images','Contact\x20slide\x20grid,\x20for\x20example\x204x2','replace','location','--pages\x20cannot\x20be\x20empty','--sheet\x20requires\x20--range','Screenshot\x20failed','join','--pages\x20<pages>','sheet','unitId','Sheet','install','build:\x20','doc','configureOutput','--region\x20must\x20contain\x20left,top,width,height\x20as\x20finite\x20numbers','--force','Board','parent','3Ovsxan','padding','--padding','--elements\x20and\x20--region\x20cannot\x20be\x20used\x20together','addCommand','Screenshot\x20writer\x20returned\x20','base','Doc','range','Invalid\x20--tile\x20','UnitScreenshotCommandInputError','--elements\x20<ids>','Sheet\x20name\x20used\x20with\x20--range','error','--out\x20<destination>','86011HKQlcU','write\x20a\x20structured\x20output\x20summary\x20as\x20JSON','sheet-range','string','29364jJpUYt','):\x20','screenshot.failed','865CPcDdH','elements','board','push','name','setup','pages','resolved','some'];_0x5ac2=function(){return _0x582bb9;};return _0x5ac2();}async function m(_0x1c8aa2,_0x26bd2d,_0x1ec7a3){const _0x30264e=_0x3a51;switch(_0x26bd2d[_0x30264e(0x1fc)]){case _0x30264e(0x22a):if(b(_0x1ec7a3,[_0x30264e(0x1ce),_0x30264e(0x1e0),_0x30264e(0x1ea),'region',_0x30264e(0x1c9),'padding',_0x30264e(0x1fe)],_0x30264e(0x22c)),_0x1ec7a3[_0x30264e(0x22a)]!==void 0x0&&_0x1ec7a3[_0x30264e(0x1ba)]===void 0x0)throw new f(_0x30264e(0x226));return await _0x1c8aa2['capture']({..._0x26bd2d,..._0x1ec7a3[_0x30264e(0x1ba)]===void 0x0?{}:{'target':{'kind':_0x30264e(0x1c3),'range':_0x1ec7a3[_0x30264e(0x1ba)],..._0x1ec7a3[_0x30264e(0x22a)]===void 0x0?{}:{'sheetName':_0x1ec7a3[_0x30264e(0x22a)]}}}});case _0x30264e(0x22f):return b(_0x1ec7a3,['pages',_0x30264e(0x1e0),_0x30264e(0x1ea),'sheet','range',_0x30264e(0x1d5),_0x30264e(0x1c9),_0x30264e(0x1b3),_0x30264e(0x1fe)],_0x30264e(0x1b9)),await _0x1c8aa2[_0x30264e(0x20e)](_0x26bd2d);case _0x30264e(0x1f1):{if(b(_0x1ec7a3,[_0x30264e(0x22a),_0x30264e(0x1ba),_0x30264e(0x1d5),_0x30264e(0x1c9),_0x30264e(0x1b3),_0x30264e(0x1fe)],'Slide'),_0x1ec7a3[_0x30264e(0x1ea)]!==void 0x0&&_0x1ec7a3[_0x30264e(0x1e0)]!==!0x0)throw new f(_0x30264e(0x20c));let _0x1b9bf3=h(_0x1ec7a3[_0x30264e(0x1ce)]),_0x44d48c=g(_0x1ec7a3['tile']);return await _0x1c8aa2[_0x30264e(0x20e)]({..._0x26bd2d,..._0x1b9bf3===void 0x0&&_0x1ec7a3[_0x30264e(0x1e0)]!==!0x0?{}:{'target':{'kind':_0x30264e(0x1d1),..._0x1b9bf3===void 0x0?{}:{'pages':_0x1b9bf3},..._0x1ec7a3['contactSlide']===!0x0?{'contactSheet':_0x44d48c===void 0x0?{}:{'tile':_0x44d48c}}:{}}}});}case _0x30264e(0x1ca):{b(_0x1ec7a3,[_0x30264e(0x1ce),_0x30264e(0x1e0),_0x30264e(0x1ea),_0x30264e(0x22a),_0x30264e(0x1ba)],_0x30264e(0x1b0));let _0x3e4d53=_(_0x1ec7a3[_0x30264e(0x1c9)]),_0x5b130c=v(_0x1ec7a3[_0x30264e(0x1d5)]),_0x480e9e=y(_0x30264e(0x1b4),_0x1ec7a3[_0x30264e(0x1b3)]),_0x6f1036=y(_0x30264e(0x210),_0x1ec7a3['scale']);if(_0x3e4d53!==void 0x0&&_0x5b130c!==void 0x0)throw new f(_0x30264e(0x1b5));if(_0x3e4d53===void 0x0&&_0x5b130c===void 0x0&&(_0x480e9e!==void 0x0||_0x6f1036!==void 0x0))throw new f(_0x30264e(0x1fd));return await _0x1c8aa2[_0x30264e(0x20e)]({..._0x26bd2d,..._0x3e4d53===void 0x0&&_0x5b130c===void 0x0&&_0x480e9e===void 0x0&&_0x6f1036===void 0x0?{}:{'target':{'kind':_0x30264e(0x217),..._0x3e4d53===void 0x0?{}:{'elementIds':_0x3e4d53},..._0x5b130c===void 0x0?{}:{'region':_0x5b130c},..._0x480e9e===void 0x0?{}:{'padding':_0x480e9e},..._0x6f1036===void 0x0?{}:{'scale':_0x6f1036}}}});}case _0x30264e(0x1b8):return b(_0x1ec7a3,[_0x30264e(0x1ce),'contactSlide',_0x30264e(0x1ea),'sheet','range',_0x30264e(0x1d5),_0x30264e(0x1c9),_0x30264e(0x1b3),'scale'],_0x30264e(0x201)),await _0x1c8aa2[_0x30264e(0x20e)](_0x26bd2d);}}function h(_0x13a1cd){const _0x5151d4=_0x3a51;if(_0x13a1cd===void 0x0||_0x13a1cd[_0x5151d4(0x21d)]()===_0x5151d4(0x1ed))return;if(_0x13a1cd[_0x5151d4(0x21d)]()[_0x5151d4(0x205)]===0x0)throw new f(_0x5151d4(0x225));let _0x424b00=[];for(let _0x58233e of _0x13a1cd['split'](',')){let _0xc8e083=_0x58233e[_0x5151d4(0x21d)]();if(_0xc8e083[_0x5151d4(0x205)]===0x0)throw new f(_0x5151d4(0x1f6));let _0x50984d=/^(\d+)(?:-(\d+))?$/[_0x5151d4(0x1ef)](_0xc8e083);if(_0x50984d===null){_0x424b00[_0x5151d4(0x1cb)](_0xc8e083);continue;}let _0x22a691=Number(_0x50984d[0x1]),_0x346da0=Number(_0x50984d[0x2]??_0x50984d[0x1]);if(!Number[_0x5151d4(0x208)](_0x22a691)||!Number[_0x5151d4(0x208)](_0x346da0)||_0x22a691<0x1||_0x346da0<_0x22a691)throw new f(_0x5151d4(0x216)+JSON[_0x5151d4(0x211)](_0x58233e['trim']()));if(_0x346da0-_0x22a691+0x1>d)throw new f(_0x5151d4(0x20d)+d+'\x20pages');for(let _0x5c9dfa=_0x22a691;_0x5c9dfa<=_0x346da0;_0x5c9dfa+=0x1)_0x424b00[_0x5151d4(0x1cb)](_0x5c9dfa);if(_0x424b00['length']>d)throw new f(_0x5151d4(0x1d8)+d+'\x20pages');}return[...new Set(_0x424b00)];}function g(_0x17283a){const _0x315c81=_0x3a51;if(_0x17283a===void 0x0)return;let _0x28d26d=/^(\d+)x(\d+)$/iu[_0x315c81(0x1ef)](_0x17283a['trim']()),_0x4850ad=Number(_0x28d26d?.[0x1]),_0x4e0ca5=Number(_0x28d26d?.[0x2]);if(_0x28d26d===null||!Number[_0x315c81(0x208)](_0x4850ad)||_0x4850ad<0x1||!Number['isSafeInteger'](_0x4e0ca5)||_0x4e0ca5<0x1)throw new f(_0x315c81(0x1bb)+JSON[_0x315c81(0x211)](_0x17283a)+_0x315c81(0x1f2));return{'columns':_0x4850ad,'rows':_0x4e0ca5};}function _(_0x5f08a6){const _0x21dde3=_0x3a51;if(_0x5f08a6===void 0x0)return;let _0x580cf6=[...new Set(_0x5f08a6[_0x21dde3(0x1f0)](',')[_0x21dde3(0x1fa)](_0x32c22d=>_0x32c22d[_0x21dde3(0x21d)]()))];if(_0x580cf6[_0x21dde3(0x1d0)](_0x469363=>_0x469363[_0x21dde3(0x205)]===0x0))throw new f(_0x21dde3(0x1dd));return _0x580cf6;}function v(_0x17e27d){const _0x5f458d=_0x3a51;if(_0x17e27d===void 0x0)return;let _0x20b756=_0x17e27d['split'](','),_0xccd862=_0x20b756[_0x5f458d(0x1fa)](Number);if(_0x20b756[_0x5f458d(0x205)]!==0x4||_0x20b756[_0x5f458d(0x1d0)](_0x472643=>_0x472643[_0x5f458d(0x21d)]()[_0x5f458d(0x205)]===0x0)||_0xccd862[_0x5f458d(0x205)]!==0x4||!_0xccd862['every'](Number[_0x5f458d(0x1d3)]))throw new f(_0x5f458d(0x1ae));let [_0x2c015d,_0x53bf79,_0x347210,_0x14633b]=_0xccd862;if(_0x347210<=0x0||_0x14633b<=0x0)throw new f(_0x5f458d(0x218));return{'left':_0x2c015d,'top':_0x53bf79,'width':_0x347210,'height':_0x14633b};}function y(_0x496cb6,_0x1d088f){const _0x3999b6=_0x3a51;if(_0x1d088f===void 0x0)return;if(_0x1d088f[_0x3999b6(0x21d)]()['length']===0x0)throw new f(_0x496cb6+_0x3999b6(0x21b));let _0x3bd90d=Number(_0x1d088f);if(!Number['isFinite'](_0x3bd90d))throw new f(_0x496cb6+_0x3999b6(0x21b));return _0x3bd90d;}function b(_0x26b0a2,_0x54f95e,_0xdf151a){const _0x1825ad=_0x3a51;for(let _0x2c41ca of _0x54f95e)if(_0x26b0a2[_0x2c41ca]!==void 0x0)throw new f('--'+_0x2c41ca[_0x1825ad(0x223)](/[A-Z]/gu,_0x211ca2=>'-'+_0x211ca2[_0x1825ad(0x203)]())+_0x1825ad(0x204)+_0xdf151a);}function x(_0x22bd05,_0x387010){const _0x410769=_0x3a51;if(_0x387010[_0x410769(0x205)]!==_0x22bd05['images']['length'])throw Error(_0x410769(0x1b7)+_0x387010[_0x410769(0x205)]+_0x410769(0x1e4)+_0x22bd05[_0x410769(0x221)][_0x410769(0x205)]+_0x410769(0x213));for(let _0x5a55ab=0x0;_0x5a55ab<_0x387010[_0x410769(0x205)];_0x5a55ab+=0x1)if(_0x387010[_0x5a55ab]?.['name']!==_0x22bd05[_0x410769(0x221)][_0x5a55ab]?.[_0x410769(0x1cc)])throw Error(_0x410769(0x20b)+(_0x5a55ab+0x1)+'\x20does\x20not\x20match\x20the\x20captured\x20image\x20name');}function S(_0x534c9b,_0x5daecf){const _0x2e0c14=_0x3a51;return{'ok':!0x0,'unitId':_0x534c9b[_0x2e0c14(0x22b)],'unitKind':_0x534c9b['unitType'],'outputs':_0x534c9b[_0x2e0c14(0x221)]['map'](({bytes:_0x825fcc,..._0x5d7493},_0x5b2f05)=>({..._0x5d7493,'location':_0x5daecf[_0x5b2f05][_0x2e0c14(0x224)]}))};}function C(_0x32db45,_0x404038){const _0x1efee6=_0x3a51;_0x404038 instanceof f&&_0x32db45['error'](_0x404038[_0x1efee6(0x207)],{'code':_0x1efee6(0x212),'exitCode':0x1}),(_0x404038 instanceof _0x1ebb8b||w(_0x404038))&&_0x32db45['error'](_0x404038[_0x1efee6(0x200)]+':\x20'+_0x404038[_0x1efee6(0x207)],{'code':_0x1efee6(0x1c7),'exitCode':0x1}),_0x404038 instanceof Error&&_0x32db45['error'](_0x404038[_0x1efee6(0x207)],{'code':_0x1efee6(0x1c7),'exitCode':0x1}),_0x32db45[_0x1efee6(0x1bf)](_0x1efee6(0x227),{'code':_0x1efee6(0x1c7),'exitCode':0x1});}function w(_0xb13638){const _0x301d9e=_0x3a51;return _0xb13638 instanceof Error&&typeof _0xb13638[_0x301d9e(0x200)]==_0x301d9e(0x1c4);}export{f as UnitScreenshotCommandInputError,p as createUnitScreenshotCommand,o as createUniverRenderBrowserSetupCommand};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univer-cli/unit-screenshot-command",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"README.zh-CN.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@univer-cli/unit-screenshot": "1.0.
|
|
22
|
-
"@univer-cli/univer-render-runtime": "1.0.
|
|
21
|
+
"@univer-cli/unit-screenshot": "1.0.4",
|
|
22
|
+
"@univer-cli/univer-render-runtime": "1.0.4"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"commander": "^15.0.0"
|