huoxingren 0.1.1 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huoxingren",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "火星人范式助学平台 CLI - 训练进度管理工具",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,10 +26,10 @@ export async function login(opts) {
26
26
  res.writeHead(302, { Location: dashboardUrl });
27
27
  res.end();
28
28
  console.log('✔ 登录成功!凭证已保存到 ~/.huoxingren/config.json');
29
- server.close(() => {
30
- resolve();
31
- process.exit(0);
32
- });
29
+ server.closeAllConnections();
30
+ server.close();
31
+ resolve();
32
+ setTimeout(() => process.exit(0), 200);
33
33
  } else {
34
34
  res.writeHead(400, { 'Content-Type': 'text/plain; charset=utf-8' });
35
35
  res.end('缺少 token');
package/src/index.js CHANGED
@@ -13,7 +13,7 @@ const program = new Command();
13
13
  program
14
14
  .name('huoxingren')
15
15
  .description('火星人范式助学平台 CLI')
16
- .version('0.1.1');
16
+ .version('0.1.2');
17
17
 
18
18
  program
19
19
  .command('login')