@ditojs/server 2.14.1 → 2.16.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.14.1",
3
+ "version": "2.16.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,22 +22,22 @@
22
22
  "node >= 18"
23
23
  ],
24
24
  "dependencies": {
25
- "@ditojs/admin": "^2.14.1",
26
- "@ditojs/build": "^2.14.1",
27
- "@ditojs/router": "^2.14.1",
28
- "@ditojs/utils": "^2.14.1",
25
+ "@ditojs/admin": "^2.16.0",
26
+ "@ditojs/build": "^2.16.0",
27
+ "@ditojs/router": "^2.16.0",
28
+ "@ditojs/utils": "^2.16.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.4.0",
33
- "@vue/compiler-sfc": "^3.3.6",
32
+ "@vitejs/plugin-vue": "^4.5.0",
33
+ "@vue/compiler-sfc": "^3.3.9",
34
34
  "ajv": "^8.12.0",
35
35
  "ajv-formats": "^2.1.1",
36
36
  "bcryptjs": "^2.4.3",
37
37
  "bytes": "^3.1.2",
38
38
  "data-uri-to-buffer": "^6.0.1",
39
39
  "eventemitter2": "^6.4.9",
40
- "file-type": "^18.5.0",
40
+ "file-type": "^18.7.0",
41
41
  "koa": "^2.14.2",
42
42
  "koa-bodyparser": "^4.4.1",
43
43
  "koa-compose": "^4.1.0",
@@ -54,20 +54,20 @@
54
54
  "mime-types": "^2.1.35",
55
55
  "multer": "^1.4.5-lts.1",
56
56
  "multer-s3": "https://github.com/ditojs/multer-s3#dito",
57
- "nanoid": "^5.0.2",
57
+ "nanoid": "^5.0.3",
58
58
  "parse-duration": "^1.1.0",
59
59
  "passport-local": "^1.0.0",
60
60
  "passthrough-counter": "^1.0.0",
61
61
  "picocolors": "^1.0.0",
62
- "picomatch": "^2.3.1",
63
- "pino": "^8.16.0",
62
+ "picomatch": "^3.0.1",
63
+ "pino": "^8.16.2",
64
64
  "pino-pretty": "^10.2.3",
65
65
  "pluralize": "^8.0.0",
66
66
  "repl": "^0.1.3",
67
- "type-fest": "^4.5.0",
67
+ "type-fest": "^4.8.2",
68
68
  "uuid": "^9.0.1",
69
- "vite": "^4.5.0",
70
- "vue": "^3.3.6"
69
+ "vite": "^5.0.2",
70
+ "vue": "^3.3.9"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@aws-sdk/client-s3": "^3.0.0",
@@ -76,19 +76,19 @@
76
76
  },
77
77
  "devDependencies": {
78
78
  "@aws-sdk/client-s3": "^3.304.0",
79
- "@types/koa-bodyparser": "^4.3.11",
80
- "@types/koa-compress": "^4.0.5",
81
- "@types/koa-response-time": "^2.1.4",
82
- "@types/koa-session": "^6.4.4",
83
- "@types/koa-static": "^4.0.3",
84
- "@types/koa__cors": "^4.0.2",
85
- "@types/node": "^20.8.7",
79
+ "@types/koa-bodyparser": "^4.3.12",
80
+ "@types/koa-compress": "^4.0.6",
81
+ "@types/koa-response-time": "^2.1.5",
82
+ "@types/koa-session": "^6.4.5",
83
+ "@types/koa-static": "^4.0.4",
84
+ "@types/koa__cors": "^4.0.3",
85
+ "@types/node": "^20.10.0",
86
86
  "knex": "^3.0.1",
87
- "objection": "^3.1.2",
88
- "typescript": "^5.2.2"
87
+ "objection": "^3.1.3",
88
+ "typescript": "^5.3.2"
89
89
  },
90
90
  "types": "types",
91
- "gitHead": "f0bbe90cf7323bdc9a8020b0b2de0f77cd4403c4",
91
+ "gitHead": "333d379f78a3d7469ca79993acd51b48e069ec9a",
92
92
  "scripts": {
93
93
  "types": "tsc --noEmit --esModuleInterop ./types/index.d.ts"
94
94
  },
@@ -195,8 +195,8 @@ export class AdminController extends Controller {
195
195
  // `sendDitoObject()`
196
196
  name: 'inject-dito-object',
197
197
  transformIndexHtml: {
198
- enforce: 'post',
199
- transform(html) {
198
+ order: 'post',
199
+ handler(html) {
200
200
  return html.replace(
201
201
  /(\s*)(<script type="module"[^>]*?><\/script>)/,
202
202
  `$1<script src="${base}dito.js"></script>$1$2`