@base44-preview/sdk 0.8.47-pr.279.2624371 → 0.8.48-pr.145.bc3402d
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.
|
@@ -41,8 +41,12 @@ export function createFunctionsModule(axios, appId, config) {
|
|
|
41
41
|
let formData;
|
|
42
42
|
let contentType;
|
|
43
43
|
// Handle file uploads with FormData
|
|
44
|
-
if (data instanceof FormData
|
|
45
|
-
|
|
44
|
+
if (data instanceof FormData) {
|
|
45
|
+
// Preserve fields, repeated keys, and files already encoded by callers.
|
|
46
|
+
formData = data;
|
|
47
|
+
contentType = "multipart/form-data";
|
|
48
|
+
}
|
|
49
|
+
else if (data && Object.values(data).some((value) => value instanceof File)) {
|
|
46
50
|
formData = new FormData();
|
|
47
51
|
Object.keys(data).forEach((key) => {
|
|
48
52
|
if (data[key] instanceof File) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base44-preview/sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.48-pr.145.bc3402d",
|
|
4
4
|
"description": "JavaScript SDK for Base44 API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test": "npm run test:types && vitest run",
|
|
15
15
|
"test:types": "tsc --noEmit -p tsconfig.type-tests.json",
|
|
16
16
|
"test:unit": "vitest run tests/unit",
|
|
17
|
-
"test:e2e": "vitest run
|
|
17
|
+
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
18
18
|
"test:watch": "vitest",
|
|
19
19
|
"test:coverage": "vitest run --coverage",
|
|
20
20
|
"docs": "typedoc",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dotenv": "^16.3.1",
|
|
43
43
|
"eslint": "^9.39.2",
|
|
44
44
|
"eslint-plugin-import": "^2.32.0",
|
|
45
|
-
"
|
|
45
|
+
"msw": "^2.12.11",
|
|
46
46
|
"typedoc": "^0.28.14",
|
|
47
47
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
48
48
|
"typescript": "^5.3.2",
|