dff-util 1.3.3 → 1.3.4
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/dist/main/http.d.ts +1 -1
- package/dist/main/http.js +1 -2
- package/package.json +1 -1
package/dist/main/http.d.ts
CHANGED
|
@@ -31,5 +31,5 @@ export declare class Http {
|
|
|
31
31
|
static Token(sessionInfo: any, appKey: string, apiKey?: string, type?: RespType): Promise<any>;
|
|
32
32
|
static FormUpload(url: string, file: File, isHeadersAddMultiForm?: boolean, data?: Record<string, any>, headers?: any, method?: 'POST' | 'PUT', type?: RespType): Promise<any>;
|
|
33
33
|
static CloudUpload(fullUrl: string, file: File, headers?: any, method?: 'POST' | 'PUT'): Promise<Response>;
|
|
34
|
-
static FileDownload(fullUrl: string, params: any, headers?: any, method?: string): Promise<
|
|
34
|
+
static FileDownload(fullUrl: string, params: any, headers?: any, method?: string): Promise<Blob>;
|
|
35
35
|
}
|
package/dist/main/http.js
CHANGED
|
@@ -200,8 +200,7 @@ class Http {
|
|
|
200
200
|
const requestOptions = { method: method, headers: headers };
|
|
201
201
|
const response = yield fetch(fullUrl, requestOptions);
|
|
202
202
|
const blob = yield response.blob();
|
|
203
|
-
|
|
204
|
-
return buffer;
|
|
203
|
+
return blob;
|
|
205
204
|
}
|
|
206
205
|
catch (error) {
|
|
207
206
|
throw { url: fullUrl, requestId: headers['request-id'], error: error };
|