Skip to content

add support for redacted headers #3650

add support for redacted headers

add support for redacted headers #3650

Triggered via pull request October 3, 2024 06:04
Status Failure
Total duration 1m 10s
Artifacts

snapshot.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Snapshot: packages/platform/src/Headers.ts#L75
Type 'transform<Record$<typeof String$, Union<[typeof String$, Array$<typeof String$>]>>, Schema<Headers, Headers, never>>' is not assignable to type 'Schema<Headers, ReadonlyRecord<string, string | Redacted<string> | readonly (string | Redacted<string>)[]>, never>'.
Snapshot: packages/platform/src/Headers.ts#L85
Argument of type '{ strict: true; decode: (record: { readonly [x: string]: string | readonly string[]; }) => Headers; encode: <A>(a: A) => A; }' is not assignable to parameter of type '{ readonly decode: (fromA: { readonly [x: string]: string | readonly string[]; }, fromI: { readonly [x: string]: string | readonly string[]; }) => Headers; readonly encode: (toI: Headers, toA: Headers) => { ...; }; readonly strict?: true | undefined; } | { ...; }'.
Snapshot: packages/platform-browser/src/internal/httpClient.ts#L54
Argument of type 'string | Redacted<string>' is not assignable to parameter of type 'string'.
Snapshot: packages/platform-bun/src/internal/httpServer.ts#L127
Argument of type 'Headers' is not assignable to parameter of type 'HeadersInit | undefined'.
Snapshot: packages/platform-bun/src/internal/httpServer.ts#L268
Argument of type 'string | Redacted<string>' is not assignable to parameter of type 'string'.
Snapshot: packages/platform-bun/src/internal/httpServer.ts#L348
Argument of type 'Headers' is not assignable to parameter of type 'IncomingHttpHeaders'.
Snapshot: packages/platform-bun/src/internal/httpServer.ts#L354
Argument of type 'Headers' is not assignable to parameter of type 'IncomingHttpHeaders'.
Snapshot
Process completed with exit code 2.