@budibase/server 2.7.30 → 2.7.32
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/builder/assets/{index.abd4e5cc.js → index.129184ea.js} +187 -187
- package/builder/assets/{index.d9b46807.css → index.d6eab42b.css} +1 -1
- package/builder/index.html +2 -2
- package/dist/automation.js +1 -0
- package/dist/automation.js.map +2 -2
- package/dist/index.js +7 -0
- package/dist/index.js.map +3 -3
- package/package.json +8 -8
- package/src/api/controllers/table/external.ts +11 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.7.
|
|
4
|
+
"version": "2.7.32",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"license": "GPL-3.0",
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
49
|
-
"@budibase/backend-core": "2.7.
|
|
50
|
-
"@budibase/client": "2.7.
|
|
51
|
-
"@budibase/pro": "2.7.
|
|
52
|
-
"@budibase/shared-core": "2.7.
|
|
53
|
-
"@budibase/string-templates": "2.7.
|
|
54
|
-
"@budibase/types": "2.7.
|
|
49
|
+
"@budibase/backend-core": "2.7.32",
|
|
50
|
+
"@budibase/client": "2.7.32",
|
|
51
|
+
"@budibase/pro": "2.7.32",
|
|
52
|
+
"@budibase/shared-core": "2.7.32",
|
|
53
|
+
"@budibase/string-templates": "2.7.32",
|
|
54
|
+
"@budibase/types": "2.7.32",
|
|
55
55
|
"@bull-board/api": "3.7.0",
|
|
56
56
|
"@bull-board/koa": "3.9.4",
|
|
57
57
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -195,5 +195,5 @@
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
|
-
"gitHead": "
|
|
198
|
+
"gitHead": "10be2164ca1e850a9e230229a560ae3aab997468"
|
|
199
199
|
}
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
RelationshipTypes,
|
|
27
27
|
} from "@budibase/types"
|
|
28
28
|
import sdk from "../../../sdk"
|
|
29
|
+
import { builderSocket } from "../../../websockets"
|
|
29
30
|
const { cloneDeep } = require("lodash/fp")
|
|
30
31
|
|
|
31
32
|
async function makeTableRequest(
|
|
@@ -318,6 +319,11 @@ export async function save(ctx: UserCtx) {
|
|
|
318
319
|
datasource.entities[tableToSave.name] = tableToSave
|
|
319
320
|
await db.put(datasource)
|
|
320
321
|
|
|
322
|
+
// Since tables are stored inside datasources, we need to notify clients
|
|
323
|
+
// that the datasource definition changed
|
|
324
|
+
const updatedDatasource = await db.get(datasource._id)
|
|
325
|
+
builderSocket?.emitDatasourceUpdate(ctx, updatedDatasource)
|
|
326
|
+
|
|
321
327
|
return tableToSave
|
|
322
328
|
}
|
|
323
329
|
|
|
@@ -344,6 +350,11 @@ export async function destroy(ctx: UserCtx) {
|
|
|
344
350
|
|
|
345
351
|
await db.put(datasource)
|
|
346
352
|
|
|
353
|
+
// Since tables are stored inside datasources, we need to notify clients
|
|
354
|
+
// that the datasource definition changed
|
|
355
|
+
const updatedDatasource = await db.get(datasource._id)
|
|
356
|
+
builderSocket?.emitDatasourceUpdate(ctx, updatedDatasource)
|
|
357
|
+
|
|
347
358
|
return tableToDelete
|
|
348
359
|
}
|
|
349
360
|
|