@budibase/server 2.1.14-alpha.0 → 2.1.14-alpha.2
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.d5568baa.js → index.99e152ae.js} +215 -215
- package/builder/index.html +1 -1
- package/coverage/clover.xml +66 -67
- package/coverage/coverage-final.json +2 -2
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +11 -11
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +10 -10
- package/coverage/lcov-report/utilities/index.js.html +7 -13
- package/coverage/lcov-report/utilities/plugins.js.html +2 -2
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/coverage/lcov.info +109 -110
- package/dist/environment.js +1 -0
- package/dist/package.json +6 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utilities/index.js +1 -2
- package/dist/utilities/plugins.js +1 -1
- package/package.json +7 -7
- package/src/environment.js +1 -0
- package/src/utilities/index.js +1 -3
- package/src/utilities/plugins.js +1 -1
package/dist/utilities/index.js
CHANGED
|
@@ -14,7 +14,6 @@ const { sanitizeKey } = require("@budibase/backend-core/objectStore");
|
|
|
14
14
|
const { generateMetadataID } = require("../db/utils");
|
|
15
15
|
const Readable = require("stream").Readable;
|
|
16
16
|
const { getAppDB } = require("@budibase/backend-core/context");
|
|
17
|
-
const BB_CDN = "https://cdn.budi.live";
|
|
18
17
|
exports.wait = ms => new Promise(resolve => setTimeout(resolve, ms));
|
|
19
18
|
exports.isDev = env.isDev;
|
|
20
19
|
exports.NUMBER_REGEX = /^[+-]?([0-9]*[.])?[0-9]+$/g;
|
|
@@ -44,7 +43,7 @@ exports.objectStoreUrl = () => {
|
|
|
44
43
|
return OBJ_STORE_DIRECTORY;
|
|
45
44
|
}
|
|
46
45
|
else {
|
|
47
|
-
return
|
|
46
|
+
return env.CDN_URL;
|
|
48
47
|
}
|
|
49
48
|
};
|
|
50
49
|
/**
|
|
@@ -12,7 +12,7 @@ exports.enrichPluginURLs = plugins => {
|
|
|
12
12
|
const jsFileName = "plugin.min.js";
|
|
13
13
|
// In self host we need to prefix the path, as the bucket name is not part
|
|
14
14
|
// of the bucket path. In cloud, it's already part of the bucket path.
|
|
15
|
-
let jsUrl = cloud ?
|
|
15
|
+
let jsUrl = cloud ? `${env.CDN_URL}/` : `/${bucket}/`;
|
|
16
16
|
jsUrl += ProPlugins.getBucketPath(plugin.name);
|
|
17
17
|
jsUrl += jsFileName;
|
|
18
18
|
return Object.assign(Object.assign({}, plugin), { jsUrl });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.1.14-alpha.
|
|
4
|
+
"version": "2.1.14-alpha.2",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"license": "GPL-3.0",
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
80
|
-
"@budibase/backend-core": "2.1.14-alpha.
|
|
81
|
-
"@budibase/client": "2.1.14-alpha.
|
|
82
|
-
"@budibase/pro": "2.1.
|
|
83
|
-
"@budibase/string-templates": "2.1.14-alpha.
|
|
84
|
-
"@budibase/types": "2.1.14-alpha.
|
|
80
|
+
"@budibase/backend-core": "2.1.14-alpha.2",
|
|
81
|
+
"@budibase/client": "2.1.14-alpha.2",
|
|
82
|
+
"@budibase/pro": "2.1.14-alpha.1",
|
|
83
|
+
"@budibase/string-templates": "2.1.14-alpha.2",
|
|
84
|
+
"@budibase/types": "2.1.14-alpha.2",
|
|
85
85
|
"@bull-board/api": "3.7.0",
|
|
86
86
|
"@bull-board/koa": "3.9.4",
|
|
87
87
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -199,5 +199,5 @@
|
|
|
199
199
|
"optionalDependencies": {
|
|
200
200
|
"oracledb": "5.3.0"
|
|
201
201
|
},
|
|
202
|
-
"gitHead": "
|
|
202
|
+
"gitHead": "011b9616b3bf4742b7a6c0e6541933a7e5a4452b"
|
|
203
203
|
}
|
package/src/environment.js
CHANGED
|
@@ -46,6 +46,7 @@ module.exports = {
|
|
|
46
46
|
AWS_REGION: process.env.AWS_REGION,
|
|
47
47
|
MINIO_ACCESS_KEY: process.env.MINIO_ACCESS_KEY,
|
|
48
48
|
MINIO_SECRET_KEY: process.env.MINIO_SECRET_KEY,
|
|
49
|
+
CDN_URL: process.env.CDN_URL || "https://cdn.budi.live",
|
|
49
50
|
REDIS_URL: process.env.REDIS_URL,
|
|
50
51
|
REDIS_PASSWORD: process.env.REDIS_PASSWORD,
|
|
51
52
|
INTERNAL_API_KEY: process.env.INTERNAL_API_KEY,
|
package/src/utilities/index.js
CHANGED
|
@@ -5,8 +5,6 @@ const { generateMetadataID } = require("../db/utils")
|
|
|
5
5
|
const Readable = require("stream").Readable
|
|
6
6
|
const { getAppDB } = require("@budibase/backend-core/context")
|
|
7
7
|
|
|
8
|
-
const BB_CDN = "https://cdn.budi.live"
|
|
9
|
-
|
|
10
8
|
exports.wait = ms => new Promise(resolve => setTimeout(resolve, ms))
|
|
11
9
|
|
|
12
10
|
exports.isDev = env.isDev
|
|
@@ -40,7 +38,7 @@ exports.objectStoreUrl = () => {
|
|
|
40
38
|
// can use a relative url for this as all goes through the proxy (this is hosted in minio)
|
|
41
39
|
return OBJ_STORE_DIRECTORY
|
|
42
40
|
} else {
|
|
43
|
-
return
|
|
41
|
+
return env.CDN_URL
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
|
package/src/utilities/plugins.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.enrichPluginURLs = plugins => {
|
|
|
13
13
|
|
|
14
14
|
// In self host we need to prefix the path, as the bucket name is not part
|
|
15
15
|
// of the bucket path. In cloud, it's already part of the bucket path.
|
|
16
|
-
let jsUrl = cloud ?
|
|
16
|
+
let jsUrl = cloud ? `${env.CDN_URL}/` : `/${bucket}/`
|
|
17
17
|
jsUrl += ProPlugins.getBucketPath(plugin.name)
|
|
18
18
|
jsUrl += jsFileName
|
|
19
19
|
return { ...plugin, jsUrl }
|