@univer-cli/daemon-command 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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34b3be,_0x2076df){const _0x48903c=_0x5e2e,_0x3fe646=_0x34b3be();while(!![]){try{const _0x25d8b1=-parseInt(_0x48903c(0x20b))/0x1*(-parseInt(_0x48903c(0x1ff))/0x2)+parseInt(_0x48903c(0x1f2))/0x3+parseInt(_0x48903c(0x1e0))/0x4*(-parseInt(_0x48903c(0x209))/0x5)+-parseInt(_0x48903c(0x203))/0x6*(parseInt(_0x48903c(0x1e2))/0x7)+parseInt(_0x48903c(0x1ed))/0x8+-parseInt(_0x48903c(0x200))/0x9*(-parseInt(_0x48903c(0x205))/0xa)+-parseInt(_0x48903c(0x1ee))/0xb*(parseInt(_0x48903c(0x1fb))/0xc);if(_0x25d8b1===_0x2076df)break;else _0x3fe646['push'](_0x3fe646['shift']());}catch(_0x5b7960){_0x3fe646['push'](_0x3fe646['shift']());}}}(_0x115c,0x6f03f));import{Command as _0x2cb700}from'commander';function t(_0x41ab4a){const _0x207725=_0x5e2e;let _0x17798e=new _0x2cb700(_0x207725(0x1ef))[_0x207725(0x1f3)](_0x207725(0x211))[_0x207725(0x20c)](()=>_0x17798e[_0x207725(0x1fe)]()),_0x7fe278=_0x17798e[_0x207725(0x210)](_0x207725(0x1f8))[_0x207725(0x1f3)]('Show\x20whether\x20the\x20daemon\x20is\x20running')['option']('--json',_0x207725(0x1d9))[_0x207725(0x20c)](async _0x3de23c=>{const _0x2d6bc2=_0x207725;let _0x3999c4=await n(_0x7fe278,async()=>await _0x41ab4a[_0x2d6bc2(0x1da)]['status']());r(_0x7fe278,_0x3de23c,_0x3999c4,i(_0x3999c4));}),_0x4a694f=_0x17798e[_0x207725(0x210)](_0x207725(0x1f7))[_0x207725(0x1f3)]('Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running')[_0x207725(0x1f1)](_0x207725(0x1e5),'write\x20structured\x20JSON')[_0x207725(0x20c)](async _0x1e769f=>{const _0x1d8c31=_0x207725;let _0xe9ce25=await n(_0x4a694f,async()=>await _0x41ab4a[_0x1d8c31(0x1da)][_0x1d8c31(0x1f7)]());r(_0x4a694f,_0x1e769f,_0xe9ce25,c(_0xe9ce25));}),_0x2aa13a=_0x17798e[_0x207725(0x210)]('restart')[_0x207725(0x1f3)]('Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running')[_0x207725(0x1f1)](_0x207725(0x1e5),'write\x20structured\x20JSON')[_0x207725(0x20c)](async _0x1b00b0=>{const _0x35c01a=_0x207725;let _0x29763b=await n(_0x2aa13a,async()=>await _0x41ab4a[_0x35c01a(0x1da)][_0x35c01a(0x1fd)]());r(_0x2aa13a,_0x1b00b0,_0x29763b,l(_0x29763b));}),_0x55d8f0=_0x17798e[_0x207725(0x210)](_0x207725(0x1fc))['description']('Stop\x20the\x20daemon\x20if\x20it\x20is\x20running')[_0x207725(0x1f1)](_0x207725(0x1e5),'write\x20structured\x20JSON')[_0x207725(0x20c)](async _0x5952=>{const _0x1a0154=_0x207725;let _0x3709bf=await n(_0x55d8f0,async()=>await _0x41ab4a['control'][_0x1a0154(0x1fc)]());r(_0x55d8f0,_0x5952,_0x3709bf,u(_0x3709bf));});return _0x17798e;}async function n(_0x3bb2d5,_0x6bc092){const _0x592d70=_0x5e2e;try{return await _0x6bc092();}catch(_0x116c0f){throw f(_0x116c0f)&&_0x3bb2d5[_0x592d70(0x1e1)](_0x116c0f[_0x592d70(0x214)]+':\x20'+_0x116c0f[_0x592d70(0x201)],{'code':'daemon.failed','exitCode':0x1}),_0x116c0f;}}function r(_0x1c808d,_0x211959,_0x388318,_0x32da84){const _0x504b0b=_0x5e2e;_0x1c808d[_0x504b0b(0x20d)]()['writeOut']?.((_0x211959[_0x504b0b(0x202)]===!0x0?JSON[_0x504b0b(0x215)](_0x388318,null,0x2):_0x32da84)+'\x0a');}function i(_0x50e38a){const _0x39c9af=_0x5e2e;switch(_0x50e38a[_0x39c9af(0x1f9)]){case _0x39c9af(0x1e8):return d(_0x39c9af(0x1fa),_0x50e38a);case _0x39c9af(0x1f6):return _0x39c9af(0x1f0)+_0x50e38a['socketPath'];case'incompatible':return a(_0x50e38a);case'unreachable':return[_0x39c9af(0x208),_0x39c9af(0x1eb)+s(_0x50e38a[_0x39c9af(0x1e3)]),_0x39c9af(0x1db)+_0x50e38a[_0x39c9af(0x1f5)]][_0x39c9af(0x1d7)]('\x0a');}}function a(_0x1c8eb4){const _0x5d5f55=_0x5e2e;return[_0x5d5f55(0x213),_0x5d5f55(0x1e6)+_0x1c8eb4['reason'],_0x5d5f55(0x1ea)+o(_0x1c8eb4[_0x5d5f55(0x1e4)][_0x5d5f55(0x1dc)],_0x1c8eb4[_0x5d5f55(0x1e4)]['protocolVersion']),..._0x1c8eb4['actual']===void 0x0?[]:['Actual:\x20'+o(_0x1c8eb4[_0x5d5f55(0x216)]['identity'],_0x1c8eb4['actual'][_0x5d5f55(0x1dd)])],..._0x1c8eb4['diagnostic']===void 0x0?[]:[_0x5d5f55(0x1eb)+s(_0x1c8eb4['diagnostic'])],_0x5d5f55(0x1db)+_0x1c8eb4[_0x5d5f55(0x1f5)]][_0x5d5f55(0x1d7)]('\x0a');}function o(_0x2ef9e3,_0x1e4235){const _0x52f4a0=_0x5e2e;return _0x2ef9e3['id']+'@'+_0x2ef9e3['version']+(_0x2ef9e3[_0x52f4a0(0x1e7)]===void 0x0?'':_0x52f4a0(0x20e)+_0x2ef9e3['buildId']+')')+',\x20protocol\x20'+String(_0x1e4235);}function s(_0x153514){const _0x4f7635=_0x5e2e;return _0x153514[_0x4f7635(0x214)]===void 0x0?_0x153514[_0x4f7635(0x201)]:_0x153514[_0x4f7635(0x214)]+':\x20'+_0x153514[_0x4f7635(0x201)];}function c(_0x4b1803){const _0xc6c376=_0x5e2e;return d(_0x4b1803['started']?_0xc6c376(0x1de):'Daemon:\x20already\x20running',_0x4b1803);}function _0x5e2e(_0x45c7e1,_0x46a942){_0x45c7e1=_0x45c7e1-0x1d6;const _0x115c21=_0x115c();let _0x5e2ef7=_0x115c21[_0x45c7e1];return _0x5e2ef7;}function l(_0x383048){const _0x3b3465=_0x5e2e;let _0x1e3f4f=d(_0x383048['restarted']?_0x3b3465(0x20a):_0x3b3465(0x1de),_0x383048);return _0x383048['previousPid']===void 0x0?_0x1e3f4f:_0x1e3f4f+_0x3b3465(0x204)+String(_0x383048['previousPid']);}function u(_0x4b939d){const _0xaa4d92=_0x5e2e;return(_0x4b939d[_0xaa4d92(0x1f6)]?_0xaa4d92(0x207):_0xaa4d92(0x206))+_0xaa4d92(0x1d6)+_0x4b939d[_0xaa4d92(0x1f5)];}function d(_0x305328,_0x797352){const _0x152065=_0x5e2e;return[_0x305328,'Identity:\x20'+_0x797352[_0x152065(0x1dc)]['id'],_0x152065(0x212)+_0x797352[_0x152065(0x1dc)][_0x152065(0x1ec)],..._0x797352[_0x152065(0x1dc)][_0x152065(0x1e7)]===void 0x0?[]:[_0x152065(0x1e9)+_0x797352[_0x152065(0x1dc)][_0x152065(0x1e7)]],_0x152065(0x1d8)+String(_0x797352[_0x152065(0x1dd)]),_0x152065(0x20f)+String(_0x797352[_0x152065(0x217)]),_0x152065(0x1df)+_0x797352[_0x152065(0x1f4)],_0x152065(0x1db)+_0x797352[_0x152065(0x1f5)]][_0x152065(0x1d7)]('\x0a');}function _0x115c(){const _0x1e4199=['join','Protocol:\x20','write\x20structured\x20JSON','control','Socket:\x20','identity','protocolVersion','Daemon:\x20started','Started\x20at:\x20','3008cFJYHZ','error','6116824LwFyiq','diagnostic','expected','--json','Reason:\x20','buildId','running','Build\x20ID:\x20','Expected:\x20','Error:\x20','version','3701040yyONIY','260139yVedby','daemon','Daemon:\x20stopped\x0aSocket:\x20','option','41565xNoPtX','description','startedAt','socketPath','stopped','start','status','state','Daemon:\x20running','24GelzIH','stop','restart','outputHelp','1375694NIolOh','9xkGSII','message','json','6YAYgxN','\x0aPrevious\x20PID:\x20','7108450PGMGHC','Daemon:\x20already\x20stopped','Daemon:\x20stopped','Daemon:\x20unreachable','3320McsbBg','Daemon:\x20restarted','1zVYivb','action','configureOutput','\x20(build\x20','PID:\x20','command','Inspect\x20and\x20control\x20the\x20local\x20daemon','Version:\x20','Daemon:\x20incompatible','code','stringify','actual','pid','\x0aSocket:\x20'];_0x115c=function(){return _0x1e4199;};return _0x115c();}function f(_0x44924d){const _0x338e02=_0x5e2e;return _0x44924d instanceof Error&&'code'in _0x44924d&&typeof _0x44924d[_0x338e02(0x214)]=='string';}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.6.
|
|
4
|
+
"version": "1.6.1",
|
|
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.6.
|
|
21
|
+
"@univer-cli/daemon": "1.6.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|