@rsdk/kafka.transport 2.4.2 → 2.4.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.4.3](https://github.com/R-Vision/rsdk/compare/v2.4.3-next.0...v2.4.3) (2023-06-21)
7
+
8
+ **Note:** Version bump only for package @rsdk/kafka.transport
9
+
10
+ ## [2.4.3-next.0](https://github.com/R-Vision/rsdk/compare/v2.4.2...v2.4.3-next.0) (2023-06-21)
11
+
12
+ **Note:** Version bump only for package @rsdk/kafka.transport
13
+
6
14
  ## [2.4.2](https://github.com/R-Vision/rsdk/compare/v2.4.2-next.0...v2.4.2) (2023-06-16)
7
15
 
8
16
  **Note:** Version bump only for package @rsdk/kafka.transport
@@ -10,16 +10,15 @@ exports.Metadata = exports.MetadataPipe = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
11
  const rpc_paramtype_enum_1 = require("@nestjs/microservices/enums/rpc-paramtype.enum");
12
12
  const param_utils_1 = require("@nestjs/microservices/utils/param.utils");
13
- let MetadataPipe = class MetadataPipe {
13
+ let MetadataPipe = exports.MetadataPipe = class MetadataPipe {
14
14
  transform(value) {
15
15
  const { headers } = value.getMessage();
16
16
  return headers?.metadata || null;
17
17
  }
18
18
  };
19
- MetadataPipe = __decorate([
19
+ exports.MetadataPipe = MetadataPipe = __decorate([
20
20
  (0, common_1.Injectable)()
21
21
  ], MetadataPipe);
22
- exports.MetadataPipe = MetadataPipe;
23
22
  /**
24
23
  * Extract metadata from event
25
24
  * @returns Record<string, any> or null
@@ -1 +1 @@
1
- {"version":3,"file":"metadata.decorator.js","sourceRoot":"","sources":["../../src/decorators/metadata.decorator.ts"],"names":[],"mappings":";;;;;;;;;AACA,2CAA4C;AAE5C,uFAA8E;AAC9E,yEAAkF;AAGlF,IAAa,YAAY,GAAzB,MAAa,YAAY;IACvB,SAAS,CAAC,KAAmB;QAC3B,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC;QAEvC,OAAQ,OAAO,EAAE,QAAgB,IAAI,IAAI,CAAC;IAC5C,CAAC;CACF,CAAA;AANY,YAAY;IADxB,IAAA,mBAAU,GAAE;GACA,YAAY,CAMxB;AANY,oCAAY;AAQzB;;;GAGG;AACI,MAAM,QAAQ,GAAG,GAAuB,EAAE,CAC/C,IAAA,qCAAuB,EAAC,iCAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;AADjD,QAAA,QAAQ,YACyC"}
1
+ {"version":3,"file":"metadata.decorator.js","sourceRoot":"","sources":["../../src/decorators/metadata.decorator.ts"],"names":[],"mappings":";;;;;;;;;AACA,2CAA4C;AAE5C,uFAA8E;AAC9E,yEAAkF;AAG3E,IAAM,YAAY,0BAAlB,MAAM,YAAY;IACvB,SAAS,CAAC,KAAmB;QAC3B,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC;QAEvC,OAAQ,OAAO,EAAE,QAAgB,IAAI,IAAI,CAAC;IAC5C,CAAC;CACF,CAAA;uBANY,YAAY;IADxB,IAAA,mBAAU,GAAE;GACA,YAAY,CAMxB;AAED;;;GAGG;AACI,MAAM,QAAQ,GAAG,GAAuB,EAAE,CAC/C,IAAA,qCAAuB,EAAC,iCAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;AADjD,QAAA,QAAQ,YACyC"}
@@ -17,7 +17,7 @@ const common_1 = require("@nestjs/common");
17
17
  const core_1 = require("@rsdk/core");
18
18
  const kafka_common_1 = require("@rsdk/kafka.common");
19
19
  const kafkajs_1 = require("kafkajs");
20
- let KafkaConsumedHealthIndicator = class KafkaConsumedHealthIndicator {
20
+ let KafkaConsumedHealthIndicator = exports.KafkaConsumedHealthIndicator = class KafkaConsumedHealthIndicator {
21
21
  kafkaClient;
22
22
  consumedTopicsProvider;
23
23
  constructor(kafkaClient, consumedTopicsProvider) {
@@ -28,7 +28,7 @@ let KafkaConsumedHealthIndicator = class KafkaConsumedHealthIndicator {
28
28
  return new kafka_common_1.KafkaHealthcheck(this.kafkaClient, this.consumedTopicsProvider.getConsumedTopics()).check();
29
29
  }
30
30
  };
31
- KafkaConsumedHealthIndicator = __decorate([
31
+ exports.KafkaConsumedHealthIndicator = KafkaConsumedHealthIndicator = __decorate([
32
32
  (0, core_1.Indicator)('kafka-consume', {
33
33
  description: 'Check kafka connection and hosted topic-partition',
34
34
  }),
@@ -36,5 +36,4 @@ KafkaConsumedHealthIndicator = __decorate([
36
36
  __metadata("design:paramtypes", [kafkajs_1.Kafka,
37
37
  kafka_common_1.KafkaMetadataProvider])
38
38
  ], KafkaConsumedHealthIndicator);
39
- exports.KafkaConsumedHealthIndicator = KafkaConsumedHealthIndicator;
40
39
  //# sourceMappingURL=kafka-consumed-health.indicator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"kafka-consumed-health.indicator.js","sourceRoot":"","sources":["../../src/module/kafka-consumed-health.indicator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwC;AAExC,qCAAuC;AACvC,qDAI4B;AAC5B,qCAAgC;AAEhC,IAGa,4BAA4B,GAHzC,MAGa,4BAA4B;IAEkB;IAC/C;IAFV,YACyD,WAAkB,EACjE,sBAA6C;QADE,gBAAW,GAAX,WAAW,CAAO;QACjE,2BAAsB,GAAtB,sBAAsB,CAAuB;IACpD,CAAC;IAEJ,KAAK,CAAC,KAAK;QACT,OAAO,IAAI,+BAAgB,CACzB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,CAChD,CAAC,KAAK,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;AAZY,4BAA4B;IAHxC,IAAA,gBAAS,EAAC,eAAe,EAAE;QAC1B,WAAW,EAAE,mDAAmD;KACjE,CAAC;IAGG,WAAA,IAAA,eAAM,EAAC,2CAA4B,CAAC,CAAA;qCAA+B,eAAK;QACzC,oCAAqB;GAH5C,4BAA4B,CAYxC;AAZY,oEAA4B"}
1
+ {"version":3,"file":"kafka-consumed-health.indicator.js","sourceRoot":"","sources":["../../src/module/kafka-consumed-health.indicator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwC;AAExC,qCAAuC;AACvC,qDAI4B;AAC5B,qCAAgC;AAKzB,IAAM,4BAA4B,0CAAlC,MAAM,4BAA4B;IAEkB;IAC/C;IAFV,YACyD,WAAkB,EACjE,sBAA6C;QADE,gBAAW,GAAX,WAAW,CAAO;QACjE,2BAAsB,GAAtB,sBAAsB,CAAuB;IACpD,CAAC;IAEJ,KAAK,CAAC,KAAK;QACT,OAAO,IAAI,+BAAgB,CACzB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,CAChD,CAAC,KAAK,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;uCAZY,4BAA4B;IAHxC,IAAA,gBAAS,EAAC,eAAe,EAAE;QAC1B,WAAW,EAAE,mDAAmD;KACjE,CAAC;IAGG,WAAA,IAAA,eAAM,EAAC,2CAA4B,CAAC,CAAA;qCAA+B,eAAK;QACzC,oCAAqB;GAH5C,4BAA4B,CAYxC"}
@@ -10,13 +10,12 @@ exports.KafkaTransportModule = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
11
  const kafka_common_1 = require("@rsdk/kafka.common");
12
12
  const kafka_consumed_health_indicator_1 = require("./kafka-consumed-health.indicator");
13
- let KafkaTransportModule = class KafkaTransportModule {
13
+ let KafkaTransportModule = exports.KafkaTransportModule = class KafkaTransportModule {
14
14
  };
15
- KafkaTransportModule = __decorate([
15
+ exports.KafkaTransportModule = KafkaTransportModule = __decorate([
16
16
  (0, common_1.Module)({
17
17
  imports: [kafka_common_1.KafkaClientModule],
18
18
  providers: [kafka_consumed_health_indicator_1.KafkaConsumedHealthIndicator],
19
19
  })
20
20
  ], KafkaTransportModule);
21
- exports.KafkaTransportModule = KafkaTransportModule;
22
21
  //# sourceMappingURL=kafka-transport.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"kafka-transport.module.js","sourceRoot":"","sources":["../../src/module/kafka-transport.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qDAAuD;AAEvD,uFAAiF;AAMjF,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;CAAG,CAAA;AAAvB,oBAAoB;IAJhC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,gCAAiB,CAAC;QAC5B,SAAS,EAAE,CAAC,8DAA4B,CAAC;KAC1C,CAAC;GACW,oBAAoB,CAAG;AAAvB,oDAAoB"}
1
+ {"version":3,"file":"kafka-transport.module.js","sourceRoot":"","sources":["../../src/module/kafka-transport.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qDAAuD;AAEvD,uFAAiF;AAM1E,IAAM,oBAAoB,kCAA1B,MAAM,oBAAoB;CAAG,CAAA;+BAAvB,oBAAoB;IAJhC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,gCAAiB,CAAC;QAC5B,SAAS,EAAE,CAAC,8DAA4B,CAAC;KAC1C,CAAC;GACW,oBAAoB,CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdk/kafka.transport",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "Transport that consumes messages from kafka",
5
5
  "license": "Apache License 2.0",
6
6
  "publishConfig": {
@@ -13,8 +13,8 @@
13
13
  "peerDependencies": {
14
14
  "@nestjs/common": "^9.0.0",
15
15
  "@nestjs/microservices": "^9.0.0",
16
- "@rsdk/core": "^2.4.2",
17
- "@rsdk/kafka.common": "^2.4.2",
16
+ "@rsdk/core": "^2.4.3",
17
+ "@rsdk/kafka.common": "^2.4.3",
18
18
  "@rsdk/logging": "^2.4.2",
19
19
  "@rsdk/metadata": "^2.4.2",
20
20
  "kafkajs": "^2.2.4",
@@ -23,5 +23,5 @@
23
23
  "dependencies": {
24
24
  "lodash": "^4.17.21"
25
25
  },
26
- "gitHead": "eda467ff4659536e05ed1baea445e5a6a30c056e"
26
+ "gitHead": "404d6d9fdca7ac053ff9f8adff0cf43c90624ed6"
27
27
  }