xshell 1.2.48 → 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 +4 -1
- package/net.js +2 -1
- package/package.json +17 -18
- package/prototype.browser.d.ts +1 -1
- package/prototype.browser.js +5 -5
- package/prototype.d.ts +1 -1
- package/prototype.js +5 -5
- package/react.development.js +16 -24
- package/react.development.js.map +1 -1
- package/react.production.js +15936 -15929
- package/react.production.js.map +1 -1
- package/utils.browser.js +3 -3
- package/utils.js +3 -3
- package/xlint.js +1 -1
- package/Terminal.d.ts +0 -19
- package/Terminal.js +0 -98
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,
|
|
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/
|
|
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.
|
|
3
|
+
"version": "1.2.50",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -49,24 +49,24 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@babel/core": "^7.27.
|
|
53
|
-
"@babel/parser": "^7.27.
|
|
54
|
-
"@babel/traverse": "^7.27.
|
|
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
|
-
"@stylistic/eslint-plugin": "^
|
|
56
|
+
"@stylistic/eslint-plugin": "^5.0.0",
|
|
57
57
|
"@svgr/webpack": "^8.1.0",
|
|
58
58
|
"@types/sass-loader": "^8.0.9",
|
|
59
59
|
"@types/ws": "^8.18.1",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
61
|
-
"@typescript-eslint/parser": "^8.
|
|
62
|
-
"@typescript-eslint/utils": "^8.
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.35.0",
|
|
61
|
+
"@typescript-eslint/parser": "^8.35.0",
|
|
62
|
+
"@typescript-eslint/utils": "^8.35.0",
|
|
63
63
|
"archiver": "^7.0.1",
|
|
64
64
|
"chalk": "^5.4.1",
|
|
65
65
|
"commander": "^14.0.0",
|
|
66
66
|
"css-loader": "^7.1.2",
|
|
67
67
|
"emoji-regex": "^10.4.0",
|
|
68
|
-
"eslint": "^9.
|
|
69
|
-
"eslint-plugin-import": "^2.
|
|
68
|
+
"eslint": "^9.30.0",
|
|
69
|
+
"eslint-plugin-import": "^2.32.0",
|
|
70
70
|
"eslint-plugin-react": "^7.37.5",
|
|
71
71
|
"https-proxy-agent": "^7.0.6",
|
|
72
72
|
"i18next": "^25.2.1",
|
|
@@ -77,8 +77,7 @@
|
|
|
77
77
|
"map-stream": "^0.0.7",
|
|
78
78
|
"mime-types": "^3.0.1",
|
|
79
79
|
"react": "^19.1.0",
|
|
80
|
-
"react-i18next": "^15.5.
|
|
81
|
-
"react-object-model": "^1.2.24",
|
|
80
|
+
"react-i18next": "^15.5.3",
|
|
82
81
|
"resolve-path": "^1.4.0",
|
|
83
82
|
"sass": "^1.89.2",
|
|
84
83
|
"sass-loader": "^16.0.5",
|
|
@@ -89,14 +88,14 @@
|
|
|
89
88
|
"ts-loader": "^9.5.2",
|
|
90
89
|
"tslib": "^2.8.1",
|
|
91
90
|
"typescript": "^5.8.3",
|
|
92
|
-
"ua-parser-js": "^2.0.
|
|
93
|
-
"undici": "^7.
|
|
91
|
+
"ua-parser-js": "^2.0.4",
|
|
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.
|
|
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,11 +103,11 @@
|
|
|
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.
|
|
108
|
-
"@types/react": "^19.1.
|
|
106
|
+
"@types/node": "^24.0.6",
|
|
107
|
+
"@types/react": "^19.1.8",
|
|
109
108
|
"@types/tough-cookie": "^4.0.5",
|
|
110
109
|
"@types/ua-parser-js": "^0.7.39",
|
|
111
|
-
"@types/vscode": "^1.
|
|
110
|
+
"@types/vscode": "^1.101.0",
|
|
112
111
|
"@types/webpack-bundle-analyzer": "^4.7.0"
|
|
113
112
|
}
|
|
114
113
|
}
|
package/prototype.browser.d.ts
CHANGED
|
@@ -216,7 +216,7 @@ interface SliceOptions {
|
|
|
216
216
|
export declare const emoji_regex: RegExp;
|
|
217
217
|
export declare const noop: () => void;
|
|
218
218
|
export declare const ident: <T>(x: T) => T;
|
|
219
|
-
export declare const
|
|
219
|
+
export declare const select: <TObj = any, TKey extends keyof TObj = keyof TObj>(key: TKey) => (obj: TObj) => TObj[TKey];
|
|
220
220
|
export type Mapper<TObj = any, TKey extends keyof TObj = keyof TObj> = (obj: TObj) => TObj[TKey];
|
|
221
221
|
/** value 不为 null 或 undefined */
|
|
222
222
|
export declare const not_empty: (value: any) => boolean;
|
package/prototype.browser.js
CHANGED
|
@@ -4,7 +4,7 @@ import { t } from "./i18n/instance.js";
|
|
|
4
4
|
export const emoji_regex = EmojiRegex();
|
|
5
5
|
export const noop = () => { };
|
|
6
6
|
export const ident = (x) => x;
|
|
7
|
-
export const
|
|
7
|
+
export const select = (key) => (obj) => obj[key];
|
|
8
8
|
/** value 不为 null 或 undefined */
|
|
9
9
|
export const not_empty = (value) => value !== null && value !== undefined;
|
|
10
10
|
export const empty = (value) => value === undefined || value === null;
|
|
@@ -509,7 +509,7 @@ Object.defineProperties(Array.prototype, {
|
|
|
509
509
|
if ((typeof first === 'number' || typeof first === 'bigint') && !mapper)
|
|
510
510
|
return this.reduce((acc, x) => acc + x, zero);
|
|
511
511
|
if (is_key_type(mapper))
|
|
512
|
-
mapper =
|
|
512
|
+
mapper = select(mapper);
|
|
513
513
|
mapper ??= ident;
|
|
514
514
|
return this.reduce((acc, x) => acc + mapper(x), zero);
|
|
515
515
|
},
|
|
@@ -517,7 +517,7 @@ Object.defineProperties(Array.prototype, {
|
|
|
517
517
|
if (!this.length)
|
|
518
518
|
return undefined;
|
|
519
519
|
if (is_key_type(mapper))
|
|
520
|
-
mapper =
|
|
520
|
+
mapper = select(mapper);
|
|
521
521
|
let max = mapper(this[0]);
|
|
522
522
|
let imax = 0;
|
|
523
523
|
for (let i = 0; i < this.length; i++) {
|
|
@@ -533,7 +533,7 @@ Object.defineProperties(Array.prototype, {
|
|
|
533
533
|
if (!this.length)
|
|
534
534
|
return undefined;
|
|
535
535
|
if (is_key_type(mapper))
|
|
536
|
-
mapper =
|
|
536
|
+
mapper = select(mapper);
|
|
537
537
|
let min = mapper(this[0]);
|
|
538
538
|
let imin = 0;
|
|
539
539
|
for (let i = 0; i < this.length; i++) {
|
|
@@ -549,7 +549,7 @@ Object.defineProperties(Array.prototype, {
|
|
|
549
549
|
if (!mapper)
|
|
550
550
|
return [...new Set(this)];
|
|
551
551
|
if (is_key_type(mapper))
|
|
552
|
-
mapper =
|
|
552
|
+
mapper = select(mapper);
|
|
553
553
|
let map = new Map();
|
|
554
554
|
for (const x of this)
|
|
555
555
|
map.set(mapper(x), x);
|
package/prototype.d.ts
CHANGED
|
@@ -246,7 +246,7 @@ interface SliceOptions {
|
|
|
246
246
|
export declare const emoji_regex: RegExp;
|
|
247
247
|
export declare const noop: () => void;
|
|
248
248
|
export declare const ident: <T>(x: T) => T;
|
|
249
|
-
export declare const
|
|
249
|
+
export declare const select: <TObj = any, TKey extends keyof TObj = keyof TObj>(key: TKey) => (obj: TObj) => TObj[TKey];
|
|
250
250
|
export type Mapper<TObj = any, TKey extends keyof TObj = keyof TObj> = (obj: TObj) => TObj[TKey];
|
|
251
251
|
/** value 不为 null 或 undefined */
|
|
252
252
|
export declare const not_empty: (value: any) => boolean;
|
package/prototype.js
CHANGED
|
@@ -5,7 +5,7 @@ import strip_ansi from 'strip-ansi';
|
|
|
5
5
|
import { t } from "./i18n/instance.js";
|
|
6
6
|
export const noop = () => { };
|
|
7
7
|
export const ident = (x) => x;
|
|
8
|
-
export const
|
|
8
|
+
export const select = (key) => (obj) => obj[key];
|
|
9
9
|
/** value 不为 null 或 undefined */
|
|
10
10
|
export const not_empty = (value) => value !== null && value !== undefined;
|
|
11
11
|
export const empty = (value) => value === undefined || value === null;
|
|
@@ -582,7 +582,7 @@ if (!globalThis.my_prototype_defined) {
|
|
|
582
582
|
if ((typeof first === 'number' || typeof first === 'bigint') && !mapper)
|
|
583
583
|
return this.reduce((acc, x) => acc + x, zero);
|
|
584
584
|
if (is_key_type(mapper))
|
|
585
|
-
mapper =
|
|
585
|
+
mapper = select(mapper);
|
|
586
586
|
mapper ??= ident;
|
|
587
587
|
return this.reduce((acc, x) => acc + mapper(x), zero);
|
|
588
588
|
},
|
|
@@ -590,7 +590,7 @@ if (!globalThis.my_prototype_defined) {
|
|
|
590
590
|
if (!this.length)
|
|
591
591
|
return undefined;
|
|
592
592
|
if (is_key_type(mapper))
|
|
593
|
-
mapper =
|
|
593
|
+
mapper = select(mapper);
|
|
594
594
|
let max = mapper(this[0]);
|
|
595
595
|
let imax = 0;
|
|
596
596
|
for (let i = 0; i < this.length; i++) {
|
|
@@ -606,7 +606,7 @@ if (!globalThis.my_prototype_defined) {
|
|
|
606
606
|
if (!this.length)
|
|
607
607
|
return undefined;
|
|
608
608
|
if (is_key_type(mapper))
|
|
609
|
-
mapper =
|
|
609
|
+
mapper = select(mapper);
|
|
610
610
|
let min = mapper(this[0]);
|
|
611
611
|
let imin = 0;
|
|
612
612
|
for (let i = 0; i < this.length; i++) {
|
|
@@ -622,7 +622,7 @@ if (!globalThis.my_prototype_defined) {
|
|
|
622
622
|
if (!mapper)
|
|
623
623
|
return [...new Set(this)];
|
|
624
624
|
if (is_key_type(mapper))
|
|
625
|
-
mapper =
|
|
625
|
+
mapper = select(mapper);
|
|
626
626
|
let map = new Map();
|
|
627
627
|
for (const x of this)
|
|
628
628
|
map.set(mapper(x), x);
|
package/react.development.js
CHANGED
|
@@ -1533,9 +1533,8 @@
|
|
|
1533
1533
|
} finally {
|
|
1534
1534
|
setCurrentFiber(previousFiber);
|
|
1535
1535
|
}
|
|
1536
|
-
|
|
1537
|
-
|
|
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
|
-
|
|
25466
|
-
|
|
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)
|
|
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
|
-
|
|
25509
|
-
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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
|
|