@univer-cli/daemon-command 1.6.1 → 1.6.3
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(_0x20be8a,_0x7f866d){const _0x4d8734=_0x213e,_0x16350a=_0x20be8a();while(!![]){try{const _0x2ac81f=parseInt(_0x4d8734(0x1bf))/0x1+-parseInt(_0x4d8734(0x19e))/0x2+-parseInt(_0x4d8734(0x199))/0x3+parseInt(_0x4d8734(0x1aa))/0x4+-parseInt(_0x4d8734(0x182))/0x5*(parseInt(_0x4d8734(0x189))/0x6)+-parseInt(_0x4d8734(0x1a0))/0x7+parseInt(_0x4d8734(0x198))/0x8*(parseInt(_0x4d8734(0x1c3))/0x9);if(_0x2ac81f===_0x7f866d)break;else _0x16350a['push'](_0x16350a['shift']());}catch(_0x24ffb0){_0x16350a['push'](_0x16350a['shift']());}}}(_0xa551,0x2a65a));import{Command as _0x531f64}from'commander';function t(_0x483327){const _0x2ff645=_0x213e;let _0x182343=new _0x531f64(_0x2ff645(0x18e))[_0x2ff645(0x18a)](_0x2ff645(0x1ab))[_0x2ff645(0x1a6)](()=>_0x182343['outputHelp']()),_0x57c462=_0x182343[_0x2ff645(0x1b2)](_0x2ff645(0x1b0))[_0x2ff645(0x18a)](_0x2ff645(0x192))[_0x2ff645(0x1a2)](_0x2ff645(0x1a3),'write\x20structured\x20JSON')[_0x2ff645(0x1a6)](async _0x3819ba=>{const _0x49a15e=_0x2ff645;let _0x359530=await n(_0x57c462,async()=>await _0x483327[_0x49a15e(0x18b)]['status']());r(_0x57c462,_0x3819ba,_0x359530,i(_0x359530));}),_0x3daaad=_0x182343['command'](_0x2ff645(0x184))['description'](_0x2ff645(0x1ba))[_0x2ff645(0x1a2)](_0x2ff645(0x1a3),_0x2ff645(0x186))[_0x2ff645(0x1a6)](async _0x2104f3=>{const _0x129056=_0x2ff645;let _0x4737c0=await n(_0x3daaad,async()=>await _0x483327['control'][_0x129056(0x184)]());r(_0x3daaad,_0x2104f3,_0x4737c0,c(_0x4737c0));}),_0x1898b7=_0x182343[_0x2ff645(0x1b2)](_0x2ff645(0x1b4))[_0x2ff645(0x18a)](_0x2ff645(0x1a5))[_0x2ff645(0x1a2)](_0x2ff645(0x1a3),_0x2ff645(0x186))[_0x2ff645(0x1a6)](async _0x37f765=>{const _0x416a83=_0x2ff645;let _0x35e088=await n(_0x1898b7,async()=>await _0x483327[_0x416a83(0x18b)]['restart']());r(_0x1898b7,_0x37f765,_0x35e088,l(_0x35e088));}),_0xc6da8=_0x182343[_0x2ff645(0x1b2)](_0x2ff645(0x1af))[_0x2ff645(0x18a)]('Stop\x20the\x20daemon\x20if\x20it\x20is\x20running')[_0x2ff645(0x1a2)](_0x2ff645(0x1a3),_0x2ff645(0x186))['action'](async _0x1c9564=>{const _0x1d57c5=_0x2ff645;let _0x527642=await n(_0xc6da8,async()=>await _0x483327[_0x1d57c5(0x18b)][_0x1d57c5(0x1af)]());r(_0xc6da8,_0x1c9564,_0x527642,u(_0x527642));});return _0x182343;}async function n(_0x2cc518,_0x21dd87){const _0x4027b6=_0x213e;try{return await _0x21dd87();}catch(_0x176ebe){throw f(_0x176ebe)&&_0x2cc518[_0x4027b6(0x19c)](_0x176ebe[_0x4027b6(0x1be)]+':\x20'+_0x176ebe['message'],{'code':_0x4027b6(0x19f),'exitCode':0x1}),_0x176ebe;}}function r(_0x51b1ab,_0xc3c8a4,_0x592156,_0x48ad1f){const _0x511e4e=_0x213e;_0x51b1ab[_0x511e4e(0x17d)]()[_0x511e4e(0x19b)]?.((_0xc3c8a4[_0x511e4e(0x1c0)]===!0x0?JSON['stringify'](_0x592156,null,0x2):_0x48ad1f)+'\x0a');}function i(_0x32c495){const _0x5e0df2=_0x213e;switch(_0x32c495[_0x5e0df2(0x1a7)]){case _0x5e0df2(0x1b7):return d(_0x5e0df2(0x190),_0x32c495);case _0x5e0df2(0x1a9):return _0x5e0df2(0x1ae)+_0x32c495[_0x5e0df2(0x185)];case _0x5e0df2(0x1a1):return a(_0x32c495);case'unreachable':return[_0x5e0df2(0x17e),_0x5e0df2(0x19a)+s(_0x32c495[_0x5e0df2(0x1ac)]),_0x5e0df2(0x1b9)+_0x32c495[_0x5e0df2(0x185)]][_0x5e0df2(0x1bd)]('\x0a');}}function _0x213e(_0x27aafa,_0xa41713){_0x27aafa=_0x27aafa-0x17d;const _0xa55176=_0xa551();let _0x213ecd=_0xa55176[_0x27aafa];return _0x213ecd;}function _0xa551(){const _0x5c24b5=['code','119907SmknxX','json','identity','actual','5056308zuBTpU','configureOutput','Daemon:\x20unreachable','buildId','\x20(build\x20','Started\x20at:\x20','1485kGhSsV',',\x20protocol\x20','start','socketPath','write\x20structured\x20JSON','pid','Daemon:\x20incompatible','618WxUQzu','description','control','\x0aPrevious\x20PID:\x20','startedAt','daemon','started','Daemon:\x20running','Daemon:\x20stopped','Show\x20whether\x20the\x20daemon\x20is\x20running','Daemon:\x20already\x20stopped','restarted','Identity:\x20','message','version','8PmZeUi','537360sZAAYd','Error:\x20','writeOut','error','Reason:\x20','630420hSxKdt','daemon.failed','461881Uiriwx','incompatible','option','--json','Expected:\x20','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','action','state','PID:\x20','stopped','331372YFawYF','Inspect\x20and\x20control\x20the\x20local\x20daemon','diagnostic','Build\x20ID:\x20','Daemon:\x20stopped\x0aSocket:\x20','stop','status','Daemon:\x20started','command','Actual:\x20','restart','expected','previousPid','running','Daemon:\x20restarted','Socket:\x20','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','reason','protocolVersion','join'];_0xa551=function(){return _0x5c24b5;};return _0xa551();}function a(_0x230728){const _0x48070a=_0x213e;return[_0x48070a(0x188),_0x48070a(0x19d)+_0x230728[_0x48070a(0x1bb)],_0x48070a(0x1a4)+o(_0x230728[_0x48070a(0x1b5)][_0x48070a(0x1c1)],_0x230728['expected']['protocolVersion']),..._0x230728[_0x48070a(0x1c2)]===void 0x0?[]:[_0x48070a(0x1b3)+o(_0x230728['actual'][_0x48070a(0x1c1)],_0x230728[_0x48070a(0x1c2)][_0x48070a(0x1bc)])],..._0x230728[_0x48070a(0x1ac)]===void 0x0?[]:[_0x48070a(0x19a)+s(_0x230728['diagnostic'])],_0x48070a(0x1b9)+_0x230728[_0x48070a(0x185)]][_0x48070a(0x1bd)]('\x0a');}function o(_0x243416,_0x3b99e4){const _0x2f6cce=_0x213e;return _0x243416['id']+'@'+_0x243416[_0x2f6cce(0x197)]+(_0x243416[_0x2f6cce(0x17f)]===void 0x0?'':_0x2f6cce(0x180)+_0x243416[_0x2f6cce(0x17f)]+')')+_0x2f6cce(0x183)+String(_0x3b99e4);}function s(_0x15a02c){const _0x4e5ab8=_0x213e;return _0x15a02c['code']===void 0x0?_0x15a02c[_0x4e5ab8(0x196)]:_0x15a02c[_0x4e5ab8(0x1be)]+':\x20'+_0x15a02c[_0x4e5ab8(0x196)];}function c(_0x3d0698){const _0x282a6d=_0x213e;return d(_0x3d0698[_0x282a6d(0x18f)]?_0x282a6d(0x1b1):'Daemon:\x20already\x20running',_0x3d0698);}function l(_0x537cb9){const _0x2dbf6f=_0x213e;let _0x4f90a9=d(_0x537cb9[_0x2dbf6f(0x194)]?_0x2dbf6f(0x1b8):_0x2dbf6f(0x1b1),_0x537cb9);return _0x537cb9[_0x2dbf6f(0x1b6)]===void 0x0?_0x4f90a9:_0x4f90a9+_0x2dbf6f(0x18c)+String(_0x537cb9['previousPid']);}function u(_0x17e889){const _0x211517=_0x213e;return(_0x17e889[_0x211517(0x1a9)]?_0x211517(0x191):_0x211517(0x193))+'\x0aSocket:\x20'+_0x17e889[_0x211517(0x185)];}function d(_0x22bf55,_0x501d74){const _0x616f75=_0x213e;return[_0x22bf55,_0x616f75(0x195)+_0x501d74[_0x616f75(0x1c1)]['id'],'Version:\x20'+_0x501d74[_0x616f75(0x1c1)][_0x616f75(0x197)],..._0x501d74[_0x616f75(0x1c1)]['buildId']===void 0x0?[]:[_0x616f75(0x1ad)+_0x501d74[_0x616f75(0x1c1)][_0x616f75(0x17f)]],'Protocol:\x20'+String(_0x501d74[_0x616f75(0x1bc)]),_0x616f75(0x1a8)+String(_0x501d74[_0x616f75(0x187)]),_0x616f75(0x181)+_0x501d74[_0x616f75(0x18d)],'Socket:\x20'+_0x501d74[_0x616f75(0x185)]]['join']('\x0a');}function f(_0x35a539){const _0x12b1ef=_0x213e;return _0x35a539 instanceof Error&&_0x12b1ef(0x1be)in _0x35a539&&typeof _0x35a539['code']=='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.3",
|
|
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.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|