prostgles-client 4.0.153 → 4.0.154

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/lib/Auth.ts CHANGED
@@ -130,7 +130,10 @@ export const POST = async (path: string, data: object) => {
130
130
 
131
131
  if(!rawResponse.ok){
132
132
  const error = await rawResponse.json().catch(() => rawResponse.text()).catch(() => rawResponse.statusText);
133
- throw error;
133
+ if(typeof error === "string") {
134
+ return { success: false, error };
135
+ }
136
+ return error;
134
137
  }
135
138
 
136
139
  return rawResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prostgles-client",
3
- "version": "4.0.153",
3
+ "version": "4.0.154",
4
4
  "description": "Reactive client for Postgres",
5
5
  "main": "dist/prostgles-full.js",
6
6
  "types": "dist/prostgles-full.d.ts",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "..": {
19
19
  "name": "prostgles-client",
20
- "version": "4.0.152",
20
+ "version": "4.0.153",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "prostgles-types": "^4.0.107"