@aws-sdk/util-endpoints 3.192.0 → 3.194.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.194.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.193.0...v3.194.0) (2022-10-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **util-endpoints:** use default import for partitions.json ([#4072](https://github.com/aws/aws-sdk-js-v3/issues/4072)) ([f9bc7af](https://github.com/aws/aws-sdk-js-v3/commit/f9bc7afd7af7535c0de8123d0820faa8ebec7e16))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.193.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.192.0...v3.193.0) (2022-10-20)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/util-endpoints
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.192.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.191.0...v3.192.0) (2022-10-19)
7
26
 
8
27
 
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.partition = void 0;
4
- const partitions_json_1 = require("./partitions.json");
5
- const DEFAULT_PARTITION = partitions_json_1.partitions.find((partition) => partition.id === "aws");
4
+ const tslib_1 = require("tslib");
5
+ const partitions_json_1 = tslib_1.__importDefault(require("./partitions.json"));
6
+ const { partitions } = partitions_json_1.default;
7
+ const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
6
8
  const partition = (value) => {
7
- for (const partition of partitions_json_1.partitions) {
9
+ for (const partition of partitions) {
8
10
  const { regions, outputs } = partition;
9
11
  for (const [region, regionData] of Object.entries(regions)) {
10
12
  if (region === value) {
@@ -15,7 +17,7 @@ const partition = (value) => {
15
17
  }
16
18
  }
17
19
  }
18
- for (const partition of partitions_json_1.partitions) {
20
+ for (const partition of partitions) {
19
21
  const { regionRegex, outputs } = partition;
20
22
  if (new RegExp(regionRegex).test(value)) {
21
23
  return {
@@ -1,4 +1,5 @@
1
- import { partitions } from "./partitions.json";
1
+ import partitionsInfo from "./partitions.json";
2
+ const { partitions } = partitionsInfo;
2
3
  const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
3
4
  export const partition = (value) => {
4
5
  for (const partition of partitions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.192.0",
3
+ "version": "3.194.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.190.0",
24
+ "@aws-sdk/types": "3.193.0",
25
25
  "tslib": "^2.3.1"
26
26
  },
27
27
  "engines": {