xshell 1.3.38 → 1.3.40
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/antd.development.js +3742 -3620
- package/antd.development.js.map +1 -1
- package/antd.production.js +974 -869
- package/antd.production.js.map +1 -1
- package/chalk.browser.d.ts +2 -2
- package/chalk.browser.js +2 -2
- package/net.d.ts +8 -7
- package/net.js +6 -7
- package/package.json +13 -13
- package/process.d.ts +2 -1
- package/prototype.common.d.ts +8 -0
- package/prototype.common.js +11 -0
- package/prototype.d.ts +1 -1
- package/prototype.js +1 -1
- package/react.development.js +6 -6
- package/react.development.js.map +1 -1
- package/react.production.js +4826 -4826
- package/react.production.js.map +1 -1
- package/storage.d.ts +2 -0
- package/storage.js +7 -0
- package/tsconfig.json +1 -0
- package/utils.d.ts +8 -4
- package/utils.js +2 -4
package/chalk.browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const red: import("chalk").ChalkInstance, green: import("chalk").ChalkInstance, yellow: import("chalk").ChalkInstance, blue: import("chalk").ChalkInstance, magenta: import("chalk").ChalkInstance, cyan: import("chalk").ChalkInstance,
|
|
2
|
-
export { red, green, yellow, blue, magenta, cyan,
|
|
1
|
+
declare const red: import("chalk").ChalkInstance, green: import("chalk").ChalkInstance, yellow: import("chalk").ChalkInstance, blue: import("chalk").ChalkInstance, magenta: import("chalk").ChalkInstance, cyan: import("chalk").ChalkInstance, gray: import("chalk").ChalkInstance, red_: import("chalk").ChalkInstance, green_: import("chalk").ChalkInstance, yellow_: import("chalk").ChalkInstance, blue_: import("chalk").ChalkInstance, magenta_: import("chalk").ChalkInstance, cyan_: import("chalk").ChalkInstance, underline: import("chalk").ChalkInstance;
|
|
2
|
+
export { red, green, yellow, blue, magenta, cyan, gray, red_, green_, yellow_, blue_, magenta_, cyan_, underline };
|
package/chalk.browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chalk } from 'chalk';
|
|
2
2
|
const chalk = new Chalk({ level: 2 });
|
|
3
|
-
const { red, green, yellow, blue, magenta, cyan,
|
|
4
|
-
export { red, green, yellow, blue, magenta, cyan,
|
|
3
|
+
const { red, green, yellow, blue, magenta, cyan, gray, redBright: red_, greenBright: green_, yellowBright: yellow_, blueBright: blue_, magentaBright: magenta_, cyanBright: cyan_, underline, } = chalk;
|
|
4
|
+
export { red, green, yellow, blue, magenta, cyan, gray, red_, green_, yellow_, blue_, magenta_, cyan_, underline };
|
|
5
5
|
//# sourceMappingURL=chalk.browser.js.map
|
package/net.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import net from 'node:net';
|
|
2
2
|
import { type Readable } from 'node:stream';
|
|
3
3
|
import type { Cookie, CookieJar, MemoryCookieStore } from 'tough-cookie';
|
|
4
|
+
import { type ValueOf } from './prototype.ts';
|
|
4
5
|
import type { Encoding } from './file.ts';
|
|
5
6
|
import { inspect, type Deferred2, type OnTimeout } from './utils.ts';
|
|
6
7
|
import { type BasicAuth, type BearerAuth } from './net.common.ts';
|
|
7
8
|
export * from './net.common.ts';
|
|
8
|
-
export declare
|
|
9
|
-
socks5
|
|
10
|
-
whistle
|
|
11
|
-
work
|
|
9
|
+
export declare const MyProxy: {
|
|
10
|
+
readonly socks5: "http://127.0.0.1:10080";
|
|
11
|
+
readonly whistle: "http://localhost:8899";
|
|
12
|
+
readonly work: "http://localhost:10090";
|
|
12
13
|
/** 需要先启动 server.start_tunnel_server('ddb.test.proxy') */
|
|
13
|
-
test
|
|
14
|
-
}
|
|
14
|
+
readonly test: "http://localhost:10091";
|
|
15
|
+
};
|
|
15
16
|
export declare const byproxy: {
|
|
16
17
|
readonly proxy: true;
|
|
17
18
|
};
|
|
@@ -37,7 +38,7 @@ export interface RequestOptions {
|
|
|
37
38
|
headers?: Record<string, string>;
|
|
38
39
|
body?: string | Record<string, any> | Uint8Array | URLSearchParams | Readable;
|
|
39
40
|
type?: 'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data';
|
|
40
|
-
proxy?: boolean | MyProxy | string;
|
|
41
|
+
proxy?: boolean | ValueOf<typeof MyProxy> | string;
|
|
41
42
|
encoding?: Encoding | 'binary';
|
|
42
43
|
retries?: true | number;
|
|
43
44
|
timeout?: number;
|
package/net.js
CHANGED
|
@@ -6,14 +6,13 @@ import { noop } from "./prototype.js";
|
|
|
6
6
|
import { inspect, assert, delay, map_values, unique, timeout, check, colored, encode, TimeoutError, set_error_message, defer2, nowstr } from "./utils.js";
|
|
7
7
|
import { drop_request_headers } from "./net.common.js";
|
|
8
8
|
export * from "./net.common.js";
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
MyProxy["work"] = "http://localhost:10090";
|
|
9
|
+
export const MyProxy = {
|
|
10
|
+
socks5: 'http://127.0.0.1:10080',
|
|
11
|
+
whistle: 'http://localhost:8899',
|
|
12
|
+
work: 'http://localhost:10090',
|
|
14
13
|
/** 需要先启动 server.start_tunnel_server('ddb.test.proxy') */
|
|
15
|
-
|
|
16
|
-
}
|
|
14
|
+
test: 'http://localhost:10091'
|
|
15
|
+
};
|
|
17
16
|
export const byproxy = { proxy: true };
|
|
18
17
|
// ------------------------------------ fetch, request
|
|
19
18
|
export const cookies = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.40",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -53,24 +53,24 @@
|
|
|
53
53
|
"@babel/parser": "^7.29.0",
|
|
54
54
|
"@babel/traverse": "^7.29.0",
|
|
55
55
|
"@koa/cors": "^5.0.0",
|
|
56
|
-
"@stylistic/eslint-plugin": "^5.
|
|
56
|
+
"@stylistic/eslint-plugin": "^5.9.0",
|
|
57
57
|
"@svgr/webpack": "^8.1.0",
|
|
58
58
|
"@types/sass-loader": "^8.0.10",
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
60
|
-
"@typescript-eslint/parser": "^8.
|
|
61
|
-
"@typescript-eslint/utils": "^8.
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
60
|
+
"@typescript-eslint/parser": "^8.56.1",
|
|
61
|
+
"@typescript-eslint/utils": "^8.56.1",
|
|
62
62
|
"archiver": "^7.0.1",
|
|
63
63
|
"chalk": "^5.6.2",
|
|
64
64
|
"commander": "^14.0.3",
|
|
65
|
-
"css-loader": "^7.1.
|
|
65
|
+
"css-loader": "^7.1.4",
|
|
66
66
|
"emoji-regex": "^10.6.0",
|
|
67
|
-
"eslint": "^10.0.
|
|
67
|
+
"eslint": "^10.0.2",
|
|
68
68
|
"eslint-plugin-import": "^2.32.0",
|
|
69
69
|
"eslint-plugin-react": "^7.37.5",
|
|
70
70
|
"https-proxy-agent": "^7.0.6",
|
|
71
71
|
"i18next": "25.8.1",
|
|
72
72
|
"i18next-scanner": "^4.6.0",
|
|
73
|
-
"koa": "^3.1.
|
|
73
|
+
"koa": "^3.1.2",
|
|
74
74
|
"koa-compress": "^5.2.0",
|
|
75
75
|
"license-webpack-plugin": "^4.0.2",
|
|
76
76
|
"mime-types": "^3.0.2",
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
"sass": "^1.97.3",
|
|
82
82
|
"sass-loader": "^16.0.7",
|
|
83
83
|
"source-map-loader": "^5.0.0",
|
|
84
|
-
"strip-ansi": "^7.
|
|
84
|
+
"strip-ansi": "^7.2.0",
|
|
85
85
|
"style-loader": "^4.0.0",
|
|
86
86
|
"tough-cookie": "^6.0.0",
|
|
87
87
|
"ts-loader": "^9.5.4",
|
|
88
88
|
"tslib": "^2.8.1",
|
|
89
89
|
"typescript": "^5.9.3",
|
|
90
|
-
"undici": "^7.
|
|
91
|
-
"webpack": "^5.105.
|
|
90
|
+
"undici": "^7.22.0",
|
|
91
|
+
"webpack": "^5.105.3",
|
|
92
92
|
"webpack-bundle-analyzer": "^5.2.0",
|
|
93
93
|
"ws": "^8.19.0"
|
|
94
94
|
},
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"@types/koa": "^3.0.1",
|
|
102
102
|
"@types/koa-compress": "^4.0.7",
|
|
103
103
|
"@types/mime-types": "^3.0.1",
|
|
104
|
-
"@types/node": "^25.2
|
|
105
|
-
"@types/react": "^19.2.
|
|
104
|
+
"@types/node": "^25.3.2",
|
|
105
|
+
"@types/react": "^19.2.14",
|
|
106
106
|
"@types/tough-cookie": "^4.0.5",
|
|
107
107
|
"@types/vscode": "^1.109.0",
|
|
108
108
|
"@types/webpack-bundle-analyzer": "^4.7.0",
|
package/process.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { InspectOptions } from 'node:util';
|
|
2
2
|
import { type ChildProcess } from 'node:child_process';
|
|
3
3
|
import './prototype.ts';
|
|
4
|
+
import type { ValueOf } from './prototype.ts';
|
|
4
5
|
import { type Encoding } from './file.ts';
|
|
5
6
|
import type { MyProxy } from './net.ts';
|
|
6
7
|
export declare const sea: boolean;
|
|
@@ -30,7 +31,7 @@ interface BaseOptions {
|
|
|
30
31
|
/** `process.env` 覆盖/添加到 process.env 的环境变量 */
|
|
31
32
|
envs?: Record<string, string>;
|
|
32
33
|
/** 创建子进程时添加 http_proxy, https_proxy, no_proxy 环境变量以启用代理 */
|
|
33
|
-
proxy?: MyProxy | true;
|
|
34
|
+
proxy?: ValueOf<typeof MyProxy> | true;
|
|
34
35
|
/** 控制子进程 stdin,默认为 `Boolean(input)` (false 时读空设备),除非传入了 {@link CallOptions.input} 属性
|
|
35
36
|
- 默认值:
|
|
36
37
|
- start(): false ('ignore', 空设备)
|
package/prototype.common.d.ts
CHANGED
|
@@ -236,8 +236,16 @@ export type Greater<T = any> = (a: T, b: T) => boolean;
|
|
|
236
236
|
export declare const greater: Greater;
|
|
237
237
|
export type Less = Greater;
|
|
238
238
|
export declare const less: Less;
|
|
239
|
+
export type ValueOf<T> = T[keyof T];
|
|
239
240
|
export declare function to_snake_case(str: string): string;
|
|
240
241
|
export declare function to_space_case(str: string): string;
|
|
242
|
+
/** 在常量对象上添加反向映射(value -> key)
|
|
243
|
+
```ts
|
|
244
|
+
const Modifier = { lshift: 0xa0, rshift: 0xa1 } as const
|
|
245
|
+
set_reverse(Modifier)
|
|
246
|
+
// Modifier[0xa0] === 'lshift'
|
|
247
|
+
``` */
|
|
248
|
+
export declare function set_reverse<T extends Record<string, number | string>>(obj: T): T;
|
|
241
249
|
export declare function to_method_property_descriptors(methods: {
|
|
242
250
|
[name: string]: Function;
|
|
243
251
|
}): PropertyDescriptorMap;
|
package/prototype.common.js
CHANGED
|
@@ -28,6 +28,17 @@ export function to_space_case(str) {
|
|
|
28
28
|
.replaceAll('_', ' ')
|
|
29
29
|
.strip_if_start(' ');
|
|
30
30
|
}
|
|
31
|
+
/** 在常量对象上添加反向映射(value -> key)
|
|
32
|
+
```ts
|
|
33
|
+
const Modifier = { lshift: 0xa0, rshift: 0xa1 } as const
|
|
34
|
+
set_reverse(Modifier)
|
|
35
|
+
// Modifier[0xa0] === 'lshift'
|
|
36
|
+
``` */
|
|
37
|
+
export function set_reverse(obj) {
|
|
38
|
+
for (const key in obj)
|
|
39
|
+
obj[obj[key]] = key;
|
|
40
|
+
return obj;
|
|
41
|
+
}
|
|
31
42
|
export function to_method_property_descriptors(methods) {
|
|
32
43
|
return Object.fromEntries(Object.entries(methods)
|
|
33
44
|
.map(([name, value]) => ([name, {
|
package/prototype.d.ts
CHANGED
package/prototype.js
CHANGED
|
@@ -29,7 +29,7 @@ if (!globalThis.my_prototype_defined) {
|
|
|
29
29
|
}),
|
|
30
30
|
// ------------ colors
|
|
31
31
|
...Object.fromEntries([
|
|
32
|
-
'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', '
|
|
32
|
+
'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'gray',
|
|
33
33
|
'red_', 'green_', 'yellow_', 'blue_', 'magenta_', 'cyan_',
|
|
34
34
|
'underline',
|
|
35
35
|
].map(color => {
|
package/react.development.js
CHANGED
|
@@ -30733,12 +30733,6 @@ if (false) // removed by dead control flow
|
|
|
30733
30733
|
/******/ if (cachedModule !== undefined) {
|
|
30734
30734
|
/******/ return cachedModule.exports;
|
|
30735
30735
|
/******/ }
|
|
30736
|
-
/******/ // Check if module exists (development only)
|
|
30737
|
-
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
30738
|
-
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
30739
|
-
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
30740
|
-
/******/ throw e;
|
|
30741
|
-
/******/ }
|
|
30742
30736
|
/******/ // Create a new module (and put it into the cache)
|
|
30743
30737
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
30744
30738
|
/******/ id: moduleId,
|
|
@@ -30747,6 +30741,12 @@ if (false) // removed by dead control flow
|
|
|
30747
30741
|
/******/ };
|
|
30748
30742
|
/******/
|
|
30749
30743
|
/******/ // Execute the module function
|
|
30744
|
+
/******/ if (!(moduleId in __webpack_modules__)) {
|
|
30745
|
+
/******/ delete __webpack_module_cache__[moduleId];
|
|
30746
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
30747
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
30748
|
+
/******/ throw e;
|
|
30749
|
+
/******/ }
|
|
30750
30750
|
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
30751
30751
|
/******/
|
|
30752
30752
|
/******/ // Flag the module as loaded
|