@midwayjs/consul 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,7 @@
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)
7
-
8
- **Note:** Version bump only for package @midwayjs/consul
9
-
10
-
11
-
12
-
13
-
14
- # [3.0.0-alpha.1](https://github.com/midwayjs/midway/compare/v2.12.1...v3.0.0-alpha.1) (2021-08-04)
6
+ ## [2.12.3](https://github.com/midwayjs/midway/compare/v2.12.2...v2.12.3) (2021-08-09)
15
7
 
16
8
  **Note:** Version bump only for package @midwayjs/consul
17
9
 
@@ -54,7 +54,7 @@ let AutoConfiguration = class AutoConfiguration {
54
54
  });
55
55
  Object.assign(this.consulRegisterConfig, config);
56
56
  // 把原始的 consul 对象注入到容器
57
- container.registerObject('consul', this.consulProvider.getConsul());
57
+ container.registerObject('consul:consul', this.consulProvider.getConsul());
58
58
  await this.consulProvider.registerService(this.consulRegisterConfig);
59
59
  }
60
60
  }
@@ -70,17 +70,17 @@ let AutoConfiguration = class AutoConfiguration {
70
70
  }
71
71
  };
72
72
  __decorate([
73
- decorator_1.Config('consul.provider'),
73
+ (0, decorator_1.Config)('consul.provider'),
74
74
  __metadata("design:type", Object)
75
75
  ], AutoConfiguration.prototype, "consulProviderConfig", void 0);
76
76
  __decorate([
77
- decorator_1.Config('consul.service'),
77
+ (0, decorator_1.Config)('consul.service'),
78
78
  __metadata("design:type", Object)
79
79
  ], AutoConfiguration.prototype, "consulRegisterConfig", void 0);
80
80
  AutoConfiguration = __decorate([
81
- decorator_1.Configuration({
81
+ (0, decorator_1.Configuration)({
82
82
  namespace: 'consul',
83
- importConfigs: [path_1.join(__dirname, 'config')],
83
+ importConfigs: [(0, path_1.join)(__dirname, 'config')],
84
84
  })
85
85
  ], AutoConfiguration);
86
86
  exports.AutoConfiguration = AutoConfiguration;
@@ -19,14 +19,14 @@ let ConsulController = class ConsulController {
19
19
  }
20
20
  };
21
21
  __decorate([
22
- decorator_1.Get('/health/self/check'),
22
+ (0, decorator_1.Get)('/health/self/check'),
23
23
  __metadata("design:type", Function),
24
24
  __metadata("design:paramtypes", []),
25
25
  __metadata("design:returntype", Promise)
26
26
  ], ConsulController.prototype, "healthCheck", null);
27
27
  ConsulController = __decorate([
28
- decorator_1.Provide(),
29
- decorator_1.Controller('/consul')
28
+ (0, decorator_1.Provide)(),
29
+ (0, decorator_1.Controller)('/consul')
30
30
  ], ConsulController);
31
31
  exports.ConsulController = ConsulController;
32
32
  //# sourceMappingURL=consul.js.map
@@ -22,18 +22,18 @@ let BalancerService = class BalancerService {
22
22
  }
23
23
  };
24
24
  __decorate([
25
- decorator_1.Inject(),
25
+ (0, decorator_1.Inject)('consul:consul'),
26
26
  __metadata("design:type", Object)
27
27
  ], BalancerService.prototype, "consul", void 0);
28
28
  __decorate([
29
- decorator_1.Init(),
29
+ (0, decorator_1.Init)(),
30
30
  __metadata("design:type", Function),
31
31
  __metadata("design:paramtypes", []),
32
32
  __metadata("design:returntype", void 0)
33
33
  ], BalancerService.prototype, "init", null);
34
34
  BalancerService = __decorate([
35
- decorator_1.Provide(),
36
- decorator_1.Scope(decorator_1.ScopeEnum.Singleton)
35
+ (0, decorator_1.Provide)(),
36
+ (0, decorator_1.Scope)(decorator_1.ScopeEnum.Singleton)
37
37
  ], BalancerService);
38
38
  exports.BalancerService = BalancerService;
39
39
  //# sourceMappingURL=balancer.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/consul",
3
3
  "description": "midway consul",
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,10 +9,10 @@
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/koa": "^3.0.0-alpha.10+f8cccb92",
15
- "@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/koa": "^3.0.0-alpha.37+574e016e",
15
+ "@midwayjs/mock": "^3.0.0-alpha.37+574e016e",
16
16
  "@types/consul": "^0.23.34",
17
17
  "@types/sinon": "^10.0.2",
18
18
  "nock": "^13.0.11"
@@ -36,5 +36,5 @@
36
36
  "type": "git",
37
37
  "url": "https://github.com/midwayjs/midway.git"
38
38
  },
39
- "gitHead": "f8cccb92aaef82e7c43c6eb5ef2518256ef99a1e"
39
+ "gitHead": "574e016e6bdc4be94f2ee8f82ada1670011911f1"
40
40
  }