@budibase/frontend-core 2.13.8 → 2.13.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.
- package/package.json +4 -4
- package/src/api/viewsV2.js +6 -4
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.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.13.
|
|
10
|
-
"@budibase/shared-core": "2.13.
|
|
9
|
+
"@budibase/bbui": "2.13.10",
|
|
10
|
+
"@budibase/shared-core": "2.13.10",
|
|
11
11
|
"dayjs": "^1.10.8",
|
|
12
12
|
"lodash": "^4.17.21",
|
|
13
13
|
"socket.io-client": "^4.6.1",
|
|
14
14
|
"svelte": "^3.46.2"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "cd1db2c1fc02e152cb156464cd43aba32d5ccdf0"
|
|
17
17
|
}
|
package/src/api/viewsV2.js
CHANGED
|
@@ -5,7 +5,7 @@ export const buildViewV2Endpoints = API => ({
|
|
|
5
5
|
*/
|
|
6
6
|
fetchDefinition: async viewId => {
|
|
7
7
|
return await API.get({
|
|
8
|
-
url: `/api/v2/views/${viewId}`,
|
|
8
|
+
url: `/api/v2/views/${encodeURIComponent(viewId)}`,
|
|
9
9
|
})
|
|
10
10
|
},
|
|
11
11
|
/**
|
|
@@ -24,7 +24,7 @@ export const buildViewV2Endpoints = API => ({
|
|
|
24
24
|
*/
|
|
25
25
|
update: async view => {
|
|
26
26
|
return await API.put({
|
|
27
|
-
url: `/api/v2/views/${view.id}`,
|
|
27
|
+
url: `/api/v2/views/${encodeURIComponent(view.id)}`,
|
|
28
28
|
body: view,
|
|
29
29
|
})
|
|
30
30
|
},
|
|
@@ -50,7 +50,7 @@ export const buildViewV2Endpoints = API => ({
|
|
|
50
50
|
sortType,
|
|
51
51
|
}) => {
|
|
52
52
|
return await API.post({
|
|
53
|
-
url: `/api/v2/views/${viewId}/search`,
|
|
53
|
+
url: `/api/v2/views/${encodeURIComponent(viewId)}/search`,
|
|
54
54
|
body: {
|
|
55
55
|
query,
|
|
56
56
|
paginate,
|
|
@@ -67,6 +67,8 @@ export const buildViewV2Endpoints = API => ({
|
|
|
67
67
|
* @param viewId the id of the view
|
|
68
68
|
*/
|
|
69
69
|
delete: async viewId => {
|
|
70
|
-
return await API.delete({
|
|
70
|
+
return await API.delete({
|
|
71
|
+
url: `/api/v2/views/${encodeURIComponent(viewId)}`,
|
|
72
|
+
})
|
|
71
73
|
},
|
|
72
74
|
})
|