xshell 1.2.49 → 1.2.50

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.d.ts CHANGED
@@ -15,6 +15,9 @@ export declare enum MyProxy {
15
15
  whistle = "http://localhost:8899",
16
16
  work = "http://localhost:10090"
17
17
  }
18
+ export declare const byproxy: {
19
+ readonly proxy: true;
20
+ };
18
21
  export declare const cookies: {
19
22
  store: MemoryCookieStore;
20
23
  jar: CookieJar;
@@ -297,5 +300,5 @@ export declare class RemoteClient {
297
300
  [inspect.custom](): {
298
301
  remote: string;
299
302
  websocket: string;
300
- } & Omit<this, "websocket" | typeof import("util").inspect.custom | "call" | "remote" | "send">;
303
+ } & Omit<this, typeof import("util").inspect.custom | "call" | "websocket" | "remote" | "send">;
301
304
  }
package/net.js CHANGED
@@ -16,6 +16,7 @@ export var MyProxy;
16
16
  MyProxy["whistle"] = "http://localhost:8899";
17
17
  MyProxy["work"] = "http://localhost:10090";
18
18
  })(MyProxy || (MyProxy = {}));
19
+ export const byproxy = { proxy: true };
19
20
  // ------------------------------------ fetch, request
20
21
  export const cookies = {
21
22
  store: null,
@@ -107,7 +108,7 @@ export async function request(url, options = {}) {
107
108
  let headers = {
108
109
  'accept-language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,ja-JP;q=0.6,ja;q=0.5',
109
110
  'accept-encoding': 'gzip, deflate, br',
110
- 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36',
111
+ 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36',
111
112
  'sec-ch-ua-platform': '"Windows"',
112
113
  'sec-ch-ua-platform-version': '"19.0.0"',
113
114
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.2.49",
3
+ "version": "1.2.50",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -49,9 +49,9 @@
49
49
  ]
50
50
  },
51
51
  "dependencies": {
52
- "@babel/core": "^7.27.4",
53
- "@babel/parser": "^7.27.5",
54
- "@babel/traverse": "^7.27.4",
52
+ "@babel/core": "^7.27.7",
53
+ "@babel/parser": "^7.27.7",
54
+ "@babel/traverse": "^7.27.7",
55
55
  "@koa/cors": "^5.0.0",
56
56
  "@stylistic/eslint-plugin": "^5.0.0",
57
57
  "@svgr/webpack": "^8.1.0",
@@ -65,7 +65,7 @@
65
65
  "commander": "^14.0.0",
66
66
  "css-loader": "^7.1.2",
67
67
  "emoji-regex": "^10.4.0",
68
- "eslint": "^9.29.0",
68
+ "eslint": "^9.30.0",
69
69
  "eslint-plugin-import": "^2.32.0",
70
70
  "eslint-plugin-react": "^7.37.5",
71
71
  "https-proxy-agent": "^7.0.6",
@@ -78,7 +78,6 @@
78
78
  "mime-types": "^3.0.1",
79
79
  "react": "^19.1.0",
80
80
  "react-i18next": "^15.5.3",
81
- "react-object-model": "^1.2.24",
82
81
  "resolve-path": "^1.4.0",
83
82
  "sass": "^1.89.2",
84
83
  "sass-loader": "^16.0.5",
@@ -90,13 +89,13 @@
90
89
  "tslib": "^2.8.1",
91
90
  "typescript": "^5.8.3",
92
91
  "ua-parser-js": "^2.0.4",
93
- "undici": "^7.10.0",
92
+ "undici": "^7.11.0",
94
93
  "webpack": "^5.99.9",
95
94
  "webpack-bundle-analyzer": "^4.10.2",
96
95
  "ws": "^8.18.2"
97
96
  },
98
97
  "devDependencies": {
99
- "@babel/types": "^7.27.6",
98
+ "@babel/types": "^7.27.7",
100
99
  "@types/archiver": "^6.0.3",
101
100
  "@types/babel__traverse": "^7.20.7",
102
101
  "@types/eslint": "^9.6.1",
@@ -104,7 +103,7 @@
104
103
  "@types/koa": "^2.15.0",
105
104
  "@types/koa-compress": "^4.0.6",
106
105
  "@types/mime-types": "^3.0.1",
107
- "@types/node": "^24.0.4",
106
+ "@types/node": "^24.0.6",
108
107
  "@types/react": "^19.1.8",
109
108
  "@types/tough-cookie": "^4.0.5",
110
109
  "@types/ua-parser-js": "^0.7.39",
@@ -1533,9 +1533,8 @@
1533
1533
  } finally {
1534
1534
  setCurrentFiber(previousFiber);
1535
1535
  }
1536
- throw Error(
1537
- "runWithFiberInDEV should never be called in production. This is a bug in React."
1538
- );
1536
+ // removed by dead control flow
1537
+ {}
1539
1538
  }
1540
1539
  function setCurrentFiber(fiber) {
1541
1540
  ReactSharedInternals.getCurrentStack =
@@ -25462,17 +25461,12 @@ function checkDCE() {
25462
25461
  // a false positive.
25463
25462
  throw new Error('^_^');
25464
25463
  }
25465
- try {
25466
- // Verify that the code above has been dead code eliminated (DCE'd).
25467
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
25468
- } catch (err) {
25469
- // DevTools shouldn't crash React, no matter what.
25470
- // We should still report in case we break this code.
25471
- console.error(err);
25472
- }
25464
+ // removed by dead control flow
25465
+ {}
25473
25466
  }
25474
25467
 
25475
- if (false) {} else {
25468
+ if (false) // removed by dead control flow
25469
+ {} else {
25476
25470
  module.exports = __webpack_require__(/*! ./cjs/react-dom-client.development.js */ "./node_modules/.pnpm/react-dom@19.1.0_react@19.1.0/node_modules/react-dom/cjs/react-dom-client.development.js");
25477
25471
  }
25478
25472
 
@@ -25505,17 +25499,12 @@ function checkDCE() {
25505
25499
  // a false positive.
25506
25500
  throw new Error('^_^');
25507
25501
  }
25508
- try {
25509
- // Verify that the code above has been dead code eliminated (DCE'd).
25510
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
25511
- } catch (err) {
25512
- // DevTools shouldn't crash React, no matter what.
25513
- // We should still report in case we break this code.
25514
- console.error(err);
25515
- }
25502
+ // removed by dead control flow
25503
+ {}
25516
25504
  }
25517
25505
 
25518
- if (false) {} else {
25506
+ if (false) // removed by dead control flow
25507
+ {} else {
25519
25508
  module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "./node_modules/.pnpm/react-dom@19.1.0_react@19.1.0/node_modules/react-dom/cjs/react-dom.development.js");
25520
25509
  }
25521
25510
 
@@ -27151,7 +27140,8 @@ if (false) {} else {
27151
27140
 
27152
27141
 
27153
27142
 
27154
- if (false) {} else {
27143
+ if (false) // removed by dead control flow
27144
+ {} else {
27155
27145
  module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "./node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js");
27156
27146
  }
27157
27147
 
@@ -27166,7 +27156,8 @@ if (false) {} else {
27166
27156
 
27167
27157
 
27168
27158
 
27169
- if (false) {} else {
27159
+ if (false) // removed by dead control flow
27160
+ {} else {
27170
27161
  module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "./node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js");
27171
27162
  }
27172
27163
 
@@ -27555,7 +27546,8 @@ if (false) {} else {
27555
27546
 
27556
27547
 
27557
27548
 
27558
- if (false) {} else {
27549
+ if (false) // removed by dead control flow
27550
+ {} else {
27559
27551
  module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "./node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.development.js");
27560
27552
  }
27561
27553