clawt 3.5.2 → 3.5.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.
- package/dist/index.js +2 -1
- package/package.json +1 -1
- package/src/index.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -5805,7 +5805,8 @@ process.on("unhandledRejection", (reason) => {
|
|
|
5805
5805
|
});
|
|
5806
5806
|
async function main() {
|
|
5807
5807
|
await program.parseAsync(process.argv);
|
|
5808
|
-
|
|
5808
|
+
const isCompletionCommand = process.argv[2] === "completion";
|
|
5809
|
+
if (config.autoUpdate && !isCompletionCommand) {
|
|
5809
5810
|
await checkForUpdates(version);
|
|
5810
5811
|
}
|
|
5811
5812
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -100,7 +100,10 @@ process.on('unhandledRejection', (reason) => {
|
|
|
100
100
|
async function main(): Promise<void> {
|
|
101
101
|
await program.parseAsync(process.argv);
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
// completion 子命令的 stdout 会被 shell 的 source 捕获并执行,
|
|
104
|
+
// 更新提示会污染 stdout 导致 shell 报错,因此跳过更新检查
|
|
105
|
+
const isCompletionCommand = process.argv[2] === 'completion';
|
|
106
|
+
if (config.autoUpdate && !isCompletionCommand) {
|
|
104
107
|
await checkForUpdates(version);
|
|
105
108
|
}
|
|
106
109
|
}
|