@base44-preview/sdk 0.8.34-pr.208.f7ed266 → 0.8.34-pr.209.1deec07

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.
@@ -130,6 +130,16 @@ export function createAxiosClient({ baseURL, headers = {}, token, interceptRespo
130
130
  }
131
131
  // Add origin URL in browser environment
132
132
  client.interceptors.request.use((config) => {
133
+ var _a;
134
+ // Axios selects its Node HTTP adapter in Deno, where DELETE requests with
135
+ // a body fail in the node:http compatibility layer. deleteMany relies on
136
+ // that request shape, while Deno's native fetch handles it correctly.
137
+ if (typeof globalThis.Deno !==
138
+ "undefined" &&
139
+ ((_a = config.method) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "delete" &&
140
+ config.data !== undefined) {
141
+ config.adapter = "fetch";
142
+ }
133
143
  if (typeof window !== "undefined") {
134
144
  config.headers.set("X-Origin-URL", window.location.href);
135
145
  // On unauthenticated requests, attach a stable anonymous visitor id so the
@@ -155,7 +165,7 @@ export function createAxiosClient({ baseURL, headers = {}, token, interceptRespo
155
165
  },
156
166
  }, "*");
157
167
  }
158
- catch (_a) {
168
+ catch (_b) {
159
169
  /* skip the logging */
160
170
  }
161
171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.34-pr.208.f7ed266",
3
+ "version": "0.8.34-pr.209.1deec07",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",