@univer-cli/daemon-command 1.6.0 → 1.6.2
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(_0x202c72,_0x1f4d34){const _0x37f90d=_0x5c5d,_0x2aaec9=_0x202c72();while(!![]){try{const _0x47dbc2=-parseInt(_0x37f90d(0x185))/0x1+parseInt(_0x37f90d(0x1b6))/0x2+parseInt(_0x37f90d(0x17f))/0x3*(parseInt(_0x37f90d(0x19d))/0x4)+parseInt(_0x37f90d(0x1a6))/0x5*(-parseInt(_0x37f90d(0x184))/0x6)+-parseInt(_0x37f90d(0x1ad))/0x7*(-parseInt(_0x37f90d(0x17c))/0x8)+parseInt(_0x37f90d(0x181))/0x9+-parseInt(_0x37f90d(0x180))/0xa;if(_0x47dbc2===_0x1f4d34)break;else _0x2aaec9['push'](_0x2aaec9['shift']());}catch(_0xb5810f){_0x2aaec9['push'](_0x2aaec9['shift']());}}}(_0x1504,0x3f7a9));import{Command as _0x13cc72}from'commander';function _0x5c5d(_0x54607e,_0x592cba){_0x54607e=_0x54607e-0x17b;const _0x150487=_0x1504();let _0x5c5d0c=_0x150487[_0x54607e];return _0x5c5d0c;}function t(_0x2e8840){const _0x5d7835=_0x5c5d;let _0x158821=new _0x13cc72('daemon')[_0x5d7835(0x1ac)](_0x5d7835(0x17e))[_0x5d7835(0x19e)](()=>_0x158821[_0x5d7835(0x19a)]()),_0x3ab256=_0x158821[_0x5d7835(0x189)](_0x5d7835(0x17b))['description'](_0x5d7835(0x194))['option'](_0x5d7835(0x1b8),_0x5d7835(0x1b9))[_0x5d7835(0x19e)](async _0x2c972a=>{const _0x33ea2f=_0x5d7835;let _0x44b68c=await n(_0x3ab256,async()=>await _0x2e8840[_0x33ea2f(0x1a2)][_0x33ea2f(0x17b)]());r(_0x3ab256,_0x2c972a,_0x44b68c,i(_0x44b68c));}),_0x1e1451=_0x158821[_0x5d7835(0x189)](_0x5d7835(0x182))[_0x5d7835(0x1ac)]('Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running')[_0x5d7835(0x1bb)]('--json',_0x5d7835(0x1b9))['action'](async _0xf8038c=>{const _0x2c7d0b=_0x5d7835;let _0x3a8151=await n(_0x1e1451,async()=>await _0x2e8840[_0x2c7d0b(0x1a2)][_0x2c7d0b(0x182)]());r(_0x1e1451,_0xf8038c,_0x3a8151,c(_0x3a8151));}),_0x4d270f=_0x158821['command'](_0x5d7835(0x199))[_0x5d7835(0x1ac)](_0x5d7835(0x1b7))[_0x5d7835(0x1bb)](_0x5d7835(0x1b8),_0x5d7835(0x1b9))[_0x5d7835(0x19e)](async _0x590679=>{const _0x1d198e=_0x5d7835;let _0x56b572=await n(_0x4d270f,async()=>await _0x2e8840[_0x1d198e(0x1a2)]['restart']());r(_0x4d270f,_0x590679,_0x56b572,l(_0x56b572));}),_0x536a45=_0x158821['command'](_0x5d7835(0x18c))['description'](_0x5d7835(0x1b1))[_0x5d7835(0x1bb)](_0x5d7835(0x1b8),_0x5d7835(0x1b9))[_0x5d7835(0x19e)](async _0x3791e7=>{const _0x594494=_0x5d7835;let _0x38be3b=await n(_0x536a45,async()=>await _0x2e8840['control'][_0x594494(0x18c)]());r(_0x536a45,_0x3791e7,_0x38be3b,u(_0x38be3b));});return _0x158821;}async function n(_0x3ea426,_0x3603fe){const _0x4d473d=_0x5c5d;try{return await _0x3603fe();}catch(_0xd2d386){throw f(_0xd2d386)&&_0x3ea426[_0x4d473d(0x1aa)](_0xd2d386[_0x4d473d(0x18e)]+':\x20'+_0xd2d386[_0x4d473d(0x1a8)],{'code':'daemon.failed','exitCode':0x1}),_0xd2d386;}}function r(_0x307228,_0x162531,_0x2a9fc8,_0x1bdd78){const _0x3fafbe=_0x5c5d;_0x307228['configureOutput']()[_0x3fafbe(0x183)]?.((_0x162531[_0x3fafbe(0x18d)]===!0x0?JSON[_0x3fafbe(0x1a5)](_0x2a9fc8,null,0x2):_0x1bdd78)+'\x0a');}function i(_0x4ab8fd){const _0x216759=_0x5c5d;switch(_0x4ab8fd['state']){case _0x216759(0x19b):return d(_0x216759(0x1a3),_0x4ab8fd);case _0x216759(0x1bc):return'Daemon:\x20stopped\x0aSocket:\x20'+_0x4ab8fd['socketPath'];case _0x216759(0x1a0):return a(_0x4ab8fd);case _0x216759(0x18f):return[_0x216759(0x1a4),_0x216759(0x196)+s(_0x4ab8fd['diagnostic']),_0x216759(0x1a1)+_0x4ab8fd['socketPath']][_0x216759(0x193)]('\x0a');}}function a(_0x49c320){const _0x315081=_0x5c5d;return['Daemon:\x20incompatible',_0x315081(0x1b3)+_0x49c320['reason'],_0x315081(0x192)+o(_0x49c320['expected'][_0x315081(0x190)],_0x49c320[_0x315081(0x18a)]['protocolVersion']),..._0x49c320[_0x315081(0x1ae)]===void 0x0?[]:[_0x315081(0x191)+o(_0x49c320[_0x315081(0x1ae)][_0x315081(0x190)],_0x49c320[_0x315081(0x1ae)]['protocolVersion'])],..._0x49c320[_0x315081(0x1a9)]===void 0x0?[]:[_0x315081(0x196)+s(_0x49c320[_0x315081(0x1a9)])],_0x315081(0x1a1)+_0x49c320[_0x315081(0x18b)]][_0x315081(0x193)]('\x0a');}function o(_0x34d9f0,_0x455d09){const _0x3bbb8b=_0x5c5d;return _0x34d9f0['id']+'@'+_0x34d9f0[_0x3bbb8b(0x1b0)]+(_0x34d9f0[_0x3bbb8b(0x1af)]===void 0x0?'':'\x20(build\x20'+_0x34d9f0[_0x3bbb8b(0x1af)]+')')+_0x3bbb8b(0x1ba)+String(_0x455d09);}function s(_0x1d18a4){const _0xc6c128=_0x5c5d;return _0x1d18a4[_0xc6c128(0x18e)]===void 0x0?_0x1d18a4['message']:_0x1d18a4[_0xc6c128(0x18e)]+':\x20'+_0x1d18a4[_0xc6c128(0x1a8)];}function c(_0x73009d){const _0x37275b=_0x5c5d;return d(_0x73009d['started']?_0x37275b(0x1b4):'Daemon:\x20already\x20running',_0x73009d);}function l(_0xc99ea3){const _0x2b80ee=_0x5c5d;let _0x32fbc2=d(_0xc99ea3[_0x2b80ee(0x1bd)]?_0x2b80ee(0x1a7):_0x2b80ee(0x1b4),_0xc99ea3);return _0xc99ea3[_0x2b80ee(0x195)]===void 0x0?_0x32fbc2:_0x32fbc2+_0x2b80ee(0x1b2)+String(_0xc99ea3[_0x2b80ee(0x195)]);}function u(_0x529e56){const _0x57596b=_0x5c5d;return(_0x529e56['stopped']?_0x57596b(0x187):_0x57596b(0x197))+'\x0aSocket:\x20'+_0x529e56['socketPath'];}function d(_0x5829b6,_0x423cfc){const _0x53f126=_0x5c5d;return[_0x5829b6,_0x53f126(0x19f)+_0x423cfc[_0x53f126(0x190)]['id'],_0x53f126(0x1b5)+_0x423cfc[_0x53f126(0x190)]['version'],..._0x423cfc['identity']['buildId']===void 0x0?[]:[_0x53f126(0x1ab)+_0x423cfc[_0x53f126(0x190)][_0x53f126(0x1af)]],_0x53f126(0x19c)+String(_0x423cfc[_0x53f126(0x17d)]),'PID:\x20'+String(_0x423cfc[_0x53f126(0x198)]),_0x53f126(0x188)+_0x423cfc[_0x53f126(0x186)],_0x53f126(0x1a1)+_0x423cfc['socketPath']][_0x53f126(0x193)]('\x0a');}function f(_0x10542a){const _0x2f5dc9=_0x5c5d;return _0x10542a instanceof Error&&'code'in _0x10542a&&typeof _0x10542a[_0x2f5dc9(0x18e)]=='string';}export{t as createDaemonCommand};function _0x1504(){const _0x23ef39=['Daemon:\x20unreachable','stringify','20sXetOF','Daemon:\x20restarted','message','diagnostic','error','Build\x20ID:\x20','description','158851tedMBU','actual','buildId','version','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','\x0aPrevious\x20PID:\x20','Reason:\x20','Daemon:\x20started','Version:\x20','720552xZyHIZ','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','--json','write\x20structured\x20JSON',',\x20protocol\x20','option','stopped','restarted','status','104qivLqP','protocolVersion','Inspect\x20and\x20control\x20the\x20local\x20daemon','26514BYpNIz','5828160ywNtRr','2212596nnnrOc','start','writeOut','98214oobhoA','10504yeismV','startedAt','Daemon:\x20stopped','Started\x20at:\x20','command','expected','socketPath','stop','json','code','unreachable','identity','Actual:\x20','Expected:\x20','join','Show\x20whether\x20the\x20daemon\x20is\x20running','previousPid','Error:\x20','Daemon:\x20already\x20stopped','pid','restart','outputHelp','running','Protocol:\x20','8JrYMzK','action','Identity:\x20','incompatible','Socket:\x20','control','Daemon:\x20running'];_0x1504=function(){return _0x23ef39;};return _0x1504();}
|
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.2",
|
|
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.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|