@aws-sdk/middleware-sdk-s3 3.635.0 → 3.649.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
@@ -599,7 +599,10 @@ function bucketEndpointMiddleware(options) {
599
599
  if (typeof bucket === "string") {
600
600
  try {
601
601
  const bucketEndpointUrl = new URL(bucket);
602
- endpoint.url = bucketEndpointUrl;
602
+ context.endpointV2 = {
603
+ ...endpoint,
604
+ url: bucketEndpointUrl
605
+ };
603
606
  } catch (e) {
604
607
  const warning = `@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${bucket} could not be parsed as URL.`;
605
608
  if (((_b = (_a = context.logger) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) === "NoOpLogger") {
@@ -7,7 +7,10 @@ export function bucketEndpointMiddleware(options) {
7
7
  if (typeof bucket === "string") {
8
8
  try {
9
9
  const bucketEndpointUrl = new URL(bucket);
10
- endpoint.url = bucketEndpointUrl;
10
+ context.endpointV2 = {
11
+ ...endpoint,
12
+ url: bucketEndpointUrl,
13
+ };
11
14
  }
12
15
  catch (e) {
13
16
  const warning = `@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${bucket} could not be parsed as URL.`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3",
3
- "version": "3.635.0",
3
+ "version": "3.649.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",
@@ -23,18 +23,18 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/core": "3.635.0",
27
- "@aws-sdk/types": "3.609.0",
26
+ "@aws-sdk/core": "3.649.0",
27
+ "@aws-sdk/types": "3.649.0",
28
28
  "@aws-sdk/util-arn-parser": "3.568.0",
29
- "@smithy/core": "^2.4.0",
30
- "@smithy/node-config-provider": "^3.1.4",
31
- "@smithy/protocol-http": "^4.1.0",
32
- "@smithy/signature-v4": "^4.1.0",
33
- "@smithy/smithy-client": "^3.2.0",
34
- "@smithy/types": "^3.3.0",
29
+ "@smithy/core": "^2.4.1",
30
+ "@smithy/node-config-provider": "^3.1.5",
31
+ "@smithy/protocol-http": "^4.1.1",
32
+ "@smithy/signature-v4": "^4.1.1",
33
+ "@smithy/smithy-client": "^3.3.0",
34
+ "@smithy/types": "^3.4.0",
35
35
  "@smithy/util-config-provider": "^3.0.0",
36
- "@smithy/util-middleware": "^3.0.3",
37
- "@smithy/util-stream": "^3.1.3",
36
+ "@smithy/util-middleware": "^3.0.4",
37
+ "@smithy/util-stream": "^3.1.4",
38
38
  "@smithy/util-utf8": "^3.0.0",
39
39
  "tslib": "^2.6.2"
40
40
  },