xshell 1.0.34 → 1.0.35

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 (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
package/server.js CHANGED
@@ -244,7 +244,7 @@ export class Server {
244
244
  response.body = Readable.fromWeb(response_.body);
245
245
  }
246
246
  catch (error) {
247
- if (error.status !== 404)
247
+ if (error.response?.status !== 404)
248
248
  console.log(error);
249
249
  if (error.response) {
250
250
  const { status, headers, text } = error.response;