@budibase/server 2.7.6 → 2.7.7
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/Dockerfile +1 -1
- package/dist/automation.js +25 -25
- package/dist/automation.js.map +2 -2
- package/dist/index.js +27 -27
- package/dist/index.js.map +3 -3
- package/dist/query.js +18 -18
- package/dist/query.js.map +2 -2
- package/package.json +8 -8
- package/src/api/controllers/static/index.ts +3 -3
- package/src/environment.ts +2 -1
- package/src/utilities/fileSystem/filesystem.ts +2 -2
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.7",
|
|
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.7",
|
|
50
|
+
"@budibase/client": "2.7.7",
|
|
51
|
+
"@budibase/pro": "2.7.7",
|
|
52
|
+
"@budibase/shared-core": "2.7.7",
|
|
53
|
+
"@budibase/string-templates": "2.7.7",
|
|
54
|
+
"@budibase/types": "2.7.7",
|
|
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": "3aa830178a362fde18fe913c7997f9a38a990f43"
|
|
199
199
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require("svelte/register")
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { join } from "../../../utilities/centralPath"
|
|
4
4
|
const uuid = require("uuid")
|
|
5
5
|
import { ObjectStoreBuckets } from "../../../constants"
|
|
6
6
|
import { processString } from "@budibase/string-templates"
|
|
@@ -49,7 +49,7 @@ export const toggleBetaUiFeature = async function (ctx: any) {
|
|
|
49
49
|
return
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
let builderPath =
|
|
52
|
+
let builderPath = join(TOP_LEVEL_PATH, "new_design_ui")
|
|
53
53
|
|
|
54
54
|
// // download it from S3
|
|
55
55
|
if (!fs.existsSync(builderPath)) {
|
|
@@ -67,7 +67,7 @@ export const toggleBetaUiFeature = async function (ctx: any) {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export const serveBuilder = async function (ctx: any) {
|
|
70
|
-
const builderPath =
|
|
70
|
+
const builderPath = join(TOP_LEVEL_PATH, "builder")
|
|
71
71
|
await send(ctx, ctx.file, { root: builderPath })
|
|
72
72
|
}
|
|
73
73
|
|
package/src/environment.ts
CHANGED
|
@@ -98,7 +98,8 @@ const environment = {
|
|
|
98
98
|
isInThread: () => {
|
|
99
99
|
return process.env.FORKED_PROCESS
|
|
100
100
|
},
|
|
101
|
-
TOP_LEVEL_PATH:
|
|
101
|
+
TOP_LEVEL_PATH:
|
|
102
|
+
process.env.TOP_LEVEL_PATH || process.env.SERVER_TOP_LEVEL_PATH,
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
// threading can cause memory issues with node-ts in development
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PathLike } from "fs"
|
|
2
2
|
import fs from "fs"
|
|
3
3
|
import { budibaseTempDir } from "../budibaseDir"
|
|
4
|
-
import { join } from "path"
|
|
4
|
+
import { resolve, join } from "path"
|
|
5
5
|
import env from "../../environment"
|
|
6
6
|
import tar from "tar"
|
|
7
7
|
import environment from "../../environment"
|
|
8
8
|
const uuid = require("uuid/v4")
|
|
9
9
|
|
|
10
10
|
export const TOP_LEVEL_PATH =
|
|
11
|
-
environment.TOP_LEVEL_PATH || join(__dirname, "..", "..", "..")
|
|
11
|
+
environment.TOP_LEVEL_PATH || resolve(join(__dirname, "..", "..", ".."))
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Upon first startup of instance there may not be everything we need in tmp directory, set it up.
|