From c0764d08f0dc534adf1aede82d90c6e9b3630307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Thu, 6 Aug 2026 14:20:43 +0800 Subject: [PATCH] chore(hub): report rate-limited runtime version --- server-tools/jd-app-hub/server.js | 2 +- server-tools/jd-app-hub/test/server.test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server-tools/jd-app-hub/server.js b/server-tools/jd-app-hub/server.js index e7e26da..2953820 100644 --- a/server-tools/jd-app-hub/server.js +++ b/server-tools/jd-app-hub/server.js @@ -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" }); diff --git a/server-tools/jd-app-hub/test/server.test.js b/server-tools/jd-app-hub/test/server.test.js index 8991169..e1e2233 100644 --- a/server-tools/jd-app-hub/test/server.test.js +++ b/server-tools/jd-app-hub/test/server.test.js @@ -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); });