abbot-http-client 0.0.55 → 0.0.56

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/index.cjs CHANGED
@@ -499,7 +499,7 @@ var AbbotHttp = class extends AxiosBase {
499
499
  }
500
500
  response = await axios2.post(url, formData);
501
501
  }
502
- return response;
502
+ return response.data;
503
503
  }
504
504
  };
505
505
 
package/dist/index.d.cts CHANGED
@@ -96,13 +96,13 @@ declare class AbbotHttp extends AxiosBase {
96
96
  private handleError;
97
97
  post<T>(url: string, param?: Record<string, any> | null, option?: Partial<MethodOption>): Promise<AbbotResponse<T>>;
98
98
  get<T>(url: string, option?: Partial<MethodOption>): Promise<AbbotResponse<T>>;
99
- download(url: string, param?: Record<string, any> | null,
99
+ download<R>(url: string, param?: Record<string, any> | null,
100
100
  /**
101
101
  * isDownload is set to "true" mandatory
102
102
  *
103
103
  * responseType is set to "blob" mandatory
104
104
  */
105
- option?: Partial<MethodOption>): Promise<AxiosResponse>;
105
+ option?: Partial<MethodOption>): Promise<AxiosResponse<R>>;
106
106
  uploadFile<T>(url: string, file: File, param?: Record<string, any> | null, option?: Partial<MethodOption>): Promise<AbbotResponse<T>>;
107
107
  uploadFile<T>(url: string, file: File[], fileKeys: string[], param?: Record<string, any> | null, option?: Partial<MethodOption>): Promise<AbbotResponse<T>>;
108
108
  }
package/dist/index.d.ts CHANGED
@@ -96,13 +96,13 @@ declare class AbbotHttp extends AxiosBase {
96
96
  private handleError;
97
97
  post<T>(url: string, param?: Record<string, any> | null, option?: Partial<MethodOption>): Promise<AbbotResponse<T>>;
98
98
  get<T>(url: string, option?: Partial<MethodOption>): Promise<AbbotResponse<T>>;
99
- download(url: string, param?: Record<string, any> | null,
99
+ download<R>(url: string, param?: Record<string, any> | null,
100
100
  /**
101
101
  * isDownload is set to "true" mandatory
102
102
  *
103
103
  * responseType is set to "blob" mandatory
104
104
  */
105
- option?: Partial<MethodOption>): Promise<AxiosResponse>;
105
+ option?: Partial<MethodOption>): Promise<AxiosResponse<R>>;
106
106
  uploadFile<T>(url: string, file: File, param?: Record<string, any> | null, option?: Partial<MethodOption>): Promise<AbbotResponse<T>>;
107
107
  uploadFile<T>(url: string, file: File[], fileKeys: string[], param?: Record<string, any> | null, option?: Partial<MethodOption>): Promise<AbbotResponse<T>>;
108
108
  }
package/dist/index.js CHANGED
@@ -452,7 +452,7 @@ var AbbotHttp = class extends AxiosBase {
452
452
  }
453
453
  response = await axios2.post(url, formData);
454
454
  }
455
- return response;
455
+ return response.data;
456
456
  }
457
457
  };
458
458
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abbot-http-client",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "description": "This package helps Abbot team to handle all the axios requests.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",