@budibase/worker 2.29.29 → 2.29.30
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 +6 -6
- package/src/api/controllers/global/self.ts +3 -3
- package/src/environment.ts +0 -2
- package/src/features.ts +0 -13
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.
|
|
4
|
+
"version": "2.29.30",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"author": "Budibase",
|
|
38
38
|
"license": "GPL-3.0",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@budibase/backend-core": "2.29.
|
|
41
|
-
"@budibase/pro": "2.29.
|
|
42
|
-
"@budibase/string-templates": "2.29.
|
|
43
|
-
"@budibase/types": "2.29.
|
|
40
|
+
"@budibase/backend-core": "2.29.30",
|
|
41
|
+
"@budibase/pro": "2.29.30",
|
|
42
|
+
"@budibase/string-templates": "2.29.30",
|
|
43
|
+
"@budibase/types": "2.29.30",
|
|
44
44
|
"@koa/router": "8.0.8",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.3",
|
|
46
46
|
"@types/global-agent": "2.1.1",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "189394af7aa7280f434d1753a4bb04b755e3941a"
|
|
111
111
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as userSdk from "../../../sdk/users"
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
features,
|
|
4
4
|
tenancy,
|
|
5
5
|
db as dbCore,
|
|
6
6
|
utils,
|
|
@@ -104,8 +104,8 @@ export async function getSelf(ctx: any) {
|
|
|
104
104
|
ctx.body = await groups.enrichUserRolesFromGroups(user)
|
|
105
105
|
|
|
106
106
|
// add the feature flags for this tenant
|
|
107
|
-
const
|
|
108
|
-
ctx.body.
|
|
107
|
+
const flags = await features.fetch()
|
|
108
|
+
ctx.body.flags = flags
|
|
109
109
|
|
|
110
110
|
addSessionAttributesToUser(ctx)
|
|
111
111
|
}
|
package/src/environment.ts
CHANGED
package/src/features.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}
|