@budibase/server 2.7.5-alpha.0 → 2.7.7-alpha.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/server",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.7.5-alpha.0",
4
+ "version": "2.7.7-alpha.0",
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.5-alpha.0",
50
- "@budibase/client": "2.7.5-alpha.0",
51
- "@budibase/pro": "2.7.5-alpha.0",
52
- "@budibase/shared-core": "2.7.5-alpha.0",
53
- "@budibase/string-templates": "2.7.5-alpha.0",
54
- "@budibase/types": "2.7.5-alpha.0",
49
+ "@budibase/backend-core": "2.7.7-alpha.0",
50
+ "@budibase/client": "2.7.7-alpha.0",
51
+ "@budibase/pro": "2.7.7-alpha.0",
52
+ "@budibase/shared-core": "2.7.7-alpha.0",
53
+ "@budibase/string-templates": "2.7.7-alpha.0",
54
+ "@budibase/types": "2.7.7-alpha.0",
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": "73e0a61690d414ffbd592f4cd5765897597408d7"
198
+ "gitHead": "eb71a172e7bd9fe46a6527763787441b52d634db"
199
199
  }
@@ -1,6 +1,6 @@
1
1
  require("svelte/register")
2
2
 
3
- import { resolve, join } from "../../../utilities/centralPath"
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 = resolve(TOP_LEVEL_PATH, "new_design_ui")
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 = resolve(TOP_LEVEL_PATH, "builder")
70
+ const builderPath = join(TOP_LEVEL_PATH, "builder")
71
71
  await send(ctx, ctx.file, { root: builderPath })
72
72
  }
73
73
 
@@ -98,7 +98,8 @@ const environment = {
98
98
  isInThread: () => {
99
99
  return process.env.FORKED_PROCESS
100
100
  },
101
- TOP_LEVEL_PATH: process.env.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.