presidium 3.4.4 → 3.4.6
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.
package/DynamoDBStream.js
CHANGED
|
@@ -15,6 +15,7 @@ const dynamoDBStreamGetShardsIterator =
|
|
|
15
15
|
require('./internal/dynamoDBStreamGetShardsIterator')
|
|
16
16
|
const dynamoDBStreamGetRecordsIterator =
|
|
17
17
|
require('./internal/dynamoDBStreamGetRecordsIterator')
|
|
18
|
+
const AwsError = require('./internal/AwsError')
|
|
18
19
|
|
|
19
20
|
const SymbolUpdateShards = Symbol('UpdateShards')
|
|
20
21
|
|
|
@@ -100,6 +101,7 @@ class DynamoDBStream {
|
|
|
100
101
|
this.StreamViewType = options.StreamViewType ?? 'NEW_AND_OLD_IMAGES'
|
|
101
102
|
this.ShardIteratorType = options.ShardIteratorType ?? 'LATEST'
|
|
102
103
|
this.GetRecordsLimit = options.GetRecordsLimit ?? 1000
|
|
104
|
+
this.GetStreamsInterval = options.GetStreamsInterval ?? 1000
|
|
103
105
|
this.GetShardsInterval = options.GetShardsInterval ?? 1000
|
|
104
106
|
this.GetRecordsInterval = options.GetRecordsInterval ?? 1000
|
|
105
107
|
this.ShardUpdatePeriod = options.ShardUpdatePeriod ?? 15000
|
package/HTTP.js
CHANGED
|
@@ -134,9 +134,11 @@ class HTTP {
|
|
|
134
134
|
resolve(response)
|
|
135
135
|
})
|
|
136
136
|
|
|
137
|
+
/* TODO remove this an closeConnections from codebase (breaking)
|
|
137
138
|
request.on('socket', socket => {
|
|
138
139
|
this._sockets.add(socket)
|
|
139
140
|
})
|
|
141
|
+
*/
|
|
140
142
|
|
|
141
143
|
request.on('error', reject)
|
|
142
144
|
if (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const RetryAwsErrors = require('./RetryAwsErrors')
|
|
2
2
|
const dynamoDBStreamListStreams = require('./dynamoDBStreamListStreams')
|
|
3
|
+
const sleep = require('./sleep')
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* @name dynamoDBStreamGetStreamsIterator
|
|
@@ -20,7 +21,10 @@ async function* dynamoDBStreamGetStreamsIterator() {
|
|
|
20
21
|
})
|
|
21
22
|
|
|
22
23
|
yield* streams.Streams
|
|
24
|
+
|
|
23
25
|
while (!this.closed && streams.LastEvaluatedStreamArn != null) {
|
|
26
|
+
await sleep(this.GetStreamsInterval)
|
|
27
|
+
|
|
24
28
|
streams = await dynamoDBStreamListStreamsRetries({
|
|
25
29
|
Limit: this.ListStreamsLimit,
|
|
26
30
|
TableName: this.table,
|