@gallop.software/studio 2.3.57 → 2.3.58
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/dist/server/index.js +5 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -3487,6 +3487,9 @@ async function handleGenerateFavicon(request) {
|
|
|
3487
3487
|
// src/server/index.ts
|
|
3488
3488
|
var __filename = fileURLToPath(import.meta.url);
|
|
3489
3489
|
var __dirname = dirname(__filename);
|
|
3490
|
+
var packageJsonPath = resolve(__dirname, "../../package.json");
|
|
3491
|
+
var packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
|
|
3492
|
+
var version = packageJson.version;
|
|
3490
3493
|
function isPortAvailable(port) {
|
|
3491
3494
|
return new Promise((resolve2) => {
|
|
3492
3495
|
const server = createServer();
|
|
@@ -3577,10 +3580,11 @@ async function startServer(options) {
|
|
|
3577
3580
|
}
|
|
3578
3581
|
});
|
|
3579
3582
|
app.use(express.static(clientDir));
|
|
3583
|
+
const title = `Gallop - Studio (${version})`;
|
|
3580
3584
|
app.listen(port, () => {
|
|
3581
3585
|
console.log(`
|
|
3582
3586
|
\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510
|
|
3583
|
-
\u2502
|
|
3587
|
+
\u2502 ${title.padEnd(34)}\u2502
|
|
3584
3588
|
\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524
|
|
3585
3589
|
\u2502 Workspace: ${workspace.length > 24 ? "..." + workspace.slice(-21) : workspace.padEnd(24)}\u2502
|
|
3586
3590
|
\u2502 URL: http://localhost:${port} \u2502
|