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/dist/Auth.d.ts +1 -1
- package/dist/Auth.d.ts.map +1 -1
- package/dist/Auth.js +4 -1
- package/dist/index.js +1 -1
- package/dist/index.no-sync.js +1 -1
- package/lib/Auth.ts +4 -1
- package/package.json +1 -1
- package/tests/package-lock.json +1 -1
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
|
-
|
|
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