Skip to content

feat: support throwing errors instead of returning them #1766

feat: support throwing errors instead of returning them

feat: support throwing errors instead of returning them #1766

Triggered via pull request January 14, 2025 18:58
Status Failure
Total duration 37s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 1 warning
Test / OS ubuntu-latest / Node 20: src/AuthClient.ts#L3
Parameter 'options' implicitly has an 'any' type.
Test / OS ubuntu-latest / Node 20: src/GoTrueClient.ts#L110
Type '{ url: string; storageKey: string; autoRefreshToken: true; persistSession: true; detectSessionInUrl: true; headers: { 'X-Client-Info': string; }; flowType: "implicit"; debug: false; hasCustomAuthorizationHeader: false; throwOnError: boolean; }' is not assignable to type 'Omit<Required<GoTrueClientOptions>, "storage" | "fetch" | "lock">'.
Test / OS ubuntu-latest / Node 20: src/GoTrueClient.ts#L217
Property 'throwOnError' does not exist on type '{ url: string; headers: { [key: string]: string; }; storageKey: string; detectSessionInUrl: boolean; autoRefreshToken: boolean; persistSession: boolean; storage?: SupportedStorage | undefined; ... 4 more ...; hasCustomAuthorizationHeader: boolean; }'.
Test / OS ubuntu-latest / Node 20
Process completed with exit code 1.
Test / OS ubuntu-latest / Node 18
The job was canceled because "ubuntu-latest_20" failed.
Test / OS ubuntu-latest / Node 18: src/AuthClient.ts#L3
Parameter 'options' implicitly has an 'any' type.
Test / OS ubuntu-latest / Node 18: src/GoTrueClient.ts#L110
Type '{ url: string; storageKey: string; autoRefreshToken: true; persistSession: true; detectSessionInUrl: true; headers: { 'X-Client-Info': string; }; flowType: "implicit"; debug: false; hasCustomAuthorizationHeader: false; throwOnError: boolean; }' is not assignable to type 'Omit<Required<GoTrueClientOptions>, "storage" | "fetch" | "lock">'.
Test / OS ubuntu-latest / Node 18: src/GoTrueClient.ts#L217
Property 'throwOnError' does not exist on type '{ url: string; headers: { [key: string]: string; }; storageKey: string; detectSessionInUrl: boolean; autoRefreshToken: boolean; persistSession: boolean; storage?: SupportedStorage | undefined; ... 4 more ...; hasCustomAuthorizationHeader: boolean; }'.
Test / OS ubuntu-latest / Node 18
Process completed with exit code 1.
Test / OS ubuntu-latest / Node 20
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636