@itentialopensource/adapter-kafkav2 0.16.7 → 0.16.8

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
@@ -1,4 +1,12 @@
1
1
 
2
+ ## 0.16.8 [12-10-2023]
3
+
4
+ * Fix bug to check allowed partition
5
+
6
+ See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!17
7
+
8
+ ---
9
+
2
10
  ## 0.16.7 [09-27-2023]
3
11
 
4
12
  * Big fixes logLevel and adapter restart
package/adapter.js CHANGED
@@ -643,7 +643,7 @@ class Kafkav2 extends AdapterBaseCl {
643
643
  }
644
644
  // find the topic here to change the offset
645
645
  for (let t = 0; t < this.topicsEvents.length; t += 1) {
646
- if (this.topicsEvents[t].topic === topic && (this.topicsEvents[t].partition === partition || this.topicsEvents[t].partition.includes(partition))) {
646
+ if (this.topicsEvents[t].topic === topic && (this.topicsEvents[t].partition === partition || (Array.isArray(this.topicsEvents[t].partition) && this.topicsEvents[t].partition.includes(partition)))) {
647
647
  allowedPartition = true;
648
648
  if (this.topicsEvents[t].offset < message.offset) {
649
649
  this.topicsEvents[t].offset = message.offset;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-kafkav2",
3
- "version": "0.16.7",
3
+ "version": "0.16.8",
4
4
  "description": "Itential adapter to connect to kafka",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.35.0",
Binary file