Skip to content

Commit aea906c

Browse files
rustyconoverclaude
andcommitted
Apply Biome formatting to cookie port
CI's lint step re-formatted the long OutputCollector constructor call and the cookie test file. Formatting-only; functional behavior unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3fa239d commit aea906c

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/http/dispatch.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,14 @@ export async function httpDispatchStreamInit(
127127
let headerBytes: Uint8Array | null = null;
128128
if (method.headerSchema && method.headerInit) {
129129
try {
130-
const headerOut = new OutputCollector(method.headerSchema, true, ctx.serverId, parsed.requestId, ctx.authContext, ctx.cookies);
130+
const headerOut = new OutputCollector(
131+
method.headerSchema,
132+
true,
133+
ctx.serverId,
134+
parsed.requestId,
135+
ctx.authContext,
136+
ctx.cookies,
137+
);
131138
const headerValues = method.headerInit(parsed.params, state, headerOut);
132139
const headerBatch = buildResultBatch(method.headerSchema, headerValues, ctx.serverId, parsed.requestId);
133140
const headerBatches = [...headerOut.batches.map((b) => b.batch), headerBatch];

test/http/cookies.test.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ import { createHttpHandler, int32, Protocol, str } from "../../src/index.js";
2020
// Helpers
2121
// ---------------------------------------------------------------------------
2222

23-
function buildRequestIpc(
24-
schema: Schema,
25-
values: Record<string, any[]>,
26-
methodName: string,
27-
): Uint8Array {
23+
function buildRequestIpc(schema: Schema, values: Record<string, any[]>, methodName: string): Uint8Array {
2824
const batch = recordBatchFromArrays(values, schema);
2925
const meta = new Map<string, string>();
3026
meta.set(RPC_METHOD_KEY, methodName);
@@ -156,10 +152,7 @@ describe("HTTP cookies", () => {
156152
});
157153

158154
test("setCookie emits a Set-Cookie header with the expected attributes", async () => {
159-
const paramsSchema = new Schema([
160-
new Field("value", new Utf8(), false),
161-
new Field("maxAge", new Int32(), false),
162-
]);
155+
const paramsSchema = new Schema([new Field("value", new Utf8(), false), new Field("maxAge", new Int32(), false)]);
163156
const body = buildRequestIpc(paramsSchema, { value: ["xyz"], maxAge: [60] }, "set_sid");
164157
const res = await handler(
165158
new Request(`${BASE}/set_sid`, {

0 commit comments

Comments
 (0)