@aws-sdk/client-codeartifact 3.180.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 +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +42 -36
- package/dist-es/protocols/Aws_restJson1.js +49 -36
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-codeartifact
|
|
@@ -953,7 +953,7 @@ exports.deserializeAws_restJson1AssociateExternalConnectionCommand = deserialize
|
|
|
953
953
|
const deserializeAws_restJson1AssociateExternalConnectionCommandError = async (output, context) => {
|
|
954
954
|
const parsedOutput = {
|
|
955
955
|
...output,
|
|
956
|
-
body: await
|
|
956
|
+
body: await parseErrorBody(output.body, context),
|
|
957
957
|
};
|
|
958
958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
959
|
switch (errorCode) {
|
|
@@ -1008,7 +1008,7 @@ exports.deserializeAws_restJson1CopyPackageVersionsCommand = deserializeAws_rest
|
|
|
1008
1008
|
const deserializeAws_restJson1CopyPackageVersionsCommandError = async (output, context) => {
|
|
1009
1009
|
const parsedOutput = {
|
|
1010
1010
|
...output,
|
|
1011
|
-
body: await
|
|
1011
|
+
body: await parseErrorBody(output.body, context),
|
|
1012
1012
|
};
|
|
1013
1013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
1014
|
switch (errorCode) {
|
|
@@ -1060,7 +1060,7 @@ exports.deserializeAws_restJson1CreateDomainCommand = deserializeAws_restJson1Cr
|
|
|
1060
1060
|
const deserializeAws_restJson1CreateDomainCommandError = async (output, context) => {
|
|
1061
1061
|
const parsedOutput = {
|
|
1062
1062
|
...output,
|
|
1063
|
-
body: await
|
|
1063
|
+
body: await parseErrorBody(output.body, context),
|
|
1064
1064
|
};
|
|
1065
1065
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
1066
|
switch (errorCode) {
|
|
@@ -1112,7 +1112,7 @@ exports.deserializeAws_restJson1CreateRepositoryCommand = deserializeAws_restJso
|
|
|
1112
1112
|
const deserializeAws_restJson1CreateRepositoryCommandError = async (output, context) => {
|
|
1113
1113
|
const parsedOutput = {
|
|
1114
1114
|
...output,
|
|
1115
|
-
body: await
|
|
1115
|
+
body: await parseErrorBody(output.body, context),
|
|
1116
1116
|
};
|
|
1117
1117
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
1118
|
switch (errorCode) {
|
|
@@ -1164,7 +1164,7 @@ exports.deserializeAws_restJson1DeleteDomainCommand = deserializeAws_restJson1De
|
|
|
1164
1164
|
const deserializeAws_restJson1DeleteDomainCommandError = async (output, context) => {
|
|
1165
1165
|
const parsedOutput = {
|
|
1166
1166
|
...output,
|
|
1167
|
-
body: await
|
|
1167
|
+
body: await parseErrorBody(output.body, context),
|
|
1168
1168
|
};
|
|
1169
1169
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
1170
|
switch (errorCode) {
|
|
@@ -1210,7 +1210,7 @@ exports.deserializeAws_restJson1DeleteDomainPermissionsPolicyCommand = deseriali
|
|
|
1210
1210
|
const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
1211
1211
|
const parsedOutput = {
|
|
1212
1212
|
...output,
|
|
1213
|
-
body: await
|
|
1213
|
+
body: await parseErrorBody(output.body, context),
|
|
1214
1214
|
};
|
|
1215
1215
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
1216
|
switch (errorCode) {
|
|
@@ -1262,7 +1262,7 @@ exports.deserializeAws_restJson1DeletePackageVersionsCommand = deserializeAws_re
|
|
|
1262
1262
|
const deserializeAws_restJson1DeletePackageVersionsCommandError = async (output, context) => {
|
|
1263
1263
|
const parsedOutput = {
|
|
1264
1264
|
...output,
|
|
1265
|
-
body: await
|
|
1265
|
+
body: await parseErrorBody(output.body, context),
|
|
1266
1266
|
};
|
|
1267
1267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
1268
|
switch (errorCode) {
|
|
@@ -1311,7 +1311,7 @@ exports.deserializeAws_restJson1DeleteRepositoryCommand = deserializeAws_restJso
|
|
|
1311
1311
|
const deserializeAws_restJson1DeleteRepositoryCommandError = async (output, context) => {
|
|
1312
1312
|
const parsedOutput = {
|
|
1313
1313
|
...output,
|
|
1314
|
-
body: await
|
|
1314
|
+
body: await parseErrorBody(output.body, context),
|
|
1315
1315
|
};
|
|
1316
1316
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1317
1317
|
switch (errorCode) {
|
|
@@ -1360,7 +1360,7 @@ exports.deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand = deser
|
|
|
1360
1360
|
const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
1361
1361
|
const parsedOutput = {
|
|
1362
1362
|
...output,
|
|
1363
|
-
body: await
|
|
1363
|
+
body: await parseErrorBody(output.body, context),
|
|
1364
1364
|
};
|
|
1365
1365
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
1366
|
switch (errorCode) {
|
|
@@ -1409,7 +1409,7 @@ exports.deserializeAws_restJson1DescribeDomainCommand = deserializeAws_restJson1
|
|
|
1409
1409
|
const deserializeAws_restJson1DescribeDomainCommandError = async (output, context) => {
|
|
1410
1410
|
const parsedOutput = {
|
|
1411
1411
|
...output,
|
|
1412
|
-
body: await
|
|
1412
|
+
body: await parseErrorBody(output.body, context),
|
|
1413
1413
|
};
|
|
1414
1414
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
1415
|
switch (errorCode) {
|
|
@@ -1455,7 +1455,7 @@ exports.deserializeAws_restJson1DescribePackageCommand = deserializeAws_restJson
|
|
|
1455
1455
|
const deserializeAws_restJson1DescribePackageCommandError = async (output, context) => {
|
|
1456
1456
|
const parsedOutput = {
|
|
1457
1457
|
...output,
|
|
1458
|
-
body: await
|
|
1458
|
+
body: await parseErrorBody(output.body, context),
|
|
1459
1459
|
};
|
|
1460
1460
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1461
1461
|
switch (errorCode) {
|
|
@@ -1501,7 +1501,7 @@ exports.deserializeAws_restJson1DescribePackageVersionCommand = deserializeAws_r
|
|
|
1501
1501
|
const deserializeAws_restJson1DescribePackageVersionCommandError = async (output, context) => {
|
|
1502
1502
|
const parsedOutput = {
|
|
1503
1503
|
...output,
|
|
1504
|
-
body: await
|
|
1504
|
+
body: await parseErrorBody(output.body, context),
|
|
1505
1505
|
};
|
|
1506
1506
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
1507
|
switch (errorCode) {
|
|
@@ -1550,7 +1550,7 @@ exports.deserializeAws_restJson1DescribeRepositoryCommand = deserializeAws_restJ
|
|
|
1550
1550
|
const deserializeAws_restJson1DescribeRepositoryCommandError = async (output, context) => {
|
|
1551
1551
|
const parsedOutput = {
|
|
1552
1552
|
...output,
|
|
1553
|
-
body: await
|
|
1553
|
+
body: await parseErrorBody(output.body, context),
|
|
1554
1554
|
};
|
|
1555
1555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
1556
|
switch (errorCode) {
|
|
@@ -1596,7 +1596,7 @@ exports.deserializeAws_restJson1DisassociateExternalConnectionCommand = deserial
|
|
|
1596
1596
|
const deserializeAws_restJson1DisassociateExternalConnectionCommandError = async (output, context) => {
|
|
1597
1597
|
const parsedOutput = {
|
|
1598
1598
|
...output,
|
|
1599
|
-
body: await
|
|
1599
|
+
body: await parseErrorBody(output.body, context),
|
|
1600
1600
|
};
|
|
1601
1601
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
1602
|
switch (errorCode) {
|
|
@@ -1651,7 +1651,7 @@ exports.deserializeAws_restJson1DisposePackageVersionsCommand = deserializeAws_r
|
|
|
1651
1651
|
const deserializeAws_restJson1DisposePackageVersionsCommandError = async (output, context) => {
|
|
1652
1652
|
const parsedOutput = {
|
|
1653
1653
|
...output,
|
|
1654
|
-
body: await
|
|
1654
|
+
body: await parseErrorBody(output.body, context),
|
|
1655
1655
|
};
|
|
1656
1656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
1657
|
switch (errorCode) {
|
|
@@ -1703,7 +1703,7 @@ exports.deserializeAws_restJson1GetAuthorizationTokenCommand = deserializeAws_re
|
|
|
1703
1703
|
const deserializeAws_restJson1GetAuthorizationTokenCommandError = async (output, context) => {
|
|
1704
1704
|
const parsedOutput = {
|
|
1705
1705
|
...output,
|
|
1706
|
-
body: await
|
|
1706
|
+
body: await parseErrorBody(output.body, context),
|
|
1707
1707
|
};
|
|
1708
1708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
1709
|
switch (errorCode) {
|
|
@@ -1749,7 +1749,7 @@ exports.deserializeAws_restJson1GetDomainPermissionsPolicyCommand = deserializeA
|
|
|
1749
1749
|
const deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
1750
1750
|
const parsedOutput = {
|
|
1751
1751
|
...output,
|
|
1752
|
-
body: await
|
|
1752
|
+
body: await parseErrorBody(output.body, context),
|
|
1753
1753
|
};
|
|
1754
1754
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
1755
|
switch (errorCode) {
|
|
@@ -1796,7 +1796,7 @@ exports.deserializeAws_restJson1GetPackageVersionAssetCommand = deserializeAws_r
|
|
|
1796
1796
|
const deserializeAws_restJson1GetPackageVersionAssetCommandError = async (output, context) => {
|
|
1797
1797
|
const parsedOutput = {
|
|
1798
1798
|
...output,
|
|
1799
|
-
body: await
|
|
1799
|
+
body: await parseErrorBody(output.body, context),
|
|
1800
1800
|
};
|
|
1801
1801
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
1802
|
switch (errorCode) {
|
|
@@ -1860,7 +1860,7 @@ exports.deserializeAws_restJson1GetPackageVersionReadmeCommand = deserializeAws_
|
|
|
1860
1860
|
const deserializeAws_restJson1GetPackageVersionReadmeCommandError = async (output, context) => {
|
|
1861
1861
|
const parsedOutput = {
|
|
1862
1862
|
...output,
|
|
1863
|
-
body: await
|
|
1863
|
+
body: await parseErrorBody(output.body, context),
|
|
1864
1864
|
};
|
|
1865
1865
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
1866
|
switch (errorCode) {
|
|
@@ -1906,7 +1906,7 @@ exports.deserializeAws_restJson1GetRepositoryEndpointCommand = deserializeAws_re
|
|
|
1906
1906
|
const deserializeAws_restJson1GetRepositoryEndpointCommandError = async (output, context) => {
|
|
1907
1907
|
const parsedOutput = {
|
|
1908
1908
|
...output,
|
|
1909
|
-
body: await
|
|
1909
|
+
body: await parseErrorBody(output.body, context),
|
|
1910
1910
|
};
|
|
1911
1911
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1912
|
switch (errorCode) {
|
|
@@ -1952,7 +1952,7 @@ exports.deserializeAws_restJson1GetRepositoryPermissionsPolicyCommand = deserial
|
|
|
1952
1952
|
const deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
1953
1953
|
const parsedOutput = {
|
|
1954
1954
|
...output,
|
|
1955
|
-
body: await
|
|
1955
|
+
body: await parseErrorBody(output.body, context),
|
|
1956
1956
|
};
|
|
1957
1957
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
1958
|
switch (errorCode) {
|
|
@@ -2001,7 +2001,7 @@ exports.deserializeAws_restJson1ListDomainsCommand = deserializeAws_restJson1Lis
|
|
|
2001
2001
|
const deserializeAws_restJson1ListDomainsCommandError = async (output, context) => {
|
|
2002
2002
|
const parsedOutput = {
|
|
2003
2003
|
...output,
|
|
2004
|
-
body: await
|
|
2004
|
+
body: await parseErrorBody(output.body, context),
|
|
2005
2005
|
};
|
|
2006
2006
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
2007
|
switch (errorCode) {
|
|
@@ -2047,7 +2047,7 @@ exports.deserializeAws_restJson1ListPackagesCommand = deserializeAws_restJson1Li
|
|
|
2047
2047
|
const deserializeAws_restJson1ListPackagesCommandError = async (output, context) => {
|
|
2048
2048
|
const parsedOutput = {
|
|
2049
2049
|
...output,
|
|
2050
|
-
body: await
|
|
2050
|
+
body: await parseErrorBody(output.body, context),
|
|
2051
2051
|
};
|
|
2052
2052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2053
2053
|
switch (errorCode) {
|
|
@@ -2111,7 +2111,7 @@ exports.deserializeAws_restJson1ListPackageVersionAssetsCommand = deserializeAws
|
|
|
2111
2111
|
const deserializeAws_restJson1ListPackageVersionAssetsCommandError = async (output, context) => {
|
|
2112
2112
|
const parsedOutput = {
|
|
2113
2113
|
...output,
|
|
2114
|
-
body: await
|
|
2114
|
+
body: await parseErrorBody(output.body, context),
|
|
2115
2115
|
};
|
|
2116
2116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
2117
|
switch (errorCode) {
|
|
@@ -2175,7 +2175,7 @@ exports.deserializeAws_restJson1ListPackageVersionDependenciesCommand = deserial
|
|
|
2175
2175
|
const deserializeAws_restJson1ListPackageVersionDependenciesCommandError = async (output, context) => {
|
|
2176
2176
|
const parsedOutput = {
|
|
2177
2177
|
...output,
|
|
2178
|
-
body: await
|
|
2178
|
+
body: await parseErrorBody(output.body, context),
|
|
2179
2179
|
};
|
|
2180
2180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
2181
|
switch (errorCode) {
|
|
@@ -2236,7 +2236,7 @@ exports.deserializeAws_restJson1ListPackageVersionsCommand = deserializeAws_rest
|
|
|
2236
2236
|
const deserializeAws_restJson1ListPackageVersionsCommandError = async (output, context) => {
|
|
2237
2237
|
const parsedOutput = {
|
|
2238
2238
|
...output,
|
|
2239
|
-
body: await
|
|
2239
|
+
body: await parseErrorBody(output.body, context),
|
|
2240
2240
|
};
|
|
2241
2241
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2242
2242
|
switch (errorCode) {
|
|
@@ -2285,7 +2285,7 @@ exports.deserializeAws_restJson1ListRepositoriesCommand = deserializeAws_restJso
|
|
|
2285
2285
|
const deserializeAws_restJson1ListRepositoriesCommandError = async (output, context) => {
|
|
2286
2286
|
const parsedOutput = {
|
|
2287
2287
|
...output,
|
|
2288
|
-
body: await
|
|
2288
|
+
body: await parseErrorBody(output.body, context),
|
|
2289
2289
|
};
|
|
2290
2290
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2291
2291
|
switch (errorCode) {
|
|
@@ -2331,7 +2331,7 @@ exports.deserializeAws_restJson1ListRepositoriesInDomainCommand = deserializeAws
|
|
|
2331
2331
|
const deserializeAws_restJson1ListRepositoriesInDomainCommandError = async (output, context) => {
|
|
2332
2332
|
const parsedOutput = {
|
|
2333
2333
|
...output,
|
|
2334
|
-
body: await
|
|
2334
|
+
body: await parseErrorBody(output.body, context),
|
|
2335
2335
|
};
|
|
2336
2336
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2337
2337
|
switch (errorCode) {
|
|
@@ -2377,7 +2377,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2377
2377
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2378
2378
|
const parsedOutput = {
|
|
2379
2379
|
...output,
|
|
2380
|
-
body: await
|
|
2380
|
+
body: await parseErrorBody(output.body, context),
|
|
2381
2381
|
};
|
|
2382
2382
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
2383
|
switch (errorCode) {
|
|
@@ -2420,7 +2420,7 @@ exports.deserializeAws_restJson1PutDomainPermissionsPolicyCommand = deserializeA
|
|
|
2420
2420
|
const deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
2421
2421
|
const parsedOutput = {
|
|
2422
2422
|
...output,
|
|
2423
|
-
body: await
|
|
2423
|
+
body: await parseErrorBody(output.body, context),
|
|
2424
2424
|
};
|
|
2425
2425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
2426
|
switch (errorCode) {
|
|
@@ -2472,7 +2472,7 @@ exports.deserializeAws_restJson1PutPackageOriginConfigurationCommand = deseriali
|
|
|
2472
2472
|
const deserializeAws_restJson1PutPackageOriginConfigurationCommandError = async (output, context) => {
|
|
2473
2473
|
const parsedOutput = {
|
|
2474
2474
|
...output,
|
|
2475
|
-
body: await
|
|
2475
|
+
body: await parseErrorBody(output.body, context),
|
|
2476
2476
|
};
|
|
2477
2477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
2478
|
switch (errorCode) {
|
|
@@ -2518,7 +2518,7 @@ exports.deserializeAws_restJson1PutRepositoryPermissionsPolicyCommand = deserial
|
|
|
2518
2518
|
const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = async (output, context) => {
|
|
2519
2519
|
const parsedOutput = {
|
|
2520
2520
|
...output,
|
|
2521
|
-
body: await
|
|
2521
|
+
body: await parseErrorBody(output.body, context),
|
|
2522
2522
|
};
|
|
2523
2523
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
2524
|
switch (errorCode) {
|
|
@@ -2567,7 +2567,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2567
2567
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2568
2568
|
const parsedOutput = {
|
|
2569
2569
|
...output,
|
|
2570
|
-
body: await
|
|
2570
|
+
body: await parseErrorBody(output.body, context),
|
|
2571
2571
|
};
|
|
2572
2572
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2573
2573
|
switch (errorCode) {
|
|
@@ -2610,7 +2610,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2610
2610
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2611
2611
|
const parsedOutput = {
|
|
2612
2612
|
...output,
|
|
2613
|
-
body: await
|
|
2613
|
+
body: await parseErrorBody(output.body, context),
|
|
2614
2614
|
};
|
|
2615
2615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
2616
|
switch (errorCode) {
|
|
@@ -2656,7 +2656,7 @@ exports.deserializeAws_restJson1UpdatePackageVersionsStatusCommand = deserialize
|
|
|
2656
2656
|
const deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = async (output, context) => {
|
|
2657
2657
|
const parsedOutput = {
|
|
2658
2658
|
...output,
|
|
2659
|
-
body: await
|
|
2659
|
+
body: await parseErrorBody(output.body, context),
|
|
2660
2660
|
};
|
|
2661
2661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2662
2662
|
switch (errorCode) {
|
|
@@ -2705,7 +2705,7 @@ exports.deserializeAws_restJson1UpdateRepositoryCommand = deserializeAws_restJso
|
|
|
2705
2705
|
const deserializeAws_restJson1UpdateRepositoryCommandError = async (output, context) => {
|
|
2706
2706
|
const parsedOutput = {
|
|
2707
2707
|
...output,
|
|
2708
|
-
body: await
|
|
2708
|
+
body: await parseErrorBody(output.body, context),
|
|
2709
2709
|
};
|
|
2710
2710
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
2711
|
switch (errorCode) {
|
|
@@ -3262,6 +3262,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3262
3262
|
}
|
|
3263
3263
|
return {};
|
|
3264
3264
|
});
|
|
3265
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3266
|
+
var _a;
|
|
3267
|
+
const value = await parseBody(errorBody, context);
|
|
3268
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3269
|
+
return value;
|
|
3270
|
+
};
|
|
3265
3271
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3266
3272
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3267
3273
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1100,7 +1100,7 @@ var deserializeAws_restJson1AssociateExternalConnectionCommandError = function (
|
|
|
1100
1100
|
case 0:
|
|
1101
1101
|
_a = [__assign({}, output)];
|
|
1102
1102
|
_c = {};
|
|
1103
|
-
return [4,
|
|
1103
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1104
1104
|
case 1:
|
|
1105
1105
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1106
1106
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1183,7 +1183,7 @@ var deserializeAws_restJson1CopyPackageVersionsCommandError = function (output,
|
|
|
1183
1183
|
case 0:
|
|
1184
1184
|
_a = [__assign({}, output)];
|
|
1185
1185
|
_c = {};
|
|
1186
|
-
return [4,
|
|
1186
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1187
1187
|
case 1:
|
|
1188
1188
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1189
1189
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1263,7 +1263,7 @@ var deserializeAws_restJson1CreateDomainCommandError = function (output, context
|
|
|
1263
1263
|
case 0:
|
|
1264
1264
|
_a = [__assign({}, output)];
|
|
1265
1265
|
_c = {};
|
|
1266
|
-
return [4,
|
|
1266
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1267
1267
|
case 1:
|
|
1268
1268
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1269
1269
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1343,7 +1343,7 @@ var deserializeAws_restJson1CreateRepositoryCommandError = function (output, con
|
|
|
1343
1343
|
case 0:
|
|
1344
1344
|
_a = [__assign({}, output)];
|
|
1345
1345
|
_c = {};
|
|
1346
|
-
return [4,
|
|
1346
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1347
1347
|
case 1:
|
|
1348
1348
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1349
1349
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1423,7 +1423,7 @@ var deserializeAws_restJson1DeleteDomainCommandError = function (output, context
|
|
|
1423
1423
|
case 0:
|
|
1424
1424
|
_a = [__assign({}, output)];
|
|
1425
1425
|
_c = {};
|
|
1426
|
-
return [4,
|
|
1426
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1427
1427
|
case 1:
|
|
1428
1428
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1429
1429
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1495,7 +1495,7 @@ var deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = function
|
|
|
1495
1495
|
case 0:
|
|
1496
1496
|
_a = [__assign({}, output)];
|
|
1497
1497
|
_c = {};
|
|
1498
|
-
return [4,
|
|
1498
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1499
1499
|
case 1:
|
|
1500
1500
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1501
1501
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1574,7 +1574,7 @@ var deserializeAws_restJson1DeletePackageVersionsCommandError = function (output
|
|
|
1574
1574
|
case 0:
|
|
1575
1575
|
_a = [__assign({}, output)];
|
|
1576
1576
|
_c = {};
|
|
1577
|
-
return [4,
|
|
1577
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1578
1578
|
case 1:
|
|
1579
1579
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1580
1580
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1650,7 +1650,7 @@ var deserializeAws_restJson1DeleteRepositoryCommandError = function (output, con
|
|
|
1650
1650
|
case 0:
|
|
1651
1651
|
_a = [__assign({}, output)];
|
|
1652
1652
|
_c = {};
|
|
1653
|
-
return [4,
|
|
1653
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1654
1654
|
case 1:
|
|
1655
1655
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1656
1656
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1726,7 +1726,7 @@ var deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommandError = func
|
|
|
1726
1726
|
case 0:
|
|
1727
1727
|
_a = [__assign({}, output)];
|
|
1728
1728
|
_c = {};
|
|
1729
|
-
return [4,
|
|
1729
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1730
1730
|
case 1:
|
|
1731
1731
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1732
1732
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1802,7 +1802,7 @@ var deserializeAws_restJson1DescribeDomainCommandError = function (output, conte
|
|
|
1802
1802
|
case 0:
|
|
1803
1803
|
_a = [__assign({}, output)];
|
|
1804
1804
|
_c = {};
|
|
1805
|
-
return [4,
|
|
1805
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1806
1806
|
case 1:
|
|
1807
1807
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1808
1808
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1874,7 +1874,7 @@ var deserializeAws_restJson1DescribePackageCommandError = function (output, cont
|
|
|
1874
1874
|
case 0:
|
|
1875
1875
|
_a = [__assign({}, output)];
|
|
1876
1876
|
_c = {};
|
|
1877
|
-
return [4,
|
|
1877
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1878
1878
|
case 1:
|
|
1879
1879
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1880
1880
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1946,7 +1946,7 @@ var deserializeAws_restJson1DescribePackageVersionCommandError = function (outpu
|
|
|
1946
1946
|
case 0:
|
|
1947
1947
|
_a = [__assign({}, output)];
|
|
1948
1948
|
_c = {};
|
|
1949
|
-
return [4,
|
|
1949
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1950
1950
|
case 1:
|
|
1951
1951
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1952
1952
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2022,7 +2022,7 @@ var deserializeAws_restJson1DescribeRepositoryCommandError = function (output, c
|
|
|
2022
2022
|
case 0:
|
|
2023
2023
|
_a = [__assign({}, output)];
|
|
2024
2024
|
_c = {};
|
|
2025
|
-
return [4,
|
|
2025
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2026
2026
|
case 1:
|
|
2027
2027
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2028
2028
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2094,7 +2094,7 @@ var deserializeAws_restJson1DisassociateExternalConnectionCommandError = functio
|
|
|
2094
2094
|
case 0:
|
|
2095
2095
|
_a = [__assign({}, output)];
|
|
2096
2096
|
_c = {};
|
|
2097
|
-
return [4,
|
|
2097
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2098
2098
|
case 1:
|
|
2099
2099
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2100
2100
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2177,7 +2177,7 @@ var deserializeAws_restJson1DisposePackageVersionsCommandError = function (outpu
|
|
|
2177
2177
|
case 0:
|
|
2178
2178
|
_a = [__assign({}, output)];
|
|
2179
2179
|
_c = {};
|
|
2180
|
-
return [4,
|
|
2180
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2181
2181
|
case 1:
|
|
2182
2182
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2183
2183
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2256,7 +2256,7 @@ var deserializeAws_restJson1GetAuthorizationTokenCommandError = function (output
|
|
|
2256
2256
|
case 0:
|
|
2257
2257
|
_a = [__assign({}, output)];
|
|
2258
2258
|
_c = {};
|
|
2259
|
-
return [4,
|
|
2259
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2260
2260
|
case 1:
|
|
2261
2261
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2262
2262
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2328,7 +2328,7 @@ var deserializeAws_restJson1GetDomainPermissionsPolicyCommandError = function (o
|
|
|
2328
2328
|
case 0:
|
|
2329
2329
|
_a = [__assign({}, output)];
|
|
2330
2330
|
_c = {};
|
|
2331
|
-
return [4,
|
|
2331
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2332
2332
|
case 1:
|
|
2333
2333
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2334
2334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2394,7 +2394,7 @@ var deserializeAws_restJson1GetPackageVersionAssetCommandError = function (outpu
|
|
|
2394
2394
|
case 0:
|
|
2395
2395
|
_a = [__assign({}, output)];
|
|
2396
2396
|
_c = {};
|
|
2397
|
-
return [4,
|
|
2397
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2398
2398
|
case 1:
|
|
2399
2399
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2400
2400
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2485,7 +2485,7 @@ var deserializeAws_restJson1GetPackageVersionReadmeCommandError = function (outp
|
|
|
2485
2485
|
case 0:
|
|
2486
2486
|
_a = [__assign({}, output)];
|
|
2487
2487
|
_c = {};
|
|
2488
|
-
return [4,
|
|
2488
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2489
2489
|
case 1:
|
|
2490
2490
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2491
2491
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2557,7 +2557,7 @@ var deserializeAws_restJson1GetRepositoryEndpointCommandError = function (output
|
|
|
2557
2557
|
case 0:
|
|
2558
2558
|
_a = [__assign({}, output)];
|
|
2559
2559
|
_c = {};
|
|
2560
|
-
return [4,
|
|
2560
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2561
2561
|
case 1:
|
|
2562
2562
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2563
2563
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2629,7 +2629,7 @@ var deserializeAws_restJson1GetRepositoryPermissionsPolicyCommandError = functio
|
|
|
2629
2629
|
case 0:
|
|
2630
2630
|
_a = [__assign({}, output)];
|
|
2631
2631
|
_c = {};
|
|
2632
|
-
return [4,
|
|
2632
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2633
2633
|
case 1:
|
|
2634
2634
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2635
2635
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2704,7 +2704,7 @@ var deserializeAws_restJson1ListDomainsCommandError = function (output, context)
|
|
|
2704
2704
|
case 0:
|
|
2705
2705
|
_a = [__assign({}, output)];
|
|
2706
2706
|
_c = {};
|
|
2707
|
-
return [4,
|
|
2707
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2708
2708
|
case 1:
|
|
2709
2709
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2710
2710
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2775,7 +2775,7 @@ var deserializeAws_restJson1ListPackagesCommandError = function (output, context
|
|
|
2775
2775
|
case 0:
|
|
2776
2776
|
_a = [__assign({}, output)];
|
|
2777
2777
|
_c = {};
|
|
2778
|
-
return [4,
|
|
2778
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2779
2779
|
case 1:
|
|
2780
2780
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2781
2781
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2865,7 +2865,7 @@ var deserializeAws_restJson1ListPackageVersionAssetsCommandError = function (out
|
|
|
2865
2865
|
case 0:
|
|
2866
2866
|
_a = [__assign({}, output)];
|
|
2867
2867
|
_c = {};
|
|
2868
|
-
return [4,
|
|
2868
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2869
2869
|
case 1:
|
|
2870
2870
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2871
2871
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2955,7 +2955,7 @@ var deserializeAws_restJson1ListPackageVersionDependenciesCommandError = functio
|
|
|
2955
2955
|
case 0:
|
|
2956
2956
|
_a = [__assign({}, output)];
|
|
2957
2957
|
_c = {};
|
|
2958
|
-
return [4,
|
|
2958
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2959
2959
|
case 1:
|
|
2960
2960
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2961
2961
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3042,7 +3042,7 @@ var deserializeAws_restJson1ListPackageVersionsCommandError = function (output,
|
|
|
3042
3042
|
case 0:
|
|
3043
3043
|
_a = [__assign({}, output)];
|
|
3044
3044
|
_c = {};
|
|
3045
|
-
return [4,
|
|
3045
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3046
3046
|
case 1:
|
|
3047
3047
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3048
3048
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3117,7 +3117,7 @@ var deserializeAws_restJson1ListRepositoriesCommandError = function (output, con
|
|
|
3117
3117
|
case 0:
|
|
3118
3118
|
_a = [__assign({}, output)];
|
|
3119
3119
|
_c = {};
|
|
3120
|
-
return [4,
|
|
3120
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3121
3121
|
case 1:
|
|
3122
3122
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3123
3123
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3188,7 +3188,7 @@ var deserializeAws_restJson1ListRepositoriesInDomainCommandError = function (out
|
|
|
3188
3188
|
case 0:
|
|
3189
3189
|
_a = [__assign({}, output)];
|
|
3190
3190
|
_c = {};
|
|
3191
|
-
return [4,
|
|
3191
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3192
3192
|
case 1:
|
|
3193
3193
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3194
3194
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3260,7 +3260,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3260
3260
|
case 0:
|
|
3261
3261
|
_a = [__assign({}, output)];
|
|
3262
3262
|
_c = {};
|
|
3263
|
-
return [4,
|
|
3263
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3264
3264
|
case 1:
|
|
3265
3265
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3266
3266
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3328,7 +3328,7 @@ var deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = function (o
|
|
|
3328
3328
|
case 0:
|
|
3329
3329
|
_a = [__assign({}, output)];
|
|
3330
3330
|
_c = {};
|
|
3331
|
-
return [4,
|
|
3331
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3332
3332
|
case 1:
|
|
3333
3333
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3334
3334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3408,7 +3408,7 @@ var deserializeAws_restJson1PutPackageOriginConfigurationCommandError = function
|
|
|
3408
3408
|
case 0:
|
|
3409
3409
|
_a = [__assign({}, output)];
|
|
3410
3410
|
_c = {};
|
|
3411
|
-
return [4,
|
|
3411
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3412
3412
|
case 1:
|
|
3413
3413
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3414
3414
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3480,7 +3480,7 @@ var deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError = functio
|
|
|
3480
3480
|
case 0:
|
|
3481
3481
|
_a = [__assign({}, output)];
|
|
3482
3482
|
_c = {};
|
|
3483
|
-
return [4,
|
|
3483
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3484
3484
|
case 1:
|
|
3485
3485
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3486
3486
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3555,7 +3555,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3555
3555
|
case 0:
|
|
3556
3556
|
_a = [__assign({}, output)];
|
|
3557
3557
|
_c = {};
|
|
3558
|
-
return [4,
|
|
3558
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3559
3559
|
case 1:
|
|
3560
3560
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3561
3561
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3622,7 +3622,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3622
3622
|
case 0:
|
|
3623
3623
|
_a = [__assign({}, output)];
|
|
3624
3624
|
_c = {};
|
|
3625
|
-
return [4,
|
|
3625
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3626
3626
|
case 1:
|
|
3627
3627
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3628
3628
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3693,7 +3693,7 @@ var deserializeAws_restJson1UpdatePackageVersionsStatusCommandError = function (
|
|
|
3693
3693
|
case 0:
|
|
3694
3694
|
_a = [__assign({}, output)];
|
|
3695
3695
|
_c = {};
|
|
3696
|
-
return [4,
|
|
3696
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3697
3697
|
case 1:
|
|
3698
3698
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3699
3699
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3769,7 +3769,7 @@ var deserializeAws_restJson1UpdateRepositoryCommandError = function (output, con
|
|
|
3769
3769
|
case 0:
|
|
3770
3770
|
_a = [__assign({}, output)];
|
|
3771
3771
|
_c = {};
|
|
3772
|
-
return [4,
|
|
3772
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3773
3773
|
case 1:
|
|
3774
3774
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3775
3775
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4335,6 +4335,19 @@ var parseBody = function (streamBody, context) {
|
|
|
4335
4335
|
return {};
|
|
4336
4336
|
});
|
|
4337
4337
|
};
|
|
4338
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4339
|
+
var value;
|
|
4340
|
+
var _a;
|
|
4341
|
+
return __generator(this, function (_b) {
|
|
4342
|
+
switch (_b.label) {
|
|
4343
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
4344
|
+
case 1:
|
|
4345
|
+
value = _b.sent();
|
|
4346
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4347
|
+
return [2, value];
|
|
4348
|
+
}
|
|
4349
|
+
});
|
|
4350
|
+
}); };
|
|
4338
4351
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4339
4352
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4340
4353
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codeartifact",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codeartifact 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",
|