@budibase/worker 3.31.2 → 3.31.3
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/jest.config.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Config } from "jest"
|
|
2
|
-
import * as fs from "fs"
|
|
3
2
|
|
|
4
3
|
const config: Config = {
|
|
5
4
|
globalSetup: "./../../globalSetup.ts",
|
|
@@ -16,13 +15,9 @@ const config: Config = {
|
|
|
16
15
|
"@budibase/types": "<rootDir>/../types/src",
|
|
17
16
|
"@budibase/shared-core": ["<rootDir>/../shared-core/src"],
|
|
18
17
|
"@budibase/string-templates": ["<rootDir>/../string-templates/src"],
|
|
18
|
+
"@budibase/pro/(.*)": "<rootDir>/../pro/$1",
|
|
19
|
+
"@budibase/pro": "<rootDir>/../pro/src",
|
|
19
20
|
},
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
// add pro sources if they exist
|
|
23
|
-
if (fs.existsSync("../pro/src")) {
|
|
24
|
-
config.moduleNameMapper!["@budibase/pro/(.*)"] = "<rootDir>/../pro/$1"
|
|
25
|
-
config.moduleNameMapper!["@budibase/pro"] = "<rootDir>/../pro/src"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
23
|
export default config
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/worker",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "3.31.
|
|
4
|
+
"version": "3.31.3",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"@govtechsg/passport-openidconnect": "1.0.3",
|
|
38
38
|
"@koa/router": "15.3.0",
|
|
39
39
|
"@types/global-agent": "2.1.1",
|
|
40
|
-
"aws-sdk": "2.1692.0",
|
|
41
40
|
"bcrypt": "6.0.0",
|
|
42
41
|
"bull": "4.10.1",
|
|
43
42
|
"dd-trace": "5.63.0",
|
|
@@ -48,28 +47,19 @@
|
|
|
48
47
|
"ical-generator": "4.1.0",
|
|
49
48
|
"joi": "17.6.0",
|
|
50
49
|
"jsonwebtoken": "9.0.2",
|
|
51
|
-
"knex": "2.4.2",
|
|
52
50
|
"koa": "2.15.4",
|
|
53
51
|
"koa-body": "4.2.0",
|
|
54
52
|
"koa-compress": "4.0.1",
|
|
55
|
-
"koa-passport": "4.1.4",
|
|
56
53
|
"koa-redis": "^4.0.1",
|
|
57
|
-
"koa-send": "5.0.1",
|
|
58
54
|
"koa-session": "5.13.1",
|
|
59
|
-
"koa-static": "5.0.0",
|
|
60
55
|
"koa-useragent": "^4.1.0",
|
|
61
56
|
"lodash": "4.17.23",
|
|
62
57
|
"marked": "^15.0.11",
|
|
63
58
|
"node-fetch": "2.6.7",
|
|
64
59
|
"nodemailer": "7.0.11",
|
|
65
|
-
"passport-google-oauth": "2.0.0",
|
|
66
|
-
"passport-local": "1.0.0",
|
|
67
60
|
"pouchdb": "9.0.0",
|
|
68
|
-
"pouchdb-all-dbs": "1.1.1",
|
|
69
61
|
"scim-patch": "^0.8.1",
|
|
70
62
|
"scim2-parse-filter": "^0.2.8",
|
|
71
|
-
"server-destroy": "1.0.1",
|
|
72
|
-
"undici": "^7.16.0",
|
|
73
63
|
"uuid": "^8.3.2",
|
|
74
64
|
"yaml": "^2.8.2"
|
|
75
65
|
},
|
|
@@ -79,7 +69,6 @@
|
|
|
79
69
|
"@types/maildev": "^0.0.7",
|
|
80
70
|
"@types/node-fetch": "2.6.4",
|
|
81
71
|
"@types/nodemailer": "^6.4.17",
|
|
82
|
-
"@types/server-destroy": "1.0.1",
|
|
83
72
|
"@types/supertest": "2.0.14",
|
|
84
73
|
"@types/uuid": "8.3.4",
|
|
85
74
|
"cheerio": "^1.0.0",
|
|
@@ -91,23 +80,5 @@
|
|
|
91
80
|
"supertest": "6.3.3",
|
|
92
81
|
"timekeeper": "2.2.0"
|
|
93
82
|
},
|
|
94
|
-
"
|
|
95
|
-
"@budibase/pro": "npm:@budibase/pro@latest"
|
|
96
|
-
},
|
|
97
|
-
"nx": {
|
|
98
|
-
"targets": {
|
|
99
|
-
"dev": {
|
|
100
|
-
"dependsOn": [
|
|
101
|
-
{
|
|
102
|
-
"comment": "Required for pro usage when submodule not loaded",
|
|
103
|
-
"projects": [
|
|
104
|
-
"@budibase/backend-core"
|
|
105
|
-
],
|
|
106
|
-
"target": "build:oss"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
"gitHead": "e43a157f7b7baa20d67d05b35fd94b2b205acb2b"
|
|
83
|
+
"gitHead": "7f5947eadcf2e540ae7e9334ef8f160be64fea2e"
|
|
113
84
|
}
|
|
@@ -514,9 +514,6 @@ export async function find(ctx: UserCtx<void, FindConfigResponse>) {
|
|
|
514
514
|
case ConfigType.OIDC_LOGOS:
|
|
515
515
|
await enrichOIDCLogos(config)
|
|
516
516
|
break
|
|
517
|
-
case ConfigType.AI:
|
|
518
|
-
await pro.sdk.ai.enrichAIConfig(config)
|
|
519
|
-
break
|
|
520
517
|
}
|
|
521
518
|
|
|
522
519
|
stripSecrets(config, ctx)
|
package/src/environment.ts
CHANGED
|
@@ -101,9 +101,6 @@ const environment = {
|
|
|
101
101
|
PASSWORD_RESET_RATE_IP_WINDOW_SECONDS:
|
|
102
102
|
parseIntSafe(process.env.PASSWORD_RESET_RATE_IP_WINDOW_SECONDS) || 900,
|
|
103
103
|
|
|
104
|
-
// Budibase AI
|
|
105
|
-
BUDIBASE_AI_API_KEY: process.env.BUDIBASE_AI_API_KEY,
|
|
106
|
-
BUDIBASE_AI_DEFAULT_MODEL: process.env.BUDIBASE_AI_DEFAULT_MODEL,
|
|
107
104
|
_set(key: any, value: any) {
|
|
108
105
|
process.env[key] = value
|
|
109
106
|
// @ts-ignore
|