@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 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,