@opentapd/tplugin-cli 0.36.0 → 0.36.1-alpha.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/lib/serve.js +4 -2
- package/package.json +3 -3
package/lib/serve.js
CHANGED
|
@@ -180,8 +180,10 @@ class WebsocketClient {
|
|
|
180
180
|
const session = new Session();
|
|
181
181
|
const userId = session.getConfig('token');
|
|
182
182
|
this.nodeClient = new ws.WebSocket(`${tpluginConf.tapd.upgradeWebsocketHost}/node/${userId}`);
|
|
183
|
-
this.nodeClient.on('error', (
|
|
184
|
-
spinner.fail(
|
|
183
|
+
this.nodeClient.on('error', (error) => {
|
|
184
|
+
spinner.fail(`热更新服务: web socket ${tpluginConf.tapd.upgradeWebsocketHost}/node/${userId} 报错: ${error};
|
|
185
|
+
执行栈: ${error.stack}
|
|
186
|
+
`);
|
|
185
187
|
});
|
|
186
188
|
const defaultPort = 8889;
|
|
187
189
|
this.nodeClient.on('open', async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentapd/tplugin-cli",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.1-alpha.1",
|
|
4
4
|
"description": "tplugin-cli",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tplugin-cli": "index.js"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"author": "",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@opentapd/tplugin-core": "^1.23.0",
|
|
29
|
+
"@opentapd/tplugin-core": "^1.23.1-alpha.0",
|
|
30
30
|
"address": "^1.2.2",
|
|
31
31
|
"archiver": "^5.3.1",
|
|
32
32
|
"axios": "^0.21.1",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"node": ">=14.13.0"
|
|
79
79
|
},
|
|
80
80
|
"main": "index.js",
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "078395e74e27de557777256cefb90022ddb41374"
|
|
82
82
|
}
|