From 1525667f547cb57d26631262b7994f4bec1408be Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Mon, 27 Jul 2026 02:06:03 +0100 Subject: [PATCH] Update chalk dependency to version 5.4.1 and enhance server initialization logging - Downgrade chalk from version 6.0.0 to 5.4.1 in package.json and pnpm-lock.yaml to ensure compatibility. - Add a call to stopWaiting() in the server initialization process to improve user experience during startup. --- package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ src/index.js | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 7878139..8fbd136 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "dependencies": { "axios": "^1.16.1", "canvas": "^3.2.3", - "chalk": "^6.0.0", + "chalk": "5.4.1", "cli-spinners": "^3.4.0", "etcd3": "^1.1.2", "express": "^5.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6154520..d86a0ad 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^3.2.3 version: 3.2.3 chalk: - specifier: ^6.0.0 - version: 6.0.0 + specifier: 5.4.1 + version: 5.4.1 cli-spinners: specifier: ^3.4.0 version: 3.4.0 @@ -1771,9 +1771,9 @@ packages: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} - chalk@6.0.0: - resolution: {integrity: sha512-2uNTXIuTTxk7ciZgAU1BQcgnchcG0xXnrs6jzkQfj9SsRa9M2s5zE8WT96hS6KmG4MzWHSrvH43DF1m4XRkrFg==} - engines: {node: '>=22'} + chalk@5.4.1: + resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} char-regex@1.0.2: resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} @@ -6416,7 +6416,7 @@ snapshots: ansi-styles: 4.3.0 supports-color: 7.2.0 - chalk@6.0.0: {} + chalk@5.4.1: {} char-regex@1.0.2: {} diff --git a/src/index.js b/src/index.js index 0666ce8..8bbdfee 100644 --- a/src/index.js +++ b/src/index.js @@ -37,6 +37,7 @@ export async function init(options = {}) { let runningServer; try { runningServer = await checkRunning(); + await stopWaiting(); } catch (err) { await stopWaiting(); throw err;