xshell 1.2.1 → 1.2.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/net.browser.js +1 -1
- package/net.js +1 -1
- package/package.json +1 -1
package/net.browser.js
CHANGED
|
@@ -451,9 +451,9 @@ export class Remote {
|
|
|
451
451
|
使用 Uint8Array 作为参数更灵活 https://stackoverflow.com/a/74505197/7609214
|
|
452
452
|
这个方法一般不会抛出错误,也不需要 await,一般在 websocket on_message 时使用 */
|
|
453
453
|
async handle(data, websocket) {
|
|
454
|
-
check(data[0] === 0xcc, 'message 格式错误');
|
|
455
454
|
let message;
|
|
456
455
|
try {
|
|
456
|
+
check(data[0] === 0xcc, 'message 格式错误');
|
|
457
457
|
message = parse(data);
|
|
458
458
|
}
|
|
459
459
|
catch (error) {
|
package/net.js
CHANGED
|
@@ -636,9 +636,9 @@ export class Remote {
|
|
|
636
636
|
使用 Uint8Array 作为参数更灵活 https://stackoverflow.com/a/74505197/7609214
|
|
637
637
|
这个方法一般不会抛出错误,也不需要 await,一般在 websocket on_message 时使用 */
|
|
638
638
|
async handle(data, websocket) {
|
|
639
|
-
check(data[0] === 0xcc, 'message 格式错误');
|
|
640
639
|
let message;
|
|
641
640
|
try {
|
|
641
|
+
check(data[0] === 0xcc, 'message 格式错误');
|
|
642
642
|
message = parse(data);
|
|
643
643
|
}
|
|
644
644
|
catch (error) {
|