@flashbacktech/flashbackclient 0.0.37 → 0.0.38
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/api/client.js +4 -2
- package/package.json +1 -1
package/dist/api/client.js
CHANGED
|
@@ -76,11 +76,13 @@ class ApiClient {
|
|
|
76
76
|
method: 'GET',
|
|
77
77
|
headers: this.headers,
|
|
78
78
|
});
|
|
79
|
-
console.log('Response status:', response.status, response.ok
|
|
79
|
+
console.log('Response status:', response.status, response.ok);
|
|
80
|
+
const text = await response.text(); // Get raw response text
|
|
81
|
+
console.log('Response body:', text);
|
|
80
82
|
if (!response.ok) {
|
|
81
83
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
82
84
|
}
|
|
83
|
-
const ret =
|
|
85
|
+
const ret = JSON.parse(text); // Parse manually to see if this throws
|
|
84
86
|
return ret;
|
|
85
87
|
};
|
|
86
88
|
this.createRepo = async (data) => {
|