Format fixes

This commit is contained in:
Justin Spahr-Summers
2025-02-12 18:10:25 +00:00
parent b324378b2c
commit 410a6f33dc
4 changed files with 7 additions and 8 deletions

View File

@@ -57,4 +57,4 @@
"typescript-eslint": "^8.7.0",
"vite": "^5.4.8"
}
}
}

View File

@@ -45,4 +45,4 @@
"@types/shell-quote": "^1.7.5",
"prettier": "3.3.3"
}
}
}

View File

@@ -32,4 +32,4 @@
"ws": "^8.18.0",
"zod": "^3.23.8"
}
}
}

View File

@@ -184,14 +184,13 @@ const PORT = process.env.PORT || 3000;
try {
const server = app.listen(PORT);
server.on('listening', () => {
server.on("listening", () => {
const addr = server.address();
const port = typeof addr === 'string' ? addr : addr?.port;
const port = typeof addr === "string" ? addr : addr?.port;
console.log(`Proxy server listening on port ${port}`);
});
} catch (error) {
console.error('Failed to start server:', error);
console.error("Failed to start server:", error);
process.exit(1);
}