@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
- # [3.0.0-alpha.2](https://github.com/midwayjs/midway/compare/v3.0.0-alpha.1...v3.0.0-alpha.2) (2021-08-05)
6
+ ## [2.12.4](https://github.com/midwayjs/midway/compare/v2.12.3...v2.12.4) (2021-08-13)
7
7
 
8
- **Note:** Version bump only for package @midwayjs/axios
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
- # [3.0.0-alpha.1](https://github.com/midwayjs/midway/compare/v2.12.1...v3.0.0-alpha.1) (2021-08-04)
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
 
@@ -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 servicManager_1 = require("./servicManager");
12
+ const serviceManager_1 = require("./serviceManager");
13
13
  let AutoConfiguration = class AutoConfiguration {
14
14
  async onReady(container) {
15
- await container.getAsync(servicManager_1.HttpService);
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
@@ -1,4 +1,4 @@
1
1
  export { AutoConfiguration as Configuration } from './configuration';
2
2
  export * from './interface';
3
- export * from './servicManager';
3
+ export * from './serviceManager';
4
4
  //# sourceMappingURL=index.d.ts.map
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("./servicManager"), exports);
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=servicManager.d.ts.map
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=servicManager.js.map
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.10+f8cccb92",
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.10+f8cccb92",
13
- "@midwayjs/decorator": "^3.0.0-alpha.2",
14
- "@midwayjs/mock": "^3.0.0-alpha.10+f8cccb92"
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": "f8cccb92aaef82e7c43c6eb5ef2518256ef99a1e"
36
+ "gitHead": "574e016e6bdc4be94f2ee8f82ada1670011911f1"
37
37
  }