@midwayjs/axios 3.20.1-beta.1 → 3.20.1-beta.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.
@@ -1,5 +1,5 @@
1
1
  import { Axios } from 'axios';
2
- import { MidwayAxiosRequestConfig as AxiosRequestConfig, MidwayAxiosResponse as AxiosResponse } from './interface';
2
+ import { AxiosRequestConfig, AxiosResponse } from './interface';
3
3
  export declare class HttpService implements Axios {
4
4
  private instance;
5
5
  private serviceFactory;
@@ -1,6 +1,9 @@
1
- import { AxiosRequestConfig, AxiosResponse } from 'axios';
2
- export type MidwayAxiosRequestConfig<D = any, CONFIG = any> = AxiosRequestConfig<D> & CONFIG;
3
- export type MidwayAxiosResponse<T = any, D = any, CONFIG = any> = AxiosResponse<T, D> & {
4
- config: MidwayAxiosRequestConfig<D, CONFIG>;
5
- };
1
+ import { AxiosRequestConfig as OriginAxiosRequestConfig, AxiosRequestHeaders, AxiosResponse as OriginAxiosResponse } from 'axios';
2
+ export interface AxiosRequestConfig<D = any> extends OriginAxiosRequestConfig<D> {
3
+ }
4
+ export interface AxiosResponse<T = any, D = any> extends OriginAxiosResponse<T, D> {
5
+ config: AxiosRequestConfig<D> & {
6
+ headers: AxiosRequestHeaders;
7
+ };
8
+ }
6
9
  //# sourceMappingURL=interface.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/axios",
3
3
  "description": "midway http client with axios",
4
- "version": "3.20.1-beta.1",
4
+ "version": "3.20.1-beta.2",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
7
7
  "files": [