@aws-lambda-powertools/kafka 2.24.1 → 2.25.1
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/README.md
CHANGED
|
@@ -280,6 +280,7 @@ The following companies, among others, use Powertools:
|
|
|
280
280
|
* [Certible](https://www.certible.com/)
|
|
281
281
|
* [Elva](https://elva-group.com)
|
|
282
282
|
* [Flyweight](https://flyweight.io/)
|
|
283
|
+
* [FraudFalcon](https://fraudfalcon.app)
|
|
283
284
|
* [globaldatanet](https://globaldatanet.com/)
|
|
284
285
|
* [Guild](https://guild.com)
|
|
285
286
|
* [Hashnode](https://hashnode.com/)
|
|
@@ -36,7 +36,7 @@ const deserialize = (data, messageType, schemaMetadata) => {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
catch (error) {
|
|
39
|
-
throw new errors_js_1.KafkaConsumerDeserializationError(`Failed to deserialize Protobuf message: ${error}, message: ${data}, messageType: ${messageType}`);
|
|
39
|
+
throw new errors_js_1.KafkaConsumerDeserializationError(`Failed to deserialize Protobuf message: ${error}, message: ${data}, messageType: ${JSON.stringify(messageType)}`);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* If schemaId is numeric, inferred from its length, we know it's coming from Confluent Schema Registry,
|
|
@@ -56,7 +56,7 @@ const deserialize = (data, messageType, schemaMetadata) => {
|
|
|
56
56
|
return decoded;
|
|
57
57
|
}
|
|
58
58
|
catch {
|
|
59
|
-
throw new errors_js_1.KafkaConsumerDeserializationError(`Failed to deserialize Protobuf message: ${error}, message: ${data}, messageType: ${messageType}`);
|
|
59
|
+
throw new errors_js_1.KafkaConsumerDeserializationError(`Failed to deserialize Protobuf message: ${error}, message: ${data}, messageType: ${JSON.stringify(messageType)}`);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
};
|
|
@@ -33,7 +33,7 @@ const deserialize = (data, messageType, schemaMetadata) => {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
catch (error) {
|
|
36
|
-
throw new KafkaConsumerDeserializationError(`Failed to deserialize Protobuf message: ${error}, message: ${data}, messageType: ${messageType}`);
|
|
36
|
+
throw new KafkaConsumerDeserializationError(`Failed to deserialize Protobuf message: ${error}, message: ${data}, messageType: ${JSON.stringify(messageType)}`);
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* If schemaId is numeric, inferred from its length, we know it's coming from Confluent Schema Registry,
|
|
@@ -53,7 +53,7 @@ const deserialize = (data, messageType, schemaMetadata) => {
|
|
|
53
53
|
return decoded;
|
|
54
54
|
}
|
|
55
55
|
catch {
|
|
56
|
-
throw new KafkaConsumerDeserializationError(`Failed to deserialize Protobuf message: ${error}, message: ${data}, messageType: ${messageType}`);
|
|
56
|
+
throw new KafkaConsumerDeserializationError(`Failed to deserialize Protobuf message: ${error}, message: ${data}, messageType: ${JSON.stringify(messageType)}`);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-lambda-powertools/kafka",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.1",
|
|
4
4
|
"description": "Utility to easily handle message deserialization and parsing of Kafka events in AWS Lambda functions",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Amazon Web Services",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"nodejs"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-lambda-powertools/commons": "2.
|
|
30
|
+
"@aws-lambda-powertools/commons": "2.25.1",
|
|
31
31
|
"@standard-schema/spec": "^1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|