fix: expand SSRF guard coverage

This commit is contained in:
Peter Steinberger
2026-02-02 04:57:09 -08:00
parent c429ccb64f
commit 9bd64c8a1f
14 changed files with 214 additions and 96 deletions

View File

@@ -54,8 +54,7 @@ function resolveRequestUrl(input: RequestInfo | URL): string {
if ("url" in input && typeof input.url === "string") {
return input.url;
}
throw new Error(`Unable to resolve request URL from input: ${JSON.stringify(input, null, 2)}`);
throw new Error("Unsupported fetch input: expected string, URL, or Request");
}
function createSlackMediaFetch(token: string): FetchLike {