@budibase/server 2.4.33 → 2.4.35

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.33",
4
+ "version": "2.4.35",
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.33",
47
- "@budibase/client": "^2.4.33",
48
- "@budibase/pro": "2.4.32",
49
- "@budibase/shared-core": "^2.4.33",
50
- "@budibase/string-templates": "^2.4.33",
51
- "@budibase/types": "^2.4.33",
46
+ "@budibase/backend-core": "^2.4.35",
47
+ "@budibase/client": "^2.4.35",
48
+ "@budibase/pro": "2.4.34",
49
+ "@budibase/shared-core": "^2.4.35",
50
+ "@budibase/string-templates": "^2.4.35",
51
+ "@budibase/types": "^2.4.35",
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": "08562c495947fc945846a9ba4e8e8b0034814781"
178
+ "gitHead": "0aef4a1cdc66e2daddad45b58c7be61fad6d966b"
179
179
  }
@@ -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
  }