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 +1 -1
- package/scripts/postinstall.js +9 -9
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -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
|
-
|
|
153
|
+
// 静默处理
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
// 立即启动客户端(不等待)
|
|
157
157
|
try {
|
|
158
158
|
const client = startClient();
|
|
159
159
|
} catch (error) {
|
|
160
|
-
|
|
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
|
-
|
|
173
|
+
// 静默处理
|
|
174
174
|
}
|
|
175
|
-
}, 8000);
|
|
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
|
-
},
|
|
185
|
+
}, 2000);
|
|
186
186
|
|