@aws-lambda-powertools/kafka 2.24.0 → 2.25.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.
|
@@ -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.0",
|
|
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.0",
|
|
31
31
|
"@standard-schema/spec": "^1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
package/LICENSE
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
-
the Software without restriction, including without limitation the rights to
|
|
6
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
7
|
-
the Software, and to permit persons to whom the Software is furnished to do so.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
10
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
11
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
12
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
13
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
14
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|