xshell 1.0.83 → 1.0.84
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 +14 -14
- package/path.d.ts +2 -2
- package/server.js +2 -1
- package/utils.browser.d.ts +1 -1
- package/utils.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.84",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@babel/core": "^7.
|
|
57
|
-
"@babel/parser": "^7.
|
|
58
|
-
"@babel/traverse": "^7.
|
|
56
|
+
"@babel/core": "^7.24.0",
|
|
57
|
+
"@babel/parser": "^7.24.0",
|
|
58
|
+
"@babel/traverse": "^7.24.0",
|
|
59
59
|
"@koa/cors": "^5.0.0",
|
|
60
60
|
"@types/ws": "^8.5.10",
|
|
61
61
|
"ali-oss": "^6.20.0",
|
|
62
|
-
"archiver": "^
|
|
62
|
+
"archiver": "^7.0.0",
|
|
63
63
|
"byte-size": "^8.1.1",
|
|
64
64
|
"chalk": "^5.3.0",
|
|
65
65
|
"chardet": "^2.0.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"emoji-regex": "^10.3.0",
|
|
71
71
|
"gulp-sort": "^2.0.0",
|
|
72
72
|
"hash-string": "^1.0.0",
|
|
73
|
-
"i18next": "^23.
|
|
73
|
+
"i18next": "^23.10.1",
|
|
74
74
|
"i18next-scanner": "^4.4.0",
|
|
75
75
|
"js-cookie": "^3.0.5",
|
|
76
76
|
"koa": "^2.15.0",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
"mime-types": "^2.1.35",
|
|
81
81
|
"ora": "^8.0.1",
|
|
82
82
|
"react": "^18.2.0",
|
|
83
|
-
"react-i18next": "^14.0
|
|
83
|
+
"react-i18next": "^14.1.0",
|
|
84
84
|
"react-object-model": "^1.2.2",
|
|
85
85
|
"resolve-path": "^1.4.0",
|
|
86
86
|
"strip-ansi": "^7.1.0",
|
|
87
87
|
"through2": "^4.0.2",
|
|
88
88
|
"tough-cookie": "^4.1.3",
|
|
89
89
|
"tslib": "^2.6.2",
|
|
90
|
-
"typescript": "^5.
|
|
90
|
+
"typescript": "^5.4.2",
|
|
91
91
|
"ua-parser-js": "2.0.0-alpha.2",
|
|
92
|
-
"undici": "^6.
|
|
92
|
+
"undici": "^6.7.0",
|
|
93
93
|
"vinyl": "^3.0.0",
|
|
94
94
|
"vinyl-fs": "^4.0.0",
|
|
95
95
|
"ws": "^8.16.0",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"xterm-addon-webgl": "^0.16.0"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@babel/types": "^7.
|
|
102
|
+
"@babel/types": "^7.24.0",
|
|
103
103
|
"@types/ali-oss": "^6.16.11",
|
|
104
104
|
"@types/archiver": "^6.0.2",
|
|
105
105
|
"@types/babel__traverse": "^7.20.5",
|
|
@@ -107,17 +107,17 @@
|
|
|
107
107
|
"@types/chardet": "^0.8.3",
|
|
108
108
|
"@types/gulp-sort": "2.0.4",
|
|
109
109
|
"@types/js-cookie": "^3.0.6",
|
|
110
|
-
"@types/koa": "^2.
|
|
110
|
+
"@types/koa": "^2.15.0",
|
|
111
111
|
"@types/koa-compress": "^4.0.6",
|
|
112
112
|
"@types/lodash": "^4.14.202",
|
|
113
113
|
"@types/mime-types": "^2.1.4",
|
|
114
|
-
"@types/node": "^20.11.
|
|
115
|
-
"@types/react": "^18.2.
|
|
114
|
+
"@types/node": "^20.11.25",
|
|
115
|
+
"@types/react": "^18.2.64",
|
|
116
116
|
"@types/through2": "^2.0.41",
|
|
117
117
|
"@types/tough-cookie": "^4.0.5",
|
|
118
118
|
"@types/ua-parser-js": "^0.7.39",
|
|
119
119
|
"@types/vinyl-fs": "^3.0.5",
|
|
120
|
-
"@types/vscode": "^1.
|
|
120
|
+
"@types/vscode": "^1.87.0"
|
|
121
121
|
},
|
|
122
122
|
"pnpm": {
|
|
123
123
|
"patchedDependencies": {
|
package/path.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare function extname(path: string): string;
|
|
|
54
54
|
/** `/` */
|
|
55
55
|
export declare const sep = "/";
|
|
56
56
|
/** The platform-specific file delimiter. ';' or ':'. */
|
|
57
|
-
export declare const delimiter: "
|
|
57
|
+
export declare const delimiter: ";" | ":";
|
|
58
58
|
/** Returns an object from a path string - the opposite of format().
|
|
59
59
|
@param path path to evaluate.
|
|
60
60
|
@throws {TypeError} if `path` is not a string. */
|
|
@@ -81,7 +81,7 @@ export declare let path: {
|
|
|
81
81
|
basename: typeof basename;
|
|
82
82
|
extname: typeof extname;
|
|
83
83
|
sep: string;
|
|
84
|
-
delimiter: "
|
|
84
|
+
delimiter: ";" | ":";
|
|
85
85
|
parse: typeof parse;
|
|
86
86
|
format: typeof format;
|
|
87
87
|
toNamespacedPath: typeof toNamespacedPath;
|
package/server.js
CHANGED
|
@@ -439,11 +439,12 @@ export class Server {
|
|
|
439
439
|
async proxy(ctx,
|
|
440
440
|
/** 只含 host, path, 不含 queries 的 url */
|
|
441
441
|
path_url, headers_ = {}, redirect = 'manual') {
|
|
442
|
-
const { request: { method, headers, body, ip } } = ctx;
|
|
442
|
+
const { request: { method, headers, query, body, ip } } = ctx;
|
|
443
443
|
let { response } = ctx;
|
|
444
444
|
try {
|
|
445
445
|
const response_ = await _request(path_url, {
|
|
446
446
|
method: method,
|
|
447
|
+
queries: query,
|
|
447
448
|
body,
|
|
448
449
|
headers: {
|
|
449
450
|
...headers,
|
package/utils.browser.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare function encode(str: string): Uint8Array;
|
|
|
56
56
|
在流式处理 (buffer 可能不完整) 时,应使用独立的 TextDecoder 实例调用 decode(buffer, { stream: true }) */
|
|
57
57
|
export declare function decode(buffer: Uint8Array): string;
|
|
58
58
|
/** 字符串字典序比较 */
|
|
59
|
-
export declare function strcmp(l: string, r: string):
|
|
59
|
+
export declare function strcmp(l: string, r: string): 1 | 0 | -1;
|
|
60
60
|
/** 比较 1.10.02 这种版本号 */
|
|
61
61
|
export declare function vercmp(l: string, r: string): number;
|
|
62
62
|
export declare function get<TReturn = any>(obj: any, keypath: string): TReturn;
|
package/utils.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare function filter_keys<TObj>(obj: TObj, filter: (key: string) => an
|
|
|
34
34
|
/** 忽略对象中的 keys, 返回新对象 */
|
|
35
35
|
export declare function omit<TObj>(obj: TObj, omit_keys: string[]): TObj;
|
|
36
36
|
/** 字符串字典序比较 */
|
|
37
|
-
export declare function strcmp(l: string, r: string):
|
|
37
|
+
export declare function strcmp(l: string, r: string): 1 | 0 | -1;
|
|
38
38
|
/** 比较 1.10.02 这种版本号 */
|
|
39
39
|
export declare function vercmp(l: string, r: string): number;
|
|
40
40
|
export declare function get<TReturn = any>(obj: any, keypath: string): TReturn;
|