@midwayjs/consul 3.19.2 → 4.0.0-alpha.1

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.
@@ -67,6 +67,7 @@ let ConsulConfiguration = class ConsulConfiguration {
67
67
  }
68
68
  }
69
69
  };
70
+ exports.ConsulConfiguration = ConsulConfiguration;
70
71
  __decorate([
71
72
  (0, core_1.Config)('consul.provider'),
72
73
  __metadata("design:type", Object)
@@ -75,7 +76,7 @@ __decorate([
75
76
  (0, core_1.Config)('consul.service'),
76
77
  __metadata("design:type", Object)
77
78
  ], ConsulConfiguration.prototype, "consulRegisterConfig", void 0);
78
- ConsulConfiguration = __decorate([
79
+ exports.ConsulConfiguration = ConsulConfiguration = __decorate([
79
80
  (0, core_1.Configuration)({
80
81
  namespace: 'consul',
81
82
  importConfigs: [
@@ -85,5 +86,4 @@ ConsulConfiguration = __decorate([
85
86
  ],
86
87
  })
87
88
  ], ConsulConfiguration);
88
- exports.ConsulConfiguration = ConsulConfiguration;
89
89
  //# sourceMappingURL=configuration.js.map
@@ -18,14 +18,14 @@ let ConsulController = class ConsulController {
18
18
  };
19
19
  }
20
20
  };
21
+ exports.ConsulController = ConsulController;
21
22
  __decorate([
22
23
  (0, core_1.Get)('/health/self/check'),
23
24
  __metadata("design:type", Function),
24
25
  __metadata("design:paramtypes", []),
25
26
  __metadata("design:returntype", Promise)
26
27
  ], ConsulController.prototype, "healthCheck", null);
27
- ConsulController = __decorate([
28
+ exports.ConsulController = ConsulController = __decorate([
28
29
  (0, core_1.Controller)('/consul')
29
30
  ], ConsulController);
30
- exports.ConsulController = ConsulController;
31
31
  //# sourceMappingURL=consul.js.map
@@ -21,6 +21,7 @@ let BalancerService = class BalancerService {
21
21
  return this.consulBalancer.getServiceBalancer(strategy);
22
22
  }
23
23
  };
24
+ exports.BalancerService = BalancerService;
24
25
  __decorate([
25
26
  (0, core_1.Inject)('consul:consul'),
26
27
  __metadata("design:type", Object)
@@ -31,9 +32,8 @@ __decorate([
31
32
  __metadata("design:paramtypes", []),
32
33
  __metadata("design:returntype", void 0)
33
34
  ], BalancerService.prototype, "init", null);
34
- BalancerService = __decorate([
35
+ exports.BalancerService = BalancerService = __decorate([
35
36
  (0, core_1.Provide)(),
36
37
  (0, core_1.Scope)(core_1.ScopeEnum.Singleton)
37
38
  ], BalancerService);
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.19.2",
4
+ "version": "4.0.0-alpha.1",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -10,9 +10,9 @@
10
10
  "index.d.ts"
11
11
  ],
12
12
  "devDependencies": {
13
- "@midwayjs/core": "^3.19.0",
14
- "@midwayjs/koa": "^3.19.2",
15
- "@midwayjs/mock": "^3.19.2",
13
+ "@midwayjs/core": "^4.0.0-alpha.1",
14
+ "@midwayjs/koa": "^4.0.0-alpha.1",
15
+ "@midwayjs/mock": "^4.0.0-alpha.1",
16
16
  "@types/consul": "0.40.3",
17
17
  "@types/sinon": "17.0.3",
18
18
  "nock": "13.5.6"
@@ -27,8 +27,8 @@
27
27
  "license": "MIT",
28
28
  "scripts": {
29
29
  "build": "tsc",
30
- "test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
31
- "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit",
30
+ "test": "node -r ts-node/register ../../node_modules/jest/bin/jest.js --runInBand",
31
+ "cov": "node -r ts-node/register ../../node_modules/jest/bin/jest.js --runInBand --coverage --forceExit",
32
32
  "ci": "npm run test",
33
33
  "lint": "mwts check"
34
34
  },
@@ -39,5 +39,5 @@
39
39
  "type": "git",
40
40
  "url": "https://github.com/midwayjs/midway.git"
41
41
  },
42
- "gitHead": "57fd034be94897fb819b0d9ef776de0b9923ab0f"
42
+ "gitHead": "14bb4da91805a1cf52f190c0d37a74b395dd6372"
43
43
  }