@univer-cli/daemon-command 1.6.2 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1 +1 @@
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();}
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.2",
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.2"
21
+ "@univer-cli/daemon": "1.6.3"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"