@budibase/server 2.4.33 → 2.4.34
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.4.
|
|
4
|
+
"version": "2.4.34",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"license": "GPL-3.0",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
46
|
-
"@budibase/backend-core": "^2.4.
|
|
47
|
-
"@budibase/client": "^2.4.
|
|
48
|
-
"@budibase/pro": "2.4.
|
|
49
|
-
"@budibase/shared-core": "^2.4.
|
|
50
|
-
"@budibase/string-templates": "^2.4.
|
|
51
|
-
"@budibase/types": "^2.4.
|
|
46
|
+
"@budibase/backend-core": "^2.4.34",
|
|
47
|
+
"@budibase/client": "^2.4.34",
|
|
48
|
+
"@budibase/pro": "2.4.33",
|
|
49
|
+
"@budibase/shared-core": "^2.4.34",
|
|
50
|
+
"@budibase/string-templates": "^2.4.34",
|
|
51
|
+
"@budibase/types": "^2.4.34",
|
|
52
52
|
"@bull-board/api": "3.7.0",
|
|
53
53
|
"@bull-board/koa": "3.9.4",
|
|
54
54
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -175,5 +175,5 @@
|
|
|
175
175
|
"optionalDependencies": {
|
|
176
176
|
"oracledb": "5.3.0"
|
|
177
177
|
},
|
|
178
|
-
"gitHead": "
|
|
178
|
+
"gitHead": "f390501c097bfc210c057a89835f59379344fffa"
|
|
179
179
|
}
|
package/src/integrations/rest.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { formatBytes } from "../utilities"
|
|
|
19
19
|
import { performance } from "perf_hooks"
|
|
20
20
|
import FormData from "form-data"
|
|
21
21
|
import { URLSearchParams } from "url"
|
|
22
|
+
import { blacklist } from "@budibase/backend-core"
|
|
22
23
|
|
|
23
24
|
const BodyTypes = {
|
|
24
25
|
NONE: "none",
|
|
@@ -398,6 +399,9 @@ class RestIntegration implements IntegrationBase {
|
|
|
398
399
|
|
|
399
400
|
this.startTimeMs = performance.now()
|
|
400
401
|
const url = this.getUrl(path, queryString, pagination, paginationValues)
|
|
402
|
+
if (await blacklist.isBlacklisted(url)) {
|
|
403
|
+
throw new Error("Cannot connect to URL.")
|
|
404
|
+
}
|
|
401
405
|
const response = await fetch(url, input)
|
|
402
406
|
return await this.parseResponse(response, pagination)
|
|
403
407
|
}
|