@budibase/worker 1.1.4 → 1.1.5
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": "1.1.
|
|
4
|
+
"version": "1.1.5",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"author": "Budibase",
|
|
35
35
|
"license": "GPL-3.0",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@budibase/backend-core": "^1.1.
|
|
38
|
-
"@budibase/pro": "1.1.
|
|
39
|
-
"@budibase/string-templates": "^1.1.
|
|
37
|
+
"@budibase/backend-core": "^1.1.5",
|
|
38
|
+
"@budibase/pro": "1.1.4",
|
|
39
|
+
"@budibase/string-templates": "^1.1.5",
|
|
40
40
|
"@koa/router": "8.0.8",
|
|
41
41
|
"@sentry/node": "6.17.7",
|
|
42
42
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"server-destroy": "1.0.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@budibase/types": "^1.1.
|
|
69
|
+
"@budibase/types": "^1.1.5",
|
|
70
70
|
"@types/jest": "26.0.23",
|
|
71
71
|
"@types/koa": "2.13.4",
|
|
72
72
|
"@types/koa-router": "7.4.4",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"./scripts/jestSetup.js"
|
|
101
101
|
]
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "fb3316dd49ef6e0b1be830237682993b4a0ad5cc"
|
|
104
104
|
}
|
|
@@ -4,7 +4,7 @@ const nodemailer = require("nodemailer")
|
|
|
4
4
|
const fetch = require("node-fetch")
|
|
5
5
|
|
|
6
6
|
// for the real email tests give them a long time to try complete/fail
|
|
7
|
-
jest.setTimeout(
|
|
7
|
+
jest.setTimeout(30000)
|
|
8
8
|
|
|
9
9
|
describe("/api/global/email", () => {
|
|
10
10
|
|
|
@@ -19,8 +19,14 @@ describe("/api/global/email", () => {
|
|
|
19
19
|
async function sendRealEmail(purpose) {
|
|
20
20
|
let response, text
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
const timeout = () => new Promise((resolve, reject) =>
|
|
23
|
+
setTimeout(() => reject({
|
|
24
|
+
status: 301,
|
|
25
|
+
errno: "ETIME"
|
|
26
|
+
}), 20000)
|
|
27
|
+
)
|
|
28
|
+
await Promise.race([config.saveEtherealSmtpConfig(), timeout()])
|
|
29
|
+
await Promise.race([config.saveSettingsConfig(), timeout()])
|
|
24
30
|
const user = await config.getUser("test@test.com")
|
|
25
31
|
const res = await request
|
|
26
32
|
.post(`/api/global/email/send`)
|