@univer-cli/daemon-command 1.4.0 → 1.6.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(_0x586488,_0x3ff7af){const _0x2097c1=_0x2266,_0x930f2b=_0x586488();while(!![]){try{const _0x497562=-parseInt(_0x2097c1(0x19c))/0x1+-parseInt(_0x2097c1(0x196))/0x2*(-parseInt(_0x2097c1(0x1a3))/0x3)+-parseInt(_0x2097c1(0x1a6))/0x4*(parseInt(_0x2097c1(0x175))/0x5)+-parseInt(_0x2097c1(0x18e))/0x6*(-parseInt(_0x2097c1(0x1a8))/0x7)+parseInt(_0x2097c1(0x186))/0x8*(parseInt(_0x2097c1(0x19a))/0x9)+parseInt(_0x2097c1(0x19b))/0xa+parseInt(_0x2097c1(0x19d))/0xb*(-parseInt(_0x2097c1(0x1a5))/0xc);if(_0x497562===_0x3ff7af)break;else _0x930f2b['push'](_0x930f2b['shift']());}catch(_0x580477){_0x930f2b['push'](_0x930f2b['shift']());}}}(_0x3cdc,0xa0cc9));import{Command as _0x44dbc9}from'commander';function t(_0x1e041d){const _0x593d4f=_0x2266;let _0xc6069a=new _0x44dbc9(_0x593d4f(0x17d))[_0x593d4f(0x1a2)](_0x593d4f(0x1b4))[_0x593d4f(0x18a)](()=>_0xc6069a[_0x593d4f(0x191)]()),_0x2ce584=_0xc6069a[_0x593d4f(0x17f)](_0x593d4f(0x18d))['description'](_0x593d4f(0x1b6))[_0x593d4f(0x1ad)](_0x593d4f(0x17a),_0x593d4f(0x174))['action'](async _0x563240=>{const _0x1024d1=_0x593d4f;let _0x5ceb6a=await n(_0x2ce584,async()=>await _0x1e041d[_0x1024d1(0x1a7)][_0x1024d1(0x18d)]());r(_0x2ce584,_0x563240,_0x5ceb6a,i(_0x5ceb6a));}),_0x22e4ca=_0xc6069a[_0x593d4f(0x17f)](_0x593d4f(0x1b3))['description']('Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running')[_0x593d4f(0x1ad)](_0x593d4f(0x17a),'write\x20structured\x20JSON')[_0x593d4f(0x18a)](async _0x533f9f=>{const _0x4601b6=_0x593d4f;let _0xfc10a6=await n(_0x22e4ca,async()=>await _0x1e041d[_0x4601b6(0x1a7)][_0x4601b6(0x1b3)]());r(_0x22e4ca,_0x533f9f,_0xfc10a6,c(_0xfc10a6));}),_0x5e0ef5=_0xc6069a[_0x593d4f(0x17f)](_0x593d4f(0x190))[_0x593d4f(0x1a2)](_0x593d4f(0x195))[_0x593d4f(0x1ad)](_0x593d4f(0x17a),_0x593d4f(0x174))[_0x593d4f(0x18a)](async _0x3210b6=>{const _0x34bc58=_0x593d4f;let _0x54196b=await n(_0x5e0ef5,async()=>await _0x1e041d[_0x34bc58(0x1a7)][_0x34bc58(0x190)]());r(_0x5e0ef5,_0x3210b6,_0x54196b,l(_0x54196b));}),_0x274b6f=_0xc6069a[_0x593d4f(0x17f)]('stop')[_0x593d4f(0x1a2)](_0x593d4f(0x18f))[_0x593d4f(0x1ad)](_0x593d4f(0x17a),_0x593d4f(0x174))[_0x593d4f(0x18a)](async _0x50082b=>{const _0x5c5c08=_0x593d4f;let _0x480d38=await n(_0x274b6f,async()=>await _0x1e041d[_0x5c5c08(0x1a7)][_0x5c5c08(0x1ae)]());r(_0x274b6f,_0x50082b,_0x480d38,u(_0x480d38));});return _0xc6069a;}async function n(_0x7c7edd,_0x54c4c4){const _0x3ea84e=_0x2266;try{return await _0x54c4c4();}catch(_0x3864b8){throw f(_0x3864b8)&&_0x7c7edd[_0x3ea84e(0x17c)](_0x3864b8['code']+':\x20'+_0x3864b8['message'],{'code':_0x3ea84e(0x1a1),'exitCode':0x1}),_0x3864b8;}}function r(_0x211d7a,_0x439a8a,_0x57e4d4,_0x224971){const _0x37a488=_0x2266;_0x211d7a[_0x37a488(0x187)]()[_0x37a488(0x182)]?.((_0x439a8a['json']===!0x0?JSON['stringify'](_0x57e4d4,null,0x2):_0x224971)+'\x0a');}function _0x2266(_0x38397d,_0x6c7075){_0x38397d=_0x38397d-0x171;const _0x3cdcad=_0x3cdc();let _0x2266e0=_0x3cdcad[_0x38397d];return _0x2266e0;}function _0x3cdc(){const _0x2f6ff4=['restart','outputHelp','Daemon:\x20already\x20running','Daemon:\x20started','\x0aPrevious\x20PID:\x20','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','502CVsLyz','Build\x20ID:\x20','actual','diagnostic','162171MxcAzX','7808760RCLqqM','440751RWkDBT','253VHlHnB','version','Daemon:\x20stopped\x0aSocket:\x20','socketPath','daemon.failed','description','4566ozfcFK','message','395532lgRpKD','2599144qbdFas','control','485681BkjKyh','Protocol:\x20','started','running','Daemon:\x20stopped','option','stop','Expected:\x20','Daemon:\x20unreachable',',\x20protocol\x20','protocolVersion','start','Inspect\x20and\x20control\x20the\x20local\x20daemon','join','Show\x20whether\x20the\x20daemon\x20is\x20running','incompatible','identity','pid','previousPid','expected','write\x20structured\x20JSON','5jEAcLm','Version:\x20','PID:\x20','unreachable','buildId','--json','\x20(build\x20','error','daemon','code','command','Reason:\x20','reason','writeOut','Daemon:\x20running','startedAt','state','104WRFqDI','configureOutput','stopped','Identity:\x20','action','Socket:\x20','Daemon:\x20restarted','status','96cUZMkd','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running'];_0x3cdc=function(){return _0x2f6ff4;};return _0x3cdc();}function i(_0x2f8f24){const _0x34c2fe=_0x2266;switch(_0x2f8f24[_0x34c2fe(0x185)]){case _0x34c2fe(0x1ab):return d(_0x34c2fe(0x183),_0x2f8f24);case'stopped':return _0x34c2fe(0x19f)+_0x2f8f24['socketPath'];case _0x34c2fe(0x1b7):return a(_0x2f8f24);case _0x34c2fe(0x178):return[_0x34c2fe(0x1b0),'Error:\x20'+s(_0x2f8f24['diagnostic']),_0x34c2fe(0x18b)+_0x2f8f24['socketPath']]['join']('\x0a');}}function a(_0x393769){const _0x343c73=_0x2266;return['Daemon:\x20incompatible',_0x343c73(0x180)+_0x393769[_0x343c73(0x181)],_0x343c73(0x1af)+o(_0x393769[_0x343c73(0x173)][_0x343c73(0x1b8)],_0x393769[_0x343c73(0x173)][_0x343c73(0x1b2)]),..._0x393769[_0x343c73(0x198)]===void 0x0?[]:['Actual:\x20'+o(_0x393769[_0x343c73(0x198)][_0x343c73(0x1b8)],_0x393769['actual']['protocolVersion'])],..._0x393769[_0x343c73(0x199)]===void 0x0?[]:['Error:\x20'+s(_0x393769[_0x343c73(0x199)])],_0x343c73(0x18b)+_0x393769[_0x343c73(0x1a0)]][_0x343c73(0x1b5)]('\x0a');}function o(_0x398028,_0x3b3411){const _0x300284=_0x2266;return _0x398028['id']+'@'+_0x398028[_0x300284(0x19e)]+(_0x398028[_0x300284(0x179)]===void 0x0?'':_0x300284(0x17b)+_0x398028[_0x300284(0x179)]+')')+_0x300284(0x1b1)+String(_0x3b3411);}function s(_0x4f4676){const _0x273e1b=_0x2266;return _0x4f4676['code']===void 0x0?_0x4f4676[_0x273e1b(0x1a4)]:_0x4f4676[_0x273e1b(0x17e)]+':\x20'+_0x4f4676[_0x273e1b(0x1a4)];}function c(_0x5eee77){const _0x17c2b6=_0x2266;return d(_0x5eee77[_0x17c2b6(0x1aa)]?_0x17c2b6(0x193):_0x17c2b6(0x192),_0x5eee77);}function l(_0x3da660){const _0x13a9d5=_0x2266;let _0xe2b07f=d(_0x3da660['restarted']?_0x13a9d5(0x18c):_0x13a9d5(0x193),_0x3da660);return _0x3da660[_0x13a9d5(0x172)]===void 0x0?_0xe2b07f:_0xe2b07f+_0x13a9d5(0x194)+String(_0x3da660[_0x13a9d5(0x172)]);}function u(_0x12aba2){const _0x55fecf=_0x2266;return(_0x12aba2[_0x55fecf(0x188)]?_0x55fecf(0x1ac):'Daemon:\x20already\x20stopped')+'\x0aSocket:\x20'+_0x12aba2[_0x55fecf(0x1a0)];}function d(_0x3adf8a,_0x49a46a){const _0x11e08f=_0x2266;return[_0x3adf8a,_0x11e08f(0x189)+_0x49a46a['identity']['id'],_0x11e08f(0x176)+_0x49a46a[_0x11e08f(0x1b8)]['version'],..._0x49a46a[_0x11e08f(0x1b8)][_0x11e08f(0x179)]===void 0x0?[]:[_0x11e08f(0x197)+_0x49a46a['identity'][_0x11e08f(0x179)]],_0x11e08f(0x1a9)+String(_0x49a46a[_0x11e08f(0x1b2)]),_0x11e08f(0x177)+String(_0x49a46a[_0x11e08f(0x171)]),'Started\x20at:\x20'+_0x49a46a[_0x11e08f(0x184)],_0x11e08f(0x18b)+_0x49a46a['socketPath']]['join']('\x0a');}function f(_0x3a1ef7){const _0x23d3c2=_0x2266;return _0x3a1ef7 instanceof Error&&_0x23d3c2(0x17e)in _0x3a1ef7&&typeof _0x3a1ef7[_0x23d3c2(0x17e)]=='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.
|
|
4
|
+
"version": "1.6.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.6.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|