@ditojs/server 2.5.0 → 2.5.2

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.5.0",
3
+ "version": "2.5.2",
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,14 +22,14 @@
22
22
  "node >= 18"
23
23
  ],
24
24
  "dependencies": {
25
- "@ditojs/admin": "^2.5.0",
25
+ "@ditojs/admin": "^2.5.2",
26
26
  "@ditojs/build": "^2.5.0",
27
27
  "@ditojs/router": "^2.5.0",
28
28
  "@ditojs/utils": "^2.5.0",
29
29
  "@koa/cors": "^4.0.0",
30
30
  "@koa/multer": "^3.0.2",
31
31
  "@originjs/vite-plugin-commonjs": "^1.0.3",
32
- "@vitejs/plugin-vue": "^4.1.0",
32
+ "@vitejs/plugin-vue": "^4.2.1",
33
33
  "@vue/compiler-sfc": "^3.2.47",
34
34
  "ajv": "^8.12.0",
35
35
  "ajv-formats": "^2.1.1",
@@ -37,7 +37,7 @@
37
37
  "bytes": "^3.1.2",
38
38
  "data-uri-to-buffer": "^4.0.1",
39
39
  "eventemitter2": "^6.4.9",
40
- "file-type": "^18.2.1",
40
+ "file-type": "^18.3.0",
41
41
  "koa": "^2.14.2",
42
42
  "koa-bodyparser": "^4.4.0",
43
43
  "koa-compose": "^4.1.0",
@@ -64,9 +64,9 @@
64
64
  "pino-pretty": "^10.0.0",
65
65
  "pluralize": "^8.0.0",
66
66
  "repl": "^0.1.3",
67
- "type-fest": "^3.8.0",
67
+ "type-fest": "^3.9.0",
68
68
  "uuid": "^9.0.0",
69
- "vite": "^4.3.1",
69
+ "vite": "^4.3.4",
70
70
  "vue": "^3.2.47"
71
71
  },
72
72
  "peerDependencies": {
@@ -79,16 +79,16 @@
79
79
  "@types/koa-bodyparser": "^4.3.10",
80
80
  "@types/koa-compress": "^4.0.3",
81
81
  "@types/koa-response-time": "^2.1.2",
82
- "@types/koa-session": "^6.4.0",
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": "^18.15.13",
85
+ "@types/node": "^18.16.3",
86
86
  "knex": "^2.4.2",
87
87
  "objection": "^3.0.2",
88
88
  "typescript": "^5.0.4"
89
89
  },
90
90
  "types": "types",
91
- "gitHead": "1339a92f8adbfabee89d516ccfca84e13b48833b",
91
+ "gitHead": "8c5737b77ba43617cd95ba65fbabcdc2941542a8",
92
92
  "scripts": {
93
93
  "types": "tsc --noEmit --esModuleInterop ./types/index.d.ts"
94
94
  },
@@ -685,11 +685,13 @@ export class Application extends Koa {
685
685
  const duration = diff[0] * 1e3 + diff[1] / 1e6
686
686
  delete startTimes[id]
687
687
  const { sql, bindings } = query
688
- response = Object.fromEntries(
689
- Object.entries(response).filter(
690
- ([key]) => !key.startsWith('_')
691
- )
692
- )
688
+ response = response
689
+ ? Object.fromEntries(
690
+ Object.entries(response).filter(
691
+ ([key]) => !key.startsWith('_')
692
+ )
693
+ )
694
+ : null
693
695
  logger.info({ duration, bindings, response, error }, sql)
694
696
  }
695
697