@aws-sdk/client-ecr 3.525.0 → 3.529.1
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/dist-cjs/index.js +46 -86
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -289,6 +289,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
289
289
|
var import_types = require("@smithy/types");
|
|
290
290
|
|
|
291
291
|
// src/protocols/Aws_json1_1.ts
|
|
292
|
+
var import_core2 = require("@aws-sdk/core");
|
|
292
293
|
|
|
293
294
|
|
|
294
295
|
|
|
@@ -1313,7 +1314,7 @@ var de_BatchCheckLayerAvailabilityCommand = /* @__PURE__ */ __name(async (output
|
|
|
1313
1314
|
if (output.statusCode >= 300) {
|
|
1314
1315
|
return de_CommandError(output, context);
|
|
1315
1316
|
}
|
|
1316
|
-
const data = await
|
|
1317
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1317
1318
|
let contents = {};
|
|
1318
1319
|
contents = (0, import_smithy_client._json)(data);
|
|
1319
1320
|
const response = {
|
|
@@ -1326,7 +1327,7 @@ var de_BatchDeleteImageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1326
1327
|
if (output.statusCode >= 300) {
|
|
1327
1328
|
return de_CommandError(output, context);
|
|
1328
1329
|
}
|
|
1329
|
-
const data = await
|
|
1330
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1330
1331
|
let contents = {};
|
|
1331
1332
|
contents = (0, import_smithy_client._json)(data);
|
|
1332
1333
|
const response = {
|
|
@@ -1339,7 +1340,7 @@ var de_BatchGetImageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1339
1340
|
if (output.statusCode >= 300) {
|
|
1340
1341
|
return de_CommandError(output, context);
|
|
1341
1342
|
}
|
|
1342
|
-
const data = await
|
|
1343
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1343
1344
|
let contents = {};
|
|
1344
1345
|
contents = (0, import_smithy_client._json)(data);
|
|
1345
1346
|
const response = {
|
|
@@ -1352,7 +1353,7 @@ var de_BatchGetRepositoryScanningConfigurationCommand = /* @__PURE__ */ __name(a
|
|
|
1352
1353
|
if (output.statusCode >= 300) {
|
|
1353
1354
|
return de_CommandError(output, context);
|
|
1354
1355
|
}
|
|
1355
|
-
const data = await
|
|
1356
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1356
1357
|
let contents = {};
|
|
1357
1358
|
contents = (0, import_smithy_client._json)(data);
|
|
1358
1359
|
const response = {
|
|
@@ -1365,7 +1366,7 @@ var de_CompleteLayerUploadCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1365
1366
|
if (output.statusCode >= 300) {
|
|
1366
1367
|
return de_CommandError(output, context);
|
|
1367
1368
|
}
|
|
1368
|
-
const data = await
|
|
1369
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1369
1370
|
let contents = {};
|
|
1370
1371
|
contents = (0, import_smithy_client._json)(data);
|
|
1371
1372
|
const response = {
|
|
@@ -1378,7 +1379,7 @@ var de_CreatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1378
1379
|
if (output.statusCode >= 300) {
|
|
1379
1380
|
return de_CommandError(output, context);
|
|
1380
1381
|
}
|
|
1381
|
-
const data = await
|
|
1382
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1382
1383
|
let contents = {};
|
|
1383
1384
|
contents = de_CreatePullThroughCacheRuleResponse(data, context);
|
|
1384
1385
|
const response = {
|
|
@@ -1391,7 +1392,7 @@ var de_CreateRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1391
1392
|
if (output.statusCode >= 300) {
|
|
1392
1393
|
return de_CommandError(output, context);
|
|
1393
1394
|
}
|
|
1394
|
-
const data = await
|
|
1395
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1395
1396
|
let contents = {};
|
|
1396
1397
|
contents = de_CreateRepositoryResponse(data, context);
|
|
1397
1398
|
const response = {
|
|
@@ -1404,7 +1405,7 @@ var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1404
1405
|
if (output.statusCode >= 300) {
|
|
1405
1406
|
return de_CommandError(output, context);
|
|
1406
1407
|
}
|
|
1407
|
-
const data = await
|
|
1408
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1408
1409
|
let contents = {};
|
|
1409
1410
|
contents = de_DeleteLifecyclePolicyResponse(data, context);
|
|
1410
1411
|
const response = {
|
|
@@ -1417,7 +1418,7 @@ var de_DeletePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1417
1418
|
if (output.statusCode >= 300) {
|
|
1418
1419
|
return de_CommandError(output, context);
|
|
1419
1420
|
}
|
|
1420
|
-
const data = await
|
|
1421
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1421
1422
|
let contents = {};
|
|
1422
1423
|
contents = de_DeletePullThroughCacheRuleResponse(data, context);
|
|
1423
1424
|
const response = {
|
|
@@ -1430,7 +1431,7 @@ var de_DeleteRegistryPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1430
1431
|
if (output.statusCode >= 300) {
|
|
1431
1432
|
return de_CommandError(output, context);
|
|
1432
1433
|
}
|
|
1433
|
-
const data = await
|
|
1434
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1434
1435
|
let contents = {};
|
|
1435
1436
|
contents = (0, import_smithy_client._json)(data);
|
|
1436
1437
|
const response = {
|
|
@@ -1443,7 +1444,7 @@ var de_DeleteRepositoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1443
1444
|
if (output.statusCode >= 300) {
|
|
1444
1445
|
return de_CommandError(output, context);
|
|
1445
1446
|
}
|
|
1446
|
-
const data = await
|
|
1447
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1447
1448
|
let contents = {};
|
|
1448
1449
|
contents = de_DeleteRepositoryResponse(data, context);
|
|
1449
1450
|
const response = {
|
|
@@ -1456,7 +1457,7 @@ var de_DeleteRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1456
1457
|
if (output.statusCode >= 300) {
|
|
1457
1458
|
return de_CommandError(output, context);
|
|
1458
1459
|
}
|
|
1459
|
-
const data = await
|
|
1460
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1460
1461
|
let contents = {};
|
|
1461
1462
|
contents = (0, import_smithy_client._json)(data);
|
|
1462
1463
|
const response = {
|
|
@@ -1469,7 +1470,7 @@ var de_DescribeImageReplicationStatusCommand = /* @__PURE__ */ __name(async (out
|
|
|
1469
1470
|
if (output.statusCode >= 300) {
|
|
1470
1471
|
return de_CommandError(output, context);
|
|
1471
1472
|
}
|
|
1472
|
-
const data = await
|
|
1473
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1473
1474
|
let contents = {};
|
|
1474
1475
|
contents = (0, import_smithy_client._json)(data);
|
|
1475
1476
|
const response = {
|
|
@@ -1482,7 +1483,7 @@ var de_DescribeImagesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1482
1483
|
if (output.statusCode >= 300) {
|
|
1483
1484
|
return de_CommandError(output, context);
|
|
1484
1485
|
}
|
|
1485
|
-
const data = await
|
|
1486
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1486
1487
|
let contents = {};
|
|
1487
1488
|
contents = de_DescribeImagesResponse(data, context);
|
|
1488
1489
|
const response = {
|
|
@@ -1495,7 +1496,7 @@ var de_DescribeImageScanFindingsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1495
1496
|
if (output.statusCode >= 300) {
|
|
1496
1497
|
return de_CommandError(output, context);
|
|
1497
1498
|
}
|
|
1498
|
-
const data = await
|
|
1499
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1499
1500
|
let contents = {};
|
|
1500
1501
|
contents = de_DescribeImageScanFindingsResponse(data, context);
|
|
1501
1502
|
const response = {
|
|
@@ -1508,7 +1509,7 @@ var de_DescribePullThroughCacheRulesCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1508
1509
|
if (output.statusCode >= 300) {
|
|
1509
1510
|
return de_CommandError(output, context);
|
|
1510
1511
|
}
|
|
1511
|
-
const data = await
|
|
1512
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1512
1513
|
let contents = {};
|
|
1513
1514
|
contents = de_DescribePullThroughCacheRulesResponse(data, context);
|
|
1514
1515
|
const response = {
|
|
@@ -1521,7 +1522,7 @@ var de_DescribeRegistryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1521
1522
|
if (output.statusCode >= 300) {
|
|
1522
1523
|
return de_CommandError(output, context);
|
|
1523
1524
|
}
|
|
1524
|
-
const data = await
|
|
1525
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1525
1526
|
let contents = {};
|
|
1526
1527
|
contents = (0, import_smithy_client._json)(data);
|
|
1527
1528
|
const response = {
|
|
@@ -1534,7 +1535,7 @@ var de_DescribeRepositoriesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1534
1535
|
if (output.statusCode >= 300) {
|
|
1535
1536
|
return de_CommandError(output, context);
|
|
1536
1537
|
}
|
|
1537
|
-
const data = await
|
|
1538
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1538
1539
|
let contents = {};
|
|
1539
1540
|
contents = de_DescribeRepositoriesResponse(data, context);
|
|
1540
1541
|
const response = {
|
|
@@ -1547,7 +1548,7 @@ var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1547
1548
|
if (output.statusCode >= 300) {
|
|
1548
1549
|
return de_CommandError(output, context);
|
|
1549
1550
|
}
|
|
1550
|
-
const data = await
|
|
1551
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1551
1552
|
let contents = {};
|
|
1552
1553
|
contents = de_GetAuthorizationTokenResponse(data, context);
|
|
1553
1554
|
const response = {
|
|
@@ -1560,7 +1561,7 @@ var de_GetDownloadUrlForLayerCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1560
1561
|
if (output.statusCode >= 300) {
|
|
1561
1562
|
return de_CommandError(output, context);
|
|
1562
1563
|
}
|
|
1563
|
-
const data = await
|
|
1564
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1564
1565
|
let contents = {};
|
|
1565
1566
|
contents = (0, import_smithy_client._json)(data);
|
|
1566
1567
|
const response = {
|
|
@@ -1573,7 +1574,7 @@ var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1573
1574
|
if (output.statusCode >= 300) {
|
|
1574
1575
|
return de_CommandError(output, context);
|
|
1575
1576
|
}
|
|
1576
|
-
const data = await
|
|
1577
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1577
1578
|
let contents = {};
|
|
1578
1579
|
contents = de_GetLifecyclePolicyResponse(data, context);
|
|
1579
1580
|
const response = {
|
|
@@ -1586,7 +1587,7 @@ var de_GetLifecyclePolicyPreviewCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1586
1587
|
if (output.statusCode >= 300) {
|
|
1587
1588
|
return de_CommandError(output, context);
|
|
1588
1589
|
}
|
|
1589
|
-
const data = await
|
|
1590
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1590
1591
|
let contents = {};
|
|
1591
1592
|
contents = de_GetLifecyclePolicyPreviewResponse(data, context);
|
|
1592
1593
|
const response = {
|
|
@@ -1599,7 +1600,7 @@ var de_GetRegistryPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1599
1600
|
if (output.statusCode >= 300) {
|
|
1600
1601
|
return de_CommandError(output, context);
|
|
1601
1602
|
}
|
|
1602
|
-
const data = await
|
|
1603
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1603
1604
|
let contents = {};
|
|
1604
1605
|
contents = (0, import_smithy_client._json)(data);
|
|
1605
1606
|
const response = {
|
|
@@ -1612,7 +1613,7 @@ var de_GetRegistryScanningConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
1612
1613
|
if (output.statusCode >= 300) {
|
|
1613
1614
|
return de_CommandError(output, context);
|
|
1614
1615
|
}
|
|
1615
|
-
const data = await
|
|
1616
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1616
1617
|
let contents = {};
|
|
1617
1618
|
contents = (0, import_smithy_client._json)(data);
|
|
1618
1619
|
const response = {
|
|
@@ -1625,7 +1626,7 @@ var de_GetRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1625
1626
|
if (output.statusCode >= 300) {
|
|
1626
1627
|
return de_CommandError(output, context);
|
|
1627
1628
|
}
|
|
1628
|
-
const data = await
|
|
1629
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1629
1630
|
let contents = {};
|
|
1630
1631
|
contents = (0, import_smithy_client._json)(data);
|
|
1631
1632
|
const response = {
|
|
@@ -1638,7 +1639,7 @@ var de_InitiateLayerUploadCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1638
1639
|
if (output.statusCode >= 300) {
|
|
1639
1640
|
return de_CommandError(output, context);
|
|
1640
1641
|
}
|
|
1641
|
-
const data = await
|
|
1642
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1642
1643
|
let contents = {};
|
|
1643
1644
|
contents = (0, import_smithy_client._json)(data);
|
|
1644
1645
|
const response = {
|
|
@@ -1651,7 +1652,7 @@ var de_ListImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1651
1652
|
if (output.statusCode >= 300) {
|
|
1652
1653
|
return de_CommandError(output, context);
|
|
1653
1654
|
}
|
|
1654
|
-
const data = await
|
|
1655
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1655
1656
|
let contents = {};
|
|
1656
1657
|
contents = (0, import_smithy_client._json)(data);
|
|
1657
1658
|
const response = {
|
|
@@ -1664,7 +1665,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1664
1665
|
if (output.statusCode >= 300) {
|
|
1665
1666
|
return de_CommandError(output, context);
|
|
1666
1667
|
}
|
|
1667
|
-
const data = await
|
|
1668
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1668
1669
|
let contents = {};
|
|
1669
1670
|
contents = (0, import_smithy_client._json)(data);
|
|
1670
1671
|
const response = {
|
|
@@ -1677,7 +1678,7 @@ var de_PutImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1677
1678
|
if (output.statusCode >= 300) {
|
|
1678
1679
|
return de_CommandError(output, context);
|
|
1679
1680
|
}
|
|
1680
|
-
const data = await
|
|
1681
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1681
1682
|
let contents = {};
|
|
1682
1683
|
contents = (0, import_smithy_client._json)(data);
|
|
1683
1684
|
const response = {
|
|
@@ -1690,7 +1691,7 @@ var de_PutImageScanningConfigurationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1690
1691
|
if (output.statusCode >= 300) {
|
|
1691
1692
|
return de_CommandError(output, context);
|
|
1692
1693
|
}
|
|
1693
|
-
const data = await
|
|
1694
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1694
1695
|
let contents = {};
|
|
1695
1696
|
contents = (0, import_smithy_client._json)(data);
|
|
1696
1697
|
const response = {
|
|
@@ -1703,7 +1704,7 @@ var de_PutImageTagMutabilityCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1703
1704
|
if (output.statusCode >= 300) {
|
|
1704
1705
|
return de_CommandError(output, context);
|
|
1705
1706
|
}
|
|
1706
|
-
const data = await
|
|
1707
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1707
1708
|
let contents = {};
|
|
1708
1709
|
contents = (0, import_smithy_client._json)(data);
|
|
1709
1710
|
const response = {
|
|
@@ -1716,7 +1717,7 @@ var de_PutLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1716
1717
|
if (output.statusCode >= 300) {
|
|
1717
1718
|
return de_CommandError(output, context);
|
|
1718
1719
|
}
|
|
1719
|
-
const data = await
|
|
1720
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1720
1721
|
let contents = {};
|
|
1721
1722
|
contents = (0, import_smithy_client._json)(data);
|
|
1722
1723
|
const response = {
|
|
@@ -1729,7 +1730,7 @@ var de_PutRegistryPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1729
1730
|
if (output.statusCode >= 300) {
|
|
1730
1731
|
return de_CommandError(output, context);
|
|
1731
1732
|
}
|
|
1732
|
-
const data = await
|
|
1733
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1733
1734
|
let contents = {};
|
|
1734
1735
|
contents = (0, import_smithy_client._json)(data);
|
|
1735
1736
|
const response = {
|
|
@@ -1742,7 +1743,7 @@ var de_PutRegistryScanningConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
1742
1743
|
if (output.statusCode >= 300) {
|
|
1743
1744
|
return de_CommandError(output, context);
|
|
1744
1745
|
}
|
|
1745
|
-
const data = await
|
|
1746
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1746
1747
|
let contents = {};
|
|
1747
1748
|
contents = (0, import_smithy_client._json)(data);
|
|
1748
1749
|
const response = {
|
|
@@ -1755,7 +1756,7 @@ var de_PutReplicationConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
1755
1756
|
if (output.statusCode >= 300) {
|
|
1756
1757
|
return de_CommandError(output, context);
|
|
1757
1758
|
}
|
|
1758
|
-
const data = await
|
|
1759
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1759
1760
|
let contents = {};
|
|
1760
1761
|
contents = (0, import_smithy_client._json)(data);
|
|
1761
1762
|
const response = {
|
|
@@ -1768,7 +1769,7 @@ var de_SetRepositoryPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1768
1769
|
if (output.statusCode >= 300) {
|
|
1769
1770
|
return de_CommandError(output, context);
|
|
1770
1771
|
}
|
|
1771
|
-
const data = await
|
|
1772
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1772
1773
|
let contents = {};
|
|
1773
1774
|
contents = (0, import_smithy_client._json)(data);
|
|
1774
1775
|
const response = {
|
|
@@ -1781,7 +1782,7 @@ var de_StartImageScanCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1781
1782
|
if (output.statusCode >= 300) {
|
|
1782
1783
|
return de_CommandError(output, context);
|
|
1783
1784
|
}
|
|
1784
|
-
const data = await
|
|
1785
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1785
1786
|
let contents = {};
|
|
1786
1787
|
contents = (0, import_smithy_client._json)(data);
|
|
1787
1788
|
const response = {
|
|
@@ -1794,7 +1795,7 @@ var de_StartLifecyclePolicyPreviewCommand = /* @__PURE__ */ __name(async (output
|
|
|
1794
1795
|
if (output.statusCode >= 300) {
|
|
1795
1796
|
return de_CommandError(output, context);
|
|
1796
1797
|
}
|
|
1797
|
-
const data = await
|
|
1798
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1798
1799
|
let contents = {};
|
|
1799
1800
|
contents = (0, import_smithy_client._json)(data);
|
|
1800
1801
|
const response = {
|
|
@@ -1807,7 +1808,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1807
1808
|
if (output.statusCode >= 300) {
|
|
1808
1809
|
return de_CommandError(output, context);
|
|
1809
1810
|
}
|
|
1810
|
-
const data = await
|
|
1811
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1811
1812
|
let contents = {};
|
|
1812
1813
|
contents = (0, import_smithy_client._json)(data);
|
|
1813
1814
|
const response = {
|
|
@@ -1820,7 +1821,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1820
1821
|
if (output.statusCode >= 300) {
|
|
1821
1822
|
return de_CommandError(output, context);
|
|
1822
1823
|
}
|
|
1823
|
-
const data = await
|
|
1824
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1824
1825
|
let contents = {};
|
|
1825
1826
|
contents = (0, import_smithy_client._json)(data);
|
|
1826
1827
|
const response = {
|
|
@@ -1833,7 +1834,7 @@ var de_UpdatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1833
1834
|
if (output.statusCode >= 300) {
|
|
1834
1835
|
return de_CommandError(output, context);
|
|
1835
1836
|
}
|
|
1836
|
-
const data = await
|
|
1837
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1837
1838
|
let contents = {};
|
|
1838
1839
|
contents = de_UpdatePullThroughCacheRuleResponse(data, context);
|
|
1839
1840
|
const response = {
|
|
@@ -1846,7 +1847,7 @@ var de_UploadLayerPartCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1846
1847
|
if (output.statusCode >= 300) {
|
|
1847
1848
|
return de_CommandError(output, context);
|
|
1848
1849
|
}
|
|
1849
|
-
const data = await
|
|
1850
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1850
1851
|
let contents = {};
|
|
1851
1852
|
contents = (0, import_smithy_client._json)(data);
|
|
1852
1853
|
const response = {
|
|
@@ -1859,7 +1860,7 @@ var de_ValidatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1859
1860
|
if (output.statusCode >= 300) {
|
|
1860
1861
|
return de_CommandError(output, context);
|
|
1861
1862
|
}
|
|
1862
|
-
const data = await
|
|
1863
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1863
1864
|
let contents = {};
|
|
1864
1865
|
contents = (0, import_smithy_client._json)(data);
|
|
1865
1866
|
const response = {
|
|
@@ -1871,9 +1872,9 @@ var de_ValidatePullThroughCacheRuleCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1871
1872
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1872
1873
|
const parsedOutput = {
|
|
1873
1874
|
...output,
|
|
1874
|
-
body: await
|
|
1875
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1875
1876
|
};
|
|
1876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1877
1878
|
switch (errorCode) {
|
|
1878
1879
|
case "InvalidParameterException":
|
|
1879
1880
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
@@ -2651,7 +2652,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2651
2652
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2652
2653
|
cfId: output.headers["x-amz-cf-id"]
|
|
2653
2654
|
}), "deserializeMetadata");
|
|
2654
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2655
2655
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ECRServiceException);
|
|
2656
2656
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2657
2657
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2678,46 +2678,6 @@ function sharedHeaders(operation) {
|
|
|
2678
2678
|
};
|
|
2679
2679
|
}
|
|
2680
2680
|
__name(sharedHeaders, "sharedHeaders");
|
|
2681
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2682
|
-
if (encoded.length) {
|
|
2683
|
-
return JSON.parse(encoded);
|
|
2684
|
-
}
|
|
2685
|
-
return {};
|
|
2686
|
-
}), "parseBody");
|
|
2687
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2688
|
-
const value = await parseBody(errorBody, context);
|
|
2689
|
-
value.message = value.message ?? value.Message;
|
|
2690
|
-
return value;
|
|
2691
|
-
}, "parseErrorBody");
|
|
2692
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2693
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2694
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2695
|
-
let cleanValue = rawValue;
|
|
2696
|
-
if (typeof cleanValue === "number") {
|
|
2697
|
-
cleanValue = cleanValue.toString();
|
|
2698
|
-
}
|
|
2699
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2700
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2701
|
-
}
|
|
2702
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2703
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2704
|
-
}
|
|
2705
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2706
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2707
|
-
}
|
|
2708
|
-
return cleanValue;
|
|
2709
|
-
}, "sanitizeErrorCode");
|
|
2710
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2711
|
-
if (headerKey !== void 0) {
|
|
2712
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2713
|
-
}
|
|
2714
|
-
if (data.code !== void 0) {
|
|
2715
|
-
return sanitizeErrorCode(data.code);
|
|
2716
|
-
}
|
|
2717
|
-
if (data["__type"] !== void 0) {
|
|
2718
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2719
|
-
}
|
|
2720
|
-
}, "loadRestJsonErrorCode");
|
|
2721
2681
|
|
|
2722
2682
|
// src/commands/BatchCheckLayerAvailabilityCommand.ts
|
|
2723
2683
|
var _BatchCheckLayerAvailabilityCommand = class _BatchCheckLayerAvailabilityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { ECRServiceException as __BaseException } from "../models/ECRServiceException";
|
|
@@ -1644,43 +1645,3 @@ function sharedHeaders(operation) {
|
|
|
1644
1645
|
"x-amz-target": `AmazonEC2ContainerRegistry_V20150921.${operation}`,
|
|
1645
1646
|
};
|
|
1646
1647
|
}
|
|
1647
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1648
|
-
if (encoded.length) {
|
|
1649
|
-
return JSON.parse(encoded);
|
|
1650
|
-
}
|
|
1651
|
-
return {};
|
|
1652
|
-
});
|
|
1653
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1654
|
-
const value = await parseBody(errorBody, context);
|
|
1655
|
-
value.message = value.message ?? value.Message;
|
|
1656
|
-
return value;
|
|
1657
|
-
};
|
|
1658
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1659
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1660
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1661
|
-
let cleanValue = rawValue;
|
|
1662
|
-
if (typeof cleanValue === "number") {
|
|
1663
|
-
cleanValue = cleanValue.toString();
|
|
1664
|
-
}
|
|
1665
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1666
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1667
|
-
}
|
|
1668
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1669
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1670
|
-
}
|
|
1671
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1672
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1673
|
-
}
|
|
1674
|
-
return cleanValue;
|
|
1675
|
-
};
|
|
1676
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1677
|
-
if (headerKey !== undefined) {
|
|
1678
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1679
|
-
}
|
|
1680
|
-
if (data.code !== undefined) {
|
|
1681
|
-
return sanitizeErrorCode(data.code);
|
|
1682
|
-
}
|
|
1683
|
-
if (data["__type"] !== undefined) {
|
|
1684
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1685
|
-
}
|
|
1686
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecr",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ecr",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|