@aesop-fables/triginta
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -80,2 +80,11 @@ "use strict"; | ||
} | ||
catch (e) { | ||
const failureHandler = childContainer.get(SqsLambdaServices_1.SqsLambdaServices.FailureHandler); | ||
const shouldReport = yield failureHandler.onError(record, e); | ||
if (shouldReport) { | ||
response.batchItemFailures.push({ | ||
itemIdentifier: record.messageId, | ||
}); | ||
} | ||
} | ||
finally { | ||
@@ -93,9 +102,5 @@ if (childContainer) { | ||
catch (e) { | ||
const failureHandler = this.container.get(SqsLambdaServices_1.SqsLambdaServices.FailureHandler); | ||
const shouldReport = yield failureHandler.onError(record, e); | ||
if (shouldReport) { | ||
response.batchItemFailures.push({ | ||
itemIdentifier: record.messageId, | ||
}); | ||
} | ||
// We need to revisit this | ||
// https://github.com/aesop-fables/triginta/issues/199 | ||
throw e; | ||
} | ||
@@ -102,0 +107,0 @@ } |
{ | ||
"name": "@aesop-fables/triginta", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "A lightweight framework that wraps the basic infrastructure usages of AWS Lambda (SQS, Kinesis, etc.).", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134845
2892