@univer-cli/daemon-command 1.6.2 → 1.7.0-alpha.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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e9725,_0x2b321e){const _0x7ea6ad=_0x2485,_0x47b994=_0x5e9725();while(!![]){try{const _0x191070=parseInt(_0x7ea6ad(0x171))/0x1*(-parseInt(_0x7ea6ad(0x15f))/0x2)+-parseInt(_0x7ea6ad(0x15a))/0x3+parseInt(_0x7ea6ad(0x16a))/0x4+parseInt(_0x7ea6ad(0x18e))/0x5*(parseInt(_0x7ea6ad(0x157))/0x6)+-parseInt(_0x7ea6ad(0x183))/0x7+-parseInt(_0x7ea6ad(0x191))/0x8+-parseInt(_0x7ea6ad(0x18a))/0x9*(-parseInt(_0x7ea6ad(0x15b))/0xa);if(_0x191070===_0x2b321e)break;else _0x47b994['push'](_0x47b994['shift']());}catch(_0x352d89){_0x47b994['push'](_0x47b994['shift']());}}}(_0x49f2,0x5ee7e));import{Command as _0x4fd9ae}from'commander';function t(_0x362a94){const _0xff69e6=_0x2485;let _0x1d41b1=new _0x4fd9ae('daemon')[_0xff69e6(0x197)](_0xff69e6(0x185))[_0xff69e6(0x160)](()=>_0x1d41b1['outputHelp']()),_0x28c0e1=_0x1d41b1[_0xff69e6(0x189)](_0xff69e6(0x151))[_0xff69e6(0x197)](_0xff69e6(0x177))[_0xff69e6(0x17d)](_0xff69e6(0x152),_0xff69e6(0x195))[_0xff69e6(0x160)](async _0x589dcd=>{let _0x3720fb=await n(_0x28c0e1,async()=>await _0x362a94['control']['status']());r(_0x28c0e1,_0x589dcd,_0x3720fb,i(_0x3720fb));}),_0x37f3a1=_0x1d41b1[_0xff69e6(0x189)](_0xff69e6(0x17f))[_0xff69e6(0x197)](_0xff69e6(0x170))[_0xff69e6(0x17d)]('--json','write\x20structured\x20JSON')[_0xff69e6(0x160)](async _0x37794d=>{let _0x4b1209=await n(_0x37f3a1,async()=>await _0x362a94['control']['start']());r(_0x37f3a1,_0x37794d,_0x4b1209,c(_0x4b1209));}),_0x154b13=_0x1d41b1[_0xff69e6(0x189)](_0xff69e6(0x17a))['description'](_0xff69e6(0x175))[_0xff69e6(0x17d)]('--json',_0xff69e6(0x195))[_0xff69e6(0x160)](async _0x3397e5=>{const _0x5f4324=_0xff69e6;let _0x46383d=await n(_0x154b13,async()=>await _0x362a94[_0x5f4324(0x182)][_0x5f4324(0x17a)]());r(_0x154b13,_0x3397e5,_0x46383d,l(_0x46383d));}),_0x15fef1=_0x1d41b1[_0xff69e6(0x189)]('stop')['description'](_0xff69e6(0x16e))[_0xff69e6(0x17d)](_0xff69e6(0x152),_0xff69e6(0x195))[_0xff69e6(0x160)](async _0x4d500d=>{const _0x1eee8c=_0xff69e6;let _0x58790b=await n(_0x15fef1,async()=>await _0x362a94['control'][_0x1eee8c(0x162)]());r(_0x15fef1,_0x4d500d,_0x58790b,u(_0x58790b));});return _0x1d41b1;}async function n(_0x52a9f5,_0x3f7fcc){const _0x149363=_0x2485;try{return await _0x3f7fcc();}catch(_0x1ce2b0){throw f(_0x1ce2b0)&&_0x52a9f5[_0x149363(0x18f)](_0x1ce2b0[_0x149363(0x159)]+':\x20'+_0x1ce2b0[_0x149363(0x166)],{'code':'daemon.failed','exitCode':0x1}),_0x1ce2b0;}}function _0x49f2(){const _0x28373d=['Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','Socket:\x20','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','338ExXgKJ','Daemon:\x20restarted','\x20(build\x20','startedAt','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','actual','Show\x20whether\x20the\x20daemon\x20is\x20running',',\x20protocol\x20','incompatible','restart','reason','Daemon:\x20already\x20stopped','option','protocolVersion','start','started','Started\x20at:\x20','control','2890832PHWThm','socketPath','Inspect\x20and\x20control\x20the\x20local\x20daemon','join','expected','\x0aPrevious\x20PID:\x20','command','18CekbAd','unreachable','stringify','Actual:\x20','25xwDOEX','error','Reason:\x20','2536200OmnVJH','pid','PID:\x20','diagnostic','write\x20structured\x20JSON','buildId','description','status','--json','running','json','version','Protocol:\x20','262842qHxcNC','Daemon:\x20running','code','1459845ibuAOf','8405770KGRMwl','Error:\x20','\x0aSocket:\x20','string','4414ezxxHS','action','Daemon:\x20already\x20running','stop','stopped','Build\x20ID:\x20','identity','message','restarted','writeOut','Daemon:\x20incompatible','1804508GLrwHJ','Daemon:\x20stopped','Identity:\x20','Expected:\x20'];_0x49f2=function(){return _0x28373d;};return _0x49f2();}function r(_0x4fe40c,_0x38df7a,_0x4e2987,_0x2cc133){const _0xcd7a0f=_0x2485;_0x4fe40c['configureOutput']()[_0xcd7a0f(0x168)]?.((_0x38df7a[_0xcd7a0f(0x154)]===!0x0?JSON[_0xcd7a0f(0x18c)](_0x4e2987,null,0x2):_0x2cc133)+'\x0a');}function i(_0x525e20){const _0x174caf=_0x2485;switch(_0x525e20['state']){case _0x174caf(0x153):return d(_0x174caf(0x158),_0x525e20);case _0x174caf(0x163):return'Daemon:\x20stopped\x0aSocket:\x20'+_0x525e20[_0x174caf(0x184)];case _0x174caf(0x179):return a(_0x525e20);case _0x174caf(0x18b):return['Daemon:\x20unreachable','Error:\x20'+s(_0x525e20[_0x174caf(0x194)]),_0x174caf(0x16f)+_0x525e20[_0x174caf(0x184)]][_0x174caf(0x186)]('\x0a');}}function a(_0x562c2a){const _0x181836=_0x2485;return[_0x181836(0x169),_0x181836(0x190)+_0x562c2a[_0x181836(0x17b)],_0x181836(0x16d)+o(_0x562c2a['expected']['identity'],_0x562c2a[_0x181836(0x187)]['protocolVersion']),..._0x562c2a[_0x181836(0x176)]===void 0x0?[]:[_0x181836(0x18d)+o(_0x562c2a['actual'][_0x181836(0x165)],_0x562c2a[_0x181836(0x176)][_0x181836(0x17e)])],..._0x562c2a[_0x181836(0x194)]===void 0x0?[]:[_0x181836(0x15c)+s(_0x562c2a[_0x181836(0x194)])],_0x181836(0x16f)+_0x562c2a[_0x181836(0x184)]][_0x181836(0x186)]('\x0a');}function o(_0x11a1d6,_0x447a83){const _0x38b293=_0x2485;return _0x11a1d6['id']+'@'+_0x11a1d6[_0x38b293(0x155)]+(_0x11a1d6[_0x38b293(0x196)]===void 0x0?'':_0x38b293(0x173)+_0x11a1d6[_0x38b293(0x196)]+')')+_0x38b293(0x178)+String(_0x447a83);}function s(_0x9d0e2f){const _0xb2ff01=_0x2485;return _0x9d0e2f[_0xb2ff01(0x159)]===void 0x0?_0x9d0e2f[_0xb2ff01(0x166)]:_0x9d0e2f['code']+':\x20'+_0x9d0e2f[_0xb2ff01(0x166)];}function c(_0x2c2a5f){const _0x4db61f=_0x2485;return d(_0x2c2a5f[_0x4db61f(0x180)]?'Daemon:\x20started':_0x4db61f(0x161),_0x2c2a5f);}function l(_0x23565f){const _0x2d31eb=_0x2485;let _0x53711b=d(_0x23565f[_0x2d31eb(0x167)]?_0x2d31eb(0x172):'Daemon:\x20started',_0x23565f);return _0x23565f['previousPid']===void 0x0?_0x53711b:_0x53711b+_0x2d31eb(0x188)+String(_0x23565f['previousPid']);}function _0x2485(_0x107ec1,_0x7921dd){_0x107ec1=_0x107ec1-0x151;const _0x49f2b0=_0x49f2();let _0x248574=_0x49f2b0[_0x107ec1];return _0x248574;}function u(_0x24b6b9){const _0x29c3c8=_0x2485;return(_0x24b6b9[_0x29c3c8(0x163)]?_0x29c3c8(0x16b):_0x29c3c8(0x17c))+_0x29c3c8(0x15d)+_0x24b6b9['socketPath'];}function d(_0x5c9f6d,_0x1b7c05){const _0x20ec39=_0x2485;return[_0x5c9f6d,_0x20ec39(0x16c)+_0x1b7c05[_0x20ec39(0x165)]['id'],'Version:\x20'+_0x1b7c05['identity'][_0x20ec39(0x155)],..._0x1b7c05[_0x20ec39(0x165)][_0x20ec39(0x196)]===void 0x0?[]:[_0x20ec39(0x164)+_0x1b7c05[_0x20ec39(0x165)][_0x20ec39(0x196)]],_0x20ec39(0x156)+String(_0x1b7c05['protocolVersion']),_0x20ec39(0x193)+String(_0x1b7c05[_0x20ec39(0x192)]),_0x20ec39(0x181)+_0x1b7c05[_0x20ec39(0x174)],_0x20ec39(0x16f)+_0x1b7c05[_0x20ec39(0x184)]]['join']('\x0a');}function f(_0x5de374){const _0x52aff5=_0x2485;return _0x5de374 instanceof Error&&'code'in _0x5de374&&typeof _0x5de374[_0x52aff5(0x159)]==_0x52aff5(0x15e);}export{t as createDaemonCommand};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univer-cli/daemon-command",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0-alpha.0",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"README.zh-CN.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@univer-cli/daemon": "1.
|
|
21
|
+
"@univer-cli/daemon": "1.7.0-alpha.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|