@budibase/worker 2.17.8 → 2.18.0
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 +2 -0
- package/nodemon.json +2 -2
- package/package.json +9 -7
- package/scripts/load/heavyUse.js +6 -6
- package/src/api/routes/global/tests/auth.spec.ts +1 -1
- package/src/api/routes/global/tests/users.spec.ts +1 -1
- package/src/tests/api/email.ts +1 -1
- package/src/tests/structures/configs.ts +2 -2
package/Dockerfile
CHANGED
|
@@ -44,6 +44,8 @@ EXPOSE 4001
|
|
|
44
44
|
# due to this causing yarn to stop installing dev dependencies
|
|
45
45
|
# which are actually needed to get this environment up and running
|
|
46
46
|
ENV NODE_ENV=production
|
|
47
|
+
# this is required for isolated-vm to work on Node 20+
|
|
48
|
+
ENV NODE_OPTIONS="--no-node-snapshot"
|
|
47
49
|
ENV CLUSTER_MODE=${CLUSTER_MODE}
|
|
48
50
|
ENV SERVICE=worker-service
|
|
49
51
|
ENV POSTHOG_TOKEN=phc_bIjZL7oh2GEUd2vqvTBH8WvrX0fWTFQMs6H5KQxiUxU
|
package/nodemon.json
CHANGED
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"../string-templates"
|
|
9
9
|
],
|
|
10
10
|
"ext": "js,ts,json",
|
|
11
|
-
"ignore": ["
|
|
12
|
-
"exec": "yarn build && node dist/index.js"
|
|
11
|
+
"ignore": ["**/*.spec.ts", "**/*.spec.js", "../*/dist/**/*"],
|
|
12
|
+
"exec": "yarn build && node --no-node-snapshot dist/index.js"
|
|
13
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.
|
|
4
|
+
"version": "2.18.0",
|
|
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.
|
|
41
|
-
"@budibase/pro": "2.
|
|
42
|
-
"@budibase/string-templates": "2.
|
|
43
|
-
"@budibase/types": "2.
|
|
40
|
+
"@budibase/backend-core": "2.18.0",
|
|
41
|
+
"@budibase/pro": "2.18.0",
|
|
42
|
+
"@budibase/string-templates": "2.18.0",
|
|
43
|
+
"@budibase/types": "2.18.0",
|
|
44
44
|
"@koa/router": "8.0.8",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
46
46
|
"@types/global-agent": "2.1.1",
|
|
@@ -68,7 +68,9 @@
|
|
|
68
68
|
"passport-local": "1.0.0",
|
|
69
69
|
"pouchdb": "7.3.0",
|
|
70
70
|
"pouchdb-all-dbs": "1.1.1",
|
|
71
|
-
"server-destroy": "1.0.1"
|
|
71
|
+
"server-destroy": "1.0.1",
|
|
72
|
+
"undici": "^6.0.1",
|
|
73
|
+
"undici-types": "^6.0.1"
|
|
72
74
|
},
|
|
73
75
|
"devDependencies": {
|
|
74
76
|
"@swc/core": "1.3.71",
|
|
@@ -106,5 +108,5 @@
|
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
},
|
|
109
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "0ec725ca4b2e8121fc1eb94b3325ba49fc7c4ecc"
|
|
110
112
|
}
|
package/scripts/load/heavyUse.js
CHANGED
|
@@ -23,27 +23,27 @@ const USERS = [
|
|
|
23
23
|
password: "test",
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
email: "loadtest2@
|
|
26
|
+
email: "loadtest2@example.com",
|
|
27
27
|
password: "test",
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
email: "loadtest3@
|
|
30
|
+
email: "loadtest3@example.com",
|
|
31
31
|
password: "test",
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
email: "loadtest4@
|
|
34
|
+
email: "loadtest4@example.com",
|
|
35
35
|
password: "test",
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
email: "loadtest5@
|
|
38
|
+
email: "loadtest5@example.com",
|
|
39
39
|
password: "test",
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
email: "loadtest6@
|
|
42
|
+
email: "loadtest6@example.com",
|
|
43
43
|
password: "test",
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
email: "loadtest7@
|
|
46
|
+
email: "loadtest7@example.com",
|
|
47
47
|
password: "test",
|
|
48
48
|
},
|
|
49
49
|
]
|
|
@@ -80,7 +80,7 @@ describe("/api/global/auth", () => {
|
|
|
80
80
|
|
|
81
81
|
it("should return 403 when user doesn't exist", async () => {
|
|
82
82
|
const tenantId = config.tenantId!
|
|
83
|
-
const email = "invaliduser@
|
|
83
|
+
const email = "invaliduser@example.com"
|
|
84
84
|
const password = "password"
|
|
85
85
|
|
|
86
86
|
const response = await config.api.auth.login(
|
|
@@ -490,7 +490,7 @@ describe("/api/global/users", () => {
|
|
|
490
490
|
it("should not be able to update email address", async () => {
|
|
491
491
|
const email = structures.email()
|
|
492
492
|
const user = await config.createUser(structures.users.user({ email }))
|
|
493
|
-
user.email = "new@
|
|
493
|
+
user.email = "new@example.com"
|
|
494
494
|
|
|
495
495
|
const response = await config.api.users.saveUser(user, 400)
|
|
496
496
|
|
package/src/tests/api/email.ts
CHANGED
|
@@ -45,7 +45,7 @@ export function smtp(conf?: any): SMTPConfig {
|
|
|
45
45
|
config: {
|
|
46
46
|
port: 12345,
|
|
47
47
|
host: "smtptesthost.com",
|
|
48
|
-
from: "testfrom@
|
|
48
|
+
from: "testfrom@example.com",
|
|
49
49
|
subject: "Hello!",
|
|
50
50
|
secure: false,
|
|
51
51
|
...conf,
|
|
@@ -59,7 +59,7 @@ export function smtpEthereal(): SMTPConfig {
|
|
|
59
59
|
config: {
|
|
60
60
|
port: 587,
|
|
61
61
|
host: "smtp.ethereal.email",
|
|
62
|
-
from: "testfrom@
|
|
62
|
+
from: "testfrom@example.com",
|
|
63
63
|
secure: false,
|
|
64
64
|
auth: {
|
|
65
65
|
user: "wyatt.zulauf29@ethereal.email",
|