@itentialopensource/adapter-kafkav2 0.7.0 → 0.8.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
1
 
2
+ ## 0.8.0 [05-25-2023]
3
+
4
+ * Add topic name to message
5
+
6
+ See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!6
7
+
8
+ ---
9
+
2
10
  ## 0.7.0 [05-19-2023]
3
11
 
4
12
  * Add topic name to message
package/adapter.js CHANGED
@@ -423,6 +423,14 @@ class Kafkav2 extends AdapterBaseCl {
423
423
  this.emit('OFFLINE', { id: this.id });
424
424
  this.alive = true;
425
425
 
426
+ if (this.props && this.props.stub === true) {
427
+ this.emit('ONLINE', {
428
+ id: this.id
429
+ });
430
+ log.info('EMITTED ONLINE ON STUB MODE');
431
+ return;
432
+ }
433
+
426
434
  try {
427
435
  // Create a kafka client
428
436
  const combinedProps = this.props.client || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-kafkav2",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Itential adapter to connect to kafka",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.35.0",
Binary file