@aws-sdk/lib-storage 3.1044.0 → 3.1046.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 +5 -5
- package/dist-es/Upload.js +2 -2
- package/package.json +4 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var clientS3 = require('@aws-sdk/client-s3');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var endpoints = require('@smithy/core/endpoints');
|
|
5
|
+
var protocols = require('@smithy/core/protocols');
|
|
6
6
|
var events = require('events');
|
|
7
7
|
var buffer = require('buffer');
|
|
8
8
|
var runtimeConfig = require('./runtimeConfig');
|
|
@@ -264,7 +264,7 @@ class Upload extends events.EventEmitter {
|
|
|
264
264
|
const putResult = resolved[0];
|
|
265
265
|
let endpoint = resolved[1];
|
|
266
266
|
if (!endpoint) {
|
|
267
|
-
endpoint =
|
|
267
|
+
endpoint = endpoints.toEndpointV1(await endpoints.getEndpointFromInstructions(params, clientS3.PutObjectCommand, {
|
|
268
268
|
...clientConfig,
|
|
269
269
|
}));
|
|
270
270
|
}
|
|
@@ -276,9 +276,9 @@ class Upload extends events.EventEmitter {
|
|
|
276
276
|
}
|
|
277
277
|
const locationKey = this.params
|
|
278
278
|
.Key.split("/")
|
|
279
|
-
.map((segment) =>
|
|
279
|
+
.map((segment) => protocols.extendedEncodeURIComponent(segment))
|
|
280
280
|
.join("/");
|
|
281
|
-
const locationBucket =
|
|
281
|
+
const locationBucket = protocols.extendedEncodeURIComponent(this.params.Bucket);
|
|
282
282
|
const Location = (() => {
|
|
283
283
|
const endpointHostnameIncludesBucket = endpoint.hostname.startsWith(`${locationBucket}.`);
|
|
284
284
|
const forcePathStyle = this.client.config.forcePathStyle;
|
package/dist-es/Upload.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbortMultipartUploadCommand, ChecksumAlgorithm, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, PutObjectCommand, PutObjectTaggingCommand, UploadPartCommand, } from "@aws-sdk/client-s3";
|
|
2
|
-
import { getEndpointFromInstructions, toEndpointV1 } from "@smithy/
|
|
3
|
-
import { extendedEncodeURIComponent } from "@smithy/
|
|
2
|
+
import { getEndpointFromInstructions, toEndpointV1 } from "@smithy/core/endpoints";
|
|
3
|
+
import { extendedEncodeURIComponent } from "@smithy/core/protocols";
|
|
4
4
|
import { EventEmitter } from "events";
|
|
5
5
|
import { byteLength } from "./byteLength";
|
|
6
6
|
import { byteLengthSource } from "./byteLengthSource";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-storage",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1046.0",
|
|
4
4
|
"description": "Storage higher order operation",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -30,9 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@smithy/
|
|
34
|
-
"@smithy/protocol-http": "^5.3.14",
|
|
35
|
-
"@smithy/smithy-client": "^4.12.13",
|
|
33
|
+
"@smithy/core": "^3.24.1",
|
|
36
34
|
"@smithy/types": "^4.14.1",
|
|
37
35
|
"buffer": "5.6.0",
|
|
38
36
|
"events": "3.3.0",
|
|
@@ -40,10 +38,10 @@
|
|
|
40
38
|
"tslib": "^2.6.2"
|
|
41
39
|
},
|
|
42
40
|
"peerDependencies": {
|
|
43
|
-
"@aws-sdk/client-s3": "^3.
|
|
41
|
+
"@aws-sdk/client-s3": "^3.1046.0"
|
|
44
42
|
},
|
|
45
43
|
"devDependencies": {
|
|
46
|
-
"@aws-sdk/client-s3": "3.
|
|
44
|
+
"@aws-sdk/client-s3": "3.1046.0",
|
|
47
45
|
"@tsconfig/recommended": "1.0.1",
|
|
48
46
|
"@types/node": "^20.14.8",
|
|
49
47
|
"concurrently": "7.0.0",
|