@univer-cli/daemon-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 +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7b1b28,_0x7e0f11){const _0x2bef74=_0xb085,_0xd52468=_0x7b1b28();while(!![]){try{const _0x2745b5=-parseInt(_0x2bef74(0x1dc))/0x1+parseInt(_0x2bef74(0x1ed))/0x2+-parseInt(_0x2bef74(0x1c5))/0x3+-parseInt(_0x2bef74(0x1bb))/0x4*(-parseInt(_0x2bef74(0x1eb))/0x5)+parseInt(_0x2bef74(0x1ca))/0x6*(-parseInt(_0x2bef74(0x1c0))/0x7)+parseInt(_0x2bef74(0x1dd))/0x8+parseInt(_0x2bef74(0x1b8))/0x9*(-parseInt(_0x2bef74(0x1c3))/0xa);if(_0x2745b5===_0x7e0f11)break;else _0xd52468['push'](_0xd52468['shift']());}catch(_0x45d63d){_0xd52468['push'](_0xd52468['shift']());}}}(_0x3088,0x81f96));import{Command as _0x3b3e22}from'commander';function t(_0x144cee){const _0x3bad9f=_0xb085;let _0x2268d6=new _0x3b3e22(_0x3bad9f(0x1f5))[_0x3bad9f(0x1ce)](_0x3bad9f(0x1d8))[_0x3bad9f(0x1ee)](()=>_0x2268d6[_0x3bad9f(0x1e6)]()),_0x258bab=_0x2268d6[_0x3bad9f(0x1df)]('status')['description'](_0x3bad9f(0x1cc))['option']('--json',_0x3bad9f(0x1d0))['action'](async _0x2b7e90=>{const _0xf69230=_0x3bad9f;let _0x3d9b98=await n(_0x258bab,async()=>await _0x144cee[_0xf69230(0x1e4)]['status']());r(_0x258bab,_0x2b7e90,_0x3d9b98,i(_0x3d9b98));}),_0x5f4cb6=_0x2268d6[_0x3bad9f(0x1df)]('start')['description'](_0x3bad9f(0x1c1))['option']('--json',_0x3bad9f(0x1d0))[_0x3bad9f(0x1ee)](async _0x1f9cc0=>{let _0x592f72=await n(_0x5f4cb6,async()=>await _0x144cee['control']['start']());r(_0x5f4cb6,_0x1f9cc0,_0x592f72,c(_0x592f72));}),_0x38c728=_0x2268d6[_0x3bad9f(0x1df)]('restart')[_0x3bad9f(0x1ce)](_0x3bad9f(0x1ea))[_0x3bad9f(0x1e1)](_0x3bad9f(0x1b9),_0x3bad9f(0x1d0))['action'](async _0x51b95e=>{const _0xf15ade=_0x3bad9f;let _0x75a96c=await n(_0x38c728,async()=>await _0x144cee[_0xf15ade(0x1e4)]['restart']());r(_0x38c728,_0x51b95e,_0x75a96c,l(_0x75a96c));}),_0x45fade=_0x2268d6['command'](_0x3bad9f(0x1e2))['description'](_0x3bad9f(0x1c7))[_0x3bad9f(0x1e1)](_0x3bad9f(0x1b9),_0x3bad9f(0x1d0))[_0x3bad9f(0x1ee)](async _0x957f5f=>{const _0x14d83d=_0x3bad9f;let _0x4c8faa=await n(_0x45fade,async()=>await _0x144cee[_0x14d83d(0x1e4)][_0x14d83d(0x1e2)]());r(_0x45fade,_0x957f5f,_0x4c8faa,u(_0x4c8faa));});return _0x2268d6;}async function n(_0x14ce9d,_0x17b186){const _0x25abd9=_0xb085;try{return await _0x17b186();}catch(_0x104005){throw f(_0x104005)&&_0x14ce9d['error'](_0x104005[_0x25abd9(0x1d1)]+':\x20'+_0x104005[_0x25abd9(0x1da)],{'code':_0x25abd9(0x1d2),'exitCode':0x1}),_0x104005;}}function _0x3088(){const _0x264126=['join','command','Daemon:\x20already\x20stopped','option','stop','Daemon:\x20started','control','socketPath','outputHelp','Expected:\x20','configureOutput','identity','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','2492095FRjzbJ','started','2052526sWkCKR','action','diagnostic','buildId','stopped','json','previousPid','Daemon:\x20unreachable','daemon','actual','startedAt','Socket:\x20','Daemon:\x20incompatible','9189CIsXsH','--json','Daemon:\x20stopped\x0aSocket:\x20','8TiPBRo','PID:\x20','\x20(build\x20','protocolVersion','stringify','6254227jHaIYS','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','unreachable','10630bUewjk','Identity:\x20','1679772IEyaAI','\x0aPrevious\x20PID:\x20','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running',',\x20protocol\x20','expected','6YCMLHQ','Build\x20ID:\x20','Show\x20whether\x20the\x20daemon\x20is\x20running','writeOut','description','version','write\x20structured\x20JSON','code','daemon.failed','Error:\x20','Actual:\x20','string','reason','pid','Inspect\x20and\x20control\x20the\x20local\x20daemon','Daemon:\x20stopped','message','restarted','14319SZwmEf','8498400MFkekG'];_0x3088=function(){return _0x264126;};return _0x3088();}function r(_0x1f7f8e,_0x4c8e7f,_0x45a392,_0x5de44f){const _0x3e72b7=_0xb085;_0x1f7f8e[_0x3e72b7(0x1e8)]()[_0x3e72b7(0x1cd)]?.((_0x4c8e7f[_0x3e72b7(0x1f2)]===!0x0?JSON[_0x3e72b7(0x1bf)](_0x45a392,null,0x2):_0x5de44f)+'\x0a');}function _0xb085(_0x14d546,_0xb35628){_0x14d546=_0x14d546-0x1b6;const _0x3088ea=_0x3088();let _0xb085a0=_0x3088ea[_0x14d546];return _0xb085a0;}function i(_0x4a0cf8){const _0x355b22=_0xb085;switch(_0x4a0cf8['state']){case'running':return d('Daemon:\x20running',_0x4a0cf8);case _0x355b22(0x1f1):return _0x355b22(0x1ba)+_0x4a0cf8['socketPath'];case'incompatible':return a(_0x4a0cf8);case _0x355b22(0x1c2):return[_0x355b22(0x1f4),_0x355b22(0x1d3)+s(_0x4a0cf8[_0x355b22(0x1ef)]),_0x355b22(0x1b6)+_0x4a0cf8[_0x355b22(0x1e5)]][_0x355b22(0x1de)]('\x0a');}}function a(_0x2c5063){const _0x2a424f=_0xb085;return[_0x2a424f(0x1b7),'Reason:\x20'+_0x2c5063[_0x2a424f(0x1d6)],_0x2a424f(0x1e7)+o(_0x2c5063[_0x2a424f(0x1c9)]['identity'],_0x2c5063[_0x2a424f(0x1c9)]['protocolVersion']),..._0x2c5063[_0x2a424f(0x1f6)]===void 0x0?[]:[_0x2a424f(0x1d4)+o(_0x2c5063[_0x2a424f(0x1f6)][_0x2a424f(0x1e9)],_0x2c5063[_0x2a424f(0x1f6)][_0x2a424f(0x1be)])],..._0x2c5063[_0x2a424f(0x1ef)]===void 0x0?[]:[_0x2a424f(0x1d3)+s(_0x2c5063[_0x2a424f(0x1ef)])],_0x2a424f(0x1b6)+_0x2c5063[_0x2a424f(0x1e5)]][_0x2a424f(0x1de)]('\x0a');}function o(_0xf92268,_0x240441){const _0x12a784=_0xb085;return _0xf92268['id']+'@'+_0xf92268[_0x12a784(0x1cf)]+(_0xf92268['buildId']===void 0x0?'':_0x12a784(0x1bd)+_0xf92268[_0x12a784(0x1f0)]+')')+_0x12a784(0x1c8)+String(_0x240441);}function s(_0x56f46a){const _0x2dcc75=_0xb085;return _0x56f46a['code']===void 0x0?_0x56f46a['message']:_0x56f46a[_0x2dcc75(0x1d1)]+':\x20'+_0x56f46a[_0x2dcc75(0x1da)];}function c(_0x58dae7){const _0x560ac0=_0xb085;return d(_0x58dae7[_0x560ac0(0x1ec)]?'Daemon:\x20started':'Daemon:\x20already\x20running',_0x58dae7);}function l(_0x5c5ef7){const _0x598b94=_0xb085;let _0x1a1453=d(_0x5c5ef7[_0x598b94(0x1db)]?'Daemon:\x20restarted':_0x598b94(0x1e3),_0x5c5ef7);return _0x5c5ef7[_0x598b94(0x1f3)]===void 0x0?_0x1a1453:_0x1a1453+_0x598b94(0x1c6)+String(_0x5c5ef7[_0x598b94(0x1f3)]);}function u(_0x4727c7){const _0x42e486=_0xb085;return(_0x4727c7['stopped']?_0x42e486(0x1d9):_0x42e486(0x1e0))+'\x0aSocket:\x20'+_0x4727c7['socketPath'];}function d(_0x101f72,_0x411ee6){const _0xbacc70=_0xb085;return[_0x101f72,_0xbacc70(0x1c4)+_0x411ee6[_0xbacc70(0x1e9)]['id'],'Version:\x20'+_0x411ee6[_0xbacc70(0x1e9)][_0xbacc70(0x1cf)],..._0x411ee6[_0xbacc70(0x1e9)]['buildId']===void 0x0?[]:[_0xbacc70(0x1cb)+_0x411ee6[_0xbacc70(0x1e9)][_0xbacc70(0x1f0)]],'Protocol:\x20'+String(_0x411ee6[_0xbacc70(0x1be)]),_0xbacc70(0x1bc)+String(_0x411ee6[_0xbacc70(0x1d7)]),'Started\x20at:\x20'+_0x411ee6[_0xbacc70(0x1f7)],_0xbacc70(0x1b6)+_0x411ee6[_0xbacc70(0x1e5)]][_0xbacc70(0x1de)]('\x0a');}function f(_0x261170){const _0x25c51c=_0xb085;return _0x261170 instanceof Error&&_0x25c51c(0x1d1)in _0x261170&&typeof _0x261170['code']==_0x25c51c(0x1d5);}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.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,7 +18,7 @@
|
|
|
18
18
|
"README.zh-CN.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@univer-cli/daemon": "1.0.
|
|
21
|
+
"@univer-cli/daemon": "1.0.4"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|