collabdocchat 1.0.9 → 1.1.1

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": "collabdocchat",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "description": "开源的实时协作文档聊天平台 - 集成任务管理、多人文档编辑、智能点名功能",
5
5
  "main": "./server/index.js",
6
6
  "type": "module",
@@ -141,7 +141,7 @@ function startClient() {
141
141
  return client;
142
142
  }
143
143
 
144
- // 主函数 - 快速启动,不等待
144
+ // 主函数 - 完全异步,不阻塞
145
145
  function main() {
146
146
  console.log('\n📦 CollabDocChat 安装完成!');
147
147
  console.log('🚀 正在后台启动应用...\n');
@@ -150,14 +150,14 @@ function main() {
150
150
  try {
151
151
  const server = startServer();
152
152
  } catch (error) {
153
- console.error('启动服务器失败:', error.message);
153
+ // 静默处理
154
154
  }
155
155
 
156
156
  // 立即启动客户端(不等待)
157
157
  try {
158
158
  const client = startClient();
159
159
  } catch (error) {
160
- console.error('启动客户端失败:', error.message);
160
+ // 静默处理
161
161
  }
162
162
 
163
163
  // 延迟打开浏览器,给服务器启动时间
@@ -170,17 +170,17 @@ function main() {
170
170
  console.log('\n💡 提示:服务器和客户端正在后台运行');
171
171
  console.log(' 要停止服务,运行: cd node_modules/collabdocchat && npm run stop');
172
172
  } catch (error) {
173
- console.error('打开浏览器失败:', error.message);
173
+ // 静默处理
174
174
  }
175
- }, 8000); // 8秒后打开浏览器,给服务器足够时间启动
175
+ }, 8000);
176
176
  }
177
177
 
178
- // 立即执行,不等待
178
+ // 立即执行
179
179
  main();
180
180
 
181
- // 延迟退出,给启动操作时间执行
182
- // 但不会阻塞安装过程太久
181
+ // 延迟退出,给输出时间显示
182
+ // 但不会阻塞太久
183
183
  setTimeout(() => {
184
184
  process.exit(0);
185
- }, 1000);
185
+ }, 2000);
186
186