xshell 1.0.35 → 1.0.37

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -45,9 +45,9 @@
45
45
  ]
46
46
  },
47
47
  "dependencies": {
48
- "@babel/core": "^7.22.6",
49
- "@babel/parser": "^7.22.6",
50
- "@babel/traverse": "^7.22.6",
48
+ "@babel/core": "^7.22.8",
49
+ "@babel/parser": "^7.22.7",
50
+ "@babel/traverse": "^7.22.8",
51
51
  "@koa/cors": "^4.0.0",
52
52
  "@types/ws": "^8.5.5",
53
53
  "byte-size": "^8.1.1",
@@ -62,7 +62,7 @@
62
62
  "fs-extra": "^11.1.1",
63
63
  "gulp-sort": "^2.0.0",
64
64
  "hash-string": "^1.0.0",
65
- "i18next": "^23.2.7",
65
+ "i18next": "^23.2.8",
66
66
  "i18next-scanner": "^4.2.0",
67
67
  "js-cookie": "^3.0.5",
68
68
  "koa": "^2.14.2",
@@ -97,13 +97,13 @@
97
97
  "@types/koa": "^2.13.6",
98
98
  "@types/koa-compress": "^4.0.3",
99
99
  "@types/lodash": "^4.14.195",
100
- "@types/node": "^20.3.3",
100
+ "@types/node": "^20.4.1",
101
101
  "@types/qs": "^6.9.7",
102
102
  "@types/react": "^18.2.14",
103
103
  "@types/through2": "^2.0.38",
104
104
  "@types/tough-cookie": "^4.0.2",
105
105
  "@types/vinyl-fs": "^3.0.2",
106
- "@types/vscode": "^1.79.1",
106
+ "@types/vscode": "^1.80.0",
107
107
  "@typescript-eslint/eslint-plugin": "^5.61.0",
108
108
  "@typescript-eslint/parser": "^5.61.0",
109
109
  "eslint": "^8.44.0",
package/server.js CHANGED
@@ -241,18 +241,24 @@ export class Server {
241
241
  });
242
242
  response.status = response_.status;
243
243
  response.set(Server.filter_response_headers(response_.headers));
244
- response.body = Readable.fromWeb(response_.body);
244
+ if (response_.body)
245
+ response.body = Readable.fromWeb(response_.body);
245
246
  }
246
247
  catch (error) {
247
248
  if (error.response?.status !== 404)
248
249
  console.log(error);
249
250
  if (error.response) {
250
251
  const { status, headers, text } = error.response;
252
+ if (status === 404)
253
+ console.log(method, '404:', url);
254
+ else
255
+ console.log(error);
251
256
  response.status = status;
252
257
  response.set(Server.filter_response_headers(headers));
253
258
  response.body = text;
254
259
  }
255
260
  else {
261
+ console.log(error);
256
262
  response.status = 500;
257
263
  response.body = inspect(error, { colors: false });
258
264
  }
package/tsconfig.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "importHelpers": true,
19
19
 
20
20
  "incremental": true,
21
- "tsBuildInfoFile": "t:/1/xsh/.tsbuildinfo",
21
+ "tsBuildInfoFile": "T:/1/xsh/.tsbuildinfo",
22
22
 
23
23
 
24
24
  // --- emit
@@ -34,7 +34,7 @@
34
34
 
35
35
  // --- features
36
36
  "preserveSymlinks": false,
37
- "jsx": "react",
37
+ "jsx": "react-jsx",
38
38
  "removeComments": false,
39
39
  "preserveConstEnums": true,
40
40
  "forceConsistentCasingInFileNames": true,