@ditojs/server 2.3.1 → 2.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/server",
3
- "version": "2.3.1",
3
+ "version": "2.4.0",
4
4
  "type": "module",
5
5
  "description": "Dito.js Server – Dito.js is a declarative and modern web framework, based on Objection.js, Koa.js and Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/server",
@@ -22,10 +22,10 @@
22
22
  "node >= 18"
23
23
  ],
24
24
  "dependencies": {
25
- "@ditojs/admin": "^2.3.1",
26
- "@ditojs/build": "^2.3.0",
27
- "@ditojs/router": "^2.3.0",
28
- "@ditojs/utils": "^2.3.0",
25
+ "@ditojs/admin": "^2.4.0",
26
+ "@ditojs/build": "^2.4.0",
27
+ "@ditojs/router": "^2.4.0",
28
+ "@ditojs/utils": "^2.4.0",
29
29
  "@koa/cors": "^4.0.0",
30
30
  "@koa/multer": "^3.0.2",
31
31
  "@originjs/vite-plugin-commonjs": "^1.0.3",
@@ -88,7 +88,7 @@
88
88
  "typescript": "^5.0.4"
89
89
  },
90
90
  "types": "types",
91
- "gitHead": "1b5f5121a2e8e6d3741f0bb2b81d38c2343810d6",
91
+ "gitHead": "11402f86e31da1b8ebd0a6ea5c984d3abf12d7be",
92
92
  "scripts": {
93
93
  "types": "tsc --noEmit --esModuleInterop ./types/index.d.ts"
94
94
  },
@@ -23,7 +23,8 @@ export class DatabaseError extends ResponseError {
23
23
  {
24
24
  type: error.constructor.name,
25
25
  message: 'Database error',
26
- status: getStatus(error)
26
+ status: getStatus(error),
27
+ cause: error.nativeError
27
28
  },
28
29
  overrides
29
30
  )