@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.
- package/dist/build-info.json +3 -3
- package/dist/server.js +5 -3
- package/dist/web-ui/content/scripts.js +45 -45
- package/dist/web-ui/content/scripts.js.bak +21807 -0
- package/dist/web-ui/content/styles.css +1 -1
- package/dist/web-ui/embedded-assets.d.ts +1 -1
- package/dist/web-ui/embedded-assets.js +3 -3
- package/dist/web-ui/index.js +1 -1
- package/package.json +4 -4
package/dist/build-info.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
3
|
-
"builtAt": "2026-06-
|
|
4
|
-
"version": "1.49.
|
|
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:
|
|
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:
|
|
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:
|
|
2307
|
+
version: DISPLAY_VERSION,
|
|
2306
2308
|
orphanRecoveredCount: processes.getOrphanRecoveredCount(),
|
|
2307
2309
|
pathRepair,
|
|
2308
2310
|
close,
|