xshell 1.2.1 → 1.2.3

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.
Files changed (3) hide show
  1. package/net.browser.js +1 -1
  2. package/net.js +1 -1
  3. package/package.json +22 -22
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -50,16 +50,16 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@babel/core": "^7.26.0",
53
- "@babel/parser": "^7.26.3",
54
- "@babel/traverse": "^7.26.4",
53
+ "@babel/parser": "^7.26.5",
54
+ "@babel/traverse": "^7.26.5",
55
55
  "@koa/cors": "^5.0.0",
56
- "@stylistic/eslint-plugin": "^2.12.1",
56
+ "@stylistic/eslint-plugin": "^2.13.0",
57
57
  "@svgr/webpack": "^8.1.0",
58
58
  "@types/sass-loader": "^8.0.9",
59
59
  "@types/ws": "^8.5.13",
60
- "@typescript-eslint/eslint-plugin": "^8.18.2",
61
- "@typescript-eslint/parser": "^8.18.2",
62
- "@typescript-eslint/utils": "^8.18.2",
60
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
61
+ "@typescript-eslint/parser": "^8.20.0",
62
+ "@typescript-eslint/utils": "^8.20.0",
63
63
  "@xterm/addon-fit": "^0.10.0",
64
64
  "@xterm/addon-web-links": "^0.11.0",
65
65
  "@xterm/addon-webgl": "^0.18.0",
@@ -70,16 +70,16 @@
70
70
  "cli-table3": "^0.6.5",
71
71
  "cli-truncate": "^4.0.0",
72
72
  "colors": "^1.4.0",
73
- "commander": "^12.1.0",
73
+ "commander": "^13.0.0",
74
74
  "css-loader": "^7.1.2",
75
75
  "emoji-regex": "^10.4.0",
76
- "eslint": "^9.17.0",
76
+ "eslint": "^9.18.0",
77
77
  "eslint-plugin-import": "^2.31.0",
78
- "eslint-plugin-react": "^7.37.3",
78
+ "eslint-plugin-react": "^7.37.4",
79
79
  "gulp-sort": "^2.0.0",
80
80
  "hash-string": "^1.0.0",
81
81
  "https-proxy-agent": "^7.0.6",
82
- "i18next": "^24.2.0",
82
+ "i18next": "^24.2.1",
83
83
  "i18next-scanner": "^4.6.0",
84
84
  "koa": "^2.15.3",
85
85
  "koa-compress": "^5.1.1",
@@ -89,21 +89,21 @@
89
89
  "mime-types": "^2.1.35",
90
90
  "ora": "^8.1.1",
91
91
  "react": "^19.0.0",
92
- "react-i18next": "^15.3.0",
92
+ "react-i18next": "^15.4.0",
93
93
  "react-object-model": "^1.2.21",
94
94
  "resolve-path": "^1.4.0",
95
- "sass": "^1.83.0",
95
+ "sass": "^1.83.4",
96
96
  "sass-loader": "^16.0.4",
97
97
  "source-map-loader": "^5.0.0",
98
98
  "strip-ansi": "^7.1.0",
99
99
  "style-loader": "^4.0.0",
100
100
  "through2": "^4.0.2",
101
- "tough-cookie": "^5.0.0",
102
- "ts-loader": "^9.5.1",
101
+ "tough-cookie": "^5.1.0",
102
+ "ts-loader": "^9.5.2",
103
103
  "tslib": "^2.8.1",
104
- "typescript": "^5.7.2",
104
+ "typescript": "^5.7.3",
105
105
  "ua-parser-js": "^2.0.0",
106
- "undici": "^7.2.0",
106
+ "undici": "^7.2.1",
107
107
  "vinyl": "^3.0.0",
108
108
  "vinyl-fs": "^4.0.0",
109
109
  "webpack": "^5.97.1",
@@ -111,19 +111,19 @@
111
111
  "ws": "^8.18.0"
112
112
  },
113
113
  "devDependencies": {
114
- "@babel/types": "^7.26.3",
114
+ "@babel/types": "^7.26.5",
115
115
  "@types/archiver": "^6.0.3",
116
116
  "@types/babel__traverse": "^7.20.6",
117
- "@types/chardet": "^0.8.3",
117
+ "@types/chardet": "^1.0.0",
118
118
  "@types/eslint": "^9.6.1",
119
119
  "@types/estree": "^1.0.6",
120
120
  "@types/gulp-sort": "^2.0.4",
121
121
  "@types/koa": "^2.15.0",
122
122
  "@types/koa-compress": "^4.0.6",
123
- "@types/lodash": "^4.17.13",
123
+ "@types/lodash": "^4.17.14",
124
124
  "@types/mime-types": "^2.1.4",
125
- "@types/node": "^22.10.2",
126
- "@types/react": "^19.0.2",
125
+ "@types/node": "^22.10.6",
126
+ "@types/react": "^19.0.7",
127
127
  "@types/through2": "^2.0.41",
128
128
  "@types/tough-cookie": "^4.0.5",
129
129
  "@types/ua-parser-js": "^0.7.39",