@threadbase-sh/streamer 1.15.3 → 1.15.4
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/cli.cjs +7 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1561,7 +1561,7 @@ var createConversationRoutes = (deps) => {
|
|
|
1561
1561
|
import { Hono as Hono4 } from "hono";
|
|
1562
1562
|
|
|
1563
1563
|
// src/version.ts
|
|
1564
|
-
import { readFileSync as readFileSync3 } from "fs";
|
|
1564
|
+
import { readFileSync as readFileSync3, realpathSync } from "fs";
|
|
1565
1565
|
import { dirname as dirname4, join as join6 } from "path";
|
|
1566
1566
|
var cached;
|
|
1567
1567
|
function getVersion() {
|
|
@@ -1572,7 +1572,13 @@ function getVersion() {
|
|
|
1572
1572
|
function resolveVersion() {
|
|
1573
1573
|
const scriptPath = process.argv[1] ?? "";
|
|
1574
1574
|
const here = scriptPath ? dirname4(scriptPath) : process.cwd();
|
|
1575
|
-
|
|
1575
|
+
let realHere = here;
|
|
1576
|
+
try {
|
|
1577
|
+
realHere = dirname4(realpathSync(scriptPath));
|
|
1578
|
+
} catch {
|
|
1579
|
+
}
|
|
1580
|
+
const searchDirs = realHere === here ? [here, join6(here, "..")] : [here, join6(here, ".."), realHere, join6(realHere, "..")];
|
|
1581
|
+
for (const dir of searchDirs) {
|
|
1576
1582
|
try {
|
|
1577
1583
|
const v = readFileSync3(join6(dir, "version.txt"), "utf8").trim();
|
|
1578
1584
|
if (v) return v;
|