xshell 1.0.24 → 1.0.26
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 +23 -24
- package/tsconfig.json +1 -12
- package/utils.browser.d.ts +1 -1
- package/utils.browser.js +4 -4
- package/utils.d.ts +1 -1
- package/utils.js +1 -1
- /package/patches/{koa@2.14.1.patch → koa@2.14.2.patch} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
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": ">=19.
|
|
19
|
+
"node": ">=19.9.0",
|
|
20
20
|
"vscode": ">=1.77.0"
|
|
21
21
|
},
|
|
22
22
|
"author": "ShenHongFei <shen.hongfei@outlook.com> (https://github.com/ShenHongFei)",
|
|
@@ -45,66 +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
|
-
"fs-monkey": "^1.0.3",
|
|
64
63
|
"gulp-sort": "^2.0.0",
|
|
65
64
|
"hash-string": "^1.0.0",
|
|
66
|
-
"i18next": "^22.
|
|
65
|
+
"i18next": "^22.5.0",
|
|
67
66
|
"i18next-scanner": "^4.2.0",
|
|
68
|
-
"js-cookie": "^3.0.
|
|
69
|
-
"koa": "^2.14.
|
|
67
|
+
"js-cookie": "^3.0.5",
|
|
68
|
+
"koa": "^2.14.2",
|
|
70
69
|
"koa-compress": "^5.1.1",
|
|
71
70
|
"koa-useragent": "^4.1.0",
|
|
72
71
|
"lodash": "^4.17.21",
|
|
73
72
|
"map-stream": "0.0.7",
|
|
74
|
-
"ora": "^6.3.
|
|
75
|
-
"qs": "^6.11.
|
|
73
|
+
"ora": "^6.3.1",
|
|
74
|
+
"qs": "^6.11.2",
|
|
76
75
|
"react": "^18.2.0",
|
|
77
|
-
"react-i18next": "^12.
|
|
76
|
+
"react-i18next": "^12.3.1",
|
|
78
77
|
"resolve-path": "^1.4.0",
|
|
79
78
|
"strip-ansi": "^7.0.1",
|
|
80
79
|
"through2": "^4.0.2",
|
|
81
80
|
"tough-cookie": "^4.1.2",
|
|
82
|
-
"tslib": "^2.5.
|
|
81
|
+
"tslib": "^2.5.2",
|
|
83
82
|
"typescript": "^5.0.4",
|
|
84
|
-
"undici": "^5.
|
|
83
|
+
"undici": "^5.22.1",
|
|
85
84
|
"upath": "^2.0.1",
|
|
86
85
|
"vinyl": "^3.0.0",
|
|
87
86
|
"vinyl-fs": "^3.0.3",
|
|
88
87
|
"ws": "^8.13.0"
|
|
89
88
|
},
|
|
90
89
|
"devDependencies": {
|
|
91
|
-
"@babel/types": "^7.21.
|
|
92
|
-
"@types/babel__traverse": "^7.18.
|
|
90
|
+
"@babel/types": "^7.21.5",
|
|
91
|
+
"@types/babel__traverse": "^7.18.5",
|
|
93
92
|
"@types/byte-size": "^8.1.0",
|
|
94
93
|
"@types/chardet": "^0.8.1",
|
|
95
94
|
"@types/fs-extra": "^11.0.1",
|
|
96
|
-
"@types/gulp-sort": "2.0.
|
|
95
|
+
"@types/gulp-sort": "2.0.1",
|
|
97
96
|
"@types/js-cookie": "^3.0.3",
|
|
98
97
|
"@types/koa": "^2.13.6",
|
|
99
98
|
"@types/koa-compress": "^4.0.3",
|
|
100
|
-
"@types/lodash": "^4.14.
|
|
101
|
-
"@types/node": "^
|
|
99
|
+
"@types/lodash": "^4.14.194",
|
|
100
|
+
"@types/node": "^20.2.1",
|
|
102
101
|
"@types/qs": "^6.9.7",
|
|
103
|
-
"@types/react": "^18.
|
|
102
|
+
"@types/react": "^18.2.6",
|
|
104
103
|
"@types/through2": "^2.0.38",
|
|
105
104
|
"@types/tough-cookie": "^4.0.2",
|
|
106
|
-
"@types/vinyl-fs": "^3.0.
|
|
107
|
-
"@types/vscode": "^1.
|
|
105
|
+
"@types/vinyl-fs": "^3.0.2",
|
|
106
|
+
"@types/vscode": "^1.78.0",
|
|
108
107
|
"source-map-loader": "^4.0.1",
|
|
109
108
|
"ts-loader": "^9.4.2"
|
|
110
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
|
|
package/utils.browser.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface Deferred<TValue> extends Promise<TValue> {
|
|
|
14
14
|
- initial?: `undefined` 传入非 undefined 值(包括 null)时直接设置为 resolved 状态 */
|
|
15
15
|
export declare function defer<TValue>(initial?: TValue): Deferred<TValue>;
|
|
16
16
|
export interface LockedAction<TResource, TResult> {
|
|
17
|
-
(resource: TResource): Promise<TResult>;
|
|
17
|
+
(resource: TResource): TResult | Promise<TResult>;
|
|
18
18
|
}
|
|
19
19
|
/** @example
|
|
20
20
|
let lock = new Lock(redis)
|
package/utils.browser.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t } from './i18n/instance.js';
|
|
2
2
|
export const noop = () => { };
|
|
3
3
|
export function assert(assertion, message) {
|
|
4
|
-
if (assertion)
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
if (!assertion) {
|
|
5
|
+
debugger;
|
|
6
|
+
throw Object.assign(new Error(`断言失败: ${message ? `${message}: ` : ''}${assertion}`), { assertion });
|
|
7
|
+
}
|
|
8
8
|
}
|
|
9
9
|
export async function delay(milliseconds) {
|
|
10
10
|
return new Promise(resolve => {
|
package/utils.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export interface Deferred<TValue> extends Promise<TValue> {
|
|
|
54
54
|
- initial?: `undefined` 传入非 undefined 值(包括 null)时直接设置为 resolved 状态 */
|
|
55
55
|
export declare function defer<TValue>(initial?: TValue): Deferred<TValue>;
|
|
56
56
|
export interface LockedAction<TResource, TResult> {
|
|
57
|
-
(resource: TResource): Promise<TResult>;
|
|
57
|
+
(resource: TResource): TResult | Promise<TResult>;
|
|
58
58
|
}
|
|
59
59
|
/** @example
|
|
60
60
|
let lock = new Lock(redis)
|
package/utils.js
CHANGED
|
@@ -25,7 +25,7 @@ export function set_inspect_options() {
|
|
|
25
25
|
export function assert(assertion, message) {
|
|
26
26
|
if (!assertion) {
|
|
27
27
|
debugger;
|
|
28
|
-
throw new Error(
|
|
28
|
+
throw Object.assign(new Error(`断言失败: ${message ? `${message}: ` : ''}${inspect(assertion, { colors: false, compact: true })}`), { assertion });
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
export function dedent(templ, ...values) {
|
|
File without changes
|