@aws-sdk/util-endpoints 3.193.0 → 3.196.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,28 @@
|
|
|
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.196.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.195.0...v3.196.0) (2022-10-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **endpoint:** add remaining restJson1 services endpoint models ([#4090](https://github.com/aws/aws-sdk-js-v3/issues/4090)) ([998113b](https://github.com/aws/aws-sdk-js-v3/commit/998113bd0a70a7de4bf5d975cb5f7524098866a0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.194.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.193.0...v3.194.0) (2022-10-21)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **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))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [3.193.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.192.0...v3.193.0) (2022-10-20)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @aws-sdk/util-endpoints
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.partition = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
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
|
|
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
|
|
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
|
|
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) {
|