@univer-cli/daemon-command 1.0.0-beta.2 → 1.0.0-rc.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(_0x12796d,_0x64fe6c){const _0x53470f=_0x550c,_0x42862c=_0x12796d();while(!![]){try{const _0x4db164=-parseInt(_0x53470f(0x215))/0x1*(-parseInt(_0x53470f(0x226))/0x2)+-parseInt(_0x53470f(0x21d))/0x3*(-parseInt(_0x53470f(0x222))/0x4)+parseInt(_0x53470f(0x1fd))/0x5+-parseInt(_0x53470f(0x207))/0x6+parseInt(_0x53470f(0x1fc))/0x7*(-parseInt(_0x53470f(0x228))/0x8)+parseInt(_0x53470f(0x20f))/0x9+parseInt(_0x53470f(0x1f5))/0xa;if(_0x4db164===_0x64fe6c)break;else _0x42862c['push'](_0x42862c['shift']());}catch(_0x1372b0){_0x42862c['push'](_0x42862c['shift']());}}}(_0x43be,0x67f4c));import{Command as _0xb8ab07}from'commander';function t(_0x316038){const _0x4c7210=_0x550c;let _0x46d05a=new _0xb8ab07(_0x4c7210(0x209))[_0x4c7210(0x220)](_0x4c7210(0x211))[_0x4c7210(0x21f)](()=>_0x46d05a['outputHelp']()),_0x1bc817=_0x46d05a['command']('status')['description'](_0x4c7210(0x200))[_0x4c7210(0x212)]('--json',_0x4c7210(0x210))['action'](async _0xd2b21e=>{const _0x305568=_0x4c7210;let _0x3351f5=await n(_0x1bc817,async()=>await _0x316038[_0x305568(0x1f7)][_0x305568(0x22a)]());r(_0x1bc817,_0xd2b21e,_0x3351f5,i(_0x3351f5));}),_0x5b031f=_0x46d05a[_0x4c7210(0x221)](_0x4c7210(0x20d))[_0x4c7210(0x220)](_0x4c7210(0x1f6))[_0x4c7210(0x212)]('--json','write\x20structured\x20JSON')['action'](async _0x1be78f=>{const _0x2ed820=_0x4c7210;let _0x272033=await n(_0x5b031f,async()=>await _0x316038[_0x2ed820(0x1f7)][_0x2ed820(0x20d)]());r(_0x5b031f,_0x1be78f,_0x272033,c(_0x272033));}),_0x5d69cf=_0x46d05a[_0x4c7210(0x221)]('restart')[_0x4c7210(0x220)](_0x4c7210(0x21e))['option'](_0x4c7210(0x1fb),_0x4c7210(0x210))[_0x4c7210(0x21f)](async _0x181775=>{const _0x422854=_0x4c7210;let _0x1da2dc=await n(_0x5d69cf,async()=>await _0x316038[_0x422854(0x1f7)]['restart']());r(_0x5d69cf,_0x181775,_0x1da2dc,l(_0x1da2dc));}),_0x1303ed=_0x46d05a['command'](_0x4c7210(0x21c))[_0x4c7210(0x220)](_0x4c7210(0x204))[_0x4c7210(0x212)](_0x4c7210(0x1fb),_0x4c7210(0x210))[_0x4c7210(0x21f)](async _0x2c8b54=>{let _0x2a652d=await n(_0x1303ed,async()=>await _0x316038['control']['stop']());r(_0x1303ed,_0x2c8b54,_0x2a652d,u(_0x2a652d));});return _0x46d05a;}async function n(_0x54f4b3,_0x370d73){const _0x3ecfa3=_0x550c;try{return await _0x370d73();}catch(_0x2e611a){throw f(_0x2e611a)&&_0x54f4b3['error'](_0x2e611a[_0x3ecfa3(0x219)]+':\x20'+_0x2e611a['message'],{'code':_0x3ecfa3(0x206),'exitCode':0x1}),_0x2e611a;}}function r(_0x2fc8de,_0x30bb4b,_0x2240af,_0x25bf34){const _0x2ad73f=_0x550c;_0x2fc8de[_0x2ad73f(0x216)]()['writeOut']?.((_0x30bb4b[_0x2ad73f(0x1fe)]===!0x0?JSON['stringify'](_0x2240af,null,0x2):_0x25bf34)+'\x0a');}function i(_0x5d2c98){const _0x2fd803=_0x550c;switch(_0x5d2c98[_0x2fd803(0x1f3)]){case _0x2fd803(0x1f9):return d('Daemon:\x20running',_0x5d2c98);case _0x2fd803(0x229):return _0x2fd803(0x22e)+_0x5d2c98[_0x2fd803(0x208)];case'incompatible':return a(_0x5d2c98);case _0x2fd803(0x202):return[_0x2fd803(0x22d),_0x2fd803(0x1f0)+s(_0x5d2c98[_0x2fd803(0x22c)]),_0x2fd803(0x1ee)+_0x5d2c98[_0x2fd803(0x208)]][_0x2fd803(0x20b)]('\x0a');}}function a(_0x37d99e){const _0x755ca6=_0x550c;return[_0x755ca6(0x213),_0x755ca6(0x1f2)+_0x37d99e['reason'],'Expected:\x20'+o(_0x37d99e['expected'][_0x755ca6(0x224)],_0x37d99e[_0x755ca6(0x22f)][_0x755ca6(0x223)]),..._0x37d99e[_0x755ca6(0x1f1)]===void 0x0?[]:[_0x755ca6(0x22b)+o(_0x37d99e[_0x755ca6(0x1f1)][_0x755ca6(0x224)],_0x37d99e[_0x755ca6(0x1f1)][_0x755ca6(0x223)])],..._0x37d99e[_0x755ca6(0x22c)]===void 0x0?[]:[_0x755ca6(0x1f0)+s(_0x37d99e[_0x755ca6(0x22c)])],_0x755ca6(0x1ee)+_0x37d99e[_0x755ca6(0x208)]]['join']('\x0a');}function o(_0x84f424,_0x17ec65){const _0x334c9b=_0x550c;return _0x84f424['id']+'@'+_0x84f424['version']+(_0x84f424['buildId']===void 0x0?'':'\x20(build\x20'+_0x84f424[_0x334c9b(0x1ff)]+')')+_0x334c9b(0x1f8)+String(_0x17ec65);}function s(_0x27e824){const _0x1c1b2f=_0x550c;return _0x27e824[_0x1c1b2f(0x219)]===void 0x0?_0x27e824[_0x1c1b2f(0x214)]:_0x27e824['code']+':\x20'+_0x27e824[_0x1c1b2f(0x214)];}function c(_0x33bec4){const _0x2af3b6=_0x550c;return d(_0x33bec4[_0x2af3b6(0x21a)]?_0x2af3b6(0x227):_0x2af3b6(0x20c),_0x33bec4);}function _0x550c(_0x71d5e3,_0x31f1bf){_0x71d5e3=_0x71d5e3-0x1ee;const _0x43bec1=_0x43be();let _0x550c41=_0x43bec1[_0x71d5e3];return _0x550c41;}function l(_0x28aaf1){const _0x101b5e=_0x550c;let _0x55c4a4=d(_0x28aaf1['restarted']?_0x101b5e(0x1f4):_0x101b5e(0x227),_0x28aaf1);return _0x28aaf1['previousPid']===void 0x0?_0x55c4a4:_0x55c4a4+_0x101b5e(0x1ef)+String(_0x28aaf1[_0x101b5e(0x217)]);}function _0x43be(){const _0x21f8f7=['status','Actual:\x20','diagnostic','Daemon:\x20unreachable','Daemon:\x20stopped\x0aSocket:\x20','expected','Socket:\x20','\x0aPrevious\x20PID:\x20','Error:\x20','actual','Reason:\x20','state','Daemon:\x20restarted','2981890xcjgQX','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','control',',\x20protocol\x20','running','Daemon:\x20already\x20stopped','--json','7QNvQvr','243615CzDlgj','json','buildId','Show\x20whether\x20the\x20daemon\x20is\x20running','pid','unreachable','Version:\x20','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','Started\x20at:\x20','daemon.failed','3217284txEBmD','socketPath','daemon','Daemon:\x20stopped','join','Daemon:\x20already\x20running','start','string','1111743cJNGRt','write\x20structured\x20JSON','Inspect\x20and\x20control\x20the\x20local\x20daemon','option','Daemon:\x20incompatible','message','6203BfdbBu','configureOutput','previousPid','Protocol:\x20','code','started','Identity:\x20','stop','738372GBqiyU','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','action','description','command','12uPIrCe','protocolVersion','identity','\x0aSocket:\x20','94KHOXII','Daemon:\x20started','4306672dcBFln','stopped'];_0x43be=function(){return _0x21f8f7;};return _0x43be();}function u(_0x36ab9b){const _0x193dc6=_0x550c;return(_0x36ab9b[_0x193dc6(0x229)]?_0x193dc6(0x20a):_0x193dc6(0x1fa))+_0x193dc6(0x225)+_0x36ab9b[_0x193dc6(0x208)];}function d(_0x1d14ae,_0x3d7118){const _0x4e2d73=_0x550c;return[_0x1d14ae,_0x4e2d73(0x21b)+_0x3d7118['identity']['id'],_0x4e2d73(0x203)+_0x3d7118[_0x4e2d73(0x224)]['version'],..._0x3d7118[_0x4e2d73(0x224)][_0x4e2d73(0x1ff)]===void 0x0?[]:['Build\x20ID:\x20'+_0x3d7118['identity'][_0x4e2d73(0x1ff)]],_0x4e2d73(0x218)+String(_0x3d7118[_0x4e2d73(0x223)]),'PID:\x20'+String(_0x3d7118[_0x4e2d73(0x201)]),_0x4e2d73(0x205)+_0x3d7118['startedAt'],_0x4e2d73(0x1ee)+_0x3d7118[_0x4e2d73(0x208)]][_0x4e2d73(0x20b)]('\x0a');}function f(_0x16d804){const _0x1ae226=_0x550c;return _0x16d804 instanceof Error&&_0x1ae226(0x219)in _0x16d804&&typeof _0x16d804[_0x1ae226(0x219)]==_0x1ae226(0x20e);}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.0-
|
|
4
|
+
"version": "1.0.0-rc.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.0.0-
|
|
21
|
+
"@univer-cli/daemon": "1.0.0-rc.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|