befly 2.0.5 → 2.0.6

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/package.json +2 -2
  2. package/plugins/db.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Buma - 为 Bun 专属打造的 API 接口框架核心引擎",
5
5
  "type": "module",
6
6
  "private": false,
@@ -51,5 +51,5 @@
51
51
  "README.md",
52
52
  "vitest.config.js"
53
53
  ],
54
- "gitHead": "72cd6275bd279f0b2ef552ab4b8d60e8defd777b"
54
+ "gitHead": "01b8d370987fec610d22c1138fbd1298671da08b"
55
55
  }
package/plugins/db.js CHANGED
@@ -31,7 +31,10 @@ export default {
31
31
  // 重连设置
32
32
  reconnect: true,
33
33
  // 避免连接超时
34
- keepAliveDelay: 30000
34
+ keepAliveDelay: 30000,
35
+ insertIdAsNumber: true,
36
+ decimalAsNumber: true,
37
+ bigIntAsNumber: true
35
38
  };
36
39
 
37
40
  // 创建连接池