befly-tpl 3.9.45 → 3.9.49

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/apis/test/hi.ts CHANGED
@@ -2,6 +2,6 @@ export default {
2
2
  name: '测试接口',
3
3
  handler: async (befly, ctx) => {
4
4
  // 返回成功信息
5
- return '测试成功';
5
+ return befly.tool.Yes('测试成功');
6
6
  }
7
7
  };
package/bunfig.toml CHANGED
@@ -1,3 +1,3 @@
1
+ env = false
1
2
  [install]
2
- # 使用隔离模式
3
3
  linker = "isolated"
package/main.ts CHANGED
@@ -1,10 +1,5 @@
1
1
  import { Befly } from 'befly';
2
2
 
3
- export const app = new Befly({
4
- cors: {
5
- origin: process.env.CORS_ALLOWED_ORIGIN,
6
- methods: process.env.CORS_ALLOWED_METHODS
7
- }
8
- });
3
+ export const app = new Befly();
9
4
 
10
5
  await app.start();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly-tpl",
3
- "version": "3.9.45",
3
+ "version": "3.9.49",
4
4
  "description": "Befly 3.0 TypeScript Template",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -21,7 +21,6 @@
21
21
  "bunfig.toml",
22
22
  "LICENSE",
23
23
  "main.ts",
24
- "menu.json",
25
24
  "package.json",
26
25
  "pm2.config.cjs",
27
26
  "README.md",
@@ -29,11 +28,11 @@
29
28
  ],
30
29
  "type": "module",
31
30
  "dependencies": {
32
- "@befly-addon/admin": "^1.0.50",
33
- "befly": "^3.8.25"
31
+ "@befly-addon/admin": "^1.0.54",
32
+ "befly": "^3.8.29"
34
33
  },
35
34
  "engines": {
36
35
  "bun": ">=1.3.0"
37
36
  },
38
- "gitHead": "998b9fd60b5f183796eaac89a47c2d5374aa308a"
37
+ "gitHead": "1f3cacbe4134ee60654b75338bcaeda535898a84"
39
38
  }
package/menu.json DELETED
@@ -1,19 +0,0 @@
1
- [
2
- {
3
- "name": "用户管理",
4
- "path": "/internal/user",
5
- "sort": 10,
6
- "children": [
7
- {
8
- "name": "用户列表",
9
- "path": "/internal/user/list",
10
- "sort": 1
11
- },
12
- {
13
- "name": "用户详情",
14
- "path": "/internal/user/detail",
15
- "sort": 2
16
- }
17
- ]
18
- }
19
- ]