@midwayjs/consul 3.0.0-alpha.28 → 3.0.0-alpha.41
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/dist/configuration.js
CHANGED
|
@@ -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
|
}
|
package/dist/service/balancer.js
CHANGED
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.
|
|
4
|
+
"version": "3.0.0-alpha.41",
|
|
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.
|
|
13
|
-
"@midwayjs/decorator": "^3.0.0-alpha.
|
|
14
|
-
"@midwayjs/koa": "^3.0.0-alpha.
|
|
15
|
-
"@midwayjs/mock": "^3.0.0-alpha.
|
|
12
|
+
"@midwayjs/core": "^3.0.0-alpha.41",
|
|
13
|
+
"@midwayjs/decorator": "^3.0.0-alpha.41",
|
|
14
|
+
"@midwayjs/koa": "^3.0.0-alpha.41",
|
|
15
|
+
"@midwayjs/mock": "^3.0.0-alpha.41",
|
|
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": "
|
|
39
|
+
"gitHead": "408a11a924283e98f298de85b22083ce18e247ca"
|
|
40
40
|
}
|