@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.
@@ -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, response.body);
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 = await response.json();
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },