@budibase/frontend-core 2.2.12-alpha.2 → 2.2.12

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 CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "2.2.12-alpha.2",
3
+ "version": "2.2.12",
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.12-alpha.2",
9
+ "@budibase/bbui": "^2.2.12",
10
10
  "lodash": "^4.17.21",
11
11
  "svelte": "^3.46.2"
12
12
  },
13
- "gitHead": "f33fe0fc19b1a8566d7c1262bb329fbecdaa9586"
13
+ "gitHead": "01d4b731bff015e11bcb691dce007ab1c95d36c0"
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
 
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/${encodeURIComponent(name)}?${params}`
20
- : `/api/views/${encodeURIComponent(name)}`
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/${encodeURIComponent(viewName)}`,
56
+ url: `/api/views/${viewName}`,
57
57
  })
58
58
  },
59
59
  })