diff --git a/package-lock.json b/package-lock.json index 1f41b849..b360a368 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@supabase/auth-js": "2.67.3", "@supabase/functions-js": "2.4.4", "@supabase/node-fetch": "2.6.15", - "@supabase/postgrest-js": "1.17.10", + "@supabase/postgrest-js": "1.17.11", "@supabase/realtime-js": "2.11.2", "@supabase/storage-js": "2.7.1" }, @@ -1196,9 +1196,9 @@ } }, "node_modules/@supabase/postgrest-js": { - "version": "1.17.10", - "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.17.10.tgz", - "integrity": "sha512-GlcwOjEmPcXfaEU0wHg1MgHU+peR+zZFyaEWjr7a7EOCB1gCtw3nW7ABfnPPH411coXHV90eb/isDgT9HRshLg==", + "version": "1.17.11", + "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.17.11.tgz", + "integrity": "sha512-AOqqgQEhLVqzOMmA8Q0bxQFMfbozbjjQ1Tt4kprkstIKdRl4yZRaMdoVxFkCpU8ivmAe2xNfAVkNK+l16a9P0A==", "license": "MIT", "dependencies": { "@supabase/node-fetch": "^2.6.14" diff --git a/package.json b/package.json index 9924ee81..120b503b 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "@supabase/auth-js": "2.67.3", "@supabase/functions-js": "2.4.4", "@supabase/node-fetch": "2.6.15", - "@supabase/postgrest-js": "1.17.10", + "@supabase/postgrest-js": "1.17.11", "@supabase/realtime-js": "2.11.2", "@supabase/storage-js": "2.7.1" }, diff --git a/test/index.test-d.ts b/test/index.test-d.ts index 672e4697..9a648da6 100644 --- a/test/index.test-d.ts +++ b/test/index.test-d.ts @@ -119,3 +119,20 @@ const supabase = createClient(URL, KEY) channels.channel_details ) } + +// throwOnError in chaining +{ + const { data: channels, error } = await supabase + .from('channels') + .select('channel_details(*)') + .throwOnError() + expectType(null) + expectType< + { + channel_details: { + details: string | null + id: number + } | null + }[] + >(channels) +}