@aws-sdk/client-dynamodb-streams 3.54.1 → 3.55.0
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/CHANGELOG.md +8 -0
- package/dist-cjs/DynamoDBStreamsClient.js +13 -13
- package/dist-cjs/commands/DescribeStreamCommand.js +3 -3
- package/dist-cjs/commands/GetRecordsCommand.js +3 -3
- package/dist-cjs/commands/GetShardIteratorCommand.js +3 -3
- package/dist-cjs/commands/ListStreamsCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_json1_0.js +57 -57
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/DynamoDBStreams.js +4 -4
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-dynamodb-streams
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/client-dynamodb-streams
|
|
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
13
|
class DynamoDBStreamsClient extends smithy_client_1.Client {
|
|
14
14
|
constructor(configuration) {
|
|
15
|
-
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
16
|
-
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
17
|
-
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
18
|
-
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
19
|
-
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
20
|
-
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
21
|
-
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
15
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
16
|
+
const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
|
|
17
|
+
const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
|
|
18
|
+
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
19
|
+
const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
|
|
20
|
+
const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
|
|
21
|
+
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
|
22
22
|
super(_config_6);
|
|
23
23
|
this.config = _config_6;
|
|
24
|
-
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
25
|
-
this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
|
|
26
|
-
this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
|
|
27
|
-
this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
|
|
28
|
-
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
29
|
-
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
25
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
26
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
27
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
28
|
+
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
30
30
|
}
|
|
31
31
|
destroy() {
|
|
32
32
|
super.destroy();
|
|
@@ -11,7 +11,7 @@ class DescribeStreamCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "DynamoDBStreamsClient";
|
|
@@ -27,10 +27,10 @@ class DescribeStreamCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_0_1.serializeAws_json1_0DescribeStreamCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0DescribeStreamCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_0_1.deserializeAws_json1_0DescribeStreamCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeStreamCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.DescribeStreamCommand = DescribeStreamCommand;
|
|
@@ -11,7 +11,7 @@ class GetRecordsCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "DynamoDBStreamsClient";
|
|
@@ -27,10 +27,10 @@ class GetRecordsCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_0_1.serializeAws_json1_0GetRecordsCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0GetRecordsCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_0_1.deserializeAws_json1_0GetRecordsCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0GetRecordsCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.GetRecordsCommand = GetRecordsCommand;
|
|
@@ -11,7 +11,7 @@ class GetShardIteratorCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "DynamoDBStreamsClient";
|
|
@@ -27,10 +27,10 @@ class GetShardIteratorCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_0_1.serializeAws_json1_0GetShardIteratorCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0GetShardIteratorCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_0_1.deserializeAws_json1_0GetShardIteratorCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0GetShardIteratorCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.GetShardIteratorCommand = GetShardIteratorCommand;
|
|
@@ -11,7 +11,7 @@ class ListStreamsCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "DynamoDBStreamsClient";
|
|
@@ -27,10 +27,10 @@ class ListStreamsCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_0_1.serializeAws_json1_0ListStreamsCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0ListStreamsCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_0_1.deserializeAws_json1_0ListStreamsCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0ListStreamsCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.ListStreamsCommand = ListStreamsCommand;
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -149,7 +149,7 @@ const partitionHash = {
|
|
|
149
149
|
],
|
|
150
150
|
},
|
|
151
151
|
};
|
|
152
|
-
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
152
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
153
153
|
...options,
|
|
154
154
|
signingService: "dynamodb",
|
|
155
155
|
regionHash,
|
|
@@ -81,7 +81,7 @@ const deserializeAws_json1_0DescribeStreamCommandError = async (output, context)
|
|
|
81
81
|
$fault: "client",
|
|
82
82
|
$metadata: deserializeMetadata(output),
|
|
83
83
|
});
|
|
84
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
84
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
const deserializeAws_json1_0GetRecordsCommand = async (output, context) => {
|
|
@@ -129,7 +129,7 @@ const deserializeAws_json1_0GetRecordsCommandError = async (output, context) =>
|
|
|
129
129
|
$fault: "client",
|
|
130
130
|
$metadata: deserializeMetadata(output),
|
|
131
131
|
});
|
|
132
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
132
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
const deserializeAws_json1_0GetShardIteratorCommand = async (output, context) => {
|
|
@@ -171,7 +171,7 @@ const deserializeAws_json1_0GetShardIteratorCommandError = async (output, contex
|
|
|
171
171
|
$fault: "client",
|
|
172
172
|
$metadata: deserializeMetadata(output),
|
|
173
173
|
});
|
|
174
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
174
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
177
|
const deserializeAws_json1_0ListStreamsCommand = async (output, context) => {
|
|
@@ -210,7 +210,7 @@ const deserializeAws_json1_0ListStreamsCommandError = async (output, context) =>
|
|
|
210
210
|
$fault: "client",
|
|
211
211
|
$metadata: deserializeMetadata(output),
|
|
212
212
|
});
|
|
213
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
213
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
const deserializeAws_json1_0ExpiredIteratorExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -220,7 +220,7 @@ const deserializeAws_json1_0ExpiredIteratorExceptionResponse = async (parsedOutp
|
|
|
220
220
|
$metadata: deserializeMetadata(parsedOutput),
|
|
221
221
|
...deserialized,
|
|
222
222
|
});
|
|
223
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
223
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
224
224
|
};
|
|
225
225
|
const deserializeAws_json1_0InternalServerErrorResponse = async (parsedOutput, context) => {
|
|
226
226
|
const body = parsedOutput.body;
|
|
@@ -229,7 +229,7 @@ const deserializeAws_json1_0InternalServerErrorResponse = async (parsedOutput, c
|
|
|
229
229
|
$metadata: deserializeMetadata(parsedOutput),
|
|
230
230
|
...deserialized,
|
|
231
231
|
});
|
|
232
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
232
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
233
233
|
};
|
|
234
234
|
const deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
235
235
|
const body = parsedOutput.body;
|
|
@@ -238,7 +238,7 @@ const deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput
|
|
|
238
238
|
$metadata: deserializeMetadata(parsedOutput),
|
|
239
239
|
...deserialized,
|
|
240
240
|
});
|
|
241
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
241
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
242
242
|
};
|
|
243
243
|
const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
244
244
|
const body = parsedOutput.body;
|
|
@@ -247,7 +247,7 @@ const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
247
247
|
$metadata: deserializeMetadata(parsedOutput),
|
|
248
248
|
...deserialized,
|
|
249
249
|
});
|
|
250
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
250
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
251
251
|
};
|
|
252
252
|
const deserializeAws_json1_0TrimmedDataAccessExceptionResponse = async (parsedOutput, context) => {
|
|
253
253
|
const body = parsedOutput.body;
|
|
@@ -256,7 +256,7 @@ const deserializeAws_json1_0TrimmedDataAccessExceptionResponse = async (parsedOu
|
|
|
256
256
|
$metadata: deserializeMetadata(parsedOutput),
|
|
257
257
|
...deserialized,
|
|
258
258
|
});
|
|
259
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
259
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
260
260
|
};
|
|
261
261
|
const serializeAws_json1_0DescribeStreamInput = (input, context) => {
|
|
262
262
|
return {
|
|
@@ -297,7 +297,7 @@ const deserializeAws_json1_0AttributeMap = (output, context) => {
|
|
|
297
297
|
}
|
|
298
298
|
return {
|
|
299
299
|
...acc,
|
|
300
|
-
[key]: deserializeAws_json1_0AttributeValue(smithy_client_1.expectUnion(value), context),
|
|
300
|
+
[key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context),
|
|
301
301
|
};
|
|
302
302
|
}, {});
|
|
303
303
|
};
|
|
@@ -307,8 +307,8 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
|
307
307
|
B: context.base64Decoder(output.B),
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
if (smithy_client_1.expectBoolean(output.BOOL) !== undefined) {
|
|
311
|
-
return { BOOL: smithy_client_1.expectBoolean(output.BOOL) };
|
|
310
|
+
if ((0, smithy_client_1.expectBoolean)(output.BOOL) !== undefined) {
|
|
311
|
+
return { BOOL: (0, smithy_client_1.expectBoolean)(output.BOOL) };
|
|
312
312
|
}
|
|
313
313
|
if (output.BS !== undefined && output.BS !== null) {
|
|
314
314
|
return {
|
|
@@ -325,19 +325,19 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
|
325
325
|
M: deserializeAws_json1_0MapAttributeValue(output.M, context),
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
if (smithy_client_1.expectString(output.N) !== undefined) {
|
|
329
|
-
return { N: smithy_client_1.expectString(output.N) };
|
|
328
|
+
if ((0, smithy_client_1.expectString)(output.N) !== undefined) {
|
|
329
|
+
return { N: (0, smithy_client_1.expectString)(output.N) };
|
|
330
330
|
}
|
|
331
331
|
if (output.NS !== undefined && output.NS !== null) {
|
|
332
332
|
return {
|
|
333
333
|
NS: deserializeAws_json1_0NumberSetAttributeValue(output.NS, context),
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
if (smithy_client_1.expectBoolean(output.NULL) !== undefined) {
|
|
337
|
-
return { NULL: smithy_client_1.expectBoolean(output.NULL) };
|
|
336
|
+
if ((0, smithy_client_1.expectBoolean)(output.NULL) !== undefined) {
|
|
337
|
+
return { NULL: (0, smithy_client_1.expectBoolean)(output.NULL) };
|
|
338
338
|
}
|
|
339
|
-
if (smithy_client_1.expectString(output.S) !== undefined) {
|
|
340
|
-
return { S: smithy_client_1.expectString(output.S) };
|
|
339
|
+
if ((0, smithy_client_1.expectString)(output.S) !== undefined) {
|
|
340
|
+
return { S: (0, smithy_client_1.expectString)(output.S) };
|
|
341
341
|
}
|
|
342
342
|
if (output.SS !== undefined && output.SS !== null) {
|
|
343
343
|
return {
|
|
@@ -366,12 +366,12 @@ const deserializeAws_json1_0DescribeStreamOutput = (output, context) => {
|
|
|
366
366
|
};
|
|
367
367
|
const deserializeAws_json1_0ExpiredIteratorException = (output, context) => {
|
|
368
368
|
return {
|
|
369
|
-
message: smithy_client_1.expectString(output.message),
|
|
369
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
370
370
|
};
|
|
371
371
|
};
|
|
372
372
|
const deserializeAws_json1_0GetRecordsOutput = (output, context) => {
|
|
373
373
|
return {
|
|
374
|
-
NextShardIterator: smithy_client_1.expectString(output.NextShardIterator),
|
|
374
|
+
NextShardIterator: (0, smithy_client_1.expectString)(output.NextShardIterator),
|
|
375
375
|
Records: output.Records !== undefined && output.Records !== null
|
|
376
376
|
? deserializeAws_json1_0RecordList(output.Records, context)
|
|
377
377
|
: undefined,
|
|
@@ -379,18 +379,18 @@ const deserializeAws_json1_0GetRecordsOutput = (output, context) => {
|
|
|
379
379
|
};
|
|
380
380
|
const deserializeAws_json1_0GetShardIteratorOutput = (output, context) => {
|
|
381
381
|
return {
|
|
382
|
-
ShardIterator: smithy_client_1.expectString(output.ShardIterator),
|
|
382
|
+
ShardIterator: (0, smithy_client_1.expectString)(output.ShardIterator),
|
|
383
383
|
};
|
|
384
384
|
};
|
|
385
385
|
const deserializeAws_json1_0Identity = (output, context) => {
|
|
386
386
|
return {
|
|
387
|
-
PrincipalId: smithy_client_1.expectString(output.PrincipalId),
|
|
388
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
387
|
+
PrincipalId: (0, smithy_client_1.expectString)(output.PrincipalId),
|
|
388
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
389
389
|
};
|
|
390
390
|
};
|
|
391
391
|
const deserializeAws_json1_0InternalServerError = (output, context) => {
|
|
392
392
|
return {
|
|
393
|
-
message: smithy_client_1.expectString(output.message),
|
|
393
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
394
394
|
};
|
|
395
395
|
};
|
|
396
396
|
const deserializeAws_json1_0KeySchema = (output, context) => {
|
|
@@ -406,13 +406,13 @@ const deserializeAws_json1_0KeySchema = (output, context) => {
|
|
|
406
406
|
};
|
|
407
407
|
const deserializeAws_json1_0KeySchemaElement = (output, context) => {
|
|
408
408
|
return {
|
|
409
|
-
AttributeName: smithy_client_1.expectString(output.AttributeName),
|
|
410
|
-
KeyType: smithy_client_1.expectString(output.KeyType),
|
|
409
|
+
AttributeName: (0, smithy_client_1.expectString)(output.AttributeName),
|
|
410
|
+
KeyType: (0, smithy_client_1.expectString)(output.KeyType),
|
|
411
411
|
};
|
|
412
412
|
};
|
|
413
413
|
const deserializeAws_json1_0LimitExceededException = (output, context) => {
|
|
414
414
|
return {
|
|
415
|
-
message: smithy_client_1.expectString(output.message),
|
|
415
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
416
416
|
};
|
|
417
417
|
};
|
|
418
418
|
const deserializeAws_json1_0ListAttributeValue = (output, context) => {
|
|
@@ -422,13 +422,13 @@ const deserializeAws_json1_0ListAttributeValue = (output, context) => {
|
|
|
422
422
|
if (entry === null) {
|
|
423
423
|
return null;
|
|
424
424
|
}
|
|
425
|
-
return deserializeAws_json1_0AttributeValue(smithy_client_1.expectUnion(entry), context);
|
|
425
|
+
return deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(entry), context);
|
|
426
426
|
});
|
|
427
427
|
return retVal;
|
|
428
428
|
};
|
|
429
429
|
const deserializeAws_json1_0ListStreamsOutput = (output, context) => {
|
|
430
430
|
return {
|
|
431
|
-
LastEvaluatedStreamArn: smithy_client_1.expectString(output.LastEvaluatedStreamArn),
|
|
431
|
+
LastEvaluatedStreamArn: (0, smithy_client_1.expectString)(output.LastEvaluatedStreamArn),
|
|
432
432
|
Streams: output.Streams !== undefined && output.Streams !== null
|
|
433
433
|
? deserializeAws_json1_0StreamList(output.Streams, context)
|
|
434
434
|
: undefined,
|
|
@@ -441,7 +441,7 @@ const deserializeAws_json1_0MapAttributeValue = (output, context) => {
|
|
|
441
441
|
}
|
|
442
442
|
return {
|
|
443
443
|
...acc,
|
|
444
|
-
[key]: deserializeAws_json1_0AttributeValue(smithy_client_1.expectUnion(value), context),
|
|
444
|
+
[key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context),
|
|
445
445
|
};
|
|
446
446
|
}, {});
|
|
447
447
|
};
|
|
@@ -452,20 +452,20 @@ const deserializeAws_json1_0NumberSetAttributeValue = (output, context) => {
|
|
|
452
452
|
if (entry === null) {
|
|
453
453
|
return null;
|
|
454
454
|
}
|
|
455
|
-
return smithy_client_1.expectString(entry);
|
|
455
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
456
456
|
});
|
|
457
457
|
return retVal;
|
|
458
458
|
};
|
|
459
459
|
const deserializeAws_json1_0_Record = (output, context) => {
|
|
460
460
|
return {
|
|
461
|
-
awsRegion: smithy_client_1.expectString(output.awsRegion),
|
|
461
|
+
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
462
462
|
dynamodb: output.dynamodb !== undefined && output.dynamodb !== null
|
|
463
463
|
? deserializeAws_json1_0StreamRecord(output.dynamodb, context)
|
|
464
464
|
: undefined,
|
|
465
|
-
eventID: smithy_client_1.expectString(output.eventID),
|
|
466
|
-
eventName: smithy_client_1.expectString(output.eventName),
|
|
467
|
-
eventSource: smithy_client_1.expectString(output.eventSource),
|
|
468
|
-
eventVersion: smithy_client_1.expectString(output.eventVersion),
|
|
465
|
+
eventID: (0, smithy_client_1.expectString)(output.eventID),
|
|
466
|
+
eventName: (0, smithy_client_1.expectString)(output.eventName),
|
|
467
|
+
eventSource: (0, smithy_client_1.expectString)(output.eventSource),
|
|
468
|
+
eventVersion: (0, smithy_client_1.expectString)(output.eventVersion),
|
|
469
469
|
userIdentity: output.userIdentity !== undefined && output.userIdentity !== null
|
|
470
470
|
? deserializeAws_json1_0Identity(output.userIdentity, context)
|
|
471
471
|
: undefined,
|
|
@@ -484,22 +484,22 @@ const deserializeAws_json1_0RecordList = (output, context) => {
|
|
|
484
484
|
};
|
|
485
485
|
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
486
486
|
return {
|
|
487
|
-
message: smithy_client_1.expectString(output.message),
|
|
487
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
488
488
|
};
|
|
489
489
|
};
|
|
490
490
|
const deserializeAws_json1_0SequenceNumberRange = (output, context) => {
|
|
491
491
|
return {
|
|
492
|
-
EndingSequenceNumber: smithy_client_1.expectString(output.EndingSequenceNumber),
|
|
493
|
-
StartingSequenceNumber: smithy_client_1.expectString(output.StartingSequenceNumber),
|
|
492
|
+
EndingSequenceNumber: (0, smithy_client_1.expectString)(output.EndingSequenceNumber),
|
|
493
|
+
StartingSequenceNumber: (0, smithy_client_1.expectString)(output.StartingSequenceNumber),
|
|
494
494
|
};
|
|
495
495
|
};
|
|
496
496
|
const deserializeAws_json1_0Shard = (output, context) => {
|
|
497
497
|
return {
|
|
498
|
-
ParentShardId: smithy_client_1.expectString(output.ParentShardId),
|
|
498
|
+
ParentShardId: (0, smithy_client_1.expectString)(output.ParentShardId),
|
|
499
499
|
SequenceNumberRange: output.SequenceNumberRange !== undefined && output.SequenceNumberRange !== null
|
|
500
500
|
? deserializeAws_json1_0SequenceNumberRange(output.SequenceNumberRange, context)
|
|
501
501
|
: undefined,
|
|
502
|
-
ShardId: smithy_client_1.expectString(output.ShardId),
|
|
502
|
+
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
503
503
|
};
|
|
504
504
|
};
|
|
505
505
|
const deserializeAws_json1_0ShardDescriptionList = (output, context) => {
|
|
@@ -515,28 +515,28 @@ const deserializeAws_json1_0ShardDescriptionList = (output, context) => {
|
|
|
515
515
|
};
|
|
516
516
|
const deserializeAws_json1_0_Stream = (output, context) => {
|
|
517
517
|
return {
|
|
518
|
-
StreamArn: smithy_client_1.expectString(output.StreamArn),
|
|
519
|
-
StreamLabel: smithy_client_1.expectString(output.StreamLabel),
|
|
520
|
-
TableName: smithy_client_1.expectString(output.TableName),
|
|
518
|
+
StreamArn: (0, smithy_client_1.expectString)(output.StreamArn),
|
|
519
|
+
StreamLabel: (0, smithy_client_1.expectString)(output.StreamLabel),
|
|
520
|
+
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
521
521
|
};
|
|
522
522
|
};
|
|
523
523
|
const deserializeAws_json1_0StreamDescription = (output, context) => {
|
|
524
524
|
return {
|
|
525
525
|
CreationRequestDateTime: output.CreationRequestDateTime !== undefined && output.CreationRequestDateTime !== null
|
|
526
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationRequestDateTime)))
|
|
526
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationRequestDateTime)))
|
|
527
527
|
: undefined,
|
|
528
528
|
KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
|
|
529
529
|
? deserializeAws_json1_0KeySchema(output.KeySchema, context)
|
|
530
530
|
: undefined,
|
|
531
|
-
LastEvaluatedShardId: smithy_client_1.expectString(output.LastEvaluatedShardId),
|
|
531
|
+
LastEvaluatedShardId: (0, smithy_client_1.expectString)(output.LastEvaluatedShardId),
|
|
532
532
|
Shards: output.Shards !== undefined && output.Shards !== null
|
|
533
533
|
? deserializeAws_json1_0ShardDescriptionList(output.Shards, context)
|
|
534
534
|
: undefined,
|
|
535
|
-
StreamArn: smithy_client_1.expectString(output.StreamArn),
|
|
536
|
-
StreamLabel: smithy_client_1.expectString(output.StreamLabel),
|
|
537
|
-
StreamStatus: smithy_client_1.expectString(output.StreamStatus),
|
|
538
|
-
StreamViewType: smithy_client_1.expectString(output.StreamViewType),
|
|
539
|
-
TableName: smithy_client_1.expectString(output.TableName),
|
|
535
|
+
StreamArn: (0, smithy_client_1.expectString)(output.StreamArn),
|
|
536
|
+
StreamLabel: (0, smithy_client_1.expectString)(output.StreamLabel),
|
|
537
|
+
StreamStatus: (0, smithy_client_1.expectString)(output.StreamStatus),
|
|
538
|
+
StreamViewType: (0, smithy_client_1.expectString)(output.StreamViewType),
|
|
539
|
+
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
540
540
|
};
|
|
541
541
|
};
|
|
542
542
|
const deserializeAws_json1_0StreamList = (output, context) => {
|
|
@@ -553,7 +553,7 @@ const deserializeAws_json1_0StreamList = (output, context) => {
|
|
|
553
553
|
const deserializeAws_json1_0StreamRecord = (output, context) => {
|
|
554
554
|
return {
|
|
555
555
|
ApproximateCreationDateTime: output.ApproximateCreationDateTime !== undefined && output.ApproximateCreationDateTime !== null
|
|
556
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ApproximateCreationDateTime)))
|
|
556
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ApproximateCreationDateTime)))
|
|
557
557
|
: undefined,
|
|
558
558
|
Keys: output.Keys !== undefined && output.Keys !== null
|
|
559
559
|
? deserializeAws_json1_0AttributeMap(output.Keys, context)
|
|
@@ -564,9 +564,9 @@ const deserializeAws_json1_0StreamRecord = (output, context) => {
|
|
|
564
564
|
OldImage: output.OldImage !== undefined && output.OldImage !== null
|
|
565
565
|
? deserializeAws_json1_0AttributeMap(output.OldImage, context)
|
|
566
566
|
: undefined,
|
|
567
|
-
SequenceNumber: smithy_client_1.expectString(output.SequenceNumber),
|
|
568
|
-
SizeBytes: smithy_client_1.expectLong(output.SizeBytes),
|
|
569
|
-
StreamViewType: smithy_client_1.expectString(output.StreamViewType),
|
|
567
|
+
SequenceNumber: (0, smithy_client_1.expectString)(output.SequenceNumber),
|
|
568
|
+
SizeBytes: (0, smithy_client_1.expectLong)(output.SizeBytes),
|
|
569
|
+
StreamViewType: (0, smithy_client_1.expectString)(output.StreamViewType),
|
|
570
570
|
};
|
|
571
571
|
};
|
|
572
572
|
const deserializeAws_json1_0StringSetAttributeValue = (output, context) => {
|
|
@@ -576,13 +576,13 @@ const deserializeAws_json1_0StringSetAttributeValue = (output, context) => {
|
|
|
576
576
|
if (entry === null) {
|
|
577
577
|
return null;
|
|
578
578
|
}
|
|
579
|
-
return smithy_client_1.expectString(entry);
|
|
579
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
580
580
|
});
|
|
581
581
|
return retVal;
|
|
582
582
|
};
|
|
583
583
|
const deserializeAws_json1_0TrimmedDataAccessException = (output, context) => {
|
|
584
584
|
return {
|
|
585
|
-
message: smithy_client_1.expectString(output.message),
|
|
585
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
586
586
|
};
|
|
587
587
|
};
|
|
588
588
|
const deserializeMetadata = (output) => {
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
|
@@ -16,7 +16,7 @@ var DynamoDBStreams = (function (_super) {
|
|
|
16
16
|
}
|
|
17
17
|
else if (typeof cb === "function") {
|
|
18
18
|
if (typeof optionsOrCb !== "object")
|
|
19
|
-
throw new Error("Expect http options but get "
|
|
19
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
20
20
|
this.send(command, optionsOrCb || {}, cb);
|
|
21
21
|
}
|
|
22
22
|
else {
|
|
@@ -30,7 +30,7 @@ var DynamoDBStreams = (function (_super) {
|
|
|
30
30
|
}
|
|
31
31
|
else if (typeof cb === "function") {
|
|
32
32
|
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error("Expect http options but get "
|
|
33
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
34
34
|
this.send(command, optionsOrCb || {}, cb);
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
@@ -44,7 +44,7 @@ var DynamoDBStreams = (function (_super) {
|
|
|
44
44
|
}
|
|
45
45
|
else if (typeof cb === "function") {
|
|
46
46
|
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error("Expect http options but get "
|
|
47
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
48
48
|
this.send(command, optionsOrCb || {}, cb);
|
|
49
49
|
}
|
|
50
50
|
else {
|
|
@@ -58,7 +58,7 @@ var DynamoDBStreams = (function (_super) {
|
|
|
58
58
|
}
|
|
59
59
|
else if (typeof cb === "function") {
|
|
60
60
|
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error("Expect http options but get "
|
|
61
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
62
62
|
this.send(command, optionsOrCb || {}, cb);
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
23
|
serviceId: string;
|
|
24
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
29
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
30
30
|
tls?: boolean | undefined;
|
|
31
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
27
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
28
|
tls?: boolean | undefined;
|
|
29
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dynamodb-streams",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dynamodb Streams Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.55.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,47 +18,47 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
51
|
-
"tslib": "^2.3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.55.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.55.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.55.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.55.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.55.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.55.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.55.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.55.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.55.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.55.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.55.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.55.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.55.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.55.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.55.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.55.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.55.0",
|
|
39
|
+
"@aws-sdk/types": "3.55.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.55.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.55.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.55.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.55.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.55.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.55.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
51
|
+
"tslib": "^2.3.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.55.0",
|
|
55
55
|
"@tsconfig/recommended": "1.0.1",
|
|
56
56
|
"@types/node": "^12.7.5",
|
|
57
57
|
"concurrently": "7.0.0",
|
|
58
58
|
"downlevel-dts": "0.7.0",
|
|
59
59
|
"rimraf": "3.0.2",
|
|
60
60
|
"typedoc": "0.19.2",
|
|
61
|
-
"typescript": "~4.
|
|
61
|
+
"typescript": "~4.6.2"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=12.0.0"
|