@co0ontty/wand 1.49.2 → 1.49.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "commit": "734231669ffcd6f50d975d67bf17a26bf7af6c77",
3
- "builtAt": "2026-06-04T01:02:00.135Z",
4
- "version": "1.49.2",
2
+ "commit": "278db6dd26ba914cd71dabcd322b3cdaf794fc13",
3
+ "builtAt": "2026-06-04T14:42:31.121Z",
4
+ "version": "1.49.3",
5
5
  "channel": "stable"
6
6
  }
package/dist/server.js CHANGED
@@ -87,6 +87,7 @@ function readBuildInfo() {
87
87
  }
88
88
  }
89
89
  const BUILD_INFO = readBuildInfo();
90
+ const DISPLAY_VERSION = BUILD_INFO.version || PKG_VERSION;
90
91
  let cachedGitHubApk = null;
91
92
  let gitHubApkCacheTs = 0;
92
93
  const GITHUB_APK_CACHE_TTL = 10 * 60 * 1000; // 10 minutes
@@ -912,6 +913,7 @@ export async function startServer(config, configPath) {
912
913
  process.stdout.write(`[wand] ${formatPathRepairSummary(pathRepair)}\n`);
913
914
  }
914
915
  const app = express();
916
+ app.set("trust proxy", "loopback, 172.16.0.0/12");
915
917
  const storage = new WandStorage(resolveDatabasePath(configPath));
916
918
  setAuthStorage(storage);
917
919
  const configDir = resolveConfigDir(configPath);
@@ -1178,7 +1180,7 @@ export async function startServer(config, configPath) {
1178
1180
  language: config.language ?? "",
1179
1181
  updateAvailable: cachedUpdateInfo?.updateAvailable ?? false,
1180
1182
  latestVersion: cachedUpdateInfo?.latest ?? null,
1181
- currentVersion: PKG_VERSION,
1183
+ currentVersion: DISPLAY_VERSION,
1182
1184
  });
1183
1185
  });
1184
1186
  // ── Settings endpoints ──
@@ -1206,7 +1208,7 @@ export async function startServer(config, configPath) {
1206
1208
  ? { hasDmg: true, fileName: ghDmg.fileName, version: ghDmg.version, size: ghDmg.size, updatedAt: null, downloadUrl: ghDmg.downloadUrl, source: "github" }
1207
1209
  : null;
1208
1210
  res.json({
1209
- version: PKG_VERSION,
1211
+ version: DISPLAY_VERSION,
1210
1212
  packageName: PKG_NAME,
1211
1213
  nodeVersion: PKG_NODE_REQ,
1212
1214
  repoUrl: PKG_REPO_URL,
@@ -2302,7 +2304,7 @@ export async function startServer(config, configPath) {
2302
2304
  urls: collectedUrls,
2303
2305
  bindAddr,
2304
2306
  httpsEnabled: useHttps,
2305
- version: PKG_VERSION,
2307
+ version: DISPLAY_VERSION,
2306
2308
  orphanRecoveredCount: processes.getOrphanRecoveredCount(),
2307
2309
  pathRepair,
2308
2310
  close,