xshell 1.0.211 → 1.0.213
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/net.browser.js +1 -1
- package/net.js +1 -1
- package/package.json +2 -2
package/net.browser.js
CHANGED
|
@@ -403,7 +403,7 @@ export class Remote {
|
|
|
403
403
|
on_error(error, websocket) {
|
|
404
404
|
// 使用者未定义 Remote 如何处理 error 时,一般来说直接忽略即可,因为 handlers 中报错了也会返回给对端
|
|
405
405
|
if (this.print)
|
|
406
|
-
console.log(error);
|
|
406
|
+
console.log(error && error instanceof WebSocketConnectionError ? error.message : error);
|
|
407
407
|
// 这里继续往上层抛没有太大意义,上面一般都是 websocket on_message 这些
|
|
408
408
|
}
|
|
409
409
|
/** 幂等,保证 websocket 已连接,否则抛出异常
|
package/net.js
CHANGED
|
@@ -635,7 +635,7 @@ export class Remote {
|
|
|
635
635
|
on_error(error, websocket) {
|
|
636
636
|
// 使用者未定义 Remote 如何处理 error 时,一般来说直接忽略即可,因为 handlers 中报错了也会返回给对端
|
|
637
637
|
if (this.print)
|
|
638
|
-
console.log(error);
|
|
638
|
+
console.log(error && error instanceof WebSocketConnectionError ? error.message : error);
|
|
639
639
|
// 这里继续往上层抛没有太大意义,上面一般都是 websocket on_message 这些
|
|
640
640
|
}
|
|
641
641
|
/** 幂等,保证 websocket 已连接,否则抛出异常
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.213",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"undici": "^7.1.0",
|
|
109
109
|
"vinyl": "^3.0.0",
|
|
110
110
|
"vinyl-fs": "^4.0.0",
|
|
111
|
-
"webpack": "^5.97.
|
|
111
|
+
"webpack": "^5.97.1",
|
|
112
112
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
113
113
|
"ws": "^8.18.0"
|
|
114
114
|
},
|