style: fix formatting
This commit is contained in:
parent
eee71ff9a1
commit
5e32ab0de6
@ -560,9 +560,7 @@ async function runWebFetch(params: WebFetchRuntimeParams): Promise<Record<string
|
||||
timeoutSeconds: params.timeoutSeconds,
|
||||
// Only allow RFC 2544 benchmark range (fake-ip proxy range) when a proxy is configured.
|
||||
// This prevents widening SSRF protections for non-proxied environments.
|
||||
policy: hasProxyEnvConfigured()
|
||||
? { allowRfc2544BenchmarkRange: true }
|
||||
: undefined,
|
||||
policy: hasProxyEnvConfigured() ? { allowRfc2544BenchmarkRange: true } : undefined,
|
||||
init: {
|
||||
headers: {
|
||||
Accept: "text/markdown, text/html;q=0.9, */*;q=0.1",
|
||||
|
||||
@ -35,16 +35,17 @@ const resolveGatewayPort = vi.fn(() => 18789);
|
||||
const findVerifiedGatewayListenerPidsOnPortSync = vi.fn<(port: number) => number[]>(() => []);
|
||||
const signalVerifiedGatewayPidSync = vi.fn<(pid: number, signal: "SIGTERM" | "SIGUSR1") => void>();
|
||||
const formatGatewayPidList = vi.fn<(pids: number[]) => string>((pids) => pids.join(", "));
|
||||
const probeGateway = vi.fn<
|
||||
(opts: {
|
||||
url: string;
|
||||
auth?: { token?: string; password?: string };
|
||||
timeoutMs: number;
|
||||
}) => Promise<{
|
||||
ok: boolean;
|
||||
configSnapshot: unknown;
|
||||
}>
|
||||
>();
|
||||
const probeGateway =
|
||||
vi.fn<
|
||||
(opts: {
|
||||
url: string;
|
||||
auth?: { token?: string; password?: string };
|
||||
timeoutMs: number;
|
||||
}) => Promise<{
|
||||
ok: boolean;
|
||||
configSnapshot: unknown;
|
||||
}>
|
||||
>();
|
||||
const isRestartEnabled = vi.fn<(config?: { commands?: unknown }) => boolean>(() => true);
|
||||
const loadConfig = vi.fn(() => ({}));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user