@opra/nestjs-kafka 1.19.7 → 1.21.0

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.
@@ -59,7 +59,7 @@ let OpraKafkaCoreModule = OpraKafkaCoreModule_1 = class OpraKafkaCoreModule {
59
59
  useFactory: async (controllerFactory, moduleRef, config) => {
60
60
  const controllers = controllerFactory
61
61
  .exploreControllers()
62
- .map(x => x.wrapper.instance.constructor);
62
+ .map(x => x.wrapper.instance);
63
63
  const document = await common_2.ApiDocumentFactory.createDocument({
64
64
  info: config.info,
65
65
  types: config.types,
@@ -107,7 +107,7 @@ let OpraKafkaCoreModule = OpraKafkaCoreModule_1 = class OpraKafkaCoreModule {
107
107
  onModuleInit() {
108
108
  /** NestJS initialize controller instances on init stage.
109
109
  * So we should update instance properties */
110
- const mqApi = this.adapter.document.mqApi;
110
+ const mqApi = this.adapter.document.getMqApi();
111
111
  const controllers = Array.from(mqApi.controllers.values());
112
112
  for (const { wrapper } of this.controllerFactory
113
113
  .exploreControllers()
@@ -56,7 +56,7 @@ let OpraKafkaCoreModule = OpraKafkaCoreModule_1 = class OpraKafkaCoreModule {
56
56
  useFactory: async (controllerFactory, moduleRef, config) => {
57
57
  const controllers = controllerFactory
58
58
  .exploreControllers()
59
- .map(x => x.wrapper.instance.constructor);
59
+ .map(x => x.wrapper.instance);
60
60
  const document = await ApiDocumentFactory.createDocument({
61
61
  info: config.info,
62
62
  types: config.types,
@@ -104,7 +104,7 @@ let OpraKafkaCoreModule = OpraKafkaCoreModule_1 = class OpraKafkaCoreModule {
104
104
  onModuleInit() {
105
105
  /** NestJS initialize controller instances on init stage.
106
106
  * So we should update instance properties */
107
- const mqApi = this.adapter.document.mqApi;
107
+ const mqApi = this.adapter.document.getMqApi();
108
108
  const controllers = Array.from(mqApi.controllers.values());
109
109
  for (const { wrapper } of this.controllerFactory
110
110
  .exploreControllers()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/nestjs-kafka",
3
- "version": "1.19.7",
3
+ "version": "1.21.0",
4
4
  "description": "Opra NestJS Kafka Module",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -12,10 +12,10 @@
12
12
  "tslib": "^2.8.1"
13
13
  },
14
14
  "peerDependencies": {
15
- "@opra/common": "^1.19.7",
16
- "@opra/core": "^1.19.7",
17
- "@opra/nestjs": "^1.19.7",
18
- "@opra/kafka": "^1.19.7",
15
+ "@opra/common": "^1.21.0",
16
+ "@opra/core": "^1.21.0",
17
+ "@opra/nestjs": "^1.21.0",
18
+ "@opra/kafka": "^1.21.0",
19
19
  "@nestjs/common": "^10.0.0 || ^11.0.0",
20
20
  "@nestjs/core": "^10.0.0 || ^11.0.0",
21
21
  "@nestjs/microservices": "^10.0.0 || ^11.0.0",