@@ -40,4 +40,7 @@ "use strict"; | ||
| async isServerRunning() { | ||
| const info = this.getServerInfo(); | ||
| if (!info?.port) return false; | ||
| try { | ||
| const response = await fetch(`http://localhost:${this.getRunningPort()}/health`, { | ||
| const response = await fetch(`http://localhost:${info.port}/health`, { | ||
| signal: AbortSignal.timeout(5_000), | ||
@@ -44,0 +47,0 @@ }); |
+2
-2
| { | ||
| "name": "@pmxt/cli", | ||
| "version": "2.51.1", | ||
| "version": "2.51.2", | ||
| "description": "Command-line interface for PMXT prediction market APIs", | ||
@@ -57,3 +57,3 @@ "author": "PMXT Contributors", | ||
| "prepack": "npm run build", | ||
| "test": "node scripts/validate.js && node scripts/verify-argv-alias-normalizer.js && node scripts/verify-root-help.js && node scripts/verify-color.js && node scripts/verify-runtime-errors.js && node scripts/verify-feed-cli.js && node scripts/verify-enterprise-cli.js && node scripts/verify-production-copy.js" | ||
| "test": "node scripts/validate.js && node scripts/verify-argv-alias-normalizer.js && node scripts/verify-root-help.js && node scripts/verify-color.js && node scripts/verify-runtime-errors.js && node scripts/verify-feed-cli.js && node scripts/verify-enterprise-cli.js && node scripts/verify-server-manager.js && node scripts/verify-production-copy.js" | ||
| }, | ||
@@ -60,0 +60,0 @@ "keywords": [ |
275271
0.04%6964
0.03%