xshell 1.0.58 → 1.0.59
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 +1 -1
- package/package.json +17 -17
- package/utils.browser.d.ts +1 -0
- package/utils.browser.js +4 -0
- package/utils.d.ts +1 -0
- package/utils.js +4 -0
package/net.js
CHANGED
|
@@ -87,7 +87,7 @@ export async function request(url, { method, queries, headers: _headers, body, t
|
|
|
87
87
|
// --- headers, http/2 开始都用小写的 headers
|
|
88
88
|
let headers = new Headers({
|
|
89
89
|
'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',
|
|
90
|
-
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
|
|
90
|
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36',
|
|
91
91
|
'sec-ch-ua-platform': '"Windows"',
|
|
92
92
|
'sec-ch-ua-platform-version': '"15.0.0"',
|
|
93
93
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"interactive programming"
|
|
17
17
|
],
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": ">=20.6.
|
|
19
|
+
"node": ">=20.6.1",
|
|
20
20
|
"vscode": ">=1.81.0"
|
|
21
21
|
},
|
|
22
22
|
"author": "ShenHongFei <shen.hongfei@outlook.com> (https://github.com/ShenHongFei)",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@babel/core": "^7.22.
|
|
49
|
-
"@babel/parser": "^7.22.
|
|
50
|
-
"@babel/traverse": "^7.22.
|
|
48
|
+
"@babel/core": "^7.22.17",
|
|
49
|
+
"@babel/parser": "^7.22.16",
|
|
50
|
+
"@babel/traverse": "^7.22.17",
|
|
51
51
|
"@koa/cors": "^4.0.0",
|
|
52
52
|
"@types/ws": "^8.5.5",
|
|
53
53
|
"byte-size": "^8.1.1",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"fetch-cookie": "^2.1.0",
|
|
62
62
|
"gulp-sort": "^2.0.0",
|
|
63
63
|
"hash-string": "^1.0.0",
|
|
64
|
-
"i18next": "^23.
|
|
64
|
+
"i18next": "^23.5.1",
|
|
65
65
|
"i18next-scanner": "^4.4.0",
|
|
66
66
|
"js-cookie": "^3.0.5",
|
|
67
67
|
"koa": "^2.14.2",
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
"tslib": "^2.6.2",
|
|
80
80
|
"typescript": "^5.2.2",
|
|
81
81
|
"ua-parser-js": "2.0.0-alpha.2",
|
|
82
|
-
"undici": "^5.
|
|
82
|
+
"undici": "^5.24.0",
|
|
83
83
|
"vinyl": "^3.0.0",
|
|
84
84
|
"vinyl-fs": "^4.0.0",
|
|
85
|
-
"ws": "^8.
|
|
85
|
+
"ws": "^8.14.1"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@babel/types": "^7.22.
|
|
88
|
+
"@babel/types": "^7.22.17",
|
|
89
89
|
"@types/babel__traverse": "^7.20.1",
|
|
90
90
|
"@types/byte-size": "^8.1.0",
|
|
91
91
|
"@types/chardet": "^0.8.1",
|
|
@@ -93,18 +93,18 @@
|
|
|
93
93
|
"@types/js-cookie": "^3.0.3",
|
|
94
94
|
"@types/koa": "^2.13.8",
|
|
95
95
|
"@types/koa-compress": "^4.0.3",
|
|
96
|
-
"@types/lodash": "^4.14.
|
|
96
|
+
"@types/lodash": "^4.14.198",
|
|
97
97
|
"@types/mime-types": "^2.1.1",
|
|
98
|
-
"@types/node": "^20.
|
|
98
|
+
"@types/node": "^20.6.0",
|
|
99
99
|
"@types/react": "^18.2.21",
|
|
100
|
-
"@types/through2": "^2.0.
|
|
101
|
-
"@types/tough-cookie": "^4.0.
|
|
100
|
+
"@types/through2": "^2.0.39",
|
|
101
|
+
"@types/tough-cookie": "^4.0.3",
|
|
102
102
|
"@types/ua-parser-js": "^0.7.37",
|
|
103
103
|
"@types/vinyl-fs": "^3.0.2",
|
|
104
|
-
"@types/vscode": "^1.
|
|
105
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
106
|
-
"@typescript-eslint/parser": "^6.
|
|
107
|
-
"eslint": "^8.
|
|
104
|
+
"@types/vscode": "^1.82.0",
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
106
|
+
"@typescript-eslint/parser": "^6.7.0",
|
|
107
|
+
"eslint": "^8.49.0",
|
|
108
108
|
"eslint-plugin-react": "^7.33.2",
|
|
109
109
|
"eslint-plugin-xlint": "^1.0.8"
|
|
110
110
|
},
|
package/utils.browser.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const noop: () => void;
|
|
2
2
|
export declare function assert(assertion: any, message?: string): never | void;
|
|
3
|
+
export declare function log<T>(obj: T): T;
|
|
3
4
|
/** 生成 0, 1, ..., n - 1 (不包括 n) 的数组,支持传入 generator 函数,通过 index 生成各个元素
|
|
4
5
|
@example seq(10, i => `item-${i}`) */
|
|
5
6
|
export declare function seq<T = number>(n: number, generator?: (index: number) => T): T[];
|
package/utils.browser.js
CHANGED
|
@@ -6,6 +6,10 @@ export function assert(assertion, message) {
|
|
|
6
6
|
throw Object.assign(new Error(`断言失败: ${message ? `${message}: ` : ''}${assertion}`), { assertion });
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
export function log(obj) {
|
|
10
|
+
console.log(obj);
|
|
11
|
+
return obj;
|
|
12
|
+
}
|
|
9
13
|
/** 生成 0, 1, ..., n - 1 (不包括 n) 的数组,支持传入 generator 函数,通过 index 生成各个元素
|
|
10
14
|
@example seq(10, i => `item-${i}`) */
|
|
11
15
|
export function seq(n, generator) {
|
package/utils.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const noop: () => void;
|
|
|
10
10
|
export declare const output_width = 230;
|
|
11
11
|
export declare function set_inspect_options(colors?: boolean): void;
|
|
12
12
|
export declare function assert(assertion: any, message?: string): never | void;
|
|
13
|
+
export declare function log<T>(obj: T): T;
|
|
13
14
|
/** 生成 0, 1, ..., n - 1 (不包括 n) 的数组,支持传入 generator 函数,通过 index 生成各个元素
|
|
14
15
|
@example seq(10, i => `item-${i}`) */
|
|
15
16
|
export declare function seq<T = number>(n: number, generator?: (index: number) => T): T[];
|
package/utils.js
CHANGED
|
@@ -27,6 +27,10 @@ export function assert(assertion, message) {
|
|
|
27
27
|
throw Object.assign(new Error(`断言失败: ${message ? `${message}: ` : ''}${inspect(assertion, { colors: false, compact: true })}`), { assertion });
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
+
export function log(obj) {
|
|
31
|
+
console.log(obj);
|
|
32
|
+
return obj;
|
|
33
|
+
}
|
|
30
34
|
/** 生成 0, 1, ..., n - 1 (不包括 n) 的数组,支持传入 generator 函数,通过 index 生成各个元素
|
|
31
35
|
@example seq(10, i => `item-${i}`) */
|
|
32
36
|
export function seq(n, generator) {
|