skill-base 2.0.1 → 2.0.3

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 +7 -7
  2. package/src/index.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-base",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Skill Base - 内网轻量版 Skill 管理平台",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -18,13 +18,13 @@
18
18
  "test": "node --test tests/**/*.test.js"
19
19
  },
20
20
  "dependencies": {
21
- "fastify": "^4.26.0",
22
- "@fastify/static": "^6.12.0",
23
- "@fastify/multipart": "^8.0.0",
24
- "@fastify/cookie": "^9.3.0",
25
- "@fastify/cors": "^9.0.0",
26
- "better-sqlite3": "^9.4.0",
21
+ "@fastify/cookie": "^11.0.2",
22
+ "@fastify/cors": "^11.2.0",
23
+ "@fastify/multipart": "^9.4.0",
24
+ "@fastify/static": "^9.0.0",
27
25
  "bcryptjs": "^2.4.3",
26
+ "better-sqlite3": "^12.8.0",
27
+ "fastify": "^5.8.4",
28
28
  "uuid": "^9.0.0"
29
29
  },
30
30
  "devDependencies": {
package/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const path = require('path');
2
2
  const fastify = require('fastify')({
3
- logger: true,
3
+ logger: false,
4
4
  // 设置 body 大小限制为 100MB(支持大 zip 上传)
5
5
  bodyLimit: 100 * 1024 * 1024
6
6
  });
@@ -80,7 +80,7 @@ async function start() {
80
80
  await fastify.listen({ port: PORT, host: HOST });
81
81
  console.log(`Skill Base server running at http://${HOST}:${PORT}`);
82
82
  } catch (err) {
83
- fastify.log.error(err);
83
+ console.error(err);
84
84
  process.exit(1);
85
85
  }
86
86
  }