@budibase/frontend-core 3.12.11 → 3.12.13
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/package.json +2 -2
- package/src/api/app.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.13",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"shortid": "2.2.15",
|
|
18
18
|
"socket.io-client": "^4.7.5"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "3b8f23325e52fad7328a51218d61c171232d9e02"
|
|
21
21
|
}
|
package/src/api/app.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface AppEndpoints {
|
|
|
38
38
|
revertAppClientVersion: (appId: string) => Promise<RevertAppClientResponse>
|
|
39
39
|
releaseAppLock: (appId: string) => Promise<ClearDevLockResponse>
|
|
40
40
|
getAppDeployments: () => Promise<FetchDeploymentResponse>
|
|
41
|
-
createApp: (app: CreateAppRequest) => Promise<CreateAppResponse>
|
|
41
|
+
createApp: (app: CreateAppRequest | FormData) => Promise<CreateAppResponse>
|
|
42
42
|
deleteApp: (appId: string) => Promise<DeleteAppResponse>
|
|
43
43
|
duplicateApp: (
|
|
44
44
|
appId: string,
|
|
@@ -136,6 +136,14 @@ export const buildAppEndpoints = (API: BaseAPIClient): AppEndpoints => ({
|
|
|
136
136
|
* @param app the app to create
|
|
137
137
|
*/
|
|
138
138
|
createApp: async app => {
|
|
139
|
+
if (app instanceof FormData) {
|
|
140
|
+
return await API.post({
|
|
141
|
+
url: "/api/applications",
|
|
142
|
+
body: app,
|
|
143
|
+
json: false,
|
|
144
|
+
})
|
|
145
|
+
}
|
|
146
|
+
|
|
139
147
|
return await API.post({
|
|
140
148
|
url: "/api/applications",
|
|
141
149
|
body: app,
|