@ditojs/server 2.10.3 → 2.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/server",
3
- "version": "2.10.3",
3
+ "version": "2.10.5",
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.10.3",
25
+ "@ditojs/admin": "^2.10.5",
26
26
  "@ditojs/build": "^2.10.0",
27
- "@ditojs/router": "^2.10.0",
28
- "@ditojs/utils": "^2.10.0",
27
+ "@ditojs/router": "^2.10.5",
28
+ "@ditojs/utils": "^2.10.5",
29
29
  "@koa/cors": "^4.0.0",
30
30
  "@koa/multer": "^3.0.2",
31
31
  "@originjs/vite-plugin-commonjs": "^1.0.3",
@@ -39,7 +39,7 @@
39
39
  "eventemitter2": "^6.4.9",
40
40
  "file-type": "^18.5.0",
41
41
  "koa": "^2.14.2",
42
- "koa-bodyparser": "^4.4.0",
42
+ "koa-bodyparser": "^4.4.1",
43
43
  "koa-compose": "^4.1.0",
44
44
  "koa-compress": "^5.1.1",
45
45
  "koa-conditional-get": "^3.0.0",
@@ -64,7 +64,7 @@
64
64
  "pino-pretty": "^10.0.0",
65
65
  "pluralize": "^8.0.0",
66
66
  "repl": "^0.1.3",
67
- "type-fest": "^3.11.1",
67
+ "type-fest": "^3.12.0",
68
68
  "uuid": "^9.0.0",
69
69
  "vite": "^4.3.9",
70
70
  "vue": "^3.3.4"
@@ -82,13 +82,13 @@
82
82
  "@types/koa-session": "^6.4.1",
83
83
  "@types/koa-static": "^4.0.2",
84
84
  "@types/koa__cors": "^4.0.0",
85
- "@types/node": "^20.2.5",
85
+ "@types/node": "^20.3.2",
86
86
  "knex": "^2.4.2",
87
- "objection": "^3.0.2",
88
- "typescript": "^5.1.3"
87
+ "objection": "^3.0.4",
88
+ "typescript": "^5.1.6"
89
89
  },
90
90
  "types": "types",
91
- "gitHead": "64c92430531216d8f463835bc07c4ac8e2370bf0",
91
+ "gitHead": "7549d96fcd1d5b9fb8e6b7d1e5573df954d9dbff",
92
92
  "scripts": {
93
93
  "types": "tsc --noEmit --esModuleInterop ./types/index.d.ts"
94
94
  },
@@ -1,20 +1,11 @@
1
1
  import { ResponseError } from './ResponseError.js'
2
- // TODO: Import directly once we can move to Objection 3 and this is fixed:
3
- // import {
4
- // DBError,
5
- // DataError,
6
- // CheckViolationError,
7
- // NotNullViolationError,
8
- // ConstraintViolationError
9
- // } from 'objection'
10
- import objection from 'objection'
11
- const {
2
+ import {
12
3
  DBError,
13
4
  DataError,
14
5
  CheckViolationError,
15
6
  NotNullViolationError,
16
7
  ConstraintViolationError
17
- } = objection
8
+ } from 'objection'
18
9
 
19
10
  export class DatabaseError extends ResponseError {
20
11
  constructor(error, overrides) {