hedgequantx 2.9.7 → 2.9.9
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/package.json +1 -1
- package/src/app.js +5 -2
- package/src/menus/dashboard.js +3 -3
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -30,7 +30,7 @@ let currentService = null;
|
|
|
30
30
|
|
|
31
31
|
const restoreTerminal = () => {
|
|
32
32
|
try {
|
|
33
|
-
|
|
33
|
+
// Show cursor
|
|
34
34
|
process.stdout.write('\x1B[?25h');
|
|
35
35
|
if (process.stdin.isTTY && process.stdin.isRaw) {
|
|
36
36
|
process.stdin.setRawMode(false);
|
|
@@ -320,7 +320,10 @@ const run = async () => {
|
|
|
320
320
|
break;
|
|
321
321
|
|
|
322
322
|
case 'update':
|
|
323
|
-
await handleUpdate();
|
|
323
|
+
const updateResult = await handleUpdate();
|
|
324
|
+
if (updateResult === 'exit') {
|
|
325
|
+
running = false;
|
|
326
|
+
}
|
|
324
327
|
break;
|
|
325
328
|
|
|
326
329
|
case 'disconnect':
|
package/src/menus/dashboard.js
CHANGED
|
@@ -244,9 +244,9 @@ const handleUpdate = async () => {
|
|
|
244
244
|
console.log(chalk.green('\n ✓ UPDATE SUCCESSFUL!'));
|
|
245
245
|
console.log(chalk.yellow('\n Please restart HQX to use the new version.'));
|
|
246
246
|
console.log(chalk.cyan(' Run: hqx\n'));
|
|
247
|
-
await prompts.waitForEnter(
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
await prompts.waitForEnter();
|
|
248
|
+
// Return to let the app exit naturally from the menu loop
|
|
249
|
+
return 'exit';
|
|
250
250
|
|
|
251
251
|
} catch (error) {
|
|
252
252
|
if (spinner) spinner.fail('UPDATE ERROR');
|