@budibase/frontend-core 2.2.12-alpha.5 → 2.2.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 +3 -3
- package/src/api/app.js +5 -5
- package/src/api/views.js +3 -3
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.13",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
7
7
|
"svelte": "src/index.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@budibase/bbui": "2.2.
|
|
9
|
+
"@budibase/bbui": "^2.2.13",
|
|
10
10
|
"lodash": "^4.17.21",
|
|
11
11
|
"svelte": "^3.46.2"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "3d3c0d432f6be08367579f01c5142f9662981eee"
|
|
14
14
|
}
|
package/src/api/app.js
CHANGED
|
@@ -22,11 +22,11 @@ export const buildAppEndpoints = API => ({
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Deploys the current app.
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
deployAppChanges: async () => {
|
|
28
28
|
return await API.post({
|
|
29
|
-
url:
|
|
29
|
+
url: "/api/deploy",
|
|
30
30
|
})
|
|
31
31
|
},
|
|
32
32
|
|
|
@@ -98,8 +98,8 @@ export const buildAppEndpoints = API => ({
|
|
|
98
98
|
* @param appId the production ID of the app to unpublish
|
|
99
99
|
*/
|
|
100
100
|
unpublishApp: async appId => {
|
|
101
|
-
return await API.
|
|
102
|
-
url: `/api/applications/${appId}
|
|
101
|
+
return await API.delete({
|
|
102
|
+
url: `/api/applications/${appId}?unpublish=1`,
|
|
103
103
|
})
|
|
104
104
|
},
|
|
105
105
|
|
package/src/api/views.js
CHANGED
|
@@ -16,8 +16,8 @@ export const buildViewEndpoints = API => ({
|
|
|
16
16
|
params.set("group", groupBy)
|
|
17
17
|
}
|
|
18
18
|
const QUERY_VIEW_URL = field
|
|
19
|
-
? `/api/views/${
|
|
20
|
-
: `/api/views/${
|
|
19
|
+
? `/api/views/${name}?${params}`
|
|
20
|
+
: `/api/views/${name}`
|
|
21
21
|
return await API.get({ url: QUERY_VIEW_URL })
|
|
22
22
|
},
|
|
23
23
|
|
|
@@ -53,7 +53,7 @@ export const buildViewEndpoints = API => ({
|
|
|
53
53
|
*/
|
|
54
54
|
deleteView: async viewName => {
|
|
55
55
|
return await API.delete({
|
|
56
|
-
url: `/api/views/${
|
|
56
|
+
url: `/api/views/${viewName}`,
|
|
57
57
|
})
|
|
58
58
|
},
|
|
59
59
|
})
|