@aws-sdk/client-codepipeline 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 +33 -73
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -296,6 +296,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
296
296
|
var import_types = require("@smithy/types");
|
|
297
297
|
|
|
298
298
|
// src/protocols/Aws_json1_1.ts
|
|
299
|
+
var import_core2 = require("@aws-sdk/core");
|
|
299
300
|
|
|
300
301
|
|
|
301
302
|
var import_uuid = require("uuid");
|
|
@@ -1349,7 +1350,7 @@ var de_AcknowledgeJobCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1349
1350
|
if (output.statusCode >= 300) {
|
|
1350
1351
|
return de_CommandError(output, context);
|
|
1351
1352
|
}
|
|
1352
|
-
const data = await
|
|
1353
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1353
1354
|
let contents = {};
|
|
1354
1355
|
contents = (0, import_smithy_client._json)(data);
|
|
1355
1356
|
const response = {
|
|
@@ -1362,7 +1363,7 @@ var de_AcknowledgeThirdPartyJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1362
1363
|
if (output.statusCode >= 300) {
|
|
1363
1364
|
return de_CommandError(output, context);
|
|
1364
1365
|
}
|
|
1365
|
-
const data = await
|
|
1366
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1366
1367
|
let contents = {};
|
|
1367
1368
|
contents = (0, import_smithy_client._json)(data);
|
|
1368
1369
|
const response = {
|
|
@@ -1375,7 +1376,7 @@ var de_CreateCustomActionTypeCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1375
1376
|
if (output.statusCode >= 300) {
|
|
1376
1377
|
return de_CommandError(output, context);
|
|
1377
1378
|
}
|
|
1378
|
-
const data = await
|
|
1379
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1379
1380
|
let contents = {};
|
|
1380
1381
|
contents = (0, import_smithy_client._json)(data);
|
|
1381
1382
|
const response = {
|
|
@@ -1388,7 +1389,7 @@ var de_CreatePipelineCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1388
1389
|
if (output.statusCode >= 300) {
|
|
1389
1390
|
return de_CommandError(output, context);
|
|
1390
1391
|
}
|
|
1391
|
-
const data = await
|
|
1392
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1392
1393
|
let contents = {};
|
|
1393
1394
|
contents = (0, import_smithy_client._json)(data);
|
|
1394
1395
|
const response = {
|
|
@@ -1421,7 +1422,7 @@ var de_DeleteWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1421
1422
|
if (output.statusCode >= 300) {
|
|
1422
1423
|
return de_CommandError(output, context);
|
|
1423
1424
|
}
|
|
1424
|
-
const data = await
|
|
1425
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1425
1426
|
let contents = {};
|
|
1426
1427
|
contents = (0, import_smithy_client._json)(data);
|
|
1427
1428
|
const response = {
|
|
@@ -1434,7 +1435,7 @@ var de_DeregisterWebhookWithThirdPartyCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1434
1435
|
if (output.statusCode >= 300) {
|
|
1435
1436
|
return de_CommandError(output, context);
|
|
1436
1437
|
}
|
|
1437
|
-
const data = await
|
|
1438
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1438
1439
|
let contents = {};
|
|
1439
1440
|
contents = (0, import_smithy_client._json)(data);
|
|
1440
1441
|
const response = {
|
|
@@ -1467,7 +1468,7 @@ var de_GetActionTypeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1467
1468
|
if (output.statusCode >= 300) {
|
|
1468
1469
|
return de_CommandError(output, context);
|
|
1469
1470
|
}
|
|
1470
|
-
const data = await
|
|
1471
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1471
1472
|
let contents = {};
|
|
1472
1473
|
contents = (0, import_smithy_client._json)(data);
|
|
1473
1474
|
const response = {
|
|
@@ -1480,7 +1481,7 @@ var de_GetJobDetailsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1480
1481
|
if (output.statusCode >= 300) {
|
|
1481
1482
|
return de_CommandError(output, context);
|
|
1482
1483
|
}
|
|
1483
|
-
const data = await
|
|
1484
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1484
1485
|
let contents = {};
|
|
1485
1486
|
contents = (0, import_smithy_client._json)(data);
|
|
1486
1487
|
const response = {
|
|
@@ -1493,7 +1494,7 @@ var de_GetPipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1493
1494
|
if (output.statusCode >= 300) {
|
|
1494
1495
|
return de_CommandError(output, context);
|
|
1495
1496
|
}
|
|
1496
|
-
const data = await
|
|
1497
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1497
1498
|
let contents = {};
|
|
1498
1499
|
contents = de_GetPipelineOutput(data, context);
|
|
1499
1500
|
const response = {
|
|
@@ -1506,7 +1507,7 @@ var de_GetPipelineExecutionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1506
1507
|
if (output.statusCode >= 300) {
|
|
1507
1508
|
return de_CommandError(output, context);
|
|
1508
1509
|
}
|
|
1509
|
-
const data = await
|
|
1510
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1510
1511
|
let contents = {};
|
|
1511
1512
|
contents = de_GetPipelineExecutionOutput(data, context);
|
|
1512
1513
|
const response = {
|
|
@@ -1519,7 +1520,7 @@ var de_GetPipelineStateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1519
1520
|
if (output.statusCode >= 300) {
|
|
1520
1521
|
return de_CommandError(output, context);
|
|
1521
1522
|
}
|
|
1522
|
-
const data = await
|
|
1523
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1523
1524
|
let contents = {};
|
|
1524
1525
|
contents = de_GetPipelineStateOutput(data, context);
|
|
1525
1526
|
const response = {
|
|
@@ -1532,7 +1533,7 @@ var de_GetThirdPartyJobDetailsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1532
1533
|
if (output.statusCode >= 300) {
|
|
1533
1534
|
return de_CommandError(output, context);
|
|
1534
1535
|
}
|
|
1535
|
-
const data = await
|
|
1536
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1536
1537
|
let contents = {};
|
|
1537
1538
|
contents = (0, import_smithy_client._json)(data);
|
|
1538
1539
|
const response = {
|
|
@@ -1545,7 +1546,7 @@ var de_ListActionExecutionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1545
1546
|
if (output.statusCode >= 300) {
|
|
1546
1547
|
return de_CommandError(output, context);
|
|
1547
1548
|
}
|
|
1548
|
-
const data = await
|
|
1549
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1549
1550
|
let contents = {};
|
|
1550
1551
|
contents = de_ListActionExecutionsOutput(data, context);
|
|
1551
1552
|
const response = {
|
|
@@ -1558,7 +1559,7 @@ var de_ListActionTypesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1558
1559
|
if (output.statusCode >= 300) {
|
|
1559
1560
|
return de_CommandError(output, context);
|
|
1560
1561
|
}
|
|
1561
|
-
const data = await
|
|
1562
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1562
1563
|
let contents = {};
|
|
1563
1564
|
contents = (0, import_smithy_client._json)(data);
|
|
1564
1565
|
const response = {
|
|
@@ -1571,7 +1572,7 @@ var de_ListPipelineExecutionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1571
1572
|
if (output.statusCode >= 300) {
|
|
1572
1573
|
return de_CommandError(output, context);
|
|
1573
1574
|
}
|
|
1574
|
-
const data = await
|
|
1575
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1575
1576
|
let contents = {};
|
|
1576
1577
|
contents = de_ListPipelineExecutionsOutput(data, context);
|
|
1577
1578
|
const response = {
|
|
@@ -1584,7 +1585,7 @@ var de_ListPipelinesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1584
1585
|
if (output.statusCode >= 300) {
|
|
1585
1586
|
return de_CommandError(output, context);
|
|
1586
1587
|
}
|
|
1587
|
-
const data = await
|
|
1588
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1588
1589
|
let contents = {};
|
|
1589
1590
|
contents = de_ListPipelinesOutput(data, context);
|
|
1590
1591
|
const response = {
|
|
@@ -1597,7 +1598,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1597
1598
|
if (output.statusCode >= 300) {
|
|
1598
1599
|
return de_CommandError(output, context);
|
|
1599
1600
|
}
|
|
1600
|
-
const data = await
|
|
1601
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1601
1602
|
let contents = {};
|
|
1602
1603
|
contents = (0, import_smithy_client._json)(data);
|
|
1603
1604
|
const response = {
|
|
@@ -1610,7 +1611,7 @@ var de_ListWebhooksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1610
1611
|
if (output.statusCode >= 300) {
|
|
1611
1612
|
return de_CommandError(output, context);
|
|
1612
1613
|
}
|
|
1613
|
-
const data = await
|
|
1614
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1614
1615
|
let contents = {};
|
|
1615
1616
|
contents = de_ListWebhooksOutput(data, context);
|
|
1616
1617
|
const response = {
|
|
@@ -1623,7 +1624,7 @@ var de_PollForJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1623
1624
|
if (output.statusCode >= 300) {
|
|
1624
1625
|
return de_CommandError(output, context);
|
|
1625
1626
|
}
|
|
1626
|
-
const data = await
|
|
1627
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1627
1628
|
let contents = {};
|
|
1628
1629
|
contents = (0, import_smithy_client._json)(data);
|
|
1629
1630
|
const response = {
|
|
@@ -1636,7 +1637,7 @@ var de_PollForThirdPartyJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1636
1637
|
if (output.statusCode >= 300) {
|
|
1637
1638
|
return de_CommandError(output, context);
|
|
1638
1639
|
}
|
|
1639
|
-
const data = await
|
|
1640
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1640
1641
|
let contents = {};
|
|
1641
1642
|
contents = (0, import_smithy_client._json)(data);
|
|
1642
1643
|
const response = {
|
|
@@ -1649,7 +1650,7 @@ var de_PutActionRevisionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1649
1650
|
if (output.statusCode >= 300) {
|
|
1650
1651
|
return de_CommandError(output, context);
|
|
1651
1652
|
}
|
|
1652
|
-
const data = await
|
|
1653
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1653
1654
|
let contents = {};
|
|
1654
1655
|
contents = (0, import_smithy_client._json)(data);
|
|
1655
1656
|
const response = {
|
|
@@ -1662,7 +1663,7 @@ var de_PutApprovalResultCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1662
1663
|
if (output.statusCode >= 300) {
|
|
1663
1664
|
return de_CommandError(output, context);
|
|
1664
1665
|
}
|
|
1665
|
-
const data = await
|
|
1666
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1666
1667
|
let contents = {};
|
|
1667
1668
|
contents = de_PutApprovalResultOutput(data, context);
|
|
1668
1669
|
const response = {
|
|
@@ -1715,7 +1716,7 @@ var de_PutWebhookCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1715
1716
|
if (output.statusCode >= 300) {
|
|
1716
1717
|
return de_CommandError(output, context);
|
|
1717
1718
|
}
|
|
1718
|
-
const data = await
|
|
1719
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1719
1720
|
let contents = {};
|
|
1720
1721
|
contents = de_PutWebhookOutput(data, context);
|
|
1721
1722
|
const response = {
|
|
@@ -1728,7 +1729,7 @@ var de_RegisterWebhookWithThirdPartyCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1728
1729
|
if (output.statusCode >= 300) {
|
|
1729
1730
|
return de_CommandError(output, context);
|
|
1730
1731
|
}
|
|
1731
|
-
const data = await
|
|
1732
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1732
1733
|
let contents = {};
|
|
1733
1734
|
contents = (0, import_smithy_client._json)(data);
|
|
1734
1735
|
const response = {
|
|
@@ -1741,7 +1742,7 @@ var de_RetryStageExecutionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1741
1742
|
if (output.statusCode >= 300) {
|
|
1742
1743
|
return de_CommandError(output, context);
|
|
1743
1744
|
}
|
|
1744
|
-
const data = await
|
|
1745
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1745
1746
|
let contents = {};
|
|
1746
1747
|
contents = (0, import_smithy_client._json)(data);
|
|
1747
1748
|
const response = {
|
|
@@ -1754,7 +1755,7 @@ var de_StartPipelineExecutionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1754
1755
|
if (output.statusCode >= 300) {
|
|
1755
1756
|
return de_CommandError(output, context);
|
|
1756
1757
|
}
|
|
1757
|
-
const data = await
|
|
1758
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1758
1759
|
let contents = {};
|
|
1759
1760
|
contents = (0, import_smithy_client._json)(data);
|
|
1760
1761
|
const response = {
|
|
@@ -1767,7 +1768,7 @@ var de_StopPipelineExecutionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1767
1768
|
if (output.statusCode >= 300) {
|
|
1768
1769
|
return de_CommandError(output, context);
|
|
1769
1770
|
}
|
|
1770
|
-
const data = await
|
|
1771
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1771
1772
|
let contents = {};
|
|
1772
1773
|
contents = (0, import_smithy_client._json)(data);
|
|
1773
1774
|
const response = {
|
|
@@ -1780,7 +1781,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1780
1781
|
if (output.statusCode >= 300) {
|
|
1781
1782
|
return de_CommandError(output, context);
|
|
1782
1783
|
}
|
|
1783
|
-
const data = await
|
|
1784
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1784
1785
|
let contents = {};
|
|
1785
1786
|
contents = (0, import_smithy_client._json)(data);
|
|
1786
1787
|
const response = {
|
|
@@ -1793,7 +1794,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1793
1794
|
if (output.statusCode >= 300) {
|
|
1794
1795
|
return de_CommandError(output, context);
|
|
1795
1796
|
}
|
|
1796
|
-
const data = await
|
|
1797
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1797
1798
|
let contents = {};
|
|
1798
1799
|
contents = (0, import_smithy_client._json)(data);
|
|
1799
1800
|
const response = {
|
|
@@ -1816,7 +1817,7 @@ var de_UpdatePipelineCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1816
1817
|
if (output.statusCode >= 300) {
|
|
1817
1818
|
return de_CommandError(output, context);
|
|
1818
1819
|
}
|
|
1819
|
-
const data = await
|
|
1820
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1820
1821
|
let contents = {};
|
|
1821
1822
|
contents = (0, import_smithy_client._json)(data);
|
|
1822
1823
|
const response = {
|
|
@@ -1828,9 +1829,9 @@ var de_UpdatePipelineCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1828
1829
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1829
1830
|
const parsedOutput = {
|
|
1830
1831
|
...output,
|
|
1831
|
-
body: await
|
|
1832
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1832
1833
|
};
|
|
1833
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1834
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1834
1835
|
switch (errorCode) {
|
|
1835
1836
|
case "InvalidNonceException":
|
|
1836
1837
|
case "com.amazonaws.codepipeline#InvalidNonceException":
|
|
@@ -2563,7 +2564,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2563
2564
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2564
2565
|
cfId: output.headers["x-amz-cf-id"]
|
|
2565
2566
|
}), "deserializeMetadata");
|
|
2566
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2567
2567
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CodePipelineServiceException);
|
|
2568
2568
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2569
2569
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2590,46 +2590,6 @@ function sharedHeaders(operation) {
|
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
2592
|
__name(sharedHeaders, "sharedHeaders");
|
|
2593
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2594
|
-
if (encoded.length) {
|
|
2595
|
-
return JSON.parse(encoded);
|
|
2596
|
-
}
|
|
2597
|
-
return {};
|
|
2598
|
-
}), "parseBody");
|
|
2599
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2600
|
-
const value = await parseBody(errorBody, context);
|
|
2601
|
-
value.message = value.message ?? value.Message;
|
|
2602
|
-
return value;
|
|
2603
|
-
}, "parseErrorBody");
|
|
2604
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2605
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2606
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2607
|
-
let cleanValue = rawValue;
|
|
2608
|
-
if (typeof cleanValue === "number") {
|
|
2609
|
-
cleanValue = cleanValue.toString();
|
|
2610
|
-
}
|
|
2611
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2612
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2613
|
-
}
|
|
2614
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2615
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2616
|
-
}
|
|
2617
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2618
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2619
|
-
}
|
|
2620
|
-
return cleanValue;
|
|
2621
|
-
}, "sanitizeErrorCode");
|
|
2622
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2623
|
-
if (headerKey !== void 0) {
|
|
2624
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2625
|
-
}
|
|
2626
|
-
if (data.code !== void 0) {
|
|
2627
|
-
return sanitizeErrorCode(data.code);
|
|
2628
|
-
}
|
|
2629
|
-
if (data["__type"] !== void 0) {
|
|
2630
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2631
|
-
}
|
|
2632
|
-
}, "loadRestJsonErrorCode");
|
|
2633
2593
|
|
|
2634
2594
|
// src/commands/AcknowledgeJobCommand.ts
|
|
2635
2595
|
var _AcknowledgeJobCommand = class _AcknowledgeJobCommand 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, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1495,43 +1496,3 @@ function sharedHeaders(operation) {
|
|
|
1495
1496
|
"x-amz-target": `CodePipeline_20150709.${operation}`,
|
|
1496
1497
|
};
|
|
1497
1498
|
}
|
|
1498
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1499
|
-
if (encoded.length) {
|
|
1500
|
-
return JSON.parse(encoded);
|
|
1501
|
-
}
|
|
1502
|
-
return {};
|
|
1503
|
-
});
|
|
1504
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1505
|
-
const value = await parseBody(errorBody, context);
|
|
1506
|
-
value.message = value.message ?? value.Message;
|
|
1507
|
-
return value;
|
|
1508
|
-
};
|
|
1509
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1510
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1511
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1512
|
-
let cleanValue = rawValue;
|
|
1513
|
-
if (typeof cleanValue === "number") {
|
|
1514
|
-
cleanValue = cleanValue.toString();
|
|
1515
|
-
}
|
|
1516
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1517
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1518
|
-
}
|
|
1519
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1520
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1521
|
-
}
|
|
1522
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1523
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1524
|
-
}
|
|
1525
|
-
return cleanValue;
|
|
1526
|
-
};
|
|
1527
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1528
|
-
if (headerKey !== undefined) {
|
|
1529
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1530
|
-
}
|
|
1531
|
-
if (data.code !== undefined) {
|
|
1532
|
-
return sanitizeErrorCode(data.code);
|
|
1533
|
-
}
|
|
1534
|
-
if (data["__type"] !== undefined) {
|
|
1535
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1536
|
-
}
|
|
1537
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codepipeline",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codepipeline 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-codepipeline",
|
|
@@ -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",
|