@budibase/worker 2.10.15 → 2.10.16-alpha.1

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.10.15",
4
+ "version": "2.10.16-alpha.1",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -38,10 +38,10 @@
38
38
  "author": "Budibase",
39
39
  "license": "GPL-3.0",
40
40
  "dependencies": {
41
- "@budibase/backend-core": "2.10.15",
42
- "@budibase/pro": "2.10.15",
43
- "@budibase/string-templates": "2.10.15",
44
- "@budibase/types": "2.10.15",
41
+ "@budibase/backend-core": "2.10.16-alpha.1",
42
+ "@budibase/pro": "2.10.16-alpha.1",
43
+ "@budibase/string-templates": "2.10.16-alpha.1",
44
+ "@budibase/types": "2.10.16-alpha.1",
45
45
  "@koa/router": "8.0.8",
46
46
  "@sentry/node": "6.17.7",
47
47
  "@techpass/passport-openidconnect": "0.3.2",
@@ -67,7 +67,6 @@
67
67
  "node-fetch": "2.6.7",
68
68
  "nodemailer": "6.7.2",
69
69
  "passport-google-oauth": "2.0.0",
70
- "passport-jwt": "4.0.0",
71
70
  "passport-local": "1.0.0",
72
71
  "pouchdb": "7.3.0",
73
72
  "pouchdb-all-dbs": "1.1.1",
@@ -84,23 +83,16 @@
84
83
  "@types/lodash": "^4.14.191",
85
84
  "@types/node": "18.17.0",
86
85
  "@types/node-fetch": "2.6.4",
87
- "@types/pouchdb": "6.4.0",
88
86
  "@types/server-destroy": "1.0.1",
89
87
  "@types/supertest": "2.0.12",
90
88
  "@types/uuid": "8.3.4",
91
- "@typescript-eslint/parser": "5.45.0",
92
- "copyfiles": "2.4.1",
93
- "eslint": "6.8.0",
94
89
  "jest": "29.6.2",
95
90
  "lodash": "4.17.21",
96
91
  "nodemon": "2.0.15",
97
- "pouchdb-adapter-memory": "7.2.2",
98
92
  "rimraf": "3.0.2",
99
93
  "supertest": "6.2.2",
100
94
  "timekeeper": "2.2.0",
101
- "ts-node": "10.8.1",
102
- "tsconfig-paths": "4.0.0",
103
- "typescript": "4.7.3",
95
+ "typescript": "5.2.2",
104
96
  "update-dotenv": "1.1.1"
105
97
  },
106
98
  "nx": {
@@ -118,5 +110,5 @@
118
110
  }
119
111
  }
120
112
  },
121
- "gitHead": "1aff0770f2da0ed9c21e4079284f08587fe3ed7d"
113
+ "gitHead": "dbbad85c0356d2708683cb47fec12d3ad6fda92c"
122
114
  }
package/scripts/test.sh CHANGED
@@ -3,9 +3,9 @@ set -e
3
3
 
4
4
  if [[ -n $CI ]]
5
5
  then
6
- # --runInBand performs better in ci where resources are limited
7
- echo "jest --coverage --runInBand --forceExit --bail"
8
- jest --coverage --runInBand --forceExit --bail
6
+ # Running in ci, where resources are limited
7
+ echo "jest --coverage --maxWorkers=2 --forceExit --bail"
8
+ jest --coverage --maxWorkers=2 --forceExit --bail
9
9
  else
10
10
  # --maxWorkers performs better in development
11
11
  echo "jest --coverage --maxWorkers=2 --forceExit"
@@ -1,6 +1,5 @@
1
1
  import { structures, TestConfiguration } from "../../../../tests"
2
2
  import { context, db, permissions, roles } from "@budibase/backend-core"
3
- import { Mock } from "jest-mock"
4
3
  import { Database } from "@budibase/types"
5
4
 
6
5
  jest.mock("@budibase/backend-core", () => {
@@ -47,7 +46,7 @@ describe("/api/global/roles", () => {
47
46
  beforeEach(async () => {
48
47
  appId = db.generateAppID(config.tenantId)
49
48
  appDb = db.getDB(appId)
50
- const mockAppDB = context.getAppDB as Mock
49
+ const mockAppDB = context.getAppDB as jest.Mock
51
50
  mockAppDB.mockReturnValue(appDb)
52
51
 
53
52
  await addAppMetadata()
@@ -10,6 +10,8 @@ import {
10
10
  import { TestConfiguration } from "../../../../tests"
11
11
  import { events } from "@budibase/backend-core"
12
12
 
13
+ // this test can 409 - retries reduce issues with this
14
+ jest.retryTimes(2)
13
15
  jest.setTimeout(30000)
14
16
 
15
17
  mocks.licenses.useScimIntegration()
package/tsconfig.json CHANGED
@@ -4,10 +4,6 @@
4
4
  "composite": true,
5
5
  "baseUrl": "."
6
6
  },
7
- "ts-node": {
8
- "require": ["tsconfig-paths/register"],
9
- "swc": true
10
- },
11
7
  "include": ["src/**/*", "__mocks__/**/*"],
12
8
  "exclude": ["node_modules", "dist"]
13
9
  }