diff --git a/src/upstreamproxy/relay.ts b/src/upstreamproxy/relay.ts index cd17f7329..837f06a1a 100644 --- a/src/upstreamproxy/relay.ts +++ b/src/upstreamproxy/relay.ts @@ -63,7 +63,7 @@ const PING_INTERVAL_MS = 30_000 * protobufjs would be the general answer; for a single-field bytes message * the hand encoding is 10 lines and avoids a runtime dep in the hot path. */ -export function encodeChunk(data: Uint8Array): Uint8Array { +export function encodeChunk(data: Uint8Array): Uint8Array { const len = data.length // varint encoding of length — most chunks fit in 1–3 length bytes const varint: number[] = [] diff --git a/tsconfig.json b/tsconfig.json index eb9ed65a5..6a95a78e5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,7 @@ "declaration": false, "outDir": "./dist", "rootDir": "./src", - "baseUrl": ".", + "types": ["bun", "node"], "paths": { "src/*": ["./src/*"] }