xshell 1.2.44 → 1.2.46
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 +0 -1
- package/net.js +3 -5
- package/package.json +20 -20
- package/prototype.browser.d.ts +1 -1
- package/prototype.d.ts +1 -1
package/net.d.ts
CHANGED
package/net.js
CHANGED
|
@@ -179,14 +179,12 @@ export async function request(url, options = {}) {
|
|
|
179
179
|
case 'application/x-www-form-urlencoded':
|
|
180
180
|
return (body instanceof URLSearchParams ? body : new URLSearchParams(body)).toString();
|
|
181
181
|
case 'multipart/form-data':
|
|
182
|
-
if (body
|
|
182
|
+
if (body && body[Symbol.toStringTag] === 'FormData')
|
|
183
183
|
return body;
|
|
184
184
|
else {
|
|
185
185
|
let form = new FormData();
|
|
186
|
-
for (const key in body)
|
|
187
|
-
|
|
188
|
-
form.set(key, value);
|
|
189
|
-
}
|
|
186
|
+
for (const key in body)
|
|
187
|
+
form.set(key, body[key]);
|
|
190
188
|
return form;
|
|
191
189
|
}
|
|
192
190
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -49,17 +49,17 @@
|
|
|
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.4",
|
|
53
|
+
"@babel/parser": "^7.27.5",
|
|
54
|
+
"@babel/traverse": "^7.27.4",
|
|
55
55
|
"@koa/cors": "^5.0.0",
|
|
56
|
-
"@stylistic/eslint-plugin": "^4.
|
|
56
|
+
"@stylistic/eslint-plugin": "^4.4.1",
|
|
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.33.1",
|
|
61
|
+
"@typescript-eslint/parser": "^8.33.1",
|
|
62
|
+
"@typescript-eslint/utils": "^8.33.1",
|
|
63
63
|
"archiver": "^7.0.1",
|
|
64
64
|
"chalk": "^5.4.1",
|
|
65
65
|
"cli-table3": "^0.6.5",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"commander": "^14.0.0",
|
|
68
68
|
"css-loader": "^7.1.2",
|
|
69
69
|
"emoji-regex": "^10.4.0",
|
|
70
|
-
"eslint": "^9.
|
|
70
|
+
"eslint": "^9.28.0",
|
|
71
71
|
"eslint-plugin-import": "^2.31.0",
|
|
72
72
|
"eslint-plugin-react": "^7.37.5",
|
|
73
73
|
"gulp-sort": "^2.0.0",
|
|
74
74
|
"https-proxy-agent": "^7.0.6",
|
|
75
|
-
"i18next": "^25.2.
|
|
75
|
+
"i18next": "^25.2.1",
|
|
76
76
|
"i18next-scanner": "^4.6.0",
|
|
77
77
|
"koa": "^3.0.0",
|
|
78
78
|
"koa-compress": "^5.1.1",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"mime-types": "^3.0.1",
|
|
82
82
|
"ora": "^8.2.0",
|
|
83
83
|
"react": "^19.1.0",
|
|
84
|
-
"react-i18next": "^15.5.
|
|
84
|
+
"react-i18next": "^15.5.2",
|
|
85
85
|
"react-object-model": "^1.2.24",
|
|
86
86
|
"resolve-path": "^1.4.0",
|
|
87
|
-
"sass": "^1.89.
|
|
87
|
+
"sass": "^1.89.1",
|
|
88
88
|
"sass-loader": "^16.0.5",
|
|
89
89
|
"source-map-loader": "^5.0.0",
|
|
90
90
|
"strip-ansi": "^7.1.0",
|
|
@@ -95,15 +95,15 @@
|
|
|
95
95
|
"tslib": "^2.8.1",
|
|
96
96
|
"typescript": "^5.8.3",
|
|
97
97
|
"ua-parser-js": "^2.0.3",
|
|
98
|
-
"undici": "^7.
|
|
99
|
-
"vinyl": "^3.0.
|
|
100
|
-
"vinyl-fs": "^4.0.
|
|
101
|
-
"webpack": "^5.99.
|
|
98
|
+
"undici": "^7.10.0",
|
|
99
|
+
"vinyl": "^3.0.1",
|
|
100
|
+
"vinyl-fs": "^4.0.2",
|
|
101
|
+
"webpack": "^5.99.9",
|
|
102
102
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
103
103
|
"ws": "^8.18.2"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@babel/types": "^7.27.
|
|
106
|
+
"@babel/types": "^7.27.6",
|
|
107
107
|
"@types/archiver": "^6.0.3",
|
|
108
108
|
"@types/babel__traverse": "^7.20.7",
|
|
109
109
|
"@types/eslint": "^9.6.1",
|
|
@@ -111,9 +111,9 @@
|
|
|
111
111
|
"@types/gulp-sort": "^2.0.4",
|
|
112
112
|
"@types/koa": "^2.15.0",
|
|
113
113
|
"@types/koa-compress": "^4.0.6",
|
|
114
|
-
"@types/mime-types": "^
|
|
115
|
-
"@types/node": "^22.15.
|
|
116
|
-
"@types/react": "^19.1.
|
|
114
|
+
"@types/mime-types": "^3.0.0",
|
|
115
|
+
"@types/node": "^22.15.30",
|
|
116
|
+
"@types/react": "^19.1.6",
|
|
117
117
|
"@types/through2": "^2.0.41",
|
|
118
118
|
"@types/tough-cookie": "^4.0.5",
|
|
119
119
|
"@types/ua-parser-js": "^0.7.39",
|
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 build_mapper: <TObj, TKey extends keyof TObj>(key: TKey) => (obj: TObj) => TObj[TKey];
|
|
219
|
+
export declare const build_mapper: <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.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 build_mapper: <TObj, TKey extends keyof TObj>(key: TKey) => (obj: TObj) => TObj[TKey];
|
|
249
|
+
export declare const build_mapper: <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;
|