Skip to content

Commit 581c60f

Browse files
committed
fix(postgrest-js): typings for rpc with GET
1 parent b4cc20d commit 581c60f

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@supabase/auth-js": "2.63.0",
4444
"@supabase/functions-js": "2.2.2",
4545
"@supabase/node-fetch": "2.6.15",
46-
"@supabase/postgrest-js": "1.15.0",
46+
"@supabase/postgrest-js": "1.15.1",
4747
"@supabase/realtime-js": "2.9.3",
4848
"@supabase/storage-js": "2.5.5"
4949
},

src/SupabaseClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ export default class SupabaseClient<
173173
* @param options - Named parameters
174174
* @param options.head - When set to `true`, `data` will not be returned.
175175
* Useful if you only need the count.
176+
* @param options.get - When set to `true`, the function will be called with
177+
* read-only access mode.
176178
* @param options.count - Count algorithm to use to count rows returned by the
177179
* function. Only applicable for [set-returning
178180
* functions](https://www.postgresql.org/docs/current/functions-srf.html).
@@ -191,6 +193,7 @@ export default class SupabaseClient<
191193
args: Fn['Args'] = {},
192194
options: {
193195
head?: boolean
196+
get?: boolean
194197
count?: 'exact' | 'planned' | 'estimated'
195198
} = {}
196199
): PostgrestFilterBuilder<

0 commit comments

Comments
 (0)