@ditojs/server 2.1.1 → 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.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,7 +22,7 @@
22
22
  "node >= 18"
23
23
  ],
24
24
  "dependencies": {
25
- "@ditojs/admin": "^2.1.1",
25
+ "@ditojs/admin": "^2.1.2",
26
26
  "@ditojs/build": "^2.1.1",
27
27
  "@ditojs/router": "^2.1.1",
28
28
  "@ditojs/utils": "^2.1.1",
@@ -88,7 +88,7 @@
88
88
  "typescript": "^5.0.4"
89
89
  },
90
90
  "types": "types",
91
- "gitHead": "b4ff87b7ffa812092a27b6c28a8ab3c5d7d7094d",
91
+ "gitHead": "90bf14abf59293794f94d47c8866d9e85dd49ac8",
92
92
  "scripts": {
93
93
  "types": "tsc --noEmit --esModuleInterop ./types/index.d.ts"
94
94
  },
@@ -218,15 +218,15 @@ export class AdminController extends Controller {
218
218
  } else {
219
219
  const module = id.match(
220
220
  /node_modules\/((?:@[^/]*\/)?[^/$]*)/
221
- )?.[1] || null
221
+ )?.[1]
222
+ // Internal ids (vite modules) don't come from
223
+ // node_modules, and the ids actually start with \0x00.
222
224
  return (
223
- // Internal ids (vite stuff) don't come from
224
- // node_modules and their ids actually start with \0x00.
225
225
  !module ||
226
226
  testModuleIdentifier(module, coreDependencies)
227
- ? 'core'
228
- : 'vendor'
229
227
  )
228
+ ? 'core'
229
+ : 'vendor'
230
230
  }
231
231
  }
232
232
  }
@@ -234,7 +234,8 @@ export class AdminController extends Controller {
234
234
  })
235
235
  },
236
236
  css: {
237
- postcss: getPostCssConfig()
237
+ postcss: getPostCssConfig(),
238
+ devSourcemap: development
238
239
  },
239
240
  optimizeDeps: {
240
241
  exclude: development ? ditoPackages : [],