@aws-sdk/client-dynamodb-streams 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +28 -47
- package/dist-es/protocols/Aws_json1_0.js +20 -39
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-dynamodb-streams
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-dynamodb-streams
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -264,34 +264,30 @@ const deserializeAws_json1_0TrimmedDataAccessExceptionResponse = async (parsedOu
|
|
|
264
264
|
};
|
|
265
265
|
const serializeAws_json1_0DescribeStreamInput = (input, context) => {
|
|
266
266
|
return {
|
|
267
|
-
...(input.ExclusiveStartShardId
|
|
268
|
-
|
|
269
|
-
...(input.
|
|
270
|
-
...(input.StreamArn !== undefined && input.StreamArn !== null && { StreamArn: input.StreamArn }),
|
|
267
|
+
...(input.ExclusiveStartShardId != null && { ExclusiveStartShardId: input.ExclusiveStartShardId }),
|
|
268
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
269
|
+
...(input.StreamArn != null && { StreamArn: input.StreamArn }),
|
|
271
270
|
};
|
|
272
271
|
};
|
|
273
272
|
const serializeAws_json1_0GetRecordsInput = (input, context) => {
|
|
274
273
|
return {
|
|
275
|
-
...(input.Limit
|
|
276
|
-
...(input.ShardIterator
|
|
274
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
275
|
+
...(input.ShardIterator != null && { ShardIterator: input.ShardIterator }),
|
|
277
276
|
};
|
|
278
277
|
};
|
|
279
278
|
const serializeAws_json1_0GetShardIteratorInput = (input, context) => {
|
|
280
279
|
return {
|
|
281
|
-
...(input.SequenceNumber
|
|
282
|
-
|
|
283
|
-
...(input.
|
|
284
|
-
...(input.
|
|
285
|
-
input.ShardIteratorType !== null && { ShardIteratorType: input.ShardIteratorType }),
|
|
286
|
-
...(input.StreamArn !== undefined && input.StreamArn !== null && { StreamArn: input.StreamArn }),
|
|
280
|
+
...(input.SequenceNumber != null && { SequenceNumber: input.SequenceNumber }),
|
|
281
|
+
...(input.ShardId != null && { ShardId: input.ShardId }),
|
|
282
|
+
...(input.ShardIteratorType != null && { ShardIteratorType: input.ShardIteratorType }),
|
|
283
|
+
...(input.StreamArn != null && { StreamArn: input.StreamArn }),
|
|
287
284
|
};
|
|
288
285
|
};
|
|
289
286
|
const serializeAws_json1_0ListStreamsInput = (input, context) => {
|
|
290
287
|
return {
|
|
291
|
-
...(input.ExclusiveStartStreamArn
|
|
292
|
-
|
|
293
|
-
...(input.
|
|
294
|
-
...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
|
|
288
|
+
...(input.ExclusiveStartStreamArn != null && { ExclusiveStartStreamArn: input.ExclusiveStartStreamArn }),
|
|
289
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
290
|
+
...(input.TableName != null && { TableName: input.TableName }),
|
|
295
291
|
};
|
|
296
292
|
};
|
|
297
293
|
const deserializeAws_json1_0AttributeMap = (output, context) => {
|
|
@@ -363,7 +359,7 @@ const deserializeAws_json1_0BinarySetAttributeValue = (output, context) => {
|
|
|
363
359
|
};
|
|
364
360
|
const deserializeAws_json1_0DescribeStreamOutput = (output, context) => {
|
|
365
361
|
return {
|
|
366
|
-
StreamDescription: output.StreamDescription
|
|
362
|
+
StreamDescription: output.StreamDescription != null
|
|
367
363
|
? deserializeAws_json1_0StreamDescription(output.StreamDescription, context)
|
|
368
364
|
: undefined,
|
|
369
365
|
};
|
|
@@ -376,9 +372,7 @@ const deserializeAws_json1_0ExpiredIteratorException = (output, context) => {
|
|
|
376
372
|
const deserializeAws_json1_0GetRecordsOutput = (output, context) => {
|
|
377
373
|
return {
|
|
378
374
|
NextShardIterator: (0, smithy_client_1.expectString)(output.NextShardIterator),
|
|
379
|
-
Records: output.Records
|
|
380
|
-
? deserializeAws_json1_0RecordList(output.Records, context)
|
|
381
|
-
: undefined,
|
|
375
|
+
Records: output.Records != null ? deserializeAws_json1_0RecordList(output.Records, context) : undefined,
|
|
382
376
|
};
|
|
383
377
|
};
|
|
384
378
|
const deserializeAws_json1_0GetShardIteratorOutput = (output, context) => {
|
|
@@ -433,9 +427,7 @@ const deserializeAws_json1_0ListAttributeValue = (output, context) => {
|
|
|
433
427
|
const deserializeAws_json1_0ListStreamsOutput = (output, context) => {
|
|
434
428
|
return {
|
|
435
429
|
LastEvaluatedStreamArn: (0, smithy_client_1.expectString)(output.LastEvaluatedStreamArn),
|
|
436
|
-
Streams: output.Streams
|
|
437
|
-
? deserializeAws_json1_0StreamList(output.Streams, context)
|
|
438
|
-
: undefined,
|
|
430
|
+
Streams: output.Streams != null ? deserializeAws_json1_0StreamList(output.Streams, context) : undefined,
|
|
439
431
|
};
|
|
440
432
|
};
|
|
441
433
|
const deserializeAws_json1_0MapAttributeValue = (output, context) => {
|
|
@@ -463,16 +455,12 @@ const deserializeAws_json1_0NumberSetAttributeValue = (output, context) => {
|
|
|
463
455
|
const deserializeAws_json1_0_Record = (output, context) => {
|
|
464
456
|
return {
|
|
465
457
|
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
466
|
-
dynamodb: output.dynamodb
|
|
467
|
-
? deserializeAws_json1_0StreamRecord(output.dynamodb, context)
|
|
468
|
-
: undefined,
|
|
458
|
+
dynamodb: output.dynamodb != null ? deserializeAws_json1_0StreamRecord(output.dynamodb, context) : undefined,
|
|
469
459
|
eventID: (0, smithy_client_1.expectString)(output.eventID),
|
|
470
460
|
eventName: (0, smithy_client_1.expectString)(output.eventName),
|
|
471
461
|
eventSource: (0, smithy_client_1.expectString)(output.eventSource),
|
|
472
462
|
eventVersion: (0, smithy_client_1.expectString)(output.eventVersion),
|
|
473
|
-
userIdentity: output.userIdentity
|
|
474
|
-
? deserializeAws_json1_0Identity(output.userIdentity, context)
|
|
475
|
-
: undefined,
|
|
463
|
+
userIdentity: output.userIdentity != null ? deserializeAws_json1_0Identity(output.userIdentity, context) : undefined,
|
|
476
464
|
};
|
|
477
465
|
};
|
|
478
466
|
const deserializeAws_json1_0RecordList = (output, context) => {
|
|
@@ -500,7 +488,7 @@ const deserializeAws_json1_0SequenceNumberRange = (output, context) => {
|
|
|
500
488
|
const deserializeAws_json1_0Shard = (output, context) => {
|
|
501
489
|
return {
|
|
502
490
|
ParentShardId: (0, smithy_client_1.expectString)(output.ParentShardId),
|
|
503
|
-
SequenceNumberRange: output.SequenceNumberRange
|
|
491
|
+
SequenceNumberRange: output.SequenceNumberRange != null
|
|
504
492
|
? deserializeAws_json1_0SequenceNumberRange(output.SequenceNumberRange, context)
|
|
505
493
|
: undefined,
|
|
506
494
|
ShardId: (0, smithy_client_1.expectString)(output.ShardId),
|
|
@@ -526,16 +514,12 @@ const deserializeAws_json1_0_Stream = (output, context) => {
|
|
|
526
514
|
};
|
|
527
515
|
const deserializeAws_json1_0StreamDescription = (output, context) => {
|
|
528
516
|
return {
|
|
529
|
-
CreationRequestDateTime: output.CreationRequestDateTime
|
|
517
|
+
CreationRequestDateTime: output.CreationRequestDateTime != null
|
|
530
518
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationRequestDateTime)))
|
|
531
519
|
: undefined,
|
|
532
|
-
KeySchema: output.KeySchema
|
|
533
|
-
? deserializeAws_json1_0KeySchema(output.KeySchema, context)
|
|
534
|
-
: undefined,
|
|
520
|
+
KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
|
|
535
521
|
LastEvaluatedShardId: (0, smithy_client_1.expectString)(output.LastEvaluatedShardId),
|
|
536
|
-
Shards: output.Shards
|
|
537
|
-
? deserializeAws_json1_0ShardDescriptionList(output.Shards, context)
|
|
538
|
-
: undefined,
|
|
522
|
+
Shards: output.Shards != null ? deserializeAws_json1_0ShardDescriptionList(output.Shards, context) : undefined,
|
|
539
523
|
StreamArn: (0, smithy_client_1.expectString)(output.StreamArn),
|
|
540
524
|
StreamLabel: (0, smithy_client_1.expectString)(output.StreamLabel),
|
|
541
525
|
StreamStatus: (0, smithy_client_1.expectString)(output.StreamStatus),
|
|
@@ -556,18 +540,12 @@ const deserializeAws_json1_0StreamList = (output, context) => {
|
|
|
556
540
|
};
|
|
557
541
|
const deserializeAws_json1_0StreamRecord = (output, context) => {
|
|
558
542
|
return {
|
|
559
|
-
ApproximateCreationDateTime: output.ApproximateCreationDateTime
|
|
543
|
+
ApproximateCreationDateTime: output.ApproximateCreationDateTime != null
|
|
560
544
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ApproximateCreationDateTime)))
|
|
561
545
|
: undefined,
|
|
562
|
-
Keys: output.Keys
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
NewImage: output.NewImage !== undefined && output.NewImage !== null
|
|
566
|
-
? deserializeAws_json1_0AttributeMap(output.NewImage, context)
|
|
567
|
-
: undefined,
|
|
568
|
-
OldImage: output.OldImage !== undefined && output.OldImage !== null
|
|
569
|
-
? deserializeAws_json1_0AttributeMap(output.OldImage, context)
|
|
570
|
-
: undefined,
|
|
546
|
+
Keys: output.Keys != null ? deserializeAws_json1_0AttributeMap(output.Keys, context) : undefined,
|
|
547
|
+
NewImage: output.NewImage != null ? deserializeAws_json1_0AttributeMap(output.NewImage, context) : undefined,
|
|
548
|
+
OldImage: output.OldImage != null ? deserializeAws_json1_0AttributeMap(output.OldImage, context) : undefined,
|
|
571
549
|
SequenceNumber: (0, smithy_client_1.expectString)(output.SequenceNumber),
|
|
572
550
|
SizeBytes: (0, smithy_client_1.expectLong)(output.SizeBytes),
|
|
573
551
|
StreamViewType: (0, smithy_client_1.expectString)(output.StreamViewType),
|
|
@@ -633,6 +611,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
633
611
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
634
612
|
const sanitizeErrorCode = (rawValue) => {
|
|
635
613
|
let cleanValue = rawValue;
|
|
614
|
+
if (typeof cleanValue === "number") {
|
|
615
|
+
cleanValue = cleanValue.toString();
|
|
616
|
+
}
|
|
636
617
|
if (cleanValue.indexOf(":") >= 0) {
|
|
637
618
|
cleanValue = cleanValue.split(":")[0];
|
|
638
619
|
}
|
|
@@ -329,20 +329,16 @@ var deserializeAws_json1_0TrimmedDataAccessExceptionResponse = function (parsedO
|
|
|
329
329
|
});
|
|
330
330
|
}); };
|
|
331
331
|
var serializeAws_json1_0DescribeStreamInput = function (input, context) {
|
|
332
|
-
return __assign(__assign(__assign({}, (input.ExclusiveStartShardId
|
|
333
|
-
input.ExclusiveStartShardId !== null && { ExclusiveStartShardId: input.ExclusiveStartShardId })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.StreamArn !== undefined && input.StreamArn !== null && { StreamArn: input.StreamArn }));
|
|
332
|
+
return __assign(__assign(__assign({}, (input.ExclusiveStartShardId != null && { ExclusiveStartShardId: input.ExclusiveStartShardId })), (input.Limit != null && { Limit: input.Limit })), (input.StreamArn != null && { StreamArn: input.StreamArn }));
|
|
334
333
|
};
|
|
335
334
|
var serializeAws_json1_0GetRecordsInput = function (input, context) {
|
|
336
|
-
return __assign(__assign({}, (input.Limit
|
|
335
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.ShardIterator != null && { ShardIterator: input.ShardIterator }));
|
|
337
336
|
};
|
|
338
337
|
var serializeAws_json1_0GetShardIteratorInput = function (input, context) {
|
|
339
|
-
return __assign(__assign(__assign(__assign({}, (input.SequenceNumber
|
|
340
|
-
input.SequenceNumber !== null && { SequenceNumber: input.SequenceNumber })), (input.ShardId !== undefined && input.ShardId !== null && { ShardId: input.ShardId })), (input.ShardIteratorType !== undefined &&
|
|
341
|
-
input.ShardIteratorType !== null && { ShardIteratorType: input.ShardIteratorType })), (input.StreamArn !== undefined && input.StreamArn !== null && { StreamArn: input.StreamArn }));
|
|
338
|
+
return __assign(__assign(__assign(__assign({}, (input.SequenceNumber != null && { SequenceNumber: input.SequenceNumber })), (input.ShardId != null && { ShardId: input.ShardId })), (input.ShardIteratorType != null && { ShardIteratorType: input.ShardIteratorType })), (input.StreamArn != null && { StreamArn: input.StreamArn }));
|
|
342
339
|
};
|
|
343
340
|
var serializeAws_json1_0ListStreamsInput = function (input, context) {
|
|
344
|
-
return __assign(__assign(__assign({}, (input.ExclusiveStartStreamArn
|
|
345
|
-
input.ExclusiveStartStreamArn !== null && { ExclusiveStartStreamArn: input.ExclusiveStartStreamArn })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
|
|
341
|
+
return __assign(__assign(__assign({}, (input.ExclusiveStartStreamArn != null && { ExclusiveStartStreamArn: input.ExclusiveStartStreamArn })), (input.Limit != null && { Limit: input.Limit })), (input.TableName != null && { TableName: input.TableName }));
|
|
346
342
|
};
|
|
347
343
|
var deserializeAws_json1_0AttributeMap = function (output, context) {
|
|
348
344
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -412,7 +408,7 @@ var deserializeAws_json1_0BinarySetAttributeValue = function (output, context) {
|
|
|
412
408
|
};
|
|
413
409
|
var deserializeAws_json1_0DescribeStreamOutput = function (output, context) {
|
|
414
410
|
return {
|
|
415
|
-
StreamDescription: output.StreamDescription
|
|
411
|
+
StreamDescription: output.StreamDescription != null
|
|
416
412
|
? deserializeAws_json1_0StreamDescription(output.StreamDescription, context)
|
|
417
413
|
: undefined,
|
|
418
414
|
};
|
|
@@ -425,9 +421,7 @@ var deserializeAws_json1_0ExpiredIteratorException = function (output, context)
|
|
|
425
421
|
var deserializeAws_json1_0GetRecordsOutput = function (output, context) {
|
|
426
422
|
return {
|
|
427
423
|
NextShardIterator: __expectString(output.NextShardIterator),
|
|
428
|
-
Records: output.Records
|
|
429
|
-
? deserializeAws_json1_0RecordList(output.Records, context)
|
|
430
|
-
: undefined,
|
|
424
|
+
Records: output.Records != null ? deserializeAws_json1_0RecordList(output.Records, context) : undefined,
|
|
431
425
|
};
|
|
432
426
|
};
|
|
433
427
|
var deserializeAws_json1_0GetShardIteratorOutput = function (output, context) {
|
|
@@ -482,9 +476,7 @@ var deserializeAws_json1_0ListAttributeValue = function (output, context) {
|
|
|
482
476
|
var deserializeAws_json1_0ListStreamsOutput = function (output, context) {
|
|
483
477
|
return {
|
|
484
478
|
LastEvaluatedStreamArn: __expectString(output.LastEvaluatedStreamArn),
|
|
485
|
-
Streams: output.Streams
|
|
486
|
-
? deserializeAws_json1_0StreamList(output.Streams, context)
|
|
487
|
-
: undefined,
|
|
479
|
+
Streams: output.Streams != null ? deserializeAws_json1_0StreamList(output.Streams, context) : undefined,
|
|
488
480
|
};
|
|
489
481
|
};
|
|
490
482
|
var deserializeAws_json1_0MapAttributeValue = function (output, context) {
|
|
@@ -511,16 +503,12 @@ var deserializeAws_json1_0NumberSetAttributeValue = function (output, context) {
|
|
|
511
503
|
var deserializeAws_json1_0_Record = function (output, context) {
|
|
512
504
|
return {
|
|
513
505
|
awsRegion: __expectString(output.awsRegion),
|
|
514
|
-
dynamodb: output.dynamodb
|
|
515
|
-
? deserializeAws_json1_0StreamRecord(output.dynamodb, context)
|
|
516
|
-
: undefined,
|
|
506
|
+
dynamodb: output.dynamodb != null ? deserializeAws_json1_0StreamRecord(output.dynamodb, context) : undefined,
|
|
517
507
|
eventID: __expectString(output.eventID),
|
|
518
508
|
eventName: __expectString(output.eventName),
|
|
519
509
|
eventSource: __expectString(output.eventSource),
|
|
520
510
|
eventVersion: __expectString(output.eventVersion),
|
|
521
|
-
userIdentity: output.userIdentity
|
|
522
|
-
? deserializeAws_json1_0Identity(output.userIdentity, context)
|
|
523
|
-
: undefined,
|
|
511
|
+
userIdentity: output.userIdentity != null ? deserializeAws_json1_0Identity(output.userIdentity, context) : undefined,
|
|
524
512
|
};
|
|
525
513
|
};
|
|
526
514
|
var deserializeAws_json1_0RecordList = function (output, context) {
|
|
@@ -548,7 +536,7 @@ var deserializeAws_json1_0SequenceNumberRange = function (output, context) {
|
|
|
548
536
|
var deserializeAws_json1_0Shard = function (output, context) {
|
|
549
537
|
return {
|
|
550
538
|
ParentShardId: __expectString(output.ParentShardId),
|
|
551
|
-
SequenceNumberRange: output.SequenceNumberRange
|
|
539
|
+
SequenceNumberRange: output.SequenceNumberRange != null
|
|
552
540
|
? deserializeAws_json1_0SequenceNumberRange(output.SequenceNumberRange, context)
|
|
553
541
|
: undefined,
|
|
554
542
|
ShardId: __expectString(output.ShardId),
|
|
@@ -574,16 +562,12 @@ var deserializeAws_json1_0_Stream = function (output, context) {
|
|
|
574
562
|
};
|
|
575
563
|
var deserializeAws_json1_0StreamDescription = function (output, context) {
|
|
576
564
|
return {
|
|
577
|
-
CreationRequestDateTime: output.CreationRequestDateTime
|
|
565
|
+
CreationRequestDateTime: output.CreationRequestDateTime != null
|
|
578
566
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationRequestDateTime)))
|
|
579
567
|
: undefined,
|
|
580
|
-
KeySchema: output.KeySchema
|
|
581
|
-
? deserializeAws_json1_0KeySchema(output.KeySchema, context)
|
|
582
|
-
: undefined,
|
|
568
|
+
KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
|
|
583
569
|
LastEvaluatedShardId: __expectString(output.LastEvaluatedShardId),
|
|
584
|
-
Shards: output.Shards
|
|
585
|
-
? deserializeAws_json1_0ShardDescriptionList(output.Shards, context)
|
|
586
|
-
: undefined,
|
|
570
|
+
Shards: output.Shards != null ? deserializeAws_json1_0ShardDescriptionList(output.Shards, context) : undefined,
|
|
587
571
|
StreamArn: __expectString(output.StreamArn),
|
|
588
572
|
StreamLabel: __expectString(output.StreamLabel),
|
|
589
573
|
StreamStatus: __expectString(output.StreamStatus),
|
|
@@ -604,18 +588,12 @@ var deserializeAws_json1_0StreamList = function (output, context) {
|
|
|
604
588
|
};
|
|
605
589
|
var deserializeAws_json1_0StreamRecord = function (output, context) {
|
|
606
590
|
return {
|
|
607
|
-
ApproximateCreationDateTime: output.ApproximateCreationDateTime
|
|
591
|
+
ApproximateCreationDateTime: output.ApproximateCreationDateTime != null
|
|
608
592
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateCreationDateTime)))
|
|
609
593
|
: undefined,
|
|
610
|
-
Keys: output.Keys
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
NewImage: output.NewImage !== undefined && output.NewImage !== null
|
|
614
|
-
? deserializeAws_json1_0AttributeMap(output.NewImage, context)
|
|
615
|
-
: undefined,
|
|
616
|
-
OldImage: output.OldImage !== undefined && output.OldImage !== null
|
|
617
|
-
? deserializeAws_json1_0AttributeMap(output.OldImage, context)
|
|
618
|
-
: undefined,
|
|
594
|
+
Keys: output.Keys != null ? deserializeAws_json1_0AttributeMap(output.Keys, context) : undefined,
|
|
595
|
+
NewImage: output.NewImage != null ? deserializeAws_json1_0AttributeMap(output.NewImage, context) : undefined,
|
|
596
|
+
OldImage: output.OldImage != null ? deserializeAws_json1_0AttributeMap(output.OldImage, context) : undefined,
|
|
619
597
|
SequenceNumber: __expectString(output.SequenceNumber),
|
|
620
598
|
SizeBytes: __expectLong(output.SizeBytes),
|
|
621
599
|
StreamViewType: __expectString(output.StreamViewType),
|
|
@@ -693,6 +671,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
693
671
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
694
672
|
var sanitizeErrorCode = function (rawValue) {
|
|
695
673
|
var cleanValue = rawValue;
|
|
674
|
+
if (typeof cleanValue === "number") {
|
|
675
|
+
cleanValue = cleanValue.toString();
|
|
676
|
+
}
|
|
696
677
|
if (cleanValue.indexOf(":") >= 0) {
|
|
697
678
|
cleanValue = cleanValue.split(":")[0];
|
|
698
679
|
}
|
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.130.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,35 +18,35 @@
|
|
|
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-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|