@ditojs/server 2.7.0 → 2.7.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.7.0",
3
+ "version": "2.7.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.7.0",
25
+ "@ditojs/admin": "^2.7.2",
26
26
  "@ditojs/build": "^2.5.0",
27
- "@ditojs/router": "^2.7.0",
28
- "@ditojs/utils": "^2.7.0",
27
+ "@ditojs/router": "^2.7.1",
28
+ "@ditojs/utils": "^2.7.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": "874c68d5807ba97b67867f6b8d13f8fcb4990533",
91
+ "gitHead": "1e84bcce13c988b1d388c128e6adf6ad9cb5517f",
92
92
  "scripts": {
93
93
  "types": "tsc --noEmit --esModuleInterop ./types/index.d.ts"
94
94
  },
@@ -26,7 +26,7 @@ import {
26
26
  isModule,
27
27
  hyphenate,
28
28
  clone,
29
- merge,
29
+ assignDeeply,
30
30
  parseDataPath,
31
31
  normalizeDataPath,
32
32
  toPromiseCallback,
@@ -86,8 +86,8 @@ export class Application extends Koa {
86
86
  log === false || log?.silent || process.env.DITO_SILENT
87
87
  ? {}
88
88
  : getOptions(log),
89
- assets: merge(defaultAssetOptions, getOptions(assets)),
90
- logger: merge(defaultLoggerOptions, getOptions(logger)),
89
+ assets: assignDeeply(defaultAssetOptions, getOptions(assets)),
90
+ logger: assignDeeply(defaultLoggerOptions, getOptions(logger)),
91
91
  ...rest
92
92
  }
93
93
  this.keys = keys
@@ -586,7 +586,7 @@ export class Application extends Koa {
586
586
  if (app.compress !== false) {
587
587
  this.use(
588
588
  compress(
589
- merge(
589
+ assignDeeply(
590
590
  {
591
591
  // Use a reasonable default for Brotli compression.
592
592
  // See https://github.com/koajs/compress/issues/126
@@ -5,7 +5,7 @@ import { defineConfig, createServer } from 'vite'
5
5
  import createVuePlugin from '@vitejs/plugin-vue'
6
6
  import { viteCommonjs as createCommonJsPlugin } from '@originjs/vite-plugin-commonjs'
7
7
  import { testModuleIdentifier, getPostCssConfig } from '@ditojs/build'
8
- import { merge, deprecate } from '@ditojs/utils'
8
+ import { assignDeeply, deprecate } from '@ditojs/utils'
9
9
  import { Controller } from './Controller.js'
10
10
  import { handleConnectMiddleware } from '../middleware/index.js'
11
11
  import { ControllerError } from '../errors/index.js'
@@ -179,7 +179,7 @@ export class AdminController extends Controller {
179
179
  const views = path.join(root, 'views')
180
180
 
181
181
  return defineConfig(
182
- merge(
182
+ assignDeeply(
183
183
  {
184
184
  root,
185
185
  base,
@@ -6,12 +6,12 @@ import {
6
6
  isFunction,
7
7
  isPromise,
8
8
  asArray,
9
- merge,
10
9
  flatten,
11
10
  parseDataPath,
12
11
  normalizeDataPath,
13
12
  getValueAtDataPath,
14
- mapConcurrently
13
+ mapConcurrently,
14
+ assignDeeply
15
15
  } from '@ditojs/utils'
16
16
  import { QueryBuilder } from '../query/index.js'
17
17
  import { EventEmitter, KnexHelper } from '../lib/index.js'
@@ -391,7 +391,7 @@ export class Model extends objection.Model {
391
391
  })
392
392
  addRelationSchemas(this, schema.properties)
393
393
  // Merge in root-level schema additions
394
- merge(schema, this.definition.schema)
394
+ assignDeeply(schema, this.definition.schema)
395
395
  return {
396
396
  $id: this.name,
397
397
  ...schema