xshell 1.0.93 → 1.0.95

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -88,7 +88,7 @@
88
88
  "ora": "^8.0.1",
89
89
  "react": "^18.3.0",
90
90
  "react-i18next": "^14.1.1",
91
- "react-object-model": "^1.2.3",
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",
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<void>;
98
+ path_url: string | URL, headers_?: Record<string, string>, redirect?: RequestOptions['redirect']): Promise<true>;
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));