@aws-sdk/middleware-sdk-s3-control 3.721.0 → 3.726.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +2 -3
  2. package/package.json +11 -11
package/dist-cjs/index.js CHANGED
@@ -62,7 +62,6 @@ var CONTEXT_SIGNING_REGION = "signing_region";
62
62
 
63
63
  // src/process-arnables-plugin/parse-outpost-arnables.ts
64
64
  var parseOutpostArnablesMiddleaware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => {
65
- var _a, _b, _c, _d;
66
65
  const { input } = args;
67
66
  const parameter = input.Name && (0, import_util_arn_parser.validate)(input.Name) ? "Name" : input.Bucket && (0, import_util_arn_parser.validate)(input.Bucket) ? "Bucket" : void 0;
68
67
  if (!parameter)
@@ -80,7 +79,7 @@ var parseOutpostArnablesMiddleaware = /* @__PURE__ */ __name((options) => (next,
80
79
  useDualstackEndpoint
81
80
  }));
82
81
  } else {
83
- signingRegion = ((_d = (_c = (_b = (_a = context.endpointV2) == null ? void 0 : _a.properties) == null ? void 0 : _b.authSchemes) == null ? void 0 : _c[0]) == null ? void 0 : _d.signingRegion) || baseRegion;
82
+ signingRegion = context.endpointV2?.properties?.authSchemes?.[0]?.signingRegion || baseRegion;
84
83
  clientPartition = (0, import_util_endpoints.partition)(signingRegion).name;
85
84
  }
86
85
  const validatorOptions = {
@@ -241,7 +240,7 @@ var deduplicateHostPrefix = /* @__PURE__ */ __name((hostname) => {
241
240
  var hostPrefixDeduplicationMiddleware = /* @__PURE__ */ __name(() => {
242
241
  return (next, context) => async (args) => {
243
242
  const httpRequest = args.request ?? {};
244
- if (httpRequest == null ? void 0 : httpRequest.hostname) {
243
+ if (httpRequest?.hostname) {
245
244
  httpRequest.hostname = deduplicateHostPrefix(httpRequest.hostname);
246
245
  }
247
246
  return next(args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3-control",
3
- "version": "3.721.0",
3
+ "version": "3.726.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-sdk-s3-control",
@@ -24,25 +24,25 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/middleware-bucket-endpoint": "3.721.0",
28
- "@aws-sdk/types": "3.714.0",
29
- "@aws-sdk/util-arn-parser": "3.693.0",
30
- "@aws-sdk/util-endpoints": "3.714.0",
31
- "@smithy/protocol-http": "^4.1.8",
32
- "@smithy/types": "^3.7.2",
33
- "@smithy/util-endpoints": "^2.1.7",
27
+ "@aws-sdk/middleware-bucket-endpoint": "3.726.0",
28
+ "@aws-sdk/types": "3.723.0",
29
+ "@aws-sdk/util-arn-parser": "3.723.0",
30
+ "@aws-sdk/util-endpoints": "3.726.0",
31
+ "@smithy/protocol-http": "^5.0.0",
32
+ "@smithy/types": "^4.0.0",
33
+ "@smithy/util-endpoints": "^3.0.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@smithy/middleware-stack": "^3.0.11",
37
+ "@smithy/middleware-stack": "^4.0.0",
38
38
  "@tsconfig/recommended": "1.0.1",
39
39
  "concurrently": "7.0.0",
40
40
  "downlevel-dts": "0.10.1",
41
41
  "rimraf": "3.0.2",
42
- "typescript": "~4.9.5"
42
+ "typescript": "~5.2.2"
43
43
  },
44
44
  "engines": {
45
- "node": ">=16.0.0"
45
+ "node": ">=18.0.0"
46
46
  },
47
47
  "typesVersions": {
48
48
  "<4.0": {