diff --git a/package-lock.json b/package-lock.json index e6e90cb7..86f3d2cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@supabase/auth-js": "2.63.0", "@supabase/functions-js": "2.2.2", "@supabase/node-fetch": "2.6.15", - "@supabase/postgrest-js": "1.15.0", + "@supabase/postgrest-js": "1.15.1", "@supabase/realtime-js": "2.9.3", "@supabase/storage-js": "2.5.5" }, @@ -1189,9 +1189,9 @@ } }, "node_modules/@supabase/postgrest-js": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.15.0.tgz", - "integrity": "sha512-U4bwBOrhsXWqDjZiYNbVqMBtRGgIIYE0kE5ZNSwsIbeBWfr/UxOMrnkIQUBGIZRhpYW/tw1WnTdRl1AGNyaxcw==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.15.1.tgz", + "integrity": "sha512-H/4PABAAgMrEIo7oewUZiZMy422Pgc19OLVjU8Vwopcvfr3GD7h8Re4VXtiaPPZqc/2z/k3PnyguFnoKIB7fkA==", "dependencies": { "@supabase/node-fetch": "^2.6.14" } diff --git a/package.json b/package.json index ec5f9a6c..9e81d9bc 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "@supabase/auth-js": "2.63.0", "@supabase/functions-js": "2.2.2", "@supabase/node-fetch": "2.6.15", - "@supabase/postgrest-js": "1.15.0", + "@supabase/postgrest-js": "1.15.1", "@supabase/realtime-js": "2.9.3", "@supabase/storage-js": "2.5.5" }, diff --git a/src/SupabaseClient.ts b/src/SupabaseClient.ts index 589e9372..f7958630 100644 --- a/src/SupabaseClient.ts +++ b/src/SupabaseClient.ts @@ -173,6 +173,8 @@ export default class SupabaseClient< * @param options - Named parameters * @param options.head - When set to `true`, `data` will not be returned. * Useful if you only need the count. + * @param options.get - When set to `true`, the function will be called with + * read-only access mode. * @param options.count - Count algorithm to use to count rows returned by the * function. Only applicable for [set-returning * functions](https://www.postgresql.org/docs/current/functions-srf.html). @@ -191,6 +193,7 @@ export default class SupabaseClient< args: Fn['Args'] = {}, options: { head?: boolean + get?: boolean count?: 'exact' | 'planned' | 'estimated' } = {} ): PostgrestFilterBuilder<