fix(javascript): filter keyed-collection receivers only for get/delete
The collection APIs share only `get` and `delete` with HTTP clients, so
`api.headers.post("/v1/headers")` and `api.searchParams.request("/s")`
keep their endpoints.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
eb68761eb0
commit
00f707b250
@@ -203,11 +203,19 @@ describe("web bundle static-analysis parity", () => {
|
||||
response.headers.get("content-type");
|
||||
request?.headers.delete("cookie");
|
||||
new URL(location.href).searchParams.get("page");
|
||||
api.headers.post("/v1/headers");
|
||||
api.searchParams.request("/search");
|
||||
`),
|
||||
);
|
||||
expect(
|
||||
result.observations.endpoints.map(({ value }) => value).sort(),
|
||||
).toEqual(["cache-key", "https://api.example.test/users", "users"]);
|
||||
).toEqual([
|
||||
"/search",
|
||||
"/v1/headers",
|
||||
"cache-key",
|
||||
"https://api.example.test/users",
|
||||
"users",
|
||||
]);
|
||||
});
|
||||
|
||||
it("recognizes loadURL endpoints like static analysis", () => {
|
||||
|
||||
Reference in New Issue
Block a user