@aws-sdk/util-endpoints 3.631.0 → 3.632.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,
@@ -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,
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.632.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",