@jayfong/x-request 2.86.3 → 2.87.0
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/lib/_cjs/index.js +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/_cjs/index.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -144,7 +144,7 @@ export declare class XRequestFormFile {
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
export declare class XRequest {
|
|
147
|
-
|
|
147
|
+
options: OmitStrict<XRequestOptions, 'url'>;
|
|
148
148
|
private static getGotOptions;
|
|
149
149
|
private static afterResponse;
|
|
150
150
|
static get(options: XRequestGetOptions): Promise<XRequestResponse<Buffer>>;
|
|
@@ -180,7 +180,7 @@ export declare class XRequest {
|
|
|
180
180
|
type?: string;
|
|
181
181
|
}): XRequestFormFile;
|
|
182
182
|
static extend(options: OmitStrict<XRequestOptions, 'url'>): XRequest;
|
|
183
|
-
constructor(options?: OmitStrict<XRequestOptions,
|
|
183
|
+
constructor(options?: OmitStrict<XRequestOptions, 'url'>);
|
|
184
184
|
get(options: XRequestGetOptions): Promise<XRequestResponse<Buffer>>;
|
|
185
185
|
get(options: XRequestGetOptions, responseType: 'buffer'): Promise<XRequestResponse<Buffer>>;
|
|
186
186
|
get(options: XRequestGetOptions, responseType: 'text'): Promise<XRequestResponse<string>>;
|
package/lib/index.js
CHANGED