@zzp123/mcp-zentao 1.18.5 → 1.18.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.
- package/CHANGELOG.md +18 -0
- package/json-args.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.18.6] - 2025-01-17
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **彻底清除所有 console 输出** 🔧
|
|
12
|
+
- 修复 `json-args.js` 中残留的 3 处 `console.error`
|
|
13
|
+
- 将所有错误输出改为 `process.stderr.write`
|
|
14
|
+
- 确保发布到 npm 的所有文件都不使用 console
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- `json-args.js` 错误处理统一使用 stderr 输出
|
|
18
|
+
- 错误消息格式统一为 `[ERROR]` 前缀
|
|
19
|
+
|
|
20
|
+
### Verification
|
|
21
|
+
- ✅ Source files (src/): 0 console statements
|
|
22
|
+
- ✅ Compiled files (dist/): 0 console statements
|
|
23
|
+
- ✅ Helper scripts (json-args.js): 0 console statements
|
|
24
|
+
- ✅ 100% console-free package
|
|
25
|
+
|
|
8
26
|
## [1.18.5] - 2025-01-17
|
|
9
27
|
|
|
10
28
|
### Fixed
|
package/json-args.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
const jsonArg = process.argv[2];
|
|
5
5
|
|
|
6
6
|
if (!jsonArg) {
|
|
7
|
-
|
|
7
|
+
process.stderr.write('[ERROR] 请提供 JSON 参数\n');
|
|
8
8
|
process.exit(1);
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -18,10 +18,10 @@ try {
|
|
|
18
18
|
module.default(params);
|
|
19
19
|
})
|
|
20
20
|
.catch(error => {
|
|
21
|
-
|
|
21
|
+
process.stderr.write('[ERROR] 执行失败: ' + String(error) + '\n');
|
|
22
22
|
process.exit(1);
|
|
23
23
|
});
|
|
24
24
|
} catch (error) {
|
|
25
|
-
|
|
25
|
+
process.stderr.write('[ERROR] JSON 解析失败: ' + String(error) + '\n');
|
|
26
26
|
process.exit(1);
|
|
27
27
|
}
|