@aws-sdk/lib-storage
Advanced tools
Comparing version 3.726.1 to 3.729.0
@@ -306,4 +306,8 @@ "use strict"; | ||
async __createMultipartUpload() { | ||
const requestChecksumCalculation = await this.client.config.requestChecksumCalculation(); | ||
if (!this.createMultiPartPromise) { | ||
const createCommandParams = { ...this.params, Body: void 0 }; | ||
if (requestChecksumCalculation === "WHEN_SUPPORTED") { | ||
createCommandParams.ChecksumAlgorithm = this.params.ChecksumAlgorithm || import_client_s3.ChecksumAlgorithm.CRC32; | ||
} | ||
this.createMultiPartPromise = this.client.send(new import_client_s3.CreateMultipartUploadCommand(createCommandParams)).then((createMpuResponse) => { | ||
@@ -310,0 +314,0 @@ this.abortMultipartUploadCommand = new import_client_s3.AbortMultipartUploadCommand({ |
@@ -1,2 +0,2 @@ | ||
import { AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, PutObjectCommand, PutObjectTaggingCommand, UploadPartCommand, } from "@aws-sdk/client-s3"; | ||
import { AbortMultipartUploadCommand, ChecksumAlgorithm, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, PutObjectCommand, PutObjectTaggingCommand, UploadPartCommand, } from "@aws-sdk/client-s3"; | ||
import { AbortController } from "@smithy/abort-controller"; | ||
@@ -124,4 +124,8 @@ import { getEndpointFromInstructions, toEndpointV1, } from "@smithy/middleware-endpoint"; | ||
async __createMultipartUpload() { | ||
const requestChecksumCalculation = await this.client.config.requestChecksumCalculation(); | ||
if (!this.createMultiPartPromise) { | ||
const createCommandParams = { ...this.params, Body: undefined }; | ||
if (requestChecksumCalculation === "WHEN_SUPPORTED") { | ||
createCommandParams.ChecksumAlgorithm = this.params.ChecksumAlgorithm || ChecksumAlgorithm.CRC32; | ||
} | ||
this.createMultiPartPromise = this.client | ||
@@ -128,0 +132,0 @@ .send(new CreateMultipartUploadCommand(createCommandParams)) |
{ | ||
"name": "@aws-sdk/lib-storage", | ||
"version": "3.726.1", | ||
"version": "3.729.0", | ||
"description": "Storage higher order operation", | ||
@@ -40,6 +40,6 @@ "main": "./dist-cjs/index.js", | ||
"peerDependencies": { | ||
"@aws-sdk/client-s3": "^3.726.1" | ||
"@aws-sdk/client-s3": "^3.729.0" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-s3": "3.726.1", | ||
"@aws-sdk/client-s3": "3.729.0", | ||
"@smithy/types": "^4.0.0", | ||
@@ -46,0 +46,0 @@ "@tsconfig/recommended": "1.0.1", |
60063
1237