@budibase/worker 2.8.29-alpha.10 → 2.8.29-alpha.12

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": "2.8.29-alpha.10",
4
+ "version": "2.8.29-alpha.12",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -14,7 +14,7 @@
14
14
  "scripts": {
15
15
  "prebuild": "rimraf dist/",
16
16
  "build": "node ../../scripts/build.js",
17
- "check:types": "tsc -p tsconfig.build.json --noEmit",
17
+ "check:types": "tsc -p tsconfig.json --noEmit --paths null",
18
18
  "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
19
19
  "run:docker": "node dist/index.js",
20
20
  "debug": "yarn build && node --expose-gc --inspect=9223 dist/index.js",
@@ -38,10 +38,10 @@
38
38
  "author": "Budibase",
39
39
  "license": "GPL-3.0",
40
40
  "dependencies": {
41
- "@budibase/backend-core": "2.8.29-alpha.10",
42
- "@budibase/pro": "2.8.29-alpha.10",
43
- "@budibase/string-templates": "2.8.29-alpha.10",
44
- "@budibase/types": "2.8.29-alpha.10",
41
+ "@budibase/backend-core": "2.8.29-alpha.12",
42
+ "@budibase/pro": "2.8.29-alpha.12",
43
+ "@budibase/string-templates": "2.8.29-alpha.12",
44
+ "@budibase/types": "2.8.29-alpha.12",
45
45
  "@koa/router": "8.0.8",
46
46
  "@sentry/node": "6.17.7",
47
47
  "@techpass/passport-openidconnect": "0.3.2",
@@ -117,5 +117,5 @@
117
117
  }
118
118
  }
119
119
  },
120
- "gitHead": "470257346fcc8aaac746d73e337e1b2333a5fed6"
120
+ "gitHead": "27f96b97996f1cf6199c180e4bc90175b68ba3e6"
121
121
  }
@@ -206,7 +206,7 @@ describe("/api/global/auth", () => {
206
206
  const newPassword = "newpassword"
207
207
  const res = await config.api.auth.updatePassword(code!, newPassword)
208
208
 
209
- user = await config.getUser(user.email)
209
+ user = (await config.getUser(user.email))!
210
210
  delete user.password
211
211
 
212
212
  expect(res.body).toEqual({ message: "password reset successfully." })
@@ -36,7 +36,7 @@ describe("/api/global/self", () => {
36
36
  })
37
37
  .expect(200)
38
38
 
39
- const dbUser = await config.getUser(user.email)
39
+ const dbUser = (await config.getUser(user.email))!
40
40
 
41
41
  user._rev = dbUser._rev
42
42
  user.dayPassRecordedAt = mocks.date.MOCK_DATE.toISOString()
@@ -58,7 +58,7 @@ describe("/api/global/self", () => {
58
58
  })
59
59
  .expect(200)
60
60
 
61
- const dbUser = await config.getUser(user.email)
61
+ const dbUser = (await config.getUser(user.email))!
62
62
 
63
63
  user._rev = dbUser._rev
64
64
  user.dayPassRecordedAt = mocks.date.MOCK_DATE.toISOString()
@@ -1,3 +1,4 @@
1
+ import { HealthStatusResponse } from "@budibase/types"
1
2
  import { TestConfiguration } from "../../../../tests"
2
3
  import { accounts as _accounts } from "@budibase/backend-core"
3
4
  const accounts = jest.mocked(_accounts)
@@ -31,13 +32,15 @@ describe("/api/system/status", () => {
31
32
  })
32
33
 
33
34
  it("returns status in cloud", async () => {
34
- const value = {
35
- health: {
36
- passing: false,
35
+ const value: HealthStatusResponse = {
36
+ passing: false,
37
+ checks: {
38
+ login: false,
39
+ search: false,
37
40
  },
38
41
  }
39
42
 
40
- accounts.getStatus.mockReturnValueOnce(Promise.resolve(value))
43
+ accounts.getStatus.mockResolvedValue(value)
41
44
 
42
45
  const res = await config.api.status.getStatus()
43
46
 
package/tsconfig.json CHANGED
@@ -2,14 +2,12 @@
2
2
  "extends": "./tsconfig.build.json",
3
3
  "compilerOptions": {
4
4
  "composite": true,
5
- "declaration": true,
6
- "sourceMap": true,
7
5
  "baseUrl": "."
8
6
  },
9
7
  "ts-node": {
10
8
  "require": ["tsconfig-paths/register"],
11
9
  "swc": true
12
10
  },
13
- "include": ["src/**/*"],
14
- "exclude": ["dist"]
11
+ "include": ["src/**/*", "__mocks__/**/*"],
12
+ "exclude": ["node_modules", "dist"]
15
13
  }