@aws-sdk/client-translate 3.649.0 → 3.651.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 CHANGED
@@ -1419,9 +1419,7 @@ function sharedHeaders(operation) {
1419
1419
  __name(sharedHeaders, "sharedHeaders");
1420
1420
 
1421
1421
  // src/commands/CreateParallelDataCommand.ts
1422
- var _CreateParallelDataCommand = class _CreateParallelDataCommand extends import_smithy_client.Command.classBuilder().ep({
1423
- ...commonParams
1424
- }).m(function(Command, cs, config, o) {
1422
+ var _CreateParallelDataCommand = class _CreateParallelDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1425
1423
  return [
1426
1424
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1427
1425
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1435,9 +1433,7 @@ var CreateParallelDataCommand = _CreateParallelDataCommand;
1435
1433
 
1436
1434
 
1437
1435
 
1438
- var _DeleteParallelDataCommand = class _DeleteParallelDataCommand extends import_smithy_client.Command.classBuilder().ep({
1439
- ...commonParams
1440
- }).m(function(Command, cs, config, o) {
1436
+ var _DeleteParallelDataCommand = class _DeleteParallelDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1441
1437
  return [
1442
1438
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1443
1439
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1451,9 +1447,7 @@ var DeleteParallelDataCommand = _DeleteParallelDataCommand;
1451
1447
 
1452
1448
 
1453
1449
 
1454
- var _DeleteTerminologyCommand = class _DeleteTerminologyCommand extends import_smithy_client.Command.classBuilder().ep({
1455
- ...commonParams
1456
- }).m(function(Command, cs, config, o) {
1450
+ var _DeleteTerminologyCommand = class _DeleteTerminologyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1457
1451
  return [
1458
1452
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1459
1453
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1467,9 +1461,7 @@ var DeleteTerminologyCommand = _DeleteTerminologyCommand;
1467
1461
 
1468
1462
 
1469
1463
 
1470
- var _DescribeTextTranslationJobCommand = class _DescribeTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep({
1471
- ...commonParams
1472
- }).m(function(Command, cs, config, o) {
1464
+ var _DescribeTextTranslationJobCommand = class _DescribeTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1473
1465
  return [
1474
1466
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1475
1467
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1483,9 +1475,7 @@ var DescribeTextTranslationJobCommand = _DescribeTextTranslationJobCommand;
1483
1475
 
1484
1476
 
1485
1477
 
1486
- var _GetParallelDataCommand = class _GetParallelDataCommand extends import_smithy_client.Command.classBuilder().ep({
1487
- ...commonParams
1488
- }).m(function(Command, cs, config, o) {
1478
+ var _GetParallelDataCommand = class _GetParallelDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1489
1479
  return [
1490
1480
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1491
1481
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1499,9 +1489,7 @@ var GetParallelDataCommand = _GetParallelDataCommand;
1499
1489
 
1500
1490
 
1501
1491
 
1502
- var _GetTerminologyCommand = class _GetTerminologyCommand extends import_smithy_client.Command.classBuilder().ep({
1503
- ...commonParams
1504
- }).m(function(Command, cs, config, o) {
1492
+ var _GetTerminologyCommand = class _GetTerminologyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1505
1493
  return [
1506
1494
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1507
1495
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1515,9 +1503,7 @@ var GetTerminologyCommand = _GetTerminologyCommand;
1515
1503
 
1516
1504
 
1517
1505
 
1518
- var _ImportTerminologyCommand = class _ImportTerminologyCommand extends import_smithy_client.Command.classBuilder().ep({
1519
- ...commonParams
1520
- }).m(function(Command, cs, config, o) {
1506
+ var _ImportTerminologyCommand = class _ImportTerminologyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1521
1507
  return [
1522
1508
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1523
1509
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1531,9 +1517,7 @@ var ImportTerminologyCommand = _ImportTerminologyCommand;
1531
1517
 
1532
1518
 
1533
1519
 
1534
- var _ListLanguagesCommand = class _ListLanguagesCommand extends import_smithy_client.Command.classBuilder().ep({
1535
- ...commonParams
1536
- }).m(function(Command, cs, config, o) {
1520
+ var _ListLanguagesCommand = class _ListLanguagesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1537
1521
  return [
1538
1522
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1539
1523
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1547,9 +1531,7 @@ var ListLanguagesCommand = _ListLanguagesCommand;
1547
1531
 
1548
1532
 
1549
1533
 
1550
- var _ListParallelDataCommand = class _ListParallelDataCommand extends import_smithy_client.Command.classBuilder().ep({
1551
- ...commonParams
1552
- }).m(function(Command, cs, config, o) {
1534
+ var _ListParallelDataCommand = class _ListParallelDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1553
1535
  return [
1554
1536
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1555
1537
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1563,9 +1545,7 @@ var ListParallelDataCommand = _ListParallelDataCommand;
1563
1545
 
1564
1546
 
1565
1547
 
1566
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1567
- ...commonParams
1568
- }).m(function(Command, cs, config, o) {
1548
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1569
1549
  return [
1570
1550
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1571
1551
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1579,9 +1559,7 @@ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1579
1559
 
1580
1560
 
1581
1561
 
1582
- var _ListTerminologiesCommand = class _ListTerminologiesCommand extends import_smithy_client.Command.classBuilder().ep({
1583
- ...commonParams
1584
- }).m(function(Command, cs, config, o) {
1562
+ var _ListTerminologiesCommand = class _ListTerminologiesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1585
1563
  return [
1586
1564
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1587
1565
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1595,9 +1573,7 @@ var ListTerminologiesCommand = _ListTerminologiesCommand;
1595
1573
 
1596
1574
 
1597
1575
 
1598
- var _ListTextTranslationJobsCommand = class _ListTextTranslationJobsCommand extends import_smithy_client.Command.classBuilder().ep({
1599
- ...commonParams
1600
- }).m(function(Command, cs, config, o) {
1576
+ var _ListTextTranslationJobsCommand = class _ListTextTranslationJobsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1601
1577
  return [
1602
1578
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1603
1579
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1611,9 +1587,7 @@ var ListTextTranslationJobsCommand = _ListTextTranslationJobsCommand;
1611
1587
 
1612
1588
 
1613
1589
 
1614
- var _StartTextTranslationJobCommand = class _StartTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep({
1615
- ...commonParams
1616
- }).m(function(Command, cs, config, o) {
1590
+ var _StartTextTranslationJobCommand = class _StartTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1617
1591
  return [
1618
1592
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1619
1593
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1627,9 +1601,7 @@ var StartTextTranslationJobCommand = _StartTextTranslationJobCommand;
1627
1601
 
1628
1602
 
1629
1603
 
1630
- var _StopTextTranslationJobCommand = class _StopTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep({
1631
- ...commonParams
1632
- }).m(function(Command, cs, config, o) {
1604
+ var _StopTextTranslationJobCommand = class _StopTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1633
1605
  return [
1634
1606
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1635
1607
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1643,9 +1615,7 @@ var StopTextTranslationJobCommand = _StopTextTranslationJobCommand;
1643
1615
 
1644
1616
 
1645
1617
 
1646
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1647
- ...commonParams
1648
- }).m(function(Command, cs, config, o) {
1618
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1649
1619
  return [
1650
1620
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1651
1621
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1659,9 +1629,7 @@ var TagResourceCommand = _TagResourceCommand;
1659
1629
 
1660
1630
 
1661
1631
 
1662
- var _TranslateDocumentCommand = class _TranslateDocumentCommand extends import_smithy_client.Command.classBuilder().ep({
1663
- ...commonParams
1664
- }).m(function(Command, cs, config, o) {
1632
+ var _TranslateDocumentCommand = class _TranslateDocumentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1665
1633
  return [
1666
1634
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1667
1635
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1675,9 +1643,7 @@ var TranslateDocumentCommand = _TranslateDocumentCommand;
1675
1643
 
1676
1644
 
1677
1645
 
1678
- var _TranslateTextCommand = class _TranslateTextCommand extends import_smithy_client.Command.classBuilder().ep({
1679
- ...commonParams
1680
- }).m(function(Command, cs, config, o) {
1646
+ var _TranslateTextCommand = class _TranslateTextCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1681
1647
  return [
1682
1648
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1683
1649
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1691,9 +1657,7 @@ var TranslateTextCommand = _TranslateTextCommand;
1691
1657
 
1692
1658
 
1693
1659
 
1694
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1695
- ...commonParams
1696
- }).m(function(Command, cs, config, o) {
1660
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1697
1661
  return [
1698
1662
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1699
1663
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1707,9 +1671,7 @@ var UntagResourceCommand = _UntagResourceCommand;
1707
1671
 
1708
1672
 
1709
1673
 
1710
- var _UpdateParallelDataCommand = class _UpdateParallelDataCommand extends import_smithy_client.Command.classBuilder().ep({
1711
- ...commonParams
1712
- }).m(function(Command, cs, config, o) {
1674
+ var _UpdateParallelDataCommand = class _UpdateParallelDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1713
1675
  return [
1714
1676
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1715
1677
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -6,9 +6,7 @@ import { de_CreateParallelDataCommand, se_CreateParallelDataCommand } from "../p
6
6
  export { $Command };
7
7
  export class CreateParallelDataCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DeleteParallelDataCommand, se_DeleteParallelDataCommand } from "../p
6
6
  export { $Command };
7
7
  export class DeleteParallelDataCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DeleteTerminologyCommand, se_DeleteTerminologyCommand } from "../pro
6
6
  export { $Command };
7
7
  export class DeleteTerminologyCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeTextTranslationJobCommand, se_DescribeTextTranslationJobComm
6
6
  export { $Command };
7
7
  export class DescribeTextTranslationJobCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_GetParallelDataCommand, se_GetParallelDataCommand } from "../protoco
6
6
  export { $Command };
7
7
  export class GetParallelDataCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_GetTerminologyCommand, se_GetTerminologyCommand } from "../protocols
6
6
  export { $Command };
7
7
  export class GetTerminologyCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_ImportTerminologyCommand, se_ImportTerminologyCommand } from "../pro
7
7
  export { $Command };
8
8
  export class ImportTerminologyCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListLanguagesCommand, se_ListLanguagesCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class ListLanguagesCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListParallelDataCommand, se_ListParallelDataCommand } from "../proto
6
6
  export { $Command };
7
7
  export class ListParallelDataCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "..
6
6
  export { $Command };
7
7
  export class ListTagsForResourceCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListTerminologiesCommand, se_ListTerminologiesCommand } from "../pro
6
6
  export { $Command };
7
7
  export class ListTerminologiesCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListTextTranslationJobsCommand, se_ListTextTranslationJobsCommand }
6
6
  export { $Command };
7
7
  export class ListTextTranslationJobsCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_StartTextTranslationJobCommand, se_StartTextTranslationJobCommand }
6
6
  export { $Command };
7
7
  export class StartTextTranslationJobCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_StopTextTranslationJobCommand, se_StopTextTranslationJobCommand } fr
6
6
  export { $Command };
7
7
  export class StopTextTranslationJobCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_j
6
6
  export { $Command };
7
7
  export class TagResourceCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_TranslateDocumentCommand, se_TranslateDocumentCommand } from "../pro
7
7
  export { $Command };
8
8
  export class TranslateDocumentCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_TranslateTextCommand, se_TranslateTextCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class TranslateTextCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class UntagResourceCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_UpdateParallelDataCommand, se_UpdateParallelDataCommand } from "../p
6
6
  export { $Command };
7
7
  export class UpdateParallelDataCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -1,10 +1,14 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
3
  import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
4
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
5
- return resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
6
10
  endpointParams: endpointParams,
7
11
  logger: context.logger,
8
- });
12
+ }));
9
13
  };
10
14
  customEndpointFunctions.aws = awsEndpointFunctions;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-translate",
3
3
  "description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
4
- "version": "3.649.0",
4
+ "version": "3.651.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-translate",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.649.0",
24
- "@aws-sdk/client-sts": "3.649.0",
25
- "@aws-sdk/core": "3.649.0",
26
- "@aws-sdk/credential-provider-node": "3.649.0",
23
+ "@aws-sdk/client-sso-oidc": "3.651.1",
24
+ "@aws-sdk/client-sts": "3.651.1",
25
+ "@aws-sdk/core": "3.651.1",
26
+ "@aws-sdk/credential-provider-node": "3.651.1",
27
27
  "@aws-sdk/middleware-host-header": "3.649.0",
28
28
  "@aws-sdk/middleware-logger": "3.649.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.649.0",
@@ -1,11 +0,0 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.34.4"
9
- }
10
- ]
11
- }