@budibase/worker 2.29.3 → 2.29.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.29.3",
4
+ "version": "2.29.7",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "prebuild": "rimraf dist/",
16
16
  "build": "node ../../scripts/build.js",
17
17
  "postbuild": "copyfiles -f ../../yarn.lock ./dist/",
18
- "check:types": "tsc -p tsconfig.json --noEmit --paths null",
18
+ "check:types": "tsc -p tsconfig.json --noEmit --paths null --target es2020",
19
19
  "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
20
20
  "run:docker": "node dist/index.js",
21
21
  "debug": "yarn build && node --expose-gc --inspect=9223 dist/index.js",
@@ -37,10 +37,10 @@
37
37
  "author": "Budibase",
38
38
  "license": "GPL-3.0",
39
39
  "dependencies": {
40
- "@budibase/backend-core": "2.29.3",
41
- "@budibase/pro": "2.29.3",
42
- "@budibase/string-templates": "2.29.3",
43
- "@budibase/types": "2.29.3",
40
+ "@budibase/backend-core": "2.29.7",
41
+ "@budibase/pro": "2.29.7",
42
+ "@budibase/string-templates": "2.29.7",
43
+ "@budibase/types": "2.29.7",
44
44
  "@koa/router": "8.0.8",
45
45
  "@techpass/passport-openidconnect": "0.3.2",
46
46
  "@types/global-agent": "2.1.1",
@@ -91,7 +91,7 @@
91
91
  "rimraf": "3.0.2",
92
92
  "supertest": "6.3.3",
93
93
  "timekeeper": "2.2.0",
94
- "typescript": "5.2.2",
94
+ "typescript": "5.5.2",
95
95
  "update-dotenv": "1.1.1"
96
96
  },
97
97
  "nx": {
@@ -109,5 +109,5 @@
109
109
  }
110
110
  }
111
111
  },
112
- "gitHead": "c2cc9ed214200effd8e97b69a01a3ab0fe811cc3"
112
+ "gitHead": "29579f5ba2e95a7ba4d222409c94a976df1c9539"
113
113
  }
@@ -3,12 +3,6 @@ import env from "../../../environment"
3
3
  import { env as coreEnv } from "@budibase/backend-core"
4
4
  import nodeFetch from "node-fetch"
5
5
 
6
- // When we come to move to SQS fully and move away from Clouseau, we will need
7
- // to flip this to true (or remove it entirely). This will then be used to
8
- // determine if we should show the maintenance page that links to the SQS
9
- // migration docs.
10
- const sqsRequired = false
11
-
12
6
  let sqsAvailable: boolean
13
7
  async function isSqsAvailable() {
14
8
  // We cache this value for the duration of the Node process because we don't
@@ -30,7 +24,7 @@ async function isSqsAvailable() {
30
24
  }
31
25
 
32
26
  async function isSqsMissing() {
33
- return sqsRequired && !(await isSqsAvailable())
27
+ return env.SQS_SEARCH_ENABLE && !(await isSqsAvailable())
34
28
  }
35
29
 
36
30
  export const fetch = async (ctx: Ctx) => {