@midwayjs/consul 3.0.0-beta.13 → 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.13",
4
+ "version": "3.0.0-beta.17",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
7
7
  "files": [
@@ -9,13 +9,13 @@
9
9
  "dist/**/*.d.ts"
10
10
  ],
11
11
  "devDependencies": {
12
- "@midwayjs/core": "^3.0.0-beta.13",
13
- "@midwayjs/decorator": "^3.0.0-beta.13",
14
- "@midwayjs/koa": "^3.0.0-beta.13",
15
- "@midwayjs/mock": "^3.0.0-beta.13",
16
- "@types/consul": "^0.23.34",
17
- "@types/sinon": "^10.0.2",
18
- "nock": "^13.0.11"
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
+ "@types/consul": "0.40.0",
17
+ "@types/sinon": "10.0.6",
18
+ "nock": "13.2.2"
19
19
  },
20
20
  "dependencies": {
21
21
  "consul": "^0.40.0"
@@ -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": "d3c47770fee9dce33a8d148882173fd7782864ad"
42
+ "gitHead": "17a8b5bd3d0b0b21f24dd2f165b5df9097fc3ec4"
43
43
  }
package/CHANGELOG.md DELETED
@@ -1,320 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [3.0.0-beta.13](https://github.com/midwayjs/midway/compare/v3.0.0-beta.12...v3.0.0-beta.13) (2021-12-30)
7
-
8
- **Note:** Version bump only for package @midwayjs/consul
9
-
10
-
11
-
12
-
13
-
14
- # [3.0.0-beta.12](https://github.com/midwayjs/midway/compare/v3.0.0-beta.11...v3.0.0-beta.12) (2021-12-28)
15
-
16
- **Note:** Version bump only for package @midwayjs/consul
17
-
18
-
19
-
20
-
21
-
22
- # [3.0.0-beta.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
23
-
24
- **Note:** Version bump only for package @midwayjs/consul
25
-
26
-
27
-
28
-
29
-
30
- # [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
31
-
32
- **Note:** Version bump only for package @midwayjs/consul
33
-
34
-
35
-
36
-
37
-
38
- # [3.0.0-beta.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
39
-
40
- **Note:** Version bump only for package @midwayjs/consul
41
-
42
-
43
-
44
-
45
-
46
- # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
47
-
48
-
49
- ### Bug Fixes
50
-
51
- * express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([b9272e0](https://github.com/midwayjs/midway/commit/b9272e0971003443304b0c53815be31a0061b4bd))
52
-
53
-
54
-
55
-
56
-
57
- # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
58
-
59
- **Note:** Version bump only for package @midwayjs/consul
60
-
61
-
62
-
63
-
64
-
65
- # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
66
-
67
- **Note:** Version bump only for package @midwayjs/consul
68
-
69
-
70
-
71
-
72
-
73
- # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
74
-
75
- **Note:** Version bump only for package @midwayjs/consul
76
-
77
-
78
-
79
-
80
-
81
- # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
82
-
83
- **Note:** Version bump only for package @midwayjs/consul
84
-
85
-
86
-
87
-
88
-
89
- # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
90
-
91
-
92
- ### Features
93
-
94
- * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
95
-
96
-
97
-
98
-
99
-
100
- # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
101
-
102
- **Note:** Version bump only for package @midwayjs/consul
103
-
104
-
105
-
106
-
107
-
108
- # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
109
-
110
- **Note:** Version bump only for package @midwayjs/consul
111
-
112
-
113
-
114
-
115
-
116
- ## [2.12.3](https://github.com/midwayjs/midway/compare/v2.12.2...v2.12.3) (2021-08-09)
117
-
118
- **Note:** Version bump only for package @midwayjs/consul
119
-
120
-
121
-
122
-
123
-
124
- ## [2.12.1](https://github.com/midwayjs/midway/compare/v2.12.0...v2.12.1) (2021-08-01)
125
-
126
- **Note:** Version bump only for package @midwayjs/consul
127
-
128
-
129
-
130
-
131
-
132
- # [2.12.0](https://github.com/midwayjs/midway/compare/v2.11.7...v2.12.0) (2021-07-30)
133
-
134
- **Note:** Version bump only for package @midwayjs/consul
135
-
136
-
137
-
138
-
139
-
140
- ## [2.11.6](https://github.com/midwayjs/midway/compare/v2.11.5...v2.11.6) (2021-07-16)
141
-
142
- **Note:** Version bump only for package @midwayjs/consul
143
-
144
-
145
-
146
-
147
-
148
- ## [2.11.5](https://github.com/midwayjs/midway/compare/v2.11.4...v2.11.5) (2021-07-15)
149
-
150
- **Note:** Version bump only for package @midwayjs/consul
151
-
152
-
153
-
154
-
155
-
156
- ## [2.11.4](https://github.com/midwayjs/midway/compare/v2.11.3...v2.11.4) (2021-07-06)
157
-
158
- **Note:** Version bump only for package @midwayjs/consul
159
-
160
-
161
-
162
-
163
-
164
- ## [2.11.3](https://github.com/midwayjs/midway/compare/v2.11.2...v2.11.3) (2021-07-02)
165
-
166
- **Note:** Version bump only for package @midwayjs/consul
167
-
168
-
169
-
170
-
171
-
172
- ## [2.11.2](https://github.com/midwayjs/midway/compare/v2.11.1...v2.11.2) (2021-06-28)
173
-
174
- **Note:** Version bump only for package @midwayjs/consul
175
-
176
-
177
-
178
-
179
-
180
- ## [2.11.1](https://github.com/midwayjs/midway/compare/v2.11.0...v2.11.1) (2021-06-19)
181
-
182
- **Note:** Version bump only for package @midwayjs/consul
183
-
184
-
185
-
186
-
187
-
188
- # [2.11.0](https://github.com/midwayjs/midway/compare/v2.10.19...v2.11.0) (2021-06-10)
189
-
190
-
191
- ### Features
192
-
193
- * support close consul service check ([#1083](https://github.com/midwayjs/midway/issues/1083)) ([a632bae](https://github.com/midwayjs/midway/commit/a632bae4c87eeed77b448a65cd2164a9d4f59779))
194
-
195
-
196
-
197
-
198
-
199
- ## [2.10.18](https://github.com/midwayjs/midway/compare/v2.10.17...v2.10.18) (2021-05-26)
200
-
201
- **Note:** Version bump only for package @midwayjs/consul
202
-
203
-
204
-
205
-
206
-
207
- ## [2.10.14](https://github.com/midwayjs/midway/compare/v2.10.13...v2.10.14) (2021-05-11)
208
-
209
- **Note:** Version bump only for package @midwayjs/consul
210
-
211
-
212
-
213
-
214
-
215
- ## [2.10.13](https://github.com/midwayjs/midway/compare/v2.10.12...v2.10.13) (2021-05-08)
216
-
217
- **Note:** Version bump only for package @midwayjs/consul
218
-
219
-
220
-
221
-
222
-
223
- ## [2.10.12](https://github.com/midwayjs/midway/compare/v2.10.11...v2.10.12) (2021-05-07)
224
-
225
- **Note:** Version bump only for package @midwayjs/consul
226
-
227
-
228
-
229
-
230
-
231
- ## [2.10.11](https://github.com/midwayjs/midway/compare/v2.10.10...v2.10.11) (2021-04-29)
232
-
233
- **Note:** Version bump only for package @midwayjs/consul
234
-
235
-
236
-
237
-
238
-
239
- ## [2.10.10](https://github.com/midwayjs/midway/compare/v2.10.9...v2.10.10) (2021-04-24)
240
-
241
- **Note:** Version bump only for package @midwayjs/consul
242
-
243
-
244
-
245
-
246
-
247
- ## [2.10.9](https://github.com/midwayjs/midway/compare/v2.10.8...v2.10.9) (2021-04-21)
248
-
249
- **Note:** Version bump only for package @midwayjs/consul
250
-
251
-
252
-
253
-
254
-
255
- ## [2.10.8](https://github.com/midwayjs/midway/compare/v2.10.7...v2.10.8) (2021-04-21)
256
-
257
- **Note:** Version bump only for package @midwayjs/consul
258
-
259
-
260
-
261
-
262
-
263
- ## [2.10.7](https://github.com/midwayjs/midway/compare/v2.10.6...v2.10.7) (2021-04-17)
264
-
265
-
266
- ### Bug Fixes
267
-
268
- * add event name args ([#986](https://github.com/midwayjs/midway/issues/986)) ([bfd8232](https://github.com/midwayjs/midway/commit/bfd82320aee8600d8fa30bd2821a0e68c80fd755))
269
- * format ([#997](https://github.com/midwayjs/midway/issues/997)) ([456cc14](https://github.com/midwayjs/midway/commit/456cc14513bdb000d1aa3130e9719caf7a8a803f))
270
-
271
-
272
-
273
-
274
-
275
- ## [2.10.6](https://github.com/midwayjs/midway/compare/v2.10.5...v2.10.6) (2021-04-14)
276
-
277
- **Note:** Version bump only for package @midwayjs/consul
278
-
279
-
280
-
281
-
282
-
283
- ## [2.10.5](https://github.com/midwayjs/midway/compare/v2.10.4...v2.10.5) (2021-04-13)
284
-
285
- **Note:** Version bump only for package @midwayjs/consul
286
-
287
-
288
-
289
-
290
-
291
- ## [2.10.4](https://github.com/midwayjs/midway/compare/v2.10.3...v2.10.4) (2021-04-10)
292
-
293
- **Note:** Version bump only for package @midwayjs/consul
294
-
295
-
296
-
297
-
298
-
299
- ## [2.10.3](https://github.com/midwayjs/midway/compare/v2.10.2...v2.10.3) (2021-04-07)
300
-
301
- **Note:** Version bump only for package @midwayjs/consul
302
-
303
-
304
-
305
-
306
-
307
- ## [2.10.2](https://github.com/midwayjs/midway/compare/v2.10.1...v2.10.2) (2021-04-05)
308
-
309
- **Note:** Version bump only for package @midwayjs/consul
310
-
311
-
312
-
313
-
314
-
315
- # [2.10.0](https://github.com/midwayjs/midway/compare/v2.9.3...v2.10.0) (2021-04-02)
316
-
317
-
318
- ### Features
319
-
320
- * **consul:** register to consul server and lookup service with balancer ([#949](https://github.com/midwayjs/midway/issues/949)) ([d5f9916](https://github.com/midwayjs/midway/commit/d5f99167b63102e0e98ef7e5a92368320ef0e0f2))