gencow 0.1.26 → 0.1.28
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/server/index.js +9 -14
- package/server/index.js.map +2 -2
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -72246,21 +72246,16 @@ async function main() {
|
|
|
72246
72246
|
const dashboardUrl = `http://localhost:${port}/_dashboard`;
|
|
72247
72247
|
const apiUrl = `http://localhost:${port}`;
|
|
72248
72248
|
const wsUrl = `ws://localhost:${port}/ws`;
|
|
72249
|
-
const stackStr =
|
|
72250
|
-
const W = 60;
|
|
72251
|
-
const pad = (s) => s.padEnd(W);
|
|
72252
|
-
const line = "\u2550".repeat(W);
|
|
72249
|
+
const stackStr = `${driver === "postgres" ? "PostgreSQL" : "PGlite"} + Hono + Drizzle`;
|
|
72253
72250
|
console.log(`
|
|
72254
|
-
\
|
|
72255
|
-
|
|
72256
|
-
\
|
|
72257
|
-
\
|
|
72258
|
-
\
|
|
72259
|
-
|
|
72260
|
-
\
|
|
72261
|
-
|
|
72262
|
-
\u255A${line}\u255D
|
|
72263
|
-
`);
|
|
72251
|
+
\x1B[1m\x1B[32m\u{1F680} Gencow API Server Running\x1B[0m
|
|
72252
|
+
|
|
72253
|
+
\x1B[36mAPI \x1B[0m ${apiUrl}
|
|
72254
|
+
\x1B[36mWebSocket \x1B[0m ${wsUrl}
|
|
72255
|
+
\x1B[36mDashboard \x1B[0m ${dashboardUrl}
|
|
72256
|
+
|
|
72257
|
+
\x1B[2mStack: Bun + ${stackStr}\x1B[0m
|
|
72258
|
+
`);
|
|
72264
72259
|
if (IS_BAAS) {
|
|
72265
72260
|
console.log(`[metering] BaaS mode \u2014 flushing to ${METERING_URL} every 10s`);
|
|
72266
72261
|
setInterval(async () => {
|