Merge feature/dc-061-fix-export: preserve default-export compat for createDashboardWS
CI / Test & Lint (push) Canceled after 0s
CI / Security audit (push) Canceled after 0s

This commit is contained in:
Hermes
2026-08-18 08:28:43 -07:00
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ process.on('uncaughtException', (error) => {
// .on() on a class threw on every boot and silently killed the WS).
try {
const { ctx } = app.locals;
const createDashboardWS = require('./src/websocket/dashboard-ws');
const createDashboardWS = require('./src/websocket/dashboard-ws').createDashboardWS;
// DC-061: WS upgrade bypasses Express middleware, so inject the
// real session verifier from the shared context. Without this
+3 -1
View File
@@ -331,4 +331,6 @@ function createDashboardWS(server, deps = {}) {
};
}
module.exports = { createDashboardWS, parseCookieHeader };
module.exports = createDashboardWS;
module.exports.createDashboardWS = createDashboardWS;
module.exports.parseCookieHeader = parseCookieHeader;