fix(sse): import httpClientAbortGuard with explicit .mjs extension (#11671)

Merged via /merge-batch (2026-08-26, v3.8.51). Boarded no worktree combinado; validação única: typecheck/complexity/cognitive-complexity/file-size/changelog verdes, lint nos mesmos 228 achados pré-existentes confirmados contra o tip puro, testes focados passando. Obrigado pela contribuição.
This commit is contained in:
Webman
2026-08-26 15:40:22 -05:00
committed by GitHub
parent e95a25512d
commit 67f4e5201d
4 changed files with 4 additions and 3 deletions

View File

@@ -0,0 +1 @@
- **sse:** fix LiveWS/embed-WS servers crashing at startup under the Node/tsx runtime — `liveServer.ts`, `embedWsProxy.ts` and `apiBridgeServer.ts` imported `@/shared/utils/httpClientAbortGuard` without the `.mjs` extension, so the client-abort crash guard added by [#11556](https://github.com/diegosouzapw/OmniRoute/pull/11556) was unreachable and every dependent test failed with `ERR_MODULE_NOT_FOUND` ([#11556](https://github.com/diegosouzapw/OmniRoute/pull/11556)).

View File

@@ -6,7 +6,7 @@ import { getApiBridgeTimeoutConfig } from "@/shared/utils/runtimeTimeouts";
import {
attachRequestStreamGuards,
installProcessCrashGuard,
} from "@/shared/utils/httpClientAbortGuard";
} from "@/shared/utils/httpClientAbortGuard.mjs";
const API_BRIDGE_TIMEOUTS = getApiBridgeTimeoutConfig(process.env, (message) => {
console.warn(`[API Bridge] ${message}`);

View File

@@ -30,7 +30,7 @@ import { getOrCreateApiKey } from "./apiKey";
import {
attachRequestStreamGuards,
installProcessCrashGuard,
} from "@/shared/utils/httpClientAbortGuard";
} from "@/shared/utils/httpClientAbortGuard.mjs";
const DEFAULT_HOST = "127.0.0.1";
const DEFAULT_PORT = 20131;

View File

@@ -36,7 +36,7 @@ import { isAutomatedTestProcess, isBuildProcess } from "@/shared/utils/testProce
import {
attachRequestStreamGuards,
installProcessCrashGuard,
} from "@/shared/utils/httpClientAbortGuard";
} from "@/shared/utils/httpClientAbortGuard.mjs";
import {
buildAllowedOrigins,