@aws-sdk/client-ecr-public 3.645.0 → 3.650.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.
Files changed (33) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +6 -2
  2. package/dist-cjs/index.js +23 -69
  3. package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +1 -3
  4. package/dist-es/commands/BatchDeleteImageCommand.js +1 -3
  5. package/dist-es/commands/CompleteLayerUploadCommand.js +1 -3
  6. package/dist-es/commands/CreateRepositoryCommand.js +1 -3
  7. package/dist-es/commands/DeleteRepositoryCommand.js +1 -3
  8. package/dist-es/commands/DeleteRepositoryPolicyCommand.js +1 -3
  9. package/dist-es/commands/DescribeImageTagsCommand.js +1 -3
  10. package/dist-es/commands/DescribeImagesCommand.js +1 -3
  11. package/dist-es/commands/DescribeRegistriesCommand.js +1 -3
  12. package/dist-es/commands/DescribeRepositoriesCommand.js +1 -3
  13. package/dist-es/commands/GetAuthorizationTokenCommand.js +1 -3
  14. package/dist-es/commands/GetRegistryCatalogDataCommand.js +1 -3
  15. package/dist-es/commands/GetRepositoryCatalogDataCommand.js +1 -3
  16. package/dist-es/commands/GetRepositoryPolicyCommand.js +1 -3
  17. package/dist-es/commands/InitiateLayerUploadCommand.js +1 -3
  18. package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
  19. package/dist-es/commands/PutImageCommand.js +1 -3
  20. package/dist-es/commands/PutRegistryCatalogDataCommand.js +1 -3
  21. package/dist-es/commands/PutRepositoryCatalogDataCommand.js +1 -3
  22. package/dist-es/commands/SetRepositoryPolicyCommand.js +1 -3
  23. package/dist-es/commands/TagResourceCommand.js +1 -3
  24. package/dist-es/commands/UntagResourceCommand.js +1 -3
  25. package/dist-es/commands/UploadLayerPartCommand.js +1 -3
  26. package/dist-es/endpoint/endpointResolver.js +7 -3
  27. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  28. package/dist-types/runtimeConfig.d.ts +2 -0
  29. package/dist-types/runtimeConfig.native.d.ts +2 -0
  30. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  31. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  32. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  33. package/package.json +35 -35
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
6
  const ruleset_1 = require("./ruleset");
7
+ const cache = new util_endpoints_2.EndpointCache({
8
+ size: 50,
9
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
+ });
7
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
8
- return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
9
13
  endpointParams: endpointParams,
10
14
  logger: context.logger,
11
- });
15
+ }));
12
16
  };
13
17
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
18
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1588,9 +1588,7 @@ function sharedHeaders(operation) {
1588
1588
  __name(sharedHeaders, "sharedHeaders");
1589
1589
 
1590
1590
  // src/commands/BatchCheckLayerAvailabilityCommand.ts
1591
- var _BatchCheckLayerAvailabilityCommand = class _BatchCheckLayerAvailabilityCommand extends import_smithy_client.Command.classBuilder().ep({
1592
- ...commonParams
1593
- }).m(function(Command, cs, config, o) {
1591
+ var _BatchCheckLayerAvailabilityCommand = class _BatchCheckLayerAvailabilityCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1594
1592
  return [
1595
1593
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1596
1594
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1604,9 +1602,7 @@ var BatchCheckLayerAvailabilityCommand = _BatchCheckLayerAvailabilityCommand;
1604
1602
 
1605
1603
 
1606
1604
 
1607
- var _BatchDeleteImageCommand = class _BatchDeleteImageCommand extends import_smithy_client.Command.classBuilder().ep({
1608
- ...commonParams
1609
- }).m(function(Command, cs, config, o) {
1605
+ var _BatchDeleteImageCommand = class _BatchDeleteImageCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1610
1606
  return [
1611
1607
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1612
1608
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1620,9 +1616,7 @@ var BatchDeleteImageCommand = _BatchDeleteImageCommand;
1620
1616
 
1621
1617
 
1622
1618
 
1623
- var _CompleteLayerUploadCommand = class _CompleteLayerUploadCommand extends import_smithy_client.Command.classBuilder().ep({
1624
- ...commonParams
1625
- }).m(function(Command, cs, config, o) {
1619
+ var _CompleteLayerUploadCommand = class _CompleteLayerUploadCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1626
1620
  return [
1627
1621
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1628
1622
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1636,9 +1630,7 @@ var CompleteLayerUploadCommand = _CompleteLayerUploadCommand;
1636
1630
 
1637
1631
 
1638
1632
 
1639
- var _CreateRepositoryCommand = class _CreateRepositoryCommand extends import_smithy_client.Command.classBuilder().ep({
1640
- ...commonParams
1641
- }).m(function(Command, cs, config, o) {
1633
+ var _CreateRepositoryCommand = class _CreateRepositoryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1642
1634
  return [
1643
1635
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1644
1636
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1652,9 +1644,7 @@ var CreateRepositoryCommand = _CreateRepositoryCommand;
1652
1644
 
1653
1645
 
1654
1646
 
1655
- var _DeleteRepositoryCommand = class _DeleteRepositoryCommand extends import_smithy_client.Command.classBuilder().ep({
1656
- ...commonParams
1657
- }).m(function(Command, cs, config, o) {
1647
+ var _DeleteRepositoryCommand = class _DeleteRepositoryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1658
1648
  return [
1659
1649
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1660
1650
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1668,9 +1658,7 @@ var DeleteRepositoryCommand = _DeleteRepositoryCommand;
1668
1658
 
1669
1659
 
1670
1660
 
1671
- var _DeleteRepositoryPolicyCommand = class _DeleteRepositoryPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
1672
- ...commonParams
1673
- }).m(function(Command, cs, config, o) {
1661
+ var _DeleteRepositoryPolicyCommand = class _DeleteRepositoryPolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1674
1662
  return [
1675
1663
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1676
1664
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1684,9 +1672,7 @@ var DeleteRepositoryPolicyCommand = _DeleteRepositoryPolicyCommand;
1684
1672
 
1685
1673
 
1686
1674
 
1687
- var _DescribeImagesCommand = class _DescribeImagesCommand extends import_smithy_client.Command.classBuilder().ep({
1688
- ...commonParams
1689
- }).m(function(Command, cs, config, o) {
1675
+ var _DescribeImagesCommand = class _DescribeImagesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1690
1676
  return [
1691
1677
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1692
1678
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1700,9 +1686,7 @@ var DescribeImagesCommand = _DescribeImagesCommand;
1700
1686
 
1701
1687
 
1702
1688
 
1703
- var _DescribeImageTagsCommand = class _DescribeImageTagsCommand extends import_smithy_client.Command.classBuilder().ep({
1704
- ...commonParams
1705
- }).m(function(Command, cs, config, o) {
1689
+ var _DescribeImageTagsCommand = class _DescribeImageTagsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1706
1690
  return [
1707
1691
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1708
1692
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1716,9 +1700,7 @@ var DescribeImageTagsCommand = _DescribeImageTagsCommand;
1716
1700
 
1717
1701
 
1718
1702
 
1719
- var _DescribeRegistriesCommand = class _DescribeRegistriesCommand extends import_smithy_client.Command.classBuilder().ep({
1720
- ...commonParams
1721
- }).m(function(Command, cs, config, o) {
1703
+ var _DescribeRegistriesCommand = class _DescribeRegistriesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1722
1704
  return [
1723
1705
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1724
1706
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1732,9 +1714,7 @@ var DescribeRegistriesCommand = _DescribeRegistriesCommand;
1732
1714
 
1733
1715
 
1734
1716
 
1735
- var _DescribeRepositoriesCommand = class _DescribeRepositoriesCommand extends import_smithy_client.Command.classBuilder().ep({
1736
- ...commonParams
1737
- }).m(function(Command, cs, config, o) {
1717
+ var _DescribeRepositoriesCommand = class _DescribeRepositoriesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1738
1718
  return [
1739
1719
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1740
1720
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1748,9 +1728,7 @@ var DescribeRepositoriesCommand = _DescribeRepositoriesCommand;
1748
1728
 
1749
1729
 
1750
1730
 
1751
- var _GetAuthorizationTokenCommand = class _GetAuthorizationTokenCommand extends import_smithy_client.Command.classBuilder().ep({
1752
- ...commonParams
1753
- }).m(function(Command, cs, config, o) {
1731
+ var _GetAuthorizationTokenCommand = class _GetAuthorizationTokenCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1754
1732
  return [
1755
1733
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1756
1734
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1764,9 +1742,7 @@ var GetAuthorizationTokenCommand = _GetAuthorizationTokenCommand;
1764
1742
 
1765
1743
 
1766
1744
 
1767
- var _GetRegistryCatalogDataCommand = class _GetRegistryCatalogDataCommand extends import_smithy_client.Command.classBuilder().ep({
1768
- ...commonParams
1769
- }).m(function(Command, cs, config, o) {
1745
+ var _GetRegistryCatalogDataCommand = class _GetRegistryCatalogDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1770
1746
  return [
1771
1747
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1772
1748
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1780,9 +1756,7 @@ var GetRegistryCatalogDataCommand = _GetRegistryCatalogDataCommand;
1780
1756
 
1781
1757
 
1782
1758
 
1783
- var _GetRepositoryCatalogDataCommand = class _GetRepositoryCatalogDataCommand extends import_smithy_client.Command.classBuilder().ep({
1784
- ...commonParams
1785
- }).m(function(Command, cs, config, o) {
1759
+ var _GetRepositoryCatalogDataCommand = class _GetRepositoryCatalogDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1786
1760
  return [
1787
1761
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1788
1762
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1796,9 +1770,7 @@ var GetRepositoryCatalogDataCommand = _GetRepositoryCatalogDataCommand;
1796
1770
 
1797
1771
 
1798
1772
 
1799
- var _GetRepositoryPolicyCommand = class _GetRepositoryPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
1800
- ...commonParams
1801
- }).m(function(Command, cs, config, o) {
1773
+ var _GetRepositoryPolicyCommand = class _GetRepositoryPolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1802
1774
  return [
1803
1775
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1804
1776
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1812,9 +1784,7 @@ var GetRepositoryPolicyCommand = _GetRepositoryPolicyCommand;
1812
1784
 
1813
1785
 
1814
1786
 
1815
- var _InitiateLayerUploadCommand = class _InitiateLayerUploadCommand extends import_smithy_client.Command.classBuilder().ep({
1816
- ...commonParams
1817
- }).m(function(Command, cs, config, o) {
1787
+ var _InitiateLayerUploadCommand = class _InitiateLayerUploadCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1818
1788
  return [
1819
1789
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1820
1790
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1828,9 +1798,7 @@ var InitiateLayerUploadCommand = _InitiateLayerUploadCommand;
1828
1798
 
1829
1799
 
1830
1800
 
1831
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1832
- ...commonParams
1833
- }).m(function(Command, cs, config, o) {
1801
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1834
1802
  return [
1835
1803
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1836
1804
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1844,9 +1812,7 @@ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1844
1812
 
1845
1813
 
1846
1814
 
1847
- var _PutImageCommand = class _PutImageCommand extends import_smithy_client.Command.classBuilder().ep({
1848
- ...commonParams
1849
- }).m(function(Command, cs, config, o) {
1815
+ var _PutImageCommand = class _PutImageCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1850
1816
  return [
1851
1817
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1852
1818
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1860,9 +1826,7 @@ var PutImageCommand = _PutImageCommand;
1860
1826
 
1861
1827
 
1862
1828
 
1863
- var _PutRegistryCatalogDataCommand = class _PutRegistryCatalogDataCommand extends import_smithy_client.Command.classBuilder().ep({
1864
- ...commonParams
1865
- }).m(function(Command, cs, config, o) {
1829
+ var _PutRegistryCatalogDataCommand = class _PutRegistryCatalogDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1866
1830
  return [
1867
1831
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1868
1832
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1876,9 +1840,7 @@ var PutRegistryCatalogDataCommand = _PutRegistryCatalogDataCommand;
1876
1840
 
1877
1841
 
1878
1842
 
1879
- var _PutRepositoryCatalogDataCommand = class _PutRepositoryCatalogDataCommand extends import_smithy_client.Command.classBuilder().ep({
1880
- ...commonParams
1881
- }).m(function(Command, cs, config, o) {
1843
+ var _PutRepositoryCatalogDataCommand = class _PutRepositoryCatalogDataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1882
1844
  return [
1883
1845
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1884
1846
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1892,9 +1854,7 @@ var PutRepositoryCatalogDataCommand = _PutRepositoryCatalogDataCommand;
1892
1854
 
1893
1855
 
1894
1856
 
1895
- var _SetRepositoryPolicyCommand = class _SetRepositoryPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
1896
- ...commonParams
1897
- }).m(function(Command, cs, config, o) {
1857
+ var _SetRepositoryPolicyCommand = class _SetRepositoryPolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1898
1858
  return [
1899
1859
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1900
1860
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1908,9 +1868,7 @@ var SetRepositoryPolicyCommand = _SetRepositoryPolicyCommand;
1908
1868
 
1909
1869
 
1910
1870
 
1911
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1912
- ...commonParams
1913
- }).m(function(Command, cs, config, o) {
1871
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1914
1872
  return [
1915
1873
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1916
1874
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1924,9 +1882,7 @@ var TagResourceCommand = _TagResourceCommand;
1924
1882
 
1925
1883
 
1926
1884
 
1927
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1928
- ...commonParams
1929
- }).m(function(Command, cs, config, o) {
1885
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1930
1886
  return [
1931
1887
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1932
1888
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1940,9 +1896,7 @@ var UntagResourceCommand = _UntagResourceCommand;
1940
1896
 
1941
1897
 
1942
1898
 
1943
- var _UploadLayerPartCommand = class _UploadLayerPartCommand extends import_smithy_client.Command.classBuilder().ep({
1944
- ...commonParams
1945
- }).m(function(Command, cs, config, o) {
1899
+ var _UploadLayerPartCommand = class _UploadLayerPartCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1946
1900
  return [
1947
1901
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1948
1902
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -6,9 +6,7 @@ import { de_BatchCheckLayerAvailabilityCommand, se_BatchCheckLayerAvailabilityCo
6
6
  export { $Command };
7
7
  export class BatchCheckLayerAvailabilityCommand 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_BatchDeleteImageCommand, se_BatchDeleteImageCommand } from "../proto
6
6
  export { $Command };
7
7
  export class BatchDeleteImageCommand 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_CompleteLayerUploadCommand, se_CompleteLayerUploadCommand } from "..
6
6
  export { $Command };
7
7
  export class CompleteLayerUploadCommand 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_CreateRepositoryCommand, se_CreateRepositoryCommand } from "../proto
6
6
  export { $Command };
7
7
  export class CreateRepositoryCommand 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_DeleteRepositoryCommand, se_DeleteRepositoryCommand } from "../proto
6
6
  export { $Command };
7
7
  export class DeleteRepositoryCommand 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_DeleteRepositoryPolicyCommand, se_DeleteRepositoryPolicyCommand } fr
6
6
  export { $Command };
7
7
  export class DeleteRepositoryPolicyCommand 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_DescribeImageTagsCommand, se_DescribeImageTagsCommand } from "../pro
6
6
  export { $Command };
7
7
  export class DescribeImageTagsCommand 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_DescribeImagesCommand, se_DescribeImagesCommand } from "../protocols
6
6
  export { $Command };
7
7
  export class DescribeImagesCommand 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_DescribeRegistriesCommand, se_DescribeRegistriesCommand } from "../p
6
6
  export { $Command };
7
7
  export class DescribeRegistriesCommand 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_DescribeRepositoriesCommand, se_DescribeRepositoriesCommand } from "
6
6
  export { $Command };
7
7
  export class DescribeRepositoriesCommand 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_GetAuthorizationTokenCommand, se_GetAuthorizationTokenCommand } from
6
6
  export { $Command };
7
7
  export class GetAuthorizationTokenCommand 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_GetRegistryCatalogDataCommand, se_GetRegistryCatalogDataCommand } fr
6
6
  export { $Command };
7
7
  export class GetRegistryCatalogDataCommand 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_GetRepositoryCatalogDataCommand, se_GetRepositoryCatalogDataCommand
6
6
  export { $Command };
7
7
  export class GetRepositoryCatalogDataCommand 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_GetRepositoryPolicyCommand, se_GetRepositoryPolicyCommand } from "..
6
6
  export { $Command };
7
7
  export class GetRepositoryPolicyCommand 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_InitiateLayerUploadCommand, se_InitiateLayerUploadCommand } from "..
6
6
  export { $Command };
7
7
  export class InitiateLayerUploadCommand 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_PutImageCommand, se_PutImageCommand } from "../protocols/Aws_json1_1
6
6
  export { $Command };
7
7
  export class PutImageCommand 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_PutRegistryCatalogDataCommand, se_PutRegistryCatalogDataCommand } fr
6
6
  export { $Command };
7
7
  export class PutRegistryCatalogDataCommand 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_PutRepositoryCatalogDataCommand, se_PutRepositoryCatalogDataCommand
6
6
  export { $Command };
7
7
  export class PutRepositoryCatalogDataCommand 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_SetRepositoryPolicyCommand, se_SetRepositoryPolicyCommand } from "..
6
6
  export { $Command };
7
7
  export class SetRepositoryPolicyCommand 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),
@@ -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_UploadLayerPartCommand, se_UploadLayerPartCommand } from "../protoco
6
6
  export { $Command };
7
7
  export class UploadLayerPartCommand 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;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
21
22
  urlParser: import("@smithy/types").UrlParser;
22
23
  base64Decoder: import("@smithy/types").Decoder;
23
24
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
40
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ECRPUBLICHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
21
22
  urlParser: import("@smithy/types").UrlParser;
22
23
  base64Decoder: import("@smithy/types").Decoder;
23
24
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
40
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ECRPUBLICHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
+ cacheMiddleware?: boolean | undefined;
10
11
  urlParser: import("@smithy/types").UrlParser;
11
12
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
12
13
  streamCollector: import("@smithy/types").StreamCollector;
@@ -33,6 +34,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
33
34
  logger?: import("@smithy/types").Logger | undefined;
34
35
  }) => import("@smithy/types").EndpointV2;
35
36
  tls?: boolean | undefined;
37
+ serviceConfiguredEndpoint?: undefined;
36
38
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
37
39
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ECRPUBLICHttpAuthSchemeProvider;
38
40
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
23
23
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
25
25
  apiVersion: string;
26
+ cacheMiddleware?: boolean | undefined;
26
27
  urlParser: import("@smithy/types").UrlParser;
27
28
  base64Decoder: import("@smithy/types").Decoder;
28
29
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -61,6 +62,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
61
62
  }
62
63
  ) => import("@smithy/types").EndpointV2;
63
64
  tls?: boolean | undefined;
65
+ serviceConfiguredEndpoint?: undefined;
64
66
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
65
67
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ECRPUBLICHttpAuthSchemeProvider;
66
68
  credentials?:
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
27
27
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
28
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
29
  apiVersion: string;
30
+ cacheMiddleware?: boolean | undefined;
30
31
  urlParser: import("@smithy/types").UrlParser;
31
32
  base64Decoder: import("@smithy/types").Decoder;
32
33
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -65,6 +66,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
65
66
  }
66
67
  ) => import("@smithy/types").EndpointV2;
67
68
  tls?: boolean | undefined;
69
+ serviceConfiguredEndpoint?: undefined;
68
70
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
69
71
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ECRPUBLICHttpAuthSchemeProvider;
70
72
  credentials?:
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
9
9
  | import("@smithy/protocol-http").HttpHandler<any>
10
10
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
11
  apiVersion: string;
12
+ cacheMiddleware?: boolean | undefined;
12
13
  urlParser: import("@smithy/types").UrlParser;
13
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -55,6 +56,7 @@ export declare const getRuntimeConfig: (config: ECRPUBLICClientConfig) => {
55
56
  }
56
57
  ) => import("@smithy/types").EndpointV2;
57
58
  tls?: boolean | undefined;
59
+ serviceConfiguredEndpoint?: undefined;
58
60
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
59
61
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ECRPUBLICHttpAuthSchemeProvider;
60
62
  credentials?:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ecr-public",
3
3
  "description": "AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native",
4
- "version": "3.645.0",
4
+ "version": "3.650.0",
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-public",
@@ -20,43 +20,43 @@
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.645.0",
24
- "@aws-sdk/client-sts": "3.645.0",
25
- "@aws-sdk/core": "3.635.0",
26
- "@aws-sdk/credential-provider-node": "3.645.0",
27
- "@aws-sdk/middleware-host-header": "3.620.0",
28
- "@aws-sdk/middleware-logger": "3.609.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.620.0",
30
- "@aws-sdk/middleware-user-agent": "3.645.0",
31
- "@aws-sdk/region-config-resolver": "3.614.0",
32
- "@aws-sdk/types": "3.609.0",
33
- "@aws-sdk/util-endpoints": "3.645.0",
34
- "@aws-sdk/util-user-agent-browser": "3.609.0",
35
- "@aws-sdk/util-user-agent-node": "3.614.0",
36
- "@smithy/config-resolver": "^3.0.5",
37
- "@smithy/core": "^2.4.0",
38
- "@smithy/fetch-http-handler": "^3.2.4",
39
- "@smithy/hash-node": "^3.0.3",
40
- "@smithy/invalid-dependency": "^3.0.3",
41
- "@smithy/middleware-content-length": "^3.0.5",
42
- "@smithy/middleware-endpoint": "^3.1.0",
43
- "@smithy/middleware-retry": "^3.0.15",
44
- "@smithy/middleware-serde": "^3.0.3",
45
- "@smithy/middleware-stack": "^3.0.3",
46
- "@smithy/node-config-provider": "^3.1.4",
47
- "@smithy/node-http-handler": "^3.1.4",
48
- "@smithy/protocol-http": "^4.1.0",
49
- "@smithy/smithy-client": "^3.2.0",
50
- "@smithy/types": "^3.3.0",
51
- "@smithy/url-parser": "^3.0.3",
23
+ "@aws-sdk/client-sso-oidc": "3.650.0",
24
+ "@aws-sdk/client-sts": "3.650.0",
25
+ "@aws-sdk/core": "3.649.0",
26
+ "@aws-sdk/credential-provider-node": "3.650.0",
27
+ "@aws-sdk/middleware-host-header": "3.649.0",
28
+ "@aws-sdk/middleware-logger": "3.649.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.649.0",
30
+ "@aws-sdk/middleware-user-agent": "3.649.0",
31
+ "@aws-sdk/region-config-resolver": "3.649.0",
32
+ "@aws-sdk/types": "3.649.0",
33
+ "@aws-sdk/util-endpoints": "3.649.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.649.0",
35
+ "@aws-sdk/util-user-agent-node": "3.649.0",
36
+ "@smithy/config-resolver": "^3.0.6",
37
+ "@smithy/core": "^2.4.1",
38
+ "@smithy/fetch-http-handler": "^3.2.5",
39
+ "@smithy/hash-node": "^3.0.4",
40
+ "@smithy/invalid-dependency": "^3.0.4",
41
+ "@smithy/middleware-content-length": "^3.0.6",
42
+ "@smithy/middleware-endpoint": "^3.1.1",
43
+ "@smithy/middleware-retry": "^3.0.16",
44
+ "@smithy/middleware-serde": "^3.0.4",
45
+ "@smithy/middleware-stack": "^3.0.4",
46
+ "@smithy/node-config-provider": "^3.1.5",
47
+ "@smithy/node-http-handler": "^3.2.0",
48
+ "@smithy/protocol-http": "^4.1.1",
49
+ "@smithy/smithy-client": "^3.3.0",
50
+ "@smithy/types": "^3.4.0",
51
+ "@smithy/url-parser": "^3.0.4",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.15",
56
- "@smithy/util-defaults-mode-node": "^3.0.15",
57
- "@smithy/util-endpoints": "^2.0.5",
58
- "@smithy/util-middleware": "^3.0.3",
59
- "@smithy/util-retry": "^3.0.3",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.16",
56
+ "@smithy/util-defaults-mode-node": "^3.0.16",
57
+ "@smithy/util-endpoints": "^2.1.0",
58
+ "@smithy/util-middleware": "^3.0.4",
59
+ "@smithy/util-retry": "^3.0.4",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },