@budibase/server 2.3.17-alpha.3 → 2.3.17-alpha.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/builder/assets/{index.0a52d342.js → index.2e46de1a.js} +344 -344
- package/builder/index.html +1 -1
- package/dist/api/index.js +1 -21
- package/dist/package.json +8 -7
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -8
- package/specs/openapi.json +6 -6
- package/specs/openapi.yaml +3 -3
- package/src/api/index.ts +3 -22
- package/src/api/routes/tests/backup.spec.ts +0 -1
- package/src/integrations/tests/couchdb.spec.ts +0 -2
- package/src/tests/jestEnv.ts +7 -6
- package/src/tests/jestSetup.ts +1 -0
- package/src/tests/logging.ts +34 -0
- package/src/tests/utilities/TestConfiguration.ts +47 -49
package/builder/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
|
|
11
11
|
rel="stylesheet"
|
|
12
12
|
/>
|
|
13
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
13
|
+
<script type="module" crossorigin src="/builder/assets/index.2e46de1a.js"></script>
|
|
14
14
|
<link rel="stylesheet" href="/builder/assets/index.7e76c039.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body id="app">
|
package/dist/api/index.js
CHANGED
|
@@ -27,6 +27,7 @@ const compress = require("koa-compress");
|
|
|
27
27
|
exports.router = new router_1.default();
|
|
28
28
|
exports.router.get("/health", ctx => (ctx.status = 200));
|
|
29
29
|
exports.router.get("/version", ctx => (ctx.body = package_json_1.default.version));
|
|
30
|
+
exports.router.use(backend_core_1.middleware.errorHandling);
|
|
30
31
|
exports.router
|
|
31
32
|
.use(compress({
|
|
32
33
|
threshold: 2048,
|
|
@@ -60,27 +61,6 @@ exports.router
|
|
|
60
61
|
// @ts-ignore
|
|
61
62
|
.use(currentapp_1.default)
|
|
62
63
|
.use(backend_core_1.auth.auditLog);
|
|
63
|
-
// error handling middleware
|
|
64
|
-
exports.router.use((ctx, next) => __awaiter(void 0, void 0, void 0, function* () {
|
|
65
|
-
try {
|
|
66
|
-
yield next();
|
|
67
|
-
}
|
|
68
|
-
catch (err) {
|
|
69
|
-
ctx.status = err.status || err.statusCode || 500;
|
|
70
|
-
const error = backend_core_1.errors.getPublicError(err);
|
|
71
|
-
ctx.body = {
|
|
72
|
-
message: err.message,
|
|
73
|
-
status: ctx.status,
|
|
74
|
-
validationErrors: err.validation,
|
|
75
|
-
error,
|
|
76
|
-
};
|
|
77
|
-
ctx.log.error(err);
|
|
78
|
-
// unauthorised errors don't provide a useful trace
|
|
79
|
-
if (!environment_1.default.isTest()) {
|
|
80
|
-
console.trace(err);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}));
|
|
84
64
|
// authenticated routes
|
|
85
65
|
for (let route of routes_1.mainRoutes) {
|
|
86
66
|
exports.router.use(route.routes());
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.3.17-alpha.
|
|
4
|
+
"version": "2.3.17-alpha.4",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"license": "GPL-3.0",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
46
|
-
"@budibase/backend-core": "2.3.17-alpha.
|
|
47
|
-
"@budibase/client": "2.3.17-alpha.
|
|
48
|
-
"@budibase/pro": "2.3.17-alpha.
|
|
49
|
-
"@budibase/string-templates": "2.3.17-alpha.
|
|
50
|
-
"@budibase/types": "2.3.17-alpha.
|
|
46
|
+
"@budibase/backend-core": "2.3.17-alpha.4",
|
|
47
|
+
"@budibase/client": "2.3.17-alpha.4",
|
|
48
|
+
"@budibase/pro": "2.3.17-alpha.4",
|
|
49
|
+
"@budibase/string-templates": "2.3.17-alpha.4",
|
|
50
|
+
"@budibase/types": "2.3.17-alpha.4",
|
|
51
51
|
"@bull-board/api": "3.7.0",
|
|
52
52
|
"@bull-board/koa": "3.9.4",
|
|
53
53
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"@types/pouchdb": "6.4.0",
|
|
143
143
|
"@types/redis": "4.0.11",
|
|
144
144
|
"@types/server-destroy": "1.0.1",
|
|
145
|
+
"@types/supertest": "2.0.12",
|
|
145
146
|
"@types/tar": "6.1.3",
|
|
146
147
|
"@typescript-eslint/parser": "5.45.0",
|
|
147
148
|
"apidoc": "0.50.4",
|
|
@@ -160,7 +161,7 @@
|
|
|
160
161
|
"path-to-regexp": "6.2.0",
|
|
161
162
|
"prettier": "2.5.1",
|
|
162
163
|
"rimraf": "3.0.2",
|
|
163
|
-
"supertest": "
|
|
164
|
+
"supertest": "6.2.2",
|
|
164
165
|
"swagger-jsdoc": "6.1.0",
|
|
165
166
|
"timekeeper": "2.2.0",
|
|
166
167
|
"ts-jest": "28.0.4",
|