@ditojs/server 2.1.0 → 2.1.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.1.
|
|
3
|
+
"version": "2.1.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,10 +22,10 @@
|
|
|
22
22
|
"node >= 18"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ditojs/admin": "^2.1.
|
|
26
|
-
"@ditojs/build": "^2.1.
|
|
27
|
-
"@ditojs/router": "^2.1.
|
|
28
|
-
"@ditojs/utils": "^2.1.
|
|
25
|
+
"@ditojs/admin": "^2.1.2",
|
|
26
|
+
"@ditojs/build": "^2.1.1",
|
|
27
|
+
"@ditojs/router": "^2.1.1",
|
|
28
|
+
"@ditojs/utils": "^2.1.1",
|
|
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": "
|
|
91
|
+
"gitHead": "90bf14abf59293794f94d47c8866d9e85dd49ac8",
|
|
92
92
|
"scripts": {
|
|
93
93
|
"types": "tsc --noEmit --esModuleInterop ./types/index.d.ts"
|
|
94
94
|
},
|
|
@@ -218,8 +218,13 @@ export class AdminController extends Controller {
|
|
|
218
218
|
} else {
|
|
219
219
|
const module = id.match(
|
|
220
220
|
/node_modules\/((?:@[^/]*\/)?[^/$]*)/
|
|
221
|
-
)?.[1]
|
|
222
|
-
|
|
221
|
+
)?.[1]
|
|
222
|
+
// Internal ids (vite modules) don't come from
|
|
223
|
+
// node_modules, and the ids actually start with \0x00.
|
|
224
|
+
return (
|
|
225
|
+
!module ||
|
|
226
|
+
testModuleIdentifier(module, coreDependencies)
|
|
227
|
+
)
|
|
223
228
|
? 'core'
|
|
224
229
|
: 'vendor'
|
|
225
230
|
}
|
|
@@ -229,7 +234,8 @@ export class AdminController extends Controller {
|
|
|
229
234
|
})
|
|
230
235
|
},
|
|
231
236
|
css: {
|
|
232
|
-
postcss: getPostCssConfig()
|
|
237
|
+
postcss: getPostCssConfig(),
|
|
238
|
+
devSourcemap: development
|
|
233
239
|
},
|
|
234
240
|
optimizeDeps: {
|
|
235
241
|
exclude: development ? ditoPackages : [],
|
|
@@ -286,6 +292,7 @@ const coreDependencies = [
|
|
|
286
292
|
// a json file?
|
|
287
293
|
|
|
288
294
|
'vue',
|
|
295
|
+
'vue-demi',
|
|
289
296
|
'@vue/*',
|
|
290
297
|
'@vueuse/*',
|
|
291
298
|
'@lk77/vue3-color',
|
|
@@ -301,11 +308,12 @@ const coreDependencies = [
|
|
|
301
308
|
'prosemirror-*',
|
|
302
309
|
'linkifyjs',
|
|
303
310
|
'codeflask',
|
|
311
|
+
'nanoid',
|
|
304
312
|
'punycode',
|
|
305
313
|
'rope-sequence',
|
|
306
314
|
'filesize',
|
|
307
315
|
'filesize-parser',
|
|
308
|
-
'tslib',
|
|
316
|
+
'tslib', // ?
|
|
309
317
|
'orderedmap',
|
|
310
318
|
'w3c-keyname'
|
|
311
319
|
]
|