@supabase/postgrest-js 2.112.0-beta.0 → 2.112.0-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/postgrest-js",
3
- "version": "2.112.0-beta.0",
3
+ "version": "2.112.0-canary.1",
4
4
  "description": "Isomorphic PostgREST client",
5
5
  "keywords": [
6
6
  "postgrest",
@@ -529,6 +529,12 @@ export default abstract class PostgrestBuilder<
529
529
  count = null
530
530
  status = 406
531
531
  statusText = 'Not Acceptable'
532
+
533
+ if (this.shouldThrowOnError) {
534
+ // `hint` is null in the returned error to match PostgREST, but
535
+ // PostgrestError types it as a string, like the other throws here.
536
+ throw new PostgrestError({ ...error, hint: error.hint ?? '' })
537
+ }
532
538
  } else if (data.length === 1) {
533
539
  data = data[0]
534
540
  } else {
package/src/version.ts CHANGED
@@ -4,4 +4,4 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.112.0-beta.0'
7
+ export const version = '2.112.0-canary.1'