@flashbacktech/flashbackclient 0.0.50 → 0.0.51

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.
@@ -84,7 +84,8 @@ class ApiClient {
84
84
  headers: this.headers,
85
85
  body: data ? JSON.stringify(data) : null,
86
86
  };
87
- const response = await fetch(`${this.baseURL}/${path}`, options);
87
+ const cleanPath = path.startsWith('/') ? path.substring(1) : path;
88
+ const response = await fetch(`${this.baseURL}/${cleanPath}`, options);
88
89
  // If response is not ok, handle it before trying to parse JSON
89
90
  if (!response.ok) {
90
91
  let errorData = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },