@jayfong/x-request 2.62.0 → 2.62.2

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +2 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -104,7 +104,7 @@ export declare class XRequestFormFile {
104
104
  options?: {
105
105
  name?: string;
106
106
  type?: string;
107
- };
107
+ } | undefined;
108
108
  constructor(file: Buffer, options: {
109
109
  name: string;
110
110
  type?: string;
@@ -154,7 +154,7 @@ export declare class XRequest {
154
154
  type?: string;
155
155
  }): XRequestFormFile;
156
156
  static extend(options: OmitStrict<XRequestOptions, 'url'>): XRequest;
157
- constructor(options?: OmitStrict<XRequestOptions, 'url'>);
157
+ constructor(options?: OmitStrict<XRequestOptions, "url"> | undefined);
158
158
  get(options: XRequestGetOptions): Promise<XRequestResponse<Buffer>>;
159
159
  get(options: XRequestGetOptions, responseType: 'buffer'): Promise<XRequestResponse<Buffer>>;
160
160
  get(options: XRequestGetOptions, responseType: 'text'): Promise<XRequestResponse<string>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-request",
3
- "version": "2.62.0",
3
+ "version": "2.62.2",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",