presidium 0.29.12 → 0.29.13

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.
Files changed (2) hide show
  1. package/DynamoStream.js +4 -1
  2. package/package.json +1 -1
package/DynamoStream.js CHANGED
@@ -181,7 +181,10 @@ DynamoStream.prototype.getRecords = async function* getRecords(
181
181
  ShardIterator: records.NextShardIterator,
182
182
  Limit: this.getRecordsLimit
183
183
  }).catch(handleGetRecordsError)
184
- if (records.Records.length > 0) {
184
+ if (records.Records == null) {
185
+ console.error(`DynamoStream: records.Records undefined: ${records}`)
186
+ break
187
+ } else if (records.Records.length > 0) {
185
188
  yield* records.Records.map(assign({
186
189
  table: always(this.table),
187
190
  shardId: always(Shard.ShardId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "presidium",
3
- "version": "0.29.12",
3
+ "version": "0.29.13",
4
4
  "description": "A library for creating web services",
5
5
  "author": "Richard Tong",
6
6
  "license": "MIT",