@aws-sdk/util-endpoints 3.631.0 → 3.637.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/dist-cjs/index.js CHANGED
@@ -96,7 +96,7 @@ var parseArn = /* @__PURE__ */ __name((value) => {
96
96
  const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
97
97
  if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
98
98
  return null;
99
- const resourceId = resourcePath[0].includes(RESOURCE_DELIMITER) ? resourcePath[0].split(RESOURCE_DELIMITER) : resourcePath;
99
+ const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
100
100
  return {
101
101
  partition: partition2,
102
102
  service,
@@ -153,6 +153,9 @@ var partitions_default = {
153
153
  "ap-southeast-4": {
154
154
  description: "Asia Pacific (Melbourne)"
155
155
  },
156
+ "ap-southeast-5": {
157
+ description: "Asia Pacific (Malaysia)"
158
+ },
156
159
  "aws-global": {
157
160
  description: "AWS Standard global region"
158
161
  },
@@ -44,6 +44,9 @@
44
44
  "ap-southeast-4": {
45
45
  "description": "Asia Pacific (Melbourne)"
46
46
  },
47
+ "ap-southeast-5": {
48
+ "description": "Asia Pacific (Malaysia)"
49
+ },
47
50
  "aws-global": {
48
51
  "description": "AWS Standard global region"
49
52
  },
@@ -7,9 +7,7 @@ export const parseArn = (value) => {
7
7
  const [arn, partition, service, region, accountId, ...resourcePath] = segments;
8
8
  if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
9
9
  return null;
10
- const resourceId = resourcePath[0].includes(RESOURCE_DELIMITER)
11
- ? resourcePath[0].split(RESOURCE_DELIMITER)
12
- : resourcePath;
10
+ const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
13
11
  return {
14
12
  partition,
15
13
  service,
@@ -44,6 +44,9 @@
44
44
  "ap-southeast-4": {
45
45
  "description": "Asia Pacific (Melbourne)"
46
46
  },
47
+ "ap-southeast-5": {
48
+ "description": "Asia Pacific (Malaysia)"
49
+ },
47
50
  "aws-global": {
48
51
  "description": "AWS Standard global region"
49
52
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.631.0",
3
+ "version": "3.637.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",