tarsk 0.5.66 → 0.5.68

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -465549,7 +465549,8 @@ async function startTarskServer(options2) {
465549
465549
  }
465550
465550
  async function startTarskServerInternal(options2) {
465551
465551
  const { isDebug: isDebug2, publicDir: publicDirOverride } = options2;
465552
- const initialPort = isDebug2 ? 462 : process.env.PORT ? parseInt(process.env.PORT) : 641;
465552
+ const isRender = process.env.RENDER === "true";
465553
+ const initialPort = isDebug2 ? 462 : isRender ? 1e4 : process.env.PORT ? parseInt(process.env.PORT) : 641;
465553
465554
  const app = new Hono2();
465554
465555
  app.use("/*", cors());
465555
465556
  app.use("/*", async (c, next) => {
@@ -465760,7 +465761,7 @@ async function startTarskServerInternal(options2) {
465760
465761
  return c.json(errorResponse2, 404);
465761
465762
  });
465762
465763
  const serverBindMode = readServerBindMode();
465763
- const hostname4 = getServerBindHostname(serverBindMode);
465764
+ const hostname4 = isRender ? getServerBindHostname("network") : getServerBindHostname(serverBindMode);
465764
465765
  const onListening = (boundPort) => {
465765
465766
  listeningPort = boundPort;
465766
465767
  const url2 = `http://localhost:${boundPort}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tarsk",
3
- "version": "0.5.66",
3
+ "version": "0.5.68",
4
4
  "description": "CLI for Tarsk - Project Threads Manager",
5
5
  "keywords": [
6
6
  "cli",