@midwayjs/axios 3.0.0-alpha.10 → 3.0.0-alpha.37
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,15 +3,18 @@
|
|
|
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
|
-
|
|
6
|
+
## [2.12.4](https://github.com/midwayjs/midway/compare/v2.12.3...v2.12.4) (2021-08-13)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* post missing data ([#1225](https://github.com/midwayjs/midway/issues/1225)) ([ca99368](https://github.com/midwayjs/midway/commit/ca9936839d407c4c6e1a279eb57338e30a8cbb62))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
|
12
15
|
|
|
13
16
|
|
|
14
|
-
|
|
17
|
+
## [2.12.3](https://github.com/midwayjs/midway/compare/v2.12.2...v2.12.3) (2021-08-09)
|
|
15
18
|
|
|
16
19
|
**Note:** Version bump only for package @midwayjs/axios
|
|
17
20
|
|
package/dist/configuration.js
CHANGED
|
@@ -9,16 +9,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.AutoConfiguration = void 0;
|
|
10
10
|
const decorator_1 = require("@midwayjs/decorator");
|
|
11
11
|
const path_1 = require("path");
|
|
12
|
-
const
|
|
12
|
+
const serviceManager_1 = require("./serviceManager");
|
|
13
13
|
let AutoConfiguration = class AutoConfiguration {
|
|
14
14
|
async onReady(container) {
|
|
15
|
-
await container.getAsync(
|
|
15
|
+
await container.getAsync(serviceManager_1.HttpService);
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
AutoConfiguration = __decorate([
|
|
19
|
-
decorator_1.Configuration({
|
|
19
|
+
(0, decorator_1.Configuration)({
|
|
20
20
|
namespace: 'axios',
|
|
21
|
-
importConfigs: [path_1.join(__dirname, './config.default')],
|
|
21
|
+
importConfigs: [(0, path_1.join)(__dirname, './config.default')],
|
|
22
22
|
})
|
|
23
23
|
], AutoConfiguration);
|
|
24
24
|
exports.AutoConfiguration = AutoConfiguration;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,5 +14,5 @@ exports.Configuration = void 0;
|
|
|
14
14
|
var configuration_1 = require("./configuration");
|
|
15
15
|
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.AutoConfiguration; } });
|
|
16
16
|
__exportStar(require("./interface"), exports);
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./serviceManager"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -21,4 +21,4 @@ export declare class HttpService implements AxiosHttpService {
|
|
|
21
21
|
put<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
|
|
22
22
|
patch<T = any, R = AxiosResponse<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
|
|
23
23
|
}
|
|
24
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=serviceManager.d.ts.map
|
|
@@ -67,35 +67,35 @@ let HttpService = class HttpService {
|
|
|
67
67
|
return this.instance.options(url, config);
|
|
68
68
|
}
|
|
69
69
|
post(url, data, config) {
|
|
70
|
-
return this.instance.post(url, config);
|
|
70
|
+
return this.instance.post(url, data, config);
|
|
71
71
|
}
|
|
72
72
|
put(url, data, config) {
|
|
73
|
-
return this.instance.put(url, config);
|
|
73
|
+
return this.instance.put(url, data, config);
|
|
74
74
|
}
|
|
75
75
|
patch(url, data, config) {
|
|
76
|
-
return this.instance.patch(url, config);
|
|
76
|
+
return this.instance.patch(url, data, config);
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
__decorate([
|
|
80
|
-
decorator_1.Inject(),
|
|
80
|
+
(0, decorator_1.Inject)(),
|
|
81
81
|
__metadata("design:type", Object)
|
|
82
82
|
], HttpService.prototype, "ctx", void 0);
|
|
83
83
|
__decorate([
|
|
84
|
-
decorator_1.App(),
|
|
84
|
+
(0, decorator_1.App)(),
|
|
85
85
|
__metadata("design:type", Object)
|
|
86
86
|
], HttpService.prototype, "app", void 0);
|
|
87
87
|
__decorate([
|
|
88
|
-
decorator_1.Config('axios'),
|
|
88
|
+
(0, decorator_1.Config)('axios'),
|
|
89
89
|
__metadata("design:type", Object)
|
|
90
90
|
], HttpService.prototype, "httpConfig", void 0);
|
|
91
91
|
__decorate([
|
|
92
|
-
decorator_1.Init(),
|
|
92
|
+
(0, decorator_1.Init)(),
|
|
93
93
|
__metadata("design:type", Function),
|
|
94
94
|
__metadata("design:paramtypes", []),
|
|
95
95
|
__metadata("design:returntype", Promise)
|
|
96
96
|
], HttpService.prototype, "init", null);
|
|
97
97
|
HttpService = __decorate([
|
|
98
|
-
decorator_1.Provide()
|
|
98
|
+
(0, decorator_1.Provide)()
|
|
99
99
|
], HttpService);
|
|
100
100
|
exports.HttpService = HttpService;
|
|
101
|
-
//# sourceMappingURL=
|
|
101
|
+
//# sourceMappingURL=serviceManager.js.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-alpha.
|
|
4
|
+
"version": "3.0.0-alpha.37+574e016e",
|
|
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-alpha.
|
|
13
|
-
"@midwayjs/decorator": "^3.0.0-alpha.
|
|
14
|
-
"@midwayjs/mock": "^3.0.0-alpha.
|
|
12
|
+
"@midwayjs/core": "^3.0.0-alpha.37+574e016e",
|
|
13
|
+
"@midwayjs/decorator": "^3.0.0-alpha.37+574e016e",
|
|
14
|
+
"@midwayjs/mock": "^3.0.0-alpha.37+574e016e"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"axios": "^0.21.1"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "https://github.com/midwayjs/midway.git"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "574e016e6bdc4be94f2ee8f82ada1670011911f1"
|
|
37
37
|
}
|