@aws-sdk/lib-storage 3.726.0 → 3.729.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 +4 -0
- package/dist-es/Upload.js +5 -1
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -303,8 +303,12 @@ var Upload = class _Upload extends import_events.EventEmitter {
|
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
async __createMultipartUpload() {
|
|
306
|
+
const requestChecksumCalculation = await this.client.config.requestChecksumCalculation();
|
|
306
307
|
if (!this.createMultiPartPromise) {
|
|
307
308
|
const createCommandParams = { ...this.params, Body: void 0 };
|
|
309
|
+
if (requestChecksumCalculation === "WHEN_SUPPORTED") {
|
|
310
|
+
createCommandParams.ChecksumAlgorithm = this.params.ChecksumAlgorithm || import_client_s3.ChecksumAlgorithm.CRC32;
|
|
311
|
+
}
|
|
308
312
|
this.createMultiPartPromise = this.client.send(new import_client_s3.CreateMultipartUploadCommand(createCommandParams)).then((createMpuResponse) => {
|
|
309
313
|
this.abortMultipartUploadCommand = new import_client_s3.AbortMultipartUploadCommand({
|
|
310
314
|
Bucket: this.params.Bucket,
|
package/dist-es/Upload.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, PutObjectCommand, PutObjectTaggingCommand, UploadPartCommand, } from "@aws-sdk/client-s3";
|
|
1
|
+
import { AbortMultipartUploadCommand, ChecksumAlgorithm, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, PutObjectCommand, PutObjectTaggingCommand, UploadPartCommand, } from "@aws-sdk/client-s3";
|
|
2
2
|
import { AbortController } from "@smithy/abort-controller";
|
|
3
3
|
import { getEndpointFromInstructions, toEndpointV1, } from "@smithy/middleware-endpoint";
|
|
4
4
|
import { extendedEncodeURIComponent } from "@smithy/smithy-client";
|
|
@@ -121,8 +121,12 @@ export class Upload extends EventEmitter {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
async __createMultipartUpload() {
|
|
124
|
+
const requestChecksumCalculation = await this.client.config.requestChecksumCalculation();
|
|
124
125
|
if (!this.createMultiPartPromise) {
|
|
125
126
|
const createCommandParams = { ...this.params, Body: undefined };
|
|
127
|
+
if (requestChecksumCalculation === "WHEN_SUPPORTED") {
|
|
128
|
+
createCommandParams.ChecksumAlgorithm = this.params.ChecksumAlgorithm || ChecksumAlgorithm.CRC32;
|
|
129
|
+
}
|
|
126
130
|
this.createMultiPartPromise = this.client
|
|
127
131
|
.send(new CreateMultipartUploadCommand(createCommandParams))
|
|
128
132
|
.then((createMpuResponse) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-storage",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.729.0",
|
|
4
4
|
"description": "Storage higher order operation",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"tslib": "^2.6.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@aws-sdk/client-s3": "^3.
|
|
40
|
+
"@aws-sdk/client-s3": "^3.729.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@aws-sdk/client-s3": "3.
|
|
43
|
+
"@aws-sdk/client-s3": "3.729.0",
|
|
44
44
|
"@smithy/types": "^4.0.0",
|
|
45
45
|
"@tsconfig/recommended": "1.0.1",
|
|
46
46
|
"@types/node": "^18.19.69",
|