Skip to content

Commit

Permalink
Merge pull request #54 from dandalf/master
Browse files Browse the repository at this point in the history
v 1.5.1 fix silent error on subsequent invocations
  • Loading branch information
IanMeyers authored Sep 20, 2017
2 parents 938a38c + c32e920 commit caa66c5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# 1.5.1
* Fixed bug where only the first event would write to Firehose.
Binary file added dist/LambdaStreamToFirehose-1.5.1.zip
Binary file not shown.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var useTransformer;
function setTransformer(transformer) {
useTransformer = transformer
}
exports.setTransformer = setTransformer
exports.setTransformer = setTransformer;

/*
* Configure destination router. By default all records route to the configured
Expand All @@ -57,7 +57,7 @@ var useRouter = router.defaultRouting.bind(undefined);
function setRouter(router) {
useRouter = router
}
exports.setRouter = setRouter
exports.setRouter = setRouter;
// example for using routing based on messages attributes
// var attributeMap = {
// "binaryValue" : {
Expand Down Expand Up @@ -137,6 +137,8 @@ function init(callback) {
callback(null);
}
});
} else {
callback(null);
}
}
exports.init = init;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lambda-stream-to-firehose",
"description": "An AWS Lambda function that forwards data from a Kinesis or DynamoDB Update Stream to a Kinesis Firehose Delivery Stream",
"version": "1.5.0",
"version": "1.5.1",
"dependencies":
{
"async": "2.1.4",
Expand Down

0 comments on commit caa66c5

Please sign in to comment.