xshell 1.0.25 → 1.0.27
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.js +2 -3
- package/package.json +21 -21
- package/tsconfig.json +1 -12
package/net.js
CHANGED
|
@@ -73,12 +73,11 @@ export async function request(url, { method, queries, headers: _headers, body, t
|
|
|
73
73
|
if (auth)
|
|
74
74
|
headers.set('authorization', auth.type === 'basic' ? `Basic ${`${auth.username}:${auth.password}`.to_base64()}` : `Bearer ${auth.token}`);
|
|
75
75
|
if (_cookies)
|
|
76
|
-
Object.entries(_cookies)
|
|
76
|
+
headers.set('cookie', Object.entries(_cookies)
|
|
77
77
|
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
|
|
78
|
-
.join('; ');
|
|
78
|
+
.join('; '));
|
|
79
79
|
if (_headers)
|
|
80
80
|
if (_headers instanceof Headers)
|
|
81
|
-
// @ts-ignore: ts 类型不支持,实际上已经有了
|
|
82
81
|
for (const [key, value] of _headers)
|
|
83
82
|
headers.set(key, value);
|
|
84
83
|
else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -45,65 +45,65 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@babel/core": "^7.21.
|
|
49
|
-
"@babel/parser": "^7.21.
|
|
50
|
-
"@babel/traverse": "^7.21.
|
|
48
|
+
"@babel/core": "^7.21.8",
|
|
49
|
+
"@babel/parser": "^7.21.8",
|
|
50
|
+
"@babel/traverse": "^7.21.5",
|
|
51
51
|
"@koa/cors": "^4.0.0",
|
|
52
52
|
"@types/ws": "^8.5.4",
|
|
53
|
-
"byte-size": "^8.1.
|
|
53
|
+
"byte-size": "^8.1.1",
|
|
54
54
|
"chalk": "^5.2.0",
|
|
55
55
|
"chardet": "^1.5.1",
|
|
56
56
|
"cli-table3": "^0.6.3",
|
|
57
57
|
"cli-truncate": "^3.1.0",
|
|
58
58
|
"colors": "^1.4.0",
|
|
59
|
-
"commander": "^10.0.
|
|
59
|
+
"commander": "^10.0.1",
|
|
60
60
|
"emoji-regex": "^10.2.1",
|
|
61
61
|
"fetch-cookie": "^2.1.0",
|
|
62
62
|
"fs-extra": "^11.1.1",
|
|
63
63
|
"gulp-sort": "^2.0.0",
|
|
64
64
|
"hash-string": "^1.0.0",
|
|
65
|
-
"i18next": "^22.
|
|
65
|
+
"i18next": "^22.5.0",
|
|
66
66
|
"i18next-scanner": "^4.2.0",
|
|
67
|
-
"js-cookie": "^3.0.
|
|
67
|
+
"js-cookie": "^3.0.5",
|
|
68
68
|
"koa": "^2.14.2",
|
|
69
69
|
"koa-compress": "^5.1.1",
|
|
70
70
|
"koa-useragent": "^4.1.0",
|
|
71
71
|
"lodash": "^4.17.21",
|
|
72
72
|
"map-stream": "0.0.7",
|
|
73
|
-
"ora": "^6.3.
|
|
74
|
-
"qs": "^6.11.
|
|
73
|
+
"ora": "^6.3.1",
|
|
74
|
+
"qs": "^6.11.2",
|
|
75
75
|
"react": "^18.2.0",
|
|
76
|
-
"react-i18next": "^12.
|
|
76
|
+
"react-i18next": "^12.3.1",
|
|
77
77
|
"resolve-path": "^1.4.0",
|
|
78
78
|
"strip-ansi": "^7.0.1",
|
|
79
79
|
"through2": "^4.0.2",
|
|
80
80
|
"tough-cookie": "^4.1.2",
|
|
81
|
-
"tslib": "^2.5.
|
|
81
|
+
"tslib": "^2.5.2",
|
|
82
82
|
"typescript": "^5.0.4",
|
|
83
|
-
"undici": "^5.
|
|
83
|
+
"undici": "^5.22.1",
|
|
84
84
|
"upath": "^2.0.1",
|
|
85
85
|
"vinyl": "^3.0.0",
|
|
86
86
|
"vinyl-fs": "^3.0.3",
|
|
87
87
|
"ws": "^8.13.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@babel/types": "^7.21.
|
|
91
|
-
"@types/babel__traverse": "^7.18.
|
|
90
|
+
"@babel/types": "^7.21.5",
|
|
91
|
+
"@types/babel__traverse": "^7.18.5",
|
|
92
92
|
"@types/byte-size": "^8.1.0",
|
|
93
93
|
"@types/chardet": "^0.8.1",
|
|
94
94
|
"@types/fs-extra": "^11.0.1",
|
|
95
|
-
"@types/gulp-sort": "2.0.
|
|
95
|
+
"@types/gulp-sort": "2.0.1",
|
|
96
96
|
"@types/js-cookie": "^3.0.3",
|
|
97
97
|
"@types/koa": "^2.13.6",
|
|
98
98
|
"@types/koa-compress": "^4.0.3",
|
|
99
|
-
"@types/lodash": "^4.14.
|
|
100
|
-
"@types/node": "^
|
|
99
|
+
"@types/lodash": "^4.14.194",
|
|
100
|
+
"@types/node": "^20.2.1",
|
|
101
101
|
"@types/qs": "^6.9.7",
|
|
102
|
-
"@types/react": "^18.
|
|
102
|
+
"@types/react": "^18.2.6",
|
|
103
103
|
"@types/through2": "^2.0.38",
|
|
104
104
|
"@types/tough-cookie": "^4.0.2",
|
|
105
|
-
"@types/vinyl-fs": "^3.0.
|
|
106
|
-
"@types/vscode": "^1.
|
|
105
|
+
"@types/vinyl-fs": "^3.0.2",
|
|
106
|
+
"@types/vscode": "^1.78.0",
|
|
107
107
|
"source-map-loader": "^4.0.1",
|
|
108
108
|
"ts-loader": "^9.4.2"
|
|
109
109
|
},
|
package/tsconfig.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"newLine": "lf",
|
|
17
17
|
"lib": ["ESNext", "DOM"],
|
|
18
18
|
"importHelpers": true,
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
"incremental": true,
|
|
21
21
|
"tsBuildInfoFile": "t:/1/xsh/.tsbuildinfo",
|
|
22
22
|
|
|
@@ -50,17 +50,6 @@
|
|
|
50
50
|
"noUnusedLocals": false,
|
|
51
51
|
"noUnusedParameters": false,
|
|
52
52
|
"skipLibCheck": true,
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
"watchOptions": {
|
|
56
|
-
"excludeDirectories": [
|
|
57
|
-
"**/node_modules",
|
|
58
|
-
],
|
|
59
|
-
|
|
60
|
-
"watchFile": "useFsEvents",
|
|
61
|
-
"watchDirectory": "useFsEvents",
|
|
62
|
-
|
|
63
|
-
"fallbackPolling": "dynamicPriority"
|
|
64
53
|
}
|
|
65
54
|
}
|
|
66
55
|
|