fix: stop JD code-channel storage growth #1

Merged
bingshuo merged 4 commits from fix/jd-hlcc-storage-guard-20260806 into main 2026-08-06 14:31:44 +08:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit c0764d08f0 - Show all commits

chore(hub): report rate-limited runtime version

冰朔 2026-08-06 14:20:43 +08:00

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);
});