@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/dist/index.cjs +70 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +70 -66
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/PostgrestBuilder.ts +6 -0
- package/src/version.ts +1 -1
package/package.json
CHANGED
package/src/PostgrestBuilder.ts
CHANGED
|
@@ -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-
|
|
7
|
+
export const version = '2.112.0-canary.1'
|