presidium 0.15.17 → 0.15.18

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 +5 -1
  2. package/package.json +1 -1
package/DynamoStream.js CHANGED
@@ -171,6 +171,10 @@ DynamoStream.prototype[Symbol.asyncIterator] = async function* () {
171
171
  let shardUpdatePromise = new Promise(resolve => setTimeout(
172
172
  thunkify(resolve, SymbolUpdateShards), this.shardUpdatePeriod))
173
173
 
174
+ if (this.debug) {
175
+ console.log('Starting shards:', shards.map(get('ShardId')))
176
+ }
177
+
174
178
  while (!this.closed) {
175
179
  const iteration = await Promise.race([
176
180
  shardUpdatePromise,
@@ -194,7 +198,7 @@ DynamoStream.prototype[Symbol.asyncIterator] = async function* () {
194
198
  ])()
195
199
 
196
200
  if (this.debug) {
197
- console.log('Latest shards:', latestShards)
201
+ console.log('Latest shards:', latestShards.map(get('ShardId')))
198
202
  }
199
203
 
200
204
  shards = latestShards
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "presidium",
3
- "version": "0.15.17",
3
+ "version": "0.15.18",
4
4
  "description": "A library for creating web services",
5
5
  "author": "Richard Tong",
6
6
  "license": "MIT",