chore(hub): report rate-limited runtime version

This commit is contained in:
冰朔 2026-08-06 14:20:43 +08:00
commit c0764d08f0
2 changed files with 2 additions and 1 deletions

View file

@ -8,7 +8,7 @@ const os = require("node:os");
const ROOT = __dirname;
const TYPES = { ".html": "text/html; charset=utf-8", ".css": "text/css; charset=utf-8", ".js": "application/javascript; charset=utf-8" };
const APP_VERSION = "2.0.1";
const APP_VERSION = "2.1.0";
function json(response, status, value) {
response.writeHead(status, { "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-store" });

View file

@ -17,6 +17,7 @@ test("JD hub exposes a minimal non-secret status response", async (t) => {
const body = await response.json();
assert.equal(body.ok, true);
assert.equal(body.node_id, "JD-FD-PRIMARY");
assert.equal(body.version, "2.1.0");
assert.equal("ip" in body, false);
assert.equal("token" in body, false);
});