@lucaapp/service-utils 1.59.4 → 1.59.6

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.
@@ -181,7 +181,12 @@ class KafkaClient {
181
181
  value,
182
182
  timestamp: message.timestamp,
183
183
  }, 'Record received');
184
- await handler({ ...message, value });
184
+ try {
185
+ await handler({ ...message, value });
186
+ }
187
+ catch (error) {
188
+ throw (0, utils_1.logAndGetError)(this.logger, `Could not consume message for groupId=${groupId}, topic=${topic}, message=${value}`, error);
189
+ }
185
190
  messageAcknowledgedCounter
186
191
  .labels({ topic: kafkaTopic.valueOf(), groupId })
187
192
  .inc();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucaapp/service-utils",
3
- "version": "1.59.4",
3
+ "version": "1.59.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -77,6 +77,7 @@
77
77
  "follow-redirects": "1.15.6",
78
78
  "braces": "3.0.3",
79
79
  "send": "0.19.0",
80
- "rollup": "4.22.4"
80
+ "rollup": "4.22.4",
81
+ "cookie": ">= 0.7.0"
81
82
  }
82
83
  }