@midwayjs/axios 3.0.0-beta.1 → 3.0.0-beta.13

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/CHANGELOG.md CHANGED
@@ -3,6 +3,108 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.0.0-beta.13](https://github.com/midwayjs/midway/compare/v3.0.0-beta.12...v3.0.0-beta.13) (2021-12-30)
7
+
8
+ **Note:** Version bump only for package @midwayjs/axios
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.12](https://github.com/midwayjs/midway/compare/v3.0.0-beta.11...v3.0.0-beta.12) (2021-12-28)
15
+
16
+ **Note:** Version bump only for package @midwayjs/axios
17
+
18
+
19
+
20
+
21
+
22
+ # [3.0.0-beta.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
23
+
24
+ **Note:** Version bump only for package @midwayjs/axios
25
+
26
+
27
+
28
+
29
+
30
+ # [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
31
+
32
+ **Note:** Version bump only for package @midwayjs/axios
33
+
34
+
35
+
36
+
37
+
38
+ # [3.0.0-beta.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
39
+
40
+ **Note:** Version bump only for package @midwayjs/axios
41
+
42
+
43
+
44
+
45
+
46
+ # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
47
+
48
+
49
+ ### Bug Fixes
50
+
51
+ * express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([b9272e0](https://github.com/midwayjs/midway/commit/b9272e0971003443304b0c53815be31a0061b4bd))
52
+
53
+
54
+
55
+
56
+
57
+ # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
58
+
59
+ **Note:** Version bump only for package @midwayjs/axios
60
+
61
+
62
+
63
+
64
+
65
+ # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
66
+
67
+ **Note:** Version bump only for package @midwayjs/axios
68
+
69
+
70
+
71
+
72
+
73
+ # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
74
+
75
+ **Note:** Version bump only for package @midwayjs/axios
76
+
77
+
78
+
79
+
80
+
81
+ # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
82
+
83
+ **Note:** Version bump only for package @midwayjs/axios
84
+
85
+
86
+
87
+
88
+
89
+ # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
90
+
91
+
92
+ ### Features
93
+
94
+ * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
95
+
96
+
97
+
98
+
99
+
100
+ # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
101
+
102
+ **Note:** Version bump only for package @midwayjs/axios
103
+
104
+
105
+
106
+
107
+
6
108
  # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
7
109
 
8
110
 
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  this is a sub package for midway.
7
7
 
8
- Document: [https://midwayjs.org/midway](https://midwayjs.org/midway)
8
+ Document: [https://midwayjs.org](https://midwayjs.org)
9
9
 
10
10
  ## License
11
11
 
@@ -8,7 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.AxiosConfiguration = void 0;
10
10
  const decorator_1 = require("@midwayjs/decorator");
11
- const path_1 = require("path");
12
11
  const serviceManager_1 = require("./serviceManager");
13
12
  let AxiosConfiguration = class AxiosConfiguration {
14
13
  async onReady(container) {
@@ -18,7 +17,13 @@ let AxiosConfiguration = class AxiosConfiguration {
18
17
  AxiosConfiguration = __decorate([
19
18
  (0, decorator_1.Configuration)({
20
19
  namespace: 'axios',
21
- importConfigs: [(0, path_1.join)(__dirname, './config.default')],
20
+ importConfigs: [
21
+ {
22
+ default: {
23
+ axios: {},
24
+ },
25
+ },
26
+ ],
22
27
  })
23
28
  ], AxiosConfiguration);
24
29
  exports.AxiosConfiguration = AxiosConfiguration;
@@ -15,4 +15,9 @@ export interface AxiosHttpService {
15
15
  put<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
16
16
  patch<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
17
17
  }
18
+ declare module '@midwayjs/core/dist/interface' {
19
+ interface MidwayConfig {
20
+ axios?: AxiosRequestConfig;
21
+ }
22
+ }
18
23
  //# 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.0.0-beta.1",
4
+ "version": "3.0.0-beta.13",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
7
7
  "files": [
@@ -9,9 +9,9 @@
9
9
  "dist/**/*.d.ts"
10
10
  ],
11
11
  "devDependencies": {
12
- "@midwayjs/core": "^3.0.0-beta.1",
13
- "@midwayjs/decorator": "^3.0.0-beta.1",
14
- "@midwayjs/mock": "^3.0.0-beta.1"
12
+ "@midwayjs/core": "^3.0.0-beta.13",
13
+ "@midwayjs/decorator": "^3.0.0-beta.13",
14
+ "@midwayjs/mock": "^3.0.0-beta.13"
15
15
  },
16
16
  "dependencies": {
17
17
  "axios": "^0.21.1"
@@ -36,5 +36,5 @@
36
36
  "type": "git",
37
37
  "url": "https://github.com/midwayjs/midway.git"
38
38
  },
39
- "gitHead": "72e4d20c678e65a5440c4e9a6d3b70046daa497c"
39
+ "gitHead": "d3c47770fee9dce33a8d148882173fd7782864ad"
40
40
  }
@@ -1,2 +0,0 @@
1
- export declare const axios: {};
2
- //# sourceMappingURL=config.default.d.ts.map
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.axios = void 0;
4
- exports.axios = {};
5
- //# sourceMappingURL=config.default.js.map