@aws-sdk/client-cognito-sync 3.179.0 → 3.181.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +23 -17
- package/dist-es/protocols/Aws_restJson1.js +30 -17
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-cognito-sync
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-cognito-sync
|
|
@@ -386,7 +386,7 @@ exports.deserializeAws_restJson1BulkPublishCommand = deserializeAws_restJson1Bul
|
|
|
386
386
|
const deserializeAws_restJson1BulkPublishCommandError = async (output, context) => {
|
|
387
387
|
const parsedOutput = {
|
|
388
388
|
...output,
|
|
389
|
-
body: await
|
|
389
|
+
body: await parseErrorBody(output.body, context),
|
|
390
390
|
};
|
|
391
391
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
392
|
switch (errorCode) {
|
|
@@ -435,7 +435,7 @@ exports.deserializeAws_restJson1DeleteDatasetCommand = deserializeAws_restJson1D
|
|
|
435
435
|
const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context) => {
|
|
436
436
|
const parsedOutput = {
|
|
437
437
|
...output,
|
|
438
|
-
body: await
|
|
438
|
+
body: await parseErrorBody(output.body, context),
|
|
439
439
|
};
|
|
440
440
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
441
|
switch (errorCode) {
|
|
@@ -484,7 +484,7 @@ exports.deserializeAws_restJson1DescribeDatasetCommand = deserializeAws_restJson
|
|
|
484
484
|
const deserializeAws_restJson1DescribeDatasetCommandError = async (output, context) => {
|
|
485
485
|
const parsedOutput = {
|
|
486
486
|
...output,
|
|
487
|
-
body: await
|
|
487
|
+
body: await parseErrorBody(output.body, context),
|
|
488
488
|
};
|
|
489
489
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
490
490
|
switch (errorCode) {
|
|
@@ -530,7 +530,7 @@ exports.deserializeAws_restJson1DescribeIdentityPoolUsageCommand = deserializeAw
|
|
|
530
530
|
const deserializeAws_restJson1DescribeIdentityPoolUsageCommandError = async (output, context) => {
|
|
531
531
|
const parsedOutput = {
|
|
532
532
|
...output,
|
|
533
|
-
body: await
|
|
533
|
+
body: await parseErrorBody(output.body, context),
|
|
534
534
|
};
|
|
535
535
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
536
536
|
switch (errorCode) {
|
|
@@ -576,7 +576,7 @@ exports.deserializeAws_restJson1DescribeIdentityUsageCommand = deserializeAws_re
|
|
|
576
576
|
const deserializeAws_restJson1DescribeIdentityUsageCommandError = async (output, context) => {
|
|
577
577
|
const parsedOutput = {
|
|
578
578
|
...output,
|
|
579
|
-
body: await
|
|
579
|
+
body: await parseErrorBody(output.body, context),
|
|
580
580
|
};
|
|
581
581
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
582
582
|
switch (errorCode) {
|
|
@@ -634,7 +634,7 @@ exports.deserializeAws_restJson1GetBulkPublishDetailsCommand = deserializeAws_re
|
|
|
634
634
|
const deserializeAws_restJson1GetBulkPublishDetailsCommandError = async (output, context) => {
|
|
635
635
|
const parsedOutput = {
|
|
636
636
|
...output,
|
|
637
|
-
body: await
|
|
637
|
+
body: await parseErrorBody(output.body, context),
|
|
638
638
|
};
|
|
639
639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
640
|
switch (errorCode) {
|
|
@@ -677,7 +677,7 @@ exports.deserializeAws_restJson1GetCognitoEventsCommand = deserializeAws_restJso
|
|
|
677
677
|
const deserializeAws_restJson1GetCognitoEventsCommandError = async (output, context) => {
|
|
678
678
|
const parsedOutput = {
|
|
679
679
|
...output,
|
|
680
|
-
body: await
|
|
680
|
+
body: await parseErrorBody(output.body, context),
|
|
681
681
|
};
|
|
682
682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
683
|
switch (errorCode) {
|
|
@@ -729,7 +729,7 @@ exports.deserializeAws_restJson1GetIdentityPoolConfigurationCommand = deserializ
|
|
|
729
729
|
const deserializeAws_restJson1GetIdentityPoolConfigurationCommandError = async (output, context) => {
|
|
730
730
|
const parsedOutput = {
|
|
731
731
|
...output,
|
|
732
|
-
body: await
|
|
732
|
+
body: await parseErrorBody(output.body, context),
|
|
733
733
|
};
|
|
734
734
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
735
|
switch (errorCode) {
|
|
@@ -781,7 +781,7 @@ exports.deserializeAws_restJson1ListDatasetsCommand = deserializeAws_restJson1Li
|
|
|
781
781
|
const deserializeAws_restJson1ListDatasetsCommandError = async (output, context) => {
|
|
782
782
|
const parsedOutput = {
|
|
783
783
|
...output,
|
|
784
|
-
body: await
|
|
784
|
+
body: await parseErrorBody(output.body, context),
|
|
785
785
|
};
|
|
786
786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
787
|
switch (errorCode) {
|
|
@@ -833,7 +833,7 @@ exports.deserializeAws_restJson1ListIdentityPoolUsageCommand = deserializeAws_re
|
|
|
833
833
|
const deserializeAws_restJson1ListIdentityPoolUsageCommandError = async (output, context) => {
|
|
834
834
|
const parsedOutput = {
|
|
835
835
|
...output,
|
|
836
|
-
body: await
|
|
836
|
+
body: await parseErrorBody(output.body, context),
|
|
837
837
|
};
|
|
838
838
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
839
|
switch (errorCode) {
|
|
@@ -900,7 +900,7 @@ exports.deserializeAws_restJson1ListRecordsCommand = deserializeAws_restJson1Lis
|
|
|
900
900
|
const deserializeAws_restJson1ListRecordsCommandError = async (output, context) => {
|
|
901
901
|
const parsedOutput = {
|
|
902
902
|
...output,
|
|
903
|
-
body: await
|
|
903
|
+
body: await parseErrorBody(output.body, context),
|
|
904
904
|
};
|
|
905
905
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
906
|
switch (errorCode) {
|
|
@@ -943,7 +943,7 @@ exports.deserializeAws_restJson1RegisterDeviceCommand = deserializeAws_restJson1
|
|
|
943
943
|
const deserializeAws_restJson1RegisterDeviceCommandError = async (output, context) => {
|
|
944
944
|
const parsedOutput = {
|
|
945
945
|
...output,
|
|
946
|
-
body: await
|
|
946
|
+
body: await parseErrorBody(output.body, context),
|
|
947
947
|
};
|
|
948
948
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
949
|
switch (errorCode) {
|
|
@@ -989,7 +989,7 @@ exports.deserializeAws_restJson1SetCognitoEventsCommand = deserializeAws_restJso
|
|
|
989
989
|
const deserializeAws_restJson1SetCognitoEventsCommandError = async (output, context) => {
|
|
990
990
|
const parsedOutput = {
|
|
991
991
|
...output,
|
|
992
|
-
body: await
|
|
992
|
+
body: await parseErrorBody(output.body, context),
|
|
993
993
|
};
|
|
994
994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
995
|
switch (errorCode) {
|
|
@@ -1041,7 +1041,7 @@ exports.deserializeAws_restJson1SetIdentityPoolConfigurationCommand = deserializ
|
|
|
1041
1041
|
const deserializeAws_restJson1SetIdentityPoolConfigurationCommandError = async (output, context) => {
|
|
1042
1042
|
const parsedOutput = {
|
|
1043
1043
|
...output,
|
|
1044
|
-
body: await
|
|
1044
|
+
body: await parseErrorBody(output.body, context),
|
|
1045
1045
|
};
|
|
1046
1046
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
1047
|
switch (errorCode) {
|
|
@@ -1087,7 +1087,7 @@ exports.deserializeAws_restJson1SubscribeToDatasetCommand = deserializeAws_restJ
|
|
|
1087
1087
|
const deserializeAws_restJson1SubscribeToDatasetCommandError = async (output, context) => {
|
|
1088
1088
|
const parsedOutput = {
|
|
1089
1089
|
...output,
|
|
1090
|
-
body: await
|
|
1090
|
+
body: await parseErrorBody(output.body, context),
|
|
1091
1091
|
};
|
|
1092
1092
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
1093
|
switch (errorCode) {
|
|
@@ -1133,7 +1133,7 @@ exports.deserializeAws_restJson1UnsubscribeFromDatasetCommand = deserializeAws_r
|
|
|
1133
1133
|
const deserializeAws_restJson1UnsubscribeFromDatasetCommandError = async (output, context) => {
|
|
1134
1134
|
const parsedOutput = {
|
|
1135
1135
|
...output,
|
|
1136
|
-
body: await
|
|
1136
|
+
body: await parseErrorBody(output.body, context),
|
|
1137
1137
|
};
|
|
1138
1138
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
1139
|
switch (errorCode) {
|
|
@@ -1182,7 +1182,7 @@ exports.deserializeAws_restJson1UpdateRecordsCommand = deserializeAws_restJson1U
|
|
|
1182
1182
|
const deserializeAws_restJson1UpdateRecordsCommandError = async (output, context) => {
|
|
1183
1183
|
const parsedOutput = {
|
|
1184
1184
|
...output,
|
|
1185
|
-
body: await
|
|
1185
|
+
body: await parseErrorBody(output.body, context),
|
|
1186
1186
|
};
|
|
1187
1187
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
1188
|
switch (errorCode) {
|
|
@@ -1589,6 +1589,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1589
1589
|
}
|
|
1590
1590
|
return {};
|
|
1591
1591
|
});
|
|
1592
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1593
|
+
var _a;
|
|
1594
|
+
const value = await parseBody(errorBody, context);
|
|
1595
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1596
|
+
return value;
|
|
1597
|
+
};
|
|
1592
1598
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1593
1599
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1594
1600
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -471,7 +471,7 @@ var deserializeAws_restJson1BulkPublishCommandError = function (output, context)
|
|
|
471
471
|
case 0:
|
|
472
472
|
_a = [__assign({}, output)];
|
|
473
473
|
_c = {};
|
|
474
|
-
return [4,
|
|
474
|
+
return [4, parseErrorBody(output.body, context)];
|
|
475
475
|
case 1:
|
|
476
476
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
477
477
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -547,7 +547,7 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
547
547
|
case 0:
|
|
548
548
|
_a = [__assign({}, output)];
|
|
549
549
|
_c = {};
|
|
550
|
-
return [4,
|
|
550
|
+
return [4, parseErrorBody(output.body, context)];
|
|
551
551
|
case 1:
|
|
552
552
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
553
553
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -623,7 +623,7 @@ var deserializeAws_restJson1DescribeDatasetCommandError = function (output, cont
|
|
|
623
623
|
case 0:
|
|
624
624
|
_a = [__assign({}, output)];
|
|
625
625
|
_c = {};
|
|
626
|
-
return [4,
|
|
626
|
+
return [4, parseErrorBody(output.body, context)];
|
|
627
627
|
case 1:
|
|
628
628
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
629
629
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -695,7 +695,7 @@ var deserializeAws_restJson1DescribeIdentityPoolUsageCommandError = function (ou
|
|
|
695
695
|
case 0:
|
|
696
696
|
_a = [__assign({}, output)];
|
|
697
697
|
_c = {};
|
|
698
|
-
return [4,
|
|
698
|
+
return [4, parseErrorBody(output.body, context)];
|
|
699
699
|
case 1:
|
|
700
700
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
701
701
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -767,7 +767,7 @@ var deserializeAws_restJson1DescribeIdentityUsageCommandError = function (output
|
|
|
767
767
|
case 0:
|
|
768
768
|
_a = [__assign({}, output)];
|
|
769
769
|
_c = {};
|
|
770
|
-
return [4,
|
|
770
|
+
return [4, parseErrorBody(output.body, context)];
|
|
771
771
|
case 1:
|
|
772
772
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
773
773
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -851,7 +851,7 @@ var deserializeAws_restJson1GetBulkPublishDetailsCommandError = function (output
|
|
|
851
851
|
case 0:
|
|
852
852
|
_a = [__assign({}, output)];
|
|
853
853
|
_c = {};
|
|
854
|
-
return [4,
|
|
854
|
+
return [4, parseErrorBody(output.body, context)];
|
|
855
855
|
case 1:
|
|
856
856
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
857
857
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -919,7 +919,7 @@ var deserializeAws_restJson1GetCognitoEventsCommandError = function (output, con
|
|
|
919
919
|
case 0:
|
|
920
920
|
_a = [__assign({}, output)];
|
|
921
921
|
_c = {};
|
|
922
|
-
return [4,
|
|
922
|
+
return [4, parseErrorBody(output.body, context)];
|
|
923
923
|
case 1:
|
|
924
924
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
925
925
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -997,7 +997,7 @@ var deserializeAws_restJson1GetIdentityPoolConfigurationCommandError = function
|
|
|
997
997
|
case 0:
|
|
998
998
|
_a = [__assign({}, output)];
|
|
999
999
|
_c = {};
|
|
1000
|
-
return [4,
|
|
1000
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1001
1001
|
case 1:
|
|
1002
1002
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1003
1003
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1075,7 +1075,7 @@ var deserializeAws_restJson1ListDatasetsCommandError = function (output, context
|
|
|
1075
1075
|
case 0:
|
|
1076
1076
|
_a = [__assign({}, output)];
|
|
1077
1077
|
_c = {};
|
|
1078
|
-
return [4,
|
|
1078
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1079
1079
|
case 1:
|
|
1080
1080
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1081
1081
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1152,7 +1152,7 @@ var deserializeAws_restJson1ListIdentityPoolUsageCommandError = function (output
|
|
|
1152
1152
|
case 0:
|
|
1153
1153
|
_a = [__assign({}, output)];
|
|
1154
1154
|
_c = {};
|
|
1155
|
-
return [4,
|
|
1155
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1156
1156
|
case 1:
|
|
1157
1157
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1158
1158
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1244,7 +1244,7 @@ var deserializeAws_restJson1ListRecordsCommandError = function (output, context)
|
|
|
1244
1244
|
case 0:
|
|
1245
1245
|
_a = [__assign({}, output)];
|
|
1246
1246
|
_c = {};
|
|
1247
|
-
return [4,
|
|
1247
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1248
1248
|
case 1:
|
|
1249
1249
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1250
1250
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1312,7 +1312,7 @@ var deserializeAws_restJson1RegisterDeviceCommandError = function (output, conte
|
|
|
1312
1312
|
case 0:
|
|
1313
1313
|
_a = [__assign({}, output)];
|
|
1314
1314
|
_c = {};
|
|
1315
|
-
return [4,
|
|
1315
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1316
1316
|
case 1:
|
|
1317
1317
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1318
1318
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1383,7 +1383,7 @@ var deserializeAws_restJson1SetCognitoEventsCommandError = function (output, con
|
|
|
1383
1383
|
case 0:
|
|
1384
1384
|
_a = [__assign({}, output)];
|
|
1385
1385
|
_c = {};
|
|
1386
|
-
return [4,
|
|
1386
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1387
1387
|
case 1:
|
|
1388
1388
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1389
1389
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1461,7 +1461,7 @@ var deserializeAws_restJson1SetIdentityPoolConfigurationCommandError = function
|
|
|
1461
1461
|
case 0:
|
|
1462
1462
|
_a = [__assign({}, output)];
|
|
1463
1463
|
_c = {};
|
|
1464
|
-
return [4,
|
|
1464
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1465
1465
|
case 1:
|
|
1466
1466
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1467
1467
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1532,7 +1532,7 @@ var deserializeAws_restJson1SubscribeToDatasetCommandError = function (output, c
|
|
|
1532
1532
|
case 0:
|
|
1533
1533
|
_a = [__assign({}, output)];
|
|
1534
1534
|
_c = {};
|
|
1535
|
-
return [4,
|
|
1535
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1536
1536
|
case 1:
|
|
1537
1537
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1538
1538
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1603,7 +1603,7 @@ var deserializeAws_restJson1UnsubscribeFromDatasetCommandError = function (outpu
|
|
|
1603
1603
|
case 0:
|
|
1604
1604
|
_a = [__assign({}, output)];
|
|
1605
1605
|
_c = {};
|
|
1606
|
-
return [4,
|
|
1606
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1607
1607
|
case 1:
|
|
1608
1608
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1609
1609
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1679,7 +1679,7 @@ var deserializeAws_restJson1UpdateRecordsCommandError = function (output, contex
|
|
|
1679
1679
|
case 0:
|
|
1680
1680
|
_a = [__assign({}, output)];
|
|
1681
1681
|
_c = {};
|
|
1682
|
-
return [4,
|
|
1682
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1683
1683
|
case 1:
|
|
1684
1684
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1685
1685
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2094,6 +2094,19 @@ var parseBody = function (streamBody, context) {
|
|
|
2094
2094
|
return {};
|
|
2095
2095
|
});
|
|
2096
2096
|
};
|
|
2097
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2098
|
+
var value;
|
|
2099
|
+
var _a;
|
|
2100
|
+
return __generator(this, function (_b) {
|
|
2101
|
+
switch (_b.label) {
|
|
2102
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2103
|
+
case 1:
|
|
2104
|
+
value = _b.sent();
|
|
2105
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2106
|
+
return [2, value];
|
|
2107
|
+
}
|
|
2108
|
+
});
|
|
2109
|
+
}); };
|
|
2097
2110
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2098
2111
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2099
2112
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cognito-sync",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cognito Sync Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.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",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
41
41
|
"@aws-sdk/types": "3.178.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.178.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|