@univer-cli/daemon-command 1.3.0 → 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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53c027,_0x3238f0){const _0x355dfc=_0x6272,_0x47dbb8=_0x53c027();while(!![]){try{const _0x169999=-parseInt(_0x355dfc(0x121))/0x1*(-parseInt(_0x355dfc(0x130))/0x2)+parseInt(_0x355dfc(0x122))/0x3*(parseInt(_0x355dfc(0x11b))/0x4)+-parseInt(_0x355dfc(0x128))/0x5+-parseInt(_0x355dfc(0x12e))/0x6*(parseInt(_0x355dfc(0x11f))/0x7)+parseInt(_0x355dfc(0x143))/0x8*(parseInt(_0x355dfc(0x127))/0x9)+-parseInt(_0x355dfc(0x120))/0xa*(parseInt(_0x355dfc(0x135))/0xb)+-parseInt(_0x355dfc(0x144))/0xc;if(_0x169999===_0x3238f0)break;else _0x47dbb8['push'](_0x47dbb8['shift']());}catch(_0x3021fe){_0x47dbb8['push'](_0x47dbb8['shift']());}}}(_0x513e,0x7b7a0));import{Command as _0x18e405}from'commander';function t(_0x42bc1b){const _0x5829c4=_0x6272;let _0xc769cd=new _0x18e405(_0x5829c4(0x14f))[_0x5829c4(0x117)](_0x5829c4(0x11d))[_0x5829c4(0x152)](()=>_0xc769cd[_0x5829c4(0x14a)]()),_0x2a4f3c=_0xc769cd[_0x5829c4(0x114)](_0x5829c4(0x118))['description'](_0x5829c4(0x123))[_0x5829c4(0x12f)]('--json',_0x5829c4(0x13f))[_0x5829c4(0x152)](async _0x2d9599=>{const _0x216760=_0x5829c4;let _0x420616=await n(_0x2a4f3c,async()=>await _0x42bc1b[_0x216760(0x124)][_0x216760(0x118)]());r(_0x2a4f3c,_0x2d9599,_0x420616,i(_0x420616));}),_0x23f16f=_0xc769cd['command'](_0x5829c4(0x11c))[_0x5829c4(0x117)](_0x5829c4(0x138))[_0x5829c4(0x12f)](_0x5829c4(0x13d),_0x5829c4(0x13f))[_0x5829c4(0x152)](async _0xdad7c1=>{const _0x4be3d2=_0x5829c4;let _0x17c9b6=await n(_0x23f16f,async()=>await _0x42bc1b[_0x4be3d2(0x124)][_0x4be3d2(0x11c)]());r(_0x23f16f,_0xdad7c1,_0x17c9b6,c(_0x17c9b6));}),_0x27b1bd=_0xc769cd[_0x5829c4(0x114)](_0x5829c4(0x129))[_0x5829c4(0x117)](_0x5829c4(0x113))['option']('--json',_0x5829c4(0x13f))['action'](async _0x180c07=>{const _0x3ac0d4=_0x5829c4;let _0xcb2e2=await n(_0x27b1bd,async()=>await _0x42bc1b[_0x3ac0d4(0x124)][_0x3ac0d4(0x129)]());r(_0x27b1bd,_0x180c07,_0xcb2e2,l(_0xcb2e2));}),_0x4bcfa2=_0xc769cd['command'](_0x5829c4(0x145))['description']('Stop\x20the\x20daemon\x20if\x20it\x20is\x20running')[_0x5829c4(0x12f)](_0x5829c4(0x13d),'write\x20structured\x20JSON')[_0x5829c4(0x152)](async _0x1d01e3=>{const _0x12378a=_0x5829c4;let _0x100e49=await n(_0x4bcfa2,async()=>await _0x42bc1b['control'][_0x12378a(0x145)]());r(_0x4bcfa2,_0x1d01e3,_0x100e49,u(_0x100e49));});return _0xc769cd;}function _0x6272(_0x2c2724,_0x4af2a3){_0x2c2724=_0x2c2724-0x113;const _0x513e12=_0x513e();let _0x62720=_0x513e12[_0x2c2724];return _0x62720;}async function n(_0x2ff165,_0x31ede6){const _0x1461f5=_0x6272;try{return await _0x31ede6();}catch(_0x2295e2){throw f(_0x2295e2)&&_0x2ff165['error'](_0x2295e2[_0x1461f5(0x153)]+':\x20'+_0x2295e2[_0x1461f5(0x125)],{'code':_0x1461f5(0x115),'exitCode':0x1}),_0x2295e2;}}function r(_0x35e73b,_0x37d837,_0x54fd8f,_0x5adb20){const _0x322337=_0x6272;_0x35e73b['configureOutput']()[_0x322337(0x141)]?.((_0x37d837['json']===!0x0?JSON[_0x322337(0x11e)](_0x54fd8f,null,0x2):_0x5adb20)+'\x0a');}function i(_0x2b75ba){const _0x5b6002=_0x6272;switch(_0x2b75ba[_0x5b6002(0x126)]){case _0x5b6002(0x140):return d(_0x5b6002(0x12a),_0x2b75ba);case'stopped':return _0x5b6002(0x131)+_0x2b75ba[_0x5b6002(0x119)];case _0x5b6002(0x14d):return a(_0x2b75ba);case _0x5b6002(0x147):return[_0x5b6002(0x136),_0x5b6002(0x12c)+s(_0x2b75ba[_0x5b6002(0x14b)]),'Socket:\x20'+_0x2b75ba[_0x5b6002(0x119)]]['join']('\x0a');}}function a(_0x5d045e){const _0x37b77b=_0x6272;return['Daemon:\x20incompatible','Reason:\x20'+_0x5d045e['reason'],'Expected:\x20'+o(_0x5d045e[_0x37b77b(0x12b)][_0x37b77b(0x13e)],_0x5d045e[_0x37b77b(0x12b)][_0x37b77b(0x139)]),..._0x5d045e[_0x37b77b(0x142)]===void 0x0?[]:[_0x37b77b(0x137)+o(_0x5d045e[_0x37b77b(0x142)][_0x37b77b(0x13e)],_0x5d045e[_0x37b77b(0x142)][_0x37b77b(0x139)])],..._0x5d045e['diagnostic']===void 0x0?[]:[_0x37b77b(0x12c)+s(_0x5d045e[_0x37b77b(0x14b)])],_0x37b77b(0x150)+_0x5d045e['socketPath']][_0x37b77b(0x151)]('\x0a');}function o(_0x1e038e,_0x158424){const _0x1e2698=_0x6272;return _0x1e038e['id']+'@'+_0x1e038e[_0x1e2698(0x132)]+(_0x1e038e['buildId']===void 0x0?'':_0x1e2698(0x148)+_0x1e038e[_0x1e2698(0x14c)]+')')+_0x1e2698(0x149)+String(_0x158424);}function s(_0x1b3e16){const _0x36090e=_0x6272;return _0x1b3e16[_0x36090e(0x153)]===void 0x0?_0x1b3e16['message']:_0x1b3e16[_0x36090e(0x153)]+':\x20'+_0x1b3e16['message'];}function c(_0x393bd2){const _0x2d2f23=_0x6272;return d(_0x393bd2[_0x2d2f23(0x11a)]?_0x2d2f23(0x146):'Daemon:\x20already\x20running',_0x393bd2);}function l(_0x5697d5){const _0x189f21=_0x6272;let _0x57863f=d(_0x5697d5['restarted']?'Daemon:\x20restarted':_0x189f21(0x146),_0x5697d5);return _0x5697d5['previousPid']===void 0x0?_0x57863f:_0x57863f+_0x189f21(0x13a)+String(_0x5697d5['previousPid']);}function _0x513e(){const _0x324e02=['Actual:\x20','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','protocolVersion','\x0aPrevious\x20PID:\x20','Build\x20ID:\x20','Daemon:\x20stopped','--json','identity','write\x20structured\x20JSON','running','writeOut','actual','8aiStDw','6293028aQhLby','stop','Daemon:\x20started','unreachable','\x20(build\x20',',\x20protocol\x20','outputHelp','diagnostic','buildId','incompatible','Protocol:\x20','daemon','Socket:\x20','join','action','code','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','command','daemon.failed','Version:\x20','description','status','socketPath','started','415636ofwTWk','start','Inspect\x20and\x20control\x20the\x20local\x20daemon','stringify','15449uOGBSB','130mSISJT','1471zrRuaz','15Vocbza','Show\x20whether\x20the\x20daemon\x20is\x20running','control','message','state','4743027oLRHho','1420570fAqUaF','restart','Daemon:\x20running','expected','Error:\x20','string','78wLyMhO','option','1154HcXICJ','Daemon:\x20stopped\x0aSocket:\x20','version','Daemon:\x20already\x20stopped','Started\x20at:\x20','467357rCDGCU','Daemon:\x20unreachable'];_0x513e=function(){return _0x324e02;};return _0x513e();}function u(_0xf6d287){const _0x4d50aa=_0x6272;return(_0xf6d287['stopped']?_0x4d50aa(0x13c):_0x4d50aa(0x133))+'\x0aSocket:\x20'+_0xf6d287[_0x4d50aa(0x119)];}function d(_0x810ac4,_0x249ce0){const _0x5dedf9=_0x6272;return[_0x810ac4,'Identity:\x20'+_0x249ce0['identity']['id'],_0x5dedf9(0x116)+_0x249ce0['identity'][_0x5dedf9(0x132)],..._0x249ce0[_0x5dedf9(0x13e)][_0x5dedf9(0x14c)]===void 0x0?[]:[_0x5dedf9(0x13b)+_0x249ce0['identity']['buildId']],_0x5dedf9(0x14e)+String(_0x249ce0['protocolVersion']),'PID:\x20'+String(_0x249ce0['pid']),_0x5dedf9(0x134)+_0x249ce0['startedAt'],_0x5dedf9(0x150)+_0x249ce0[_0x5dedf9(0x119)]]['join']('\x0a');}function f(_0x237eff){const _0x47c839=_0x6272;return _0x237eff instanceof Error&&_0x47c839(0x153)in _0x237eff&&typeof _0x237eff['code']==_0x47c839(0x12d);}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.4.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.4.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|