@budibase/worker 2.9.30-alpha.0 → 2.9.30-alpha.10

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/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:14-alpine
1
+ FROM node:18-alpine
2
2
 
3
3
  LABEL com.centurylinklabs.watchtower.lifecycle.pre-check="scripts/watchtower-hooks/pre-check.sh"
4
4
  LABEL com.centurylinklabs.watchtower.lifecycle.pre-update="scripts/watchtower-hooks/pre-update.sh"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.9.30-alpha.0",
4
+ "version": "2.9.30-alpha.10",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -38,10 +38,10 @@
38
38
  "author": "Budibase",
39
39
  "license": "GPL-3.0",
40
40
  "dependencies": {
41
- "@budibase/backend-core": "2.9.30-alpha.0",
42
- "@budibase/pro": "2.9.30-alpha.0",
43
- "@budibase/string-templates": "2.9.30-alpha.0",
44
- "@budibase/types": "2.9.30-alpha.0",
41
+ "@budibase/backend-core": "2.9.30-alpha.10",
42
+ "@budibase/pro": "2.9.30-alpha.10",
43
+ "@budibase/string-templates": "2.9.30-alpha.10",
44
+ "@budibase/types": "2.9.30-alpha.10",
45
45
  "@koa/router": "8.0.8",
46
46
  "@sentry/node": "6.17.7",
47
47
  "@techpass/passport-openidconnect": "0.3.2",
@@ -103,5 +103,20 @@
103
103
  "typescript": "4.7.3",
104
104
  "update-dotenv": "1.1.1"
105
105
  },
106
- "gitHead": "3958c8bf7ed95613adac7e41cf3323a478d82197"
106
+ "nx": {
107
+ "targets": {
108
+ "dev:builder": {
109
+ "dependsOn": [
110
+ {
111
+ "comment": "Required for pro usage when submodule not loaded",
112
+ "projects": [
113
+ "@budibase/backend-core"
114
+ ],
115
+ "target": "build"
116
+ }
117
+ ]
118
+ }
119
+ }
120
+ },
121
+ "gitHead": "12d2b029256f1c6b043b6b8c12b2c1a11b442927"
107
122
  }
@@ -31,6 +31,8 @@ function parseIntSafe(number: any) {
31
31
  }
32
32
 
33
33
  const environment = {
34
+ // features
35
+ WORKER_FEATURES: process.env.WORKER_FEATURES,
34
36
  // auth
35
37
  MINIO_ACCESS_KEY: process.env.MINIO_ACCESS_KEY,
36
38
  MINIO_SECRET_KEY: process.env.MINIO_SECRET_KEY,
@@ -0,0 +1,13 @@
1
+ import { features } from "@budibase/backend-core"
2
+ import env from "./environment"
3
+
4
+ enum WorkerFeature {}
5
+
6
+ const featureList: WorkerFeature[] = features.processFeatureEnvVar(
7
+ Object.values(WorkerFeature),
8
+ env.WORKER_FEATURES
9
+ )
10
+
11
+ export function isFeatureEnabled(feature: WorkerFeature) {
12
+ return featureList.includes(feature)
13
+ }
@@ -9,4 +9,4 @@ process.env.MINIO_SECRET_KEY = "test"
9
9
  process.env.PLATFORM_URL = "http://localhost:10000"
10
10
  process.env.INTERNAL_API_KEY = "tet"
11
11
  process.env.DISABLE_ACCOUNT_PORTAL = "0"
12
- process.env.REDIS_PASSWORD = "budibase"
12
+ process.env.MOCK_REDIS = "1"