@ditojs/server 1.14.0 → 1.14.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/server",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
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",
@@ -25,7 +25,7 @@
25
25
  "node >= 18"
26
26
  ],
27
27
  "dependencies": {
28
- "@ditojs/admin": "^1.14.0",
28
+ "@ditojs/admin": "^1.14.1",
29
29
  "@ditojs/build": "^1.14.0",
30
30
  "@ditojs/router": "^1.14.0",
31
31
  "@ditojs/utils": "^1.14.0",
@@ -95,5 +95,5 @@
95
95
  "typescript": "^4.9.3"
96
96
  },
97
97
  "types": "types",
98
- "gitHead": "ba197ae5254deb657b2c3b5dab7a851f488e022a"
98
+ "gitHead": "f519c24320a1cf04aa81c6476b602a590b5c2930"
99
99
  }
@@ -18,9 +18,9 @@ export class ResponseError extends Error {
18
18
  : isString(error)
19
19
  ? { message: error }
20
20
  : error || {}
21
- const { status, ...data } = { ...defaults, ...object }
21
+ const { status, cause, ...data } = { ...defaults, ...object }
22
22
  const { message, code } = data
23
- super(message)
23
+ super(message, { cause })
24
24
  this.name = this.constructor.name
25
25
  this.status = status
26
26
  this.code = code