@midwayjs/consul 3.0.0-beta.16 → 3.0.0-beta.17

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.
@@ -22,7 +22,7 @@ export declare class ConsulConfiguration implements ILifeCycle {
22
22
  * @param app 应用 App
23
23
  */
24
24
  registerConsul(container: IMidwayContainer, app: IMidwayApplication): Promise<void>;
25
- onReady(container: IMidwayContainer, app?: IMidwayApplication): Promise<void>;
25
+ onServerReady(container: IMidwayContainer, app?: IMidwayApplication): Promise<void>;
26
26
  onStop(container: IMidwayContainer, app?: IMidwayApplication): Promise<void>;
27
27
  }
28
28
  //# sourceMappingURL=configuration.d.ts.map
@@ -58,7 +58,7 @@ let ConsulConfiguration = class ConsulConfiguration {
58
58
  await this.consulProvider.registerService(this.consulRegisterConfig);
59
59
  }
60
60
  }
61
- async onReady(container, app) {
61
+ async onServerReady(container, app) {
62
62
  await this.registerConsul(container, app);
63
63
  }
64
64
  async onStop(container, app) {
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-beta.16",
4
+ "version": "3.0.0-beta.17",
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-beta.16",
13
- "@midwayjs/decorator": "^3.0.0-beta.16",
14
- "@midwayjs/koa": "^3.0.0-beta.16",
15
- "@midwayjs/mock": "^3.0.0-beta.16",
12
+ "@midwayjs/core": "^3.0.0-beta.17",
13
+ "@midwayjs/decorator": "^3.0.0-beta.17",
14
+ "@midwayjs/koa": "^3.0.0-beta.17",
15
+ "@midwayjs/mock": "^3.0.0-beta.17",
16
16
  "@types/consul": "0.40.0",
17
17
  "@types/sinon": "10.0.6",
18
18
  "nock": "13.2.2"
@@ -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",
31
- "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --coverage --forceExit",
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",
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": "43a32745ac45164dfef1494cba979f9652a6692b"
42
+ "gitHead": "17a8b5bd3d0b0b21f24dd2f165b5df9097fc3ec4"
43
43
  }