From 7b2507e43d6208077084f86fe93d0e35e68004de Mon Sep 17 00:00:00 2001 From: LaoShui <79132480+laoshuikaixue@users.noreply.github.com> Date: Sat, 14 Mar 2026 19:24:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor(server):=20=E4=BF=AE=E5=A4=8D=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=90=8D=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 consturctServer 函数名更正为 constructServer - 更新调用处的函数名称以保持一致性 --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index ba4466c..04f5bfd 100644 --- a/server.js +++ b/server.js @@ -133,7 +133,7 @@ async function checkVersion() { * @param {ModuleDefinition[]} [moduleDefs] Customized module definitions [advanced] * @returns {Promise} The server instance. */ -async function consturctServer(moduleDefs) { +async function constructServer(moduleDefs) { const app = express() const { CORS_ALLOW_ORIGIN } = process.env app.set('trust proxy', true) @@ -359,7 +359,7 @@ async function serveNcmApi(options) { ) } }) - const constructServerSubmission = consturctServer(options.moduleDefs) + const constructServerSubmission = constructServer(options.moduleDefs) const [_, app] = await Promise.all([ checkVersionSubmission,