@budibase/frontend-core 2.2.10-alpha.9 → 2.2.10

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/api/app.js +5 -5
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "2.2.10-alpha.9",
3
+ "version": "2.2.10",
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.10-alpha.9",
9
+ "@budibase/bbui": "^2.2.10",
10
10
  "lodash": "^4.17.21",
11
11
  "svelte": "^3.46.2"
12
12
  },
13
- "gitHead": "3aab0f8d9c8f022514f99748caae2ca3376aa5a3"
13
+ "gitHead": "c49b081829c997bd9899d1ce55e87d94b5486479"
14
14
  }
package/src/api/app.js CHANGED
@@ -22,11 +22,11 @@ export const buildAppEndpoints = API => ({
22
22
  },
23
23
 
24
24
  /**
25
- * Publishes the current app.
25
+ * Deploys the current app.
26
26
  */
27
- publishAppChanges: async appId => {
27
+ deployAppChanges: async () => {
28
28
  return await API.post({
29
- url: `/api/applications/${appId}/publish`,
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.post({
102
- url: `/api/applications/${appId}/unpublish`,
101
+ return await API.delete({
102
+ url: `/api/applications/${appId}?unpublish=1`,
103
103
  })
104
104
  },
105
105