@supabase/postgrest-js 3.0.0-next.15 → 3.0.0-next.17
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 +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/PostgrestBuilder.ts +2 -2
- package/src/PostgrestError.ts +6 -0
- package/src/version.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -51,6 +51,12 @@ var PostgrestError = class extends Error {
|
|
|
51
51
|
*/
|
|
52
52
|
constructor(context) {
|
|
53
53
|
super(context.message);
|
|
54
|
+
Object.defineProperty(this, "message", {
|
|
55
|
+
value: context.message,
|
|
56
|
+
enumerable: true,
|
|
57
|
+
writable: true,
|
|
58
|
+
configurable: true
|
|
59
|
+
});
|
|
54
60
|
this.name = "PostgrestError";
|
|
55
61
|
this.details = context.details;
|
|
56
62
|
this.hint = context.hint;
|
|
@@ -388,7 +394,7 @@ var PostgrestBuilder = class {
|
|
|
388
394
|
}
|
|
389
395
|
return {
|
|
390
396
|
success: error === null,
|
|
391
|
-
error,
|
|
397
|
+
error: error ? new PostgrestError(error) : null,
|
|
392
398
|
data,
|
|
393
399
|
count,
|
|
394
400
|
status,
|