@aws-sdk/util-endpoints 3.188.0 → 3.190.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 +11 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/lib/aws/partition.js +2 -5
- package/dist-cjs/lib/aws/partitions.json +11 -2
- package/dist-es/index.js +1 -0
- package/dist-es/lib/aws/partition.js +2 -5
- package/dist-es/lib/aws/partitions.json +11 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.190.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.189.0...v3.190.0) (2022-10-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **endpoint:** endpoints 2.0 all-service TS compilation fixes ([#4043](https://github.com/aws/aws-sdk-js-v3/issues/4043)) ([f2da618](https://github.com/aws/aws-sdk-js-v3/commit/f2da6182298d4d6b02e84fb723492c07c27469a8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
|
|
7
18
|
|
|
8
19
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./lib/aws/partition"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./resolveEndpoint"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./types"), exports);
|
|
@@ -5,11 +5,10 @@ const partitions_json_1 = require("./partitions.json");
|
|
|
5
5
|
const DEFAULT_PARTITION = partitions_json_1.partitions.find((partition) => partition.id === "aws");
|
|
6
6
|
const partition = (value) => {
|
|
7
7
|
for (const partition of partitions_json_1.partitions) {
|
|
8
|
-
const {
|
|
8
|
+
const { regions, outputs } = partition;
|
|
9
9
|
for (const [region, regionData] of Object.entries(regions)) {
|
|
10
10
|
if (region === value) {
|
|
11
11
|
return {
|
|
12
|
-
name: id,
|
|
13
12
|
...outputs,
|
|
14
13
|
...regionData,
|
|
15
14
|
};
|
|
@@ -17,10 +16,9 @@ const partition = (value) => {
|
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
18
|
for (const partition of partitions_json_1.partitions) {
|
|
20
|
-
const {
|
|
19
|
+
const { regionRegex, outputs } = partition;
|
|
21
20
|
if (new RegExp(regionRegex).test(value)) {
|
|
22
21
|
return {
|
|
23
|
-
name: id,
|
|
24
22
|
...outputs,
|
|
25
23
|
};
|
|
26
24
|
}
|
|
@@ -30,7 +28,6 @@ const partition = (value) => {
|
|
|
30
28
|
" and default partition with id 'aws' doesn't exist.");
|
|
31
29
|
}
|
|
32
30
|
return {
|
|
33
|
-
name: DEFAULT_PARTITION.id,
|
|
34
31
|
...DEFAULT_PARTITION.outputs,
|
|
35
32
|
};
|
|
36
33
|
};
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"aws-global": {}
|
|
31
31
|
},
|
|
32
32
|
"outputs": {
|
|
33
|
+
"name": "aws",
|
|
33
34
|
"dnsSuffix": "amazonaws.com",
|
|
34
35
|
"dualStackDnsSuffix": "api.aws",
|
|
35
36
|
"supportsFIPS": true,
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
"aws-us-gov-global": {}
|
|
46
47
|
},
|
|
47
48
|
"outputs": {
|
|
49
|
+
"name": "aws-us-gov",
|
|
48
50
|
"dnsSuffix": "amazonaws.com",
|
|
49
51
|
"dualStackDnsSuffix": "api.aws",
|
|
50
52
|
"supportsFIPS": true,
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
"aws-cn-global": {}
|
|
61
63
|
},
|
|
62
64
|
"outputs": {
|
|
65
|
+
"name": "aws-cn",
|
|
63
66
|
"dnsSuffix": "amazonaws.com.cn",
|
|
64
67
|
"dualStackDnsSuffix": "api.amazonwebservices.com.cn",
|
|
65
68
|
"supportsFIPS": true,
|
|
@@ -70,23 +73,29 @@
|
|
|
70
73
|
"id": "aws-iso",
|
|
71
74
|
"regionRegex": "^us\\-iso\\-\\w+\\-\\d+$",
|
|
72
75
|
"outputs": {
|
|
76
|
+
"name": "aws-iso",
|
|
73
77
|
"dnsSuffix": "c2s.ic.gov",
|
|
74
78
|
"supportsFIPS": true,
|
|
75
79
|
"supportsDualStack": false,
|
|
76
80
|
"dualStackDnsSuffix": "c2s.ic.gov"
|
|
77
81
|
},
|
|
78
|
-
"regions": {
|
|
82
|
+
"regions": {
|
|
83
|
+
"aws-iso-global": {}
|
|
84
|
+
}
|
|
79
85
|
},
|
|
80
86
|
{
|
|
81
87
|
"id": "aws-iso-b",
|
|
82
88
|
"regionRegex": "^us\\-isob\\-\\w+\\-\\d+$",
|
|
83
89
|
"outputs": {
|
|
90
|
+
"name": "aws-iso-b",
|
|
84
91
|
"dnsSuffix": "sc2s.sgov.gov",
|
|
85
92
|
"supportsFIPS": true,
|
|
86
93
|
"supportsDualStack": false,
|
|
87
94
|
"dualStackDnsSuffix": "sc2s.sgov.gov"
|
|
88
95
|
},
|
|
89
|
-
"regions": {
|
|
96
|
+
"regions": {
|
|
97
|
+
"aws-iso-b-global": {}
|
|
98
|
+
}
|
|
90
99
|
}
|
|
91
100
|
]
|
|
92
101
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -2,11 +2,10 @@ import { partitions } from "./partitions.json";
|
|
|
2
2
|
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
|
3
3
|
export const partition = (value) => {
|
|
4
4
|
for (const partition of partitions) {
|
|
5
|
-
const {
|
|
5
|
+
const { regions, outputs } = partition;
|
|
6
6
|
for (const [region, regionData] of Object.entries(regions)) {
|
|
7
7
|
if (region === value) {
|
|
8
8
|
return {
|
|
9
|
-
name: id,
|
|
10
9
|
...outputs,
|
|
11
10
|
...regionData,
|
|
12
11
|
};
|
|
@@ -14,10 +13,9 @@ export const partition = (value) => {
|
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
for (const partition of partitions) {
|
|
17
|
-
const {
|
|
16
|
+
const { regionRegex, outputs } = partition;
|
|
18
17
|
if (new RegExp(regionRegex).test(value)) {
|
|
19
18
|
return {
|
|
20
|
-
name: id,
|
|
21
19
|
...outputs,
|
|
22
20
|
};
|
|
23
21
|
}
|
|
@@ -27,7 +25,6 @@ export const partition = (value) => {
|
|
|
27
25
|
" and default partition with id 'aws' doesn't exist.");
|
|
28
26
|
}
|
|
29
27
|
return {
|
|
30
|
-
name: DEFAULT_PARTITION.id,
|
|
31
28
|
...DEFAULT_PARTITION.outputs,
|
|
32
29
|
};
|
|
33
30
|
};
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"aws-global": {}
|
|
31
31
|
},
|
|
32
32
|
"outputs": {
|
|
33
|
+
"name": "aws",
|
|
33
34
|
"dnsSuffix": "amazonaws.com",
|
|
34
35
|
"dualStackDnsSuffix": "api.aws",
|
|
35
36
|
"supportsFIPS": true,
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
"aws-us-gov-global": {}
|
|
46
47
|
},
|
|
47
48
|
"outputs": {
|
|
49
|
+
"name": "aws-us-gov",
|
|
48
50
|
"dnsSuffix": "amazonaws.com",
|
|
49
51
|
"dualStackDnsSuffix": "api.aws",
|
|
50
52
|
"supportsFIPS": true,
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
"aws-cn-global": {}
|
|
61
63
|
},
|
|
62
64
|
"outputs": {
|
|
65
|
+
"name": "aws-cn",
|
|
63
66
|
"dnsSuffix": "amazonaws.com.cn",
|
|
64
67
|
"dualStackDnsSuffix": "api.amazonwebservices.com.cn",
|
|
65
68
|
"supportsFIPS": true,
|
|
@@ -70,23 +73,29 @@
|
|
|
70
73
|
"id": "aws-iso",
|
|
71
74
|
"regionRegex": "^us\\-iso\\-\\w+\\-\\d+$",
|
|
72
75
|
"outputs": {
|
|
76
|
+
"name": "aws-iso",
|
|
73
77
|
"dnsSuffix": "c2s.ic.gov",
|
|
74
78
|
"supportsFIPS": true,
|
|
75
79
|
"supportsDualStack": false,
|
|
76
80
|
"dualStackDnsSuffix": "c2s.ic.gov"
|
|
77
81
|
},
|
|
78
|
-
"regions": {
|
|
82
|
+
"regions": {
|
|
83
|
+
"aws-iso-global": {}
|
|
84
|
+
}
|
|
79
85
|
},
|
|
80
86
|
{
|
|
81
87
|
"id": "aws-iso-b",
|
|
82
88
|
"regionRegex": "^us\\-isob\\-\\w+\\-\\d+$",
|
|
83
89
|
"outputs": {
|
|
90
|
+
"name": "aws-iso-b",
|
|
84
91
|
"dnsSuffix": "sc2s.sgov.gov",
|
|
85
92
|
"supportsFIPS": true,
|
|
86
93
|
"supportsDualStack": false,
|
|
87
94
|
"dualStackDnsSuffix": "sc2s.sgov.gov"
|
|
88
95
|
},
|
|
89
|
-
"regions": {
|
|
96
|
+
"regions": {
|
|
97
|
+
"aws-iso-b-global": {}
|
|
98
|
+
}
|
|
90
99
|
}
|
|
91
100
|
]
|
|
92
101
|
}
|
package/dist-types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.190.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.
|
|
24
|
+
"@aws-sdk/types": "3.190.0",
|
|
25
25
|
"tslib": "^2.3.1"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|