Skip to content

Commit b17c451

Browse files
committed
chore: add missing @__PURE__ annotations
1 parent 303fd86 commit b17c451

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/utils/internal/proxy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { H3Event } from "../../event.ts";
22

3-
export const ignoredHeaders: Set<string> = new Set([
3+
export const ignoredHeaders: Set<string> = /* @__PURE__ */ new Set([
44
"transfer-encoding",
55
// `accept-encoding` is stripped because fetch auto-decompresses upstream
66
// responses; forwarding the client's value would advertise encodings we
@@ -41,7 +41,7 @@ export function connectionTokens(connection: string | null): Set<string> {
4141
* already normalized) that must be stripped from the upstream response instead
4242
* of being relayed to the client.
4343
*/
44-
export const ignoredResponseHeaders: Set<string> = new Set([
44+
export const ignoredResponseHeaders: Set<string> = /* @__PURE__ */ new Set([
4545
"content-encoding",
4646
"content-length",
4747
"transfer-encoding",

src/utils/internal/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function validateData<T>(
7373
}
7474

7575
// prettier-ignore
76-
const reqBodyKeys = new Set(["body", "text", "formData", "arrayBuffer"]);
76+
const reqBodyKeys = /* @__PURE__ */ new Set(["body", "text", "formData", "arrayBuffer"]);
7777

7878
export function validatedRequest<
7979
RequestBody extends StandardSchemaV1,

src/utils/path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const DOT_SEGMENT_RE = /(?:^|\/)(?:\.|%(?:25)*2e){1,2}(?:\/|$)/i;
4444
// for the fast-path guard; global form (derived from the same source, so the
4545
// pattern lives in one place) to decode every occurrence.
4646
const ENCODED_SEP_RE = /%(?:25)*(?:2f|5c)/i;
47-
const ENCODED_SEP_RE_G = new RegExp(ENCODED_SEP_RE.source, "gi");
47+
const ENCODED_SEP_RE_G = /* @__PURE__ */ new RegExp(ENCODED_SEP_RE.source, "gi");
4848

4949
// Percent-encoded dots at any `%25`-nesting depth, for per-segment decoding.
5050
const ENCODED_DOT_RE_G = /%(?:25)*2e/gi;

0 commit comments

Comments
 (0)