chanjs 1.2.3 → 1.2.4

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.
Files changed (2) hide show
  1. package/core/helper.js +6 -1
  2. package/package.json +3 -2
package/core/helper.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import knex from 'knex';
2
+ import merge from 'deepmerge';
2
3
 
3
4
  /**
4
5
  * @description 实例化一个类,并将该类的所有方法绑定到一个新的对象上。
@@ -97,4 +98,8 @@ export const zodValidator = (schemas) => (req, res, next) => {
97
98
  req[key] = result.data;
98
99
  }
99
100
  next();
100
- };
101
+ };
102
+
103
+
104
+ // 重新导出 deepmerge 的命名导出
105
+ export { default as merge } from 'deepmerge';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "chanjs",
4
- "version": "1.2.3",
4
+ "version": "1.2.4",
5
5
  "description": "chanjs基于express5 纯js研发的轻量级mvc框架。",
6
6
  "main": "index.js",
7
7
  "module": "index.js",
@@ -29,6 +29,7 @@
29
29
  "knex": "^3.1.0",
30
30
  "morgan": "^1.10.0",
31
31
  "mysql2": "^3.14.1",
32
- "schedule": "^0.5.0"
32
+ "schedule": "^0.5.0",
33
+ "deepmerge": "^4.3.1"
33
34
  }
34
35
  }