@lark-apaas/miaoda-core 0.0.1-alpha.5 → 0.0.1-alpha.7

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.
@@ -35,12 +35,6 @@ export interface ApiResponse<T = any> {
35
35
  status: number;
36
36
  /** 状态文本 */
37
37
  statusText: string;
38
- /** 响应头 */
39
- headers: Headers;
40
- /** 原始响应对象 */
41
- response: Response;
42
- /** 请求配置 */
43
- config: RequestConfig;
44
38
  }
45
39
  /**
46
40
  * API 错误类
@@ -201,10 +201,7 @@ class ApiProxy {
201
201
  const apiResponse = {
202
202
  data,
203
203
  status: response.status,
204
- statusText: response.statusText,
205
- headers: response.headers,
206
- response,
207
- config
204
+ statusText: response.statusText
208
205
  };
209
206
  return await this.runResponseInterceptors(apiResponse);
210
207
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/miaoda-core",
3
- "version": "0.0.1-alpha.5",
3
+ "version": "0.0.1-alpha.7",
4
4
  "types": "./lib/index.d.ts",
5
5
  "main": "./lib/index.js",
6
6
  "files": [