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.
@@ -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<Buffer<ArrayBuffer>>;
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
- const buffer = Buffer.from(yield blob.arrayBuffer());
204
- return buffer;
203
+ return blob;
205
204
  }
206
205
  catch (error) {
207
206
  throw { url: fullUrl, requestId: headers['request-id'], error: error };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {