@aws-sdk/lib-storage 3.353.0 → 3.354.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.
@@ -113,8 +113,7 @@ class Upload extends events_1.EventEmitter {
113
113
  const createCommandParams = { ...this.params, Body: undefined };
114
114
  this.createMultiPartPromise = this.client.send(new client_s3_1.CreateMultipartUploadCommand(createCommandParams));
115
115
  }
116
- const createMultipartUploadResult = await this.createMultiPartPromise;
117
- this.uploadId = createMultipartUploadResult.UploadId;
116
+ return this.createMultiPartPromise;
118
117
  }
119
118
  async __doConcurrentUpload(dataFeeder) {
120
119
  for await (const dataPart of dataFeeder) {
@@ -129,7 +128,8 @@ class Upload extends events_1.EventEmitter {
129
128
  return await this.__uploadUsingPut(dataPart);
130
129
  }
131
130
  if (!this.uploadId) {
132
- await this.__createMultipartUpload();
131
+ const { UploadId } = await this.__createMultipartUpload();
132
+ this.uploadId = UploadId;
133
133
  if (this.abortController.signal.aborted) {
134
134
  return;
135
135
  }
package/dist-es/Upload.js CHANGED
@@ -108,8 +108,7 @@ export class Upload extends EventEmitter {
108
108
  const createCommandParams = { ...this.params, Body: undefined };
109
109
  this.createMultiPartPromise = this.client.send(new CreateMultipartUploadCommand(createCommandParams));
110
110
  }
111
- const createMultipartUploadResult = await this.createMultiPartPromise;
112
- this.uploadId = createMultipartUploadResult.UploadId;
111
+ return this.createMultiPartPromise;
113
112
  }
114
113
  async __doConcurrentUpload(dataFeeder) {
115
114
  for await (const dataPart of dataFeeder) {
@@ -124,7 +123,8 @@ export class Upload extends EventEmitter {
124
123
  return await this.__uploadUsingPut(dataPart);
125
124
  }
126
125
  if (!this.uploadId) {
127
- await this.__createMultipartUpload();
126
+ const { UploadId } = await this.__createMultipartUpload();
127
+ this.uploadId = UploadId;
128
128
  if (this.abortController.signal.aborted) {
129
129
  return;
130
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-storage",
3
- "version": "3.353.0",
3
+ "version": "3.354.0",
4
4
  "description": "Storage higher order operation",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@aws-sdk/abort-controller": "3.347.0",
41
- "@aws-sdk/client-s3": "3.353.0",
41
+ "@aws-sdk/client-s3": "3.354.0",
42
42
  "@aws-sdk/types": "3.347.0",
43
43
  "@tsconfig/recommended": "1.0.1",
44
44
  "@types/node": "^14.11.2",