xshell 1.3.40 → 1.3.41
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/antd.development.js +4216 -4044
- package/antd.development.js.map +1 -1
- package/antd.production.js +1124 -993
- package/antd.production.js.map +1 -1
- package/git.d.ts +4 -2
- package/git.js +26 -4
- package/package.json +11 -12
- package/path.d.ts +2 -2
- package/utils.d.ts +1 -0
- package/utils.js +1 -0
- package/xlint.js +303 -13
package/git.d.ts
CHANGED
|
@@ -28,10 +28,12 @@ export declare class Git {
|
|
|
28
28
|
message: string;
|
|
29
29
|
}[]>;
|
|
30
30
|
get_last_commit_hash(short?: boolean): Promise<string>;
|
|
31
|
-
fetch({
|
|
31
|
+
/** @example form.fetch({ remote: 'origin', args: ['pull/770/head:form-list-fields-value'] }) */
|
|
32
|
+
fetch({ print, remote, args }?: {
|
|
32
33
|
print?: boolean;
|
|
33
34
|
remote?: string;
|
|
34
|
-
|
|
35
|
+
args?: string[];
|
|
36
|
+
}): Promise<string>;
|
|
35
37
|
/** 创建或者切换到分支
|
|
36
38
|
- branch?: `'main'` */
|
|
37
39
|
checkout(branch?: 'main'): Promise<void>;
|
package/git.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { call, noprint, print_no_command } from "./process.js";
|
|
2
2
|
import { fread, fmkdir } from "./file.js";
|
|
3
|
+
import { colored } from "./utils.js";
|
|
3
4
|
export class Git {
|
|
4
5
|
static exe = 'git';
|
|
5
6
|
cwd;
|
|
@@ -91,14 +92,35 @@ export class Git {
|
|
|
91
92
|
.trim();
|
|
92
93
|
return short ? hash.slice(0, 6) : hash;
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
+
/** @example form.fetch({ remote: 'origin', args: ['pull/770/head:form-list-fields-value'] }) */
|
|
96
|
+
async fetch({ print = true, remote, args = [] } = {}) {
|
|
97
|
+
let stderrs = [];
|
|
95
98
|
await this.call([
|
|
96
99
|
'fetch',
|
|
97
100
|
remote || '--all',
|
|
98
|
-
'--prune'
|
|
99
|
-
|
|
101
|
+
'--prune',
|
|
102
|
+
...args
|
|
103
|
+
], {
|
|
104
|
+
...print_stdout,
|
|
105
|
+
on_stderr(chunk) {
|
|
106
|
+
stderrs.push(chunk);
|
|
107
|
+
if (chunk.includes('main'))
|
|
108
|
+
chunk = chunk.replaceAll('main', 'main'.yellow);
|
|
109
|
+
if (stderrs.length === 1 && chunk.startsWith('来自')) {
|
|
110
|
+
const lf = chunk.indexOf('\n');
|
|
111
|
+
chunk = chunk.slice(0, lf).replace('来自', '更新源').blue + chunk.slice(lf);
|
|
112
|
+
}
|
|
113
|
+
process.stdout.write(chunk);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
const stderr = stderrs.join('');
|
|
100
117
|
if (print)
|
|
101
|
-
console.log(
|
|
118
|
+
console.log(colored((stderr ? '更新 ' : '') +
|
|
119
|
+
`${this.cwd.fname.slice(0, -1)} 仓库` +
|
|
120
|
+
(remote ? ` ${remote} 源` : '') +
|
|
121
|
+
(args.length > 0 ? ` ${args.join(' ')} ` : '') +
|
|
122
|
+
(stderr ? '成功' : '无更新'), 'green', Boolean(stderr)));
|
|
123
|
+
return stderr;
|
|
102
124
|
}
|
|
103
125
|
async checkout(branch = 'main') {
|
|
104
126
|
let create = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.41",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -53,19 +53,18 @@
|
|
|
53
53
|
"@babel/parser": "^7.29.0",
|
|
54
54
|
"@babel/traverse": "^7.29.0",
|
|
55
55
|
"@koa/cors": "^5.0.0",
|
|
56
|
-
"@stylistic/eslint-plugin": "^5.
|
|
56
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
57
57
|
"@svgr/webpack": "^8.1.0",
|
|
58
58
|
"@types/sass-loader": "^8.0.10",
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
60
|
-
"@typescript-eslint/parser": "^8.
|
|
61
|
-
"@typescript-eslint/utils": "^8.
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
60
|
+
"@typescript-eslint/parser": "^8.57.0",
|
|
61
|
+
"@typescript-eslint/utils": "^8.57.0",
|
|
62
62
|
"archiver": "^7.0.1",
|
|
63
63
|
"chalk": "^5.6.2",
|
|
64
64
|
"commander": "^14.0.3",
|
|
65
65
|
"css-loader": "^7.1.4",
|
|
66
66
|
"emoji-regex": "^10.6.0",
|
|
67
|
-
"eslint": "^10.0.
|
|
68
|
-
"eslint-plugin-import": "^2.32.0",
|
|
67
|
+
"eslint": "^10.0.3",
|
|
69
68
|
"eslint-plugin-react": "^7.37.5",
|
|
70
69
|
"https-proxy-agent": "^7.0.6",
|
|
71
70
|
"i18next": "25.8.1",
|
|
@@ -76,9 +75,9 @@
|
|
|
76
75
|
"mime-types": "^3.0.2",
|
|
77
76
|
"p-map": "^7.0.4",
|
|
78
77
|
"react": "^19.2.4",
|
|
79
|
-
"react-i18next": "^16.5.
|
|
78
|
+
"react-i18next": "^16.5.6",
|
|
80
79
|
"resolve-path": "^1.4.0",
|
|
81
|
-
"sass": "^1.
|
|
80
|
+
"sass": "^1.98.0",
|
|
82
81
|
"sass-loader": "^16.0.7",
|
|
83
82
|
"source-map-loader": "^5.0.0",
|
|
84
83
|
"strip-ansi": "^7.2.0",
|
|
@@ -88,7 +87,7 @@
|
|
|
88
87
|
"tslib": "^2.8.1",
|
|
89
88
|
"typescript": "^5.9.3",
|
|
90
89
|
"undici": "^7.22.0",
|
|
91
|
-
"webpack": "^5.105.
|
|
90
|
+
"webpack": "^5.105.4",
|
|
92
91
|
"webpack-bundle-analyzer": "^5.2.0",
|
|
93
92
|
"ws": "^8.19.0"
|
|
94
93
|
},
|
|
@@ -101,10 +100,10 @@
|
|
|
101
100
|
"@types/koa": "^3.0.1",
|
|
102
101
|
"@types/koa-compress": "^4.0.7",
|
|
103
102
|
"@types/mime-types": "^3.0.1",
|
|
104
|
-
"@types/node": "^25.
|
|
103
|
+
"@types/node": "^25.4.0",
|
|
105
104
|
"@types/react": "^19.2.14",
|
|
106
105
|
"@types/tough-cookie": "^4.0.5",
|
|
107
|
-
"@types/vscode": "^1.
|
|
106
|
+
"@types/vscode": "^1.110.0",
|
|
108
107
|
"@types/webpack-bundle-analyzer": "^4.7.0",
|
|
109
108
|
"@types/ws": "^8.18.1"
|
|
110
109
|
}
|
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/utils.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './utils.common.ts';
|
|
|
6
6
|
/** `180` 输出字符宽度 */
|
|
7
7
|
export declare const output_width = 180;
|
|
8
8
|
export declare const url_width = 52;
|
|
9
|
+
/** - colors?: `true` */
|
|
9
10
|
export declare function set_inspect_options(colors?: boolean): void;
|
|
10
11
|
export declare function typed_array_to_buffer(view: ArrayBufferView): Buffer<ArrayBufferLike>;
|
|
11
12
|
export declare function log_line(): void;
|
package/utils.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./utils.common.js";
|
|
|
8
8
|
/** `180` 输出字符宽度 */
|
|
9
9
|
export const output_width = 180;
|
|
10
10
|
export const url_width = 52;
|
|
11
|
+
/** - colors?: `true` */
|
|
11
12
|
export function set_inspect_options(colors = true) {
|
|
12
13
|
util.inspect.defaultOptions.maxArrayLength = 40;
|
|
13
14
|
util.inspect.defaultOptions.maxStringLength = 10000;
|