@aws-sdk/util-endpoints 3.743.0 → 3.775.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
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  ConditionObject: () => import_util_endpoints.ConditionObject,
25
25
  DeprecatedObject: () => import_util_endpoints.DeprecatedObject,
26
26
  EndpointError: () => import_util_endpoints.EndpointError,
@@ -50,7 +50,7 @@ __export(src_exports, {
50
50
  setPartitionInfo: () => setPartitionInfo,
51
51
  useDefaultPartitionInfo: () => useDefaultPartitionInfo
52
52
  });
53
- module.exports = __toCommonJS(src_exports);
53
+ module.exports = __toCommonJS(index_exports);
54
54
 
55
55
  // src/aws.ts
56
56
 
@@ -91,11 +91,9 @@ var ARN_DELIMITER = ":";
91
91
  var RESOURCE_DELIMITER = "/";
92
92
  var parseArn = /* @__PURE__ */ __name((value) => {
93
93
  const segments = value.split(ARN_DELIMITER);
94
- if (segments.length < 6)
95
- return null;
94
+ if (segments.length < 6) return null;
96
95
  const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
97
- if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
98
- return null;
96
+ if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") return null;
99
97
  const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
100
98
  return {
101
99
  partition: partition2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.743.0",
3
+ "version": "3.775.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,9 +24,9 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "3.734.0",
28
- "@smithy/types": "^4.1.0",
29
- "@smithy/util-endpoints": "^3.0.1",
27
+ "@aws-sdk/types": "3.775.0",
28
+ "@smithy/types": "^4.2.0",
29
+ "@smithy/util-endpoints": "^3.0.2",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "engines": {