xshell 1.0.92 → 1.0.94
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/git.d.ts +1 -1
- package/git.js +2 -2
- package/package.json +4 -4
- package/server.d.ts +1 -1
- package/server.js +1 -0
package/git.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare class Git {
|
|
|
3
3
|
static exe: string;
|
|
4
4
|
cwd: string;
|
|
5
5
|
constructor(cwd: string);
|
|
6
|
-
static init(cwd: string): Promise<Git>;
|
|
6
|
+
static init(cwd: string, print?: boolean): Promise<Git>;
|
|
7
7
|
static clone(repo: string, fpd: string): Promise<void>;
|
|
8
8
|
call(args?: any[], { color, print }?: {
|
|
9
9
|
color?: boolean;
|
package/git.js
CHANGED
|
@@ -7,9 +7,9 @@ export class Git {
|
|
|
7
7
|
constructor(cwd) {
|
|
8
8
|
this.cwd = cwd;
|
|
9
9
|
}
|
|
10
|
-
static async init(cwd) {
|
|
10
|
+
static async init(cwd, print = true) {
|
|
11
11
|
const git = new Git(cwd);
|
|
12
|
-
await git.call(['init']);
|
|
12
|
+
await git.call(['init'], { print });
|
|
13
13
|
return git;
|
|
14
14
|
}
|
|
15
15
|
static async clone(repo, fpd) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.94",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"map-stream": "0.0.7",
|
|
87
87
|
"mime-types": "^2.1.35",
|
|
88
88
|
"ora": "^8.0.1",
|
|
89
|
-
"react": "^18.
|
|
89
|
+
"react": "^18.3.0",
|
|
90
90
|
"react-i18next": "^14.1.1",
|
|
91
|
-
"react-object-model": "^1.2.
|
|
91
|
+
"react-object-model": "^1.2.4",
|
|
92
92
|
"resolve-path": "^1.4.0",
|
|
93
93
|
"strip-ansi": "^7.1.0",
|
|
94
94
|
"through2": "^4.0.2",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"@types/lodash": "^4.17.0",
|
|
122
122
|
"@types/mime-types": "^2.1.4",
|
|
123
123
|
"@types/node": "^20.12.7",
|
|
124
|
-
"@types/react": "^18.
|
|
124
|
+
"@types/react": "^18.3.0",
|
|
125
125
|
"@types/through2": "^2.0.41",
|
|
126
126
|
"@types/tough-cookie": "^4.0.5",
|
|
127
127
|
"@types/ua-parser-js": "^0.7.39",
|
package/server.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ export declare class Server {
|
|
|
95
95
|
format_ua(headers: IncomingHttpHeaders | IncomingHttp2Headers): string;
|
|
96
96
|
proxy(ctx: Context,
|
|
97
97
|
/** 只含 host, path, 不含 queries 的 url */
|
|
98
|
-
path_url: string | URL, headers_?: Record<string, string>, redirect?: RequestOptions['redirect']): Promise<
|
|
98
|
+
path_url: string | URL, headers_?: Record<string, string>, redirect?: RequestOptions['redirect']): Promise<boolean>;
|
|
99
99
|
static filter_response_headers(headers: RawResponse['headers']): Record<string, string>;
|
|
100
100
|
/** 提供静态文件
|
|
101
101
|
@example
|
package/server.js
CHANGED
|
@@ -480,6 +480,7 @@ export class Server {
|
|
|
480
480
|
response.body = inspect(error, { colors: false });
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
+
return true;
|
|
483
484
|
}
|
|
484
485
|
static filter_response_headers(headers) {
|
|
485
486
|
return filter_keys(headers, key => !key.startsWith(':') && !this.drop_response_headers.has(key));
|