@aws-sdk/lib-storage 3.614.0 → 3.616.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
@@ -258,13 +258,14 @@ var _Upload = class _Upload extends import_events.EventEmitter {
258
258
  const Location = (() => {
259
259
  const endpointHostnameIncludesBucket = endpoint.hostname.startsWith(`${locationBucket}.`);
260
260
  const forcePathStyle = this.client.config.forcePathStyle;
261
+ const optionalPort = endpoint.port ? `:${endpoint.port}` : ``;
261
262
  if (forcePathStyle) {
262
- return `${endpoint.protocol}//${endpoint.hostname}/${locationBucket}/${locationKey}`;
263
+ return `${endpoint.protocol}//${endpoint.hostname}${optionalPort}/${locationBucket}/${locationKey}`;
263
264
  }
264
265
  if (endpointHostnameIncludesBucket) {
265
- return `${endpoint.protocol}//${endpoint.hostname}/${locationKey}`;
266
+ return `${endpoint.protocol}//${endpoint.hostname}${optionalPort}/${locationKey}`;
266
267
  }
267
- return `${endpoint.protocol}//${locationBucket}.${endpoint.hostname}/${locationKey}`;
268
+ return `${endpoint.protocol}//${locationBucket}.${endpoint.hostname}${optionalPort}/${locationKey}`;
268
269
  })();
269
270
  this.singleUploadResult = {
270
271
  ...putResult,
package/dist-es/Upload.js CHANGED
@@ -87,13 +87,14 @@ export class Upload extends EventEmitter {
87
87
  const Location = (() => {
88
88
  const endpointHostnameIncludesBucket = endpoint.hostname.startsWith(`${locationBucket}.`);
89
89
  const forcePathStyle = this.client.config.forcePathStyle;
90
+ const optionalPort = endpoint.port ? `:${endpoint.port}` : ``;
90
91
  if (forcePathStyle) {
91
- return `${endpoint.protocol}//${endpoint.hostname}/${locationBucket}/${locationKey}`;
92
+ return `${endpoint.protocol}//${endpoint.hostname}${optionalPort}/${locationBucket}/${locationKey}`;
92
93
  }
93
94
  if (endpointHostnameIncludesBucket) {
94
- return `${endpoint.protocol}//${endpoint.hostname}/${locationKey}`;
95
+ return `${endpoint.protocol}//${endpoint.hostname}${optionalPort}/${locationKey}`;
95
96
  }
96
- return `${endpoint.protocol}//${locationBucket}.${endpoint.hostname}/${locationKey}`;
97
+ return `${endpoint.protocol}//${locationBucket}.${endpoint.hostname}${optionalPort}/${locationKey}`;
97
98
  })();
98
99
  this.singleUploadResult = {
99
100
  ...putResult,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-storage",
3
- "version": "3.614.0",
3
+ "version": "3.616.0",
4
4
  "description": "Storage higher order operation",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,17 +28,17 @@
28
28
  "dependencies": {
29
29
  "@smithy/abort-controller": "^3.1.1",
30
30
  "@smithy/middleware-endpoint": "^3.0.5",
31
- "@smithy/smithy-client": "^3.1.7",
31
+ "@smithy/smithy-client": "^3.1.8",
32
32
  "buffer": "5.6.0",
33
33
  "events": "3.3.0",
34
34
  "stream-browserify": "3.0.0",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "@aws-sdk/client-s3": "^3.614.0"
38
+ "@aws-sdk/client-s3": "^3.616.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@aws-sdk/client-s3": "3.614.0",
41
+ "@aws-sdk/client-s3": "3.616.0",
42
42
  "@smithy/types": "^3.3.0",
43
43
  "@tsconfig/recommended": "1.0.1",
44
44
  "@types/node": "^16.18.96",