Skip to content

Commit 16214be

Browse files
TysonAndretrivikr
andauthored
fix(lib-storage): fix typo in Upload.intialize (initialize) (#2025)
* fix(storage): fix typo in Upload.intialize (initialize) Keep the old name for now? The name was introduced in b07e719 when the file was added * Update lib/storage/src/upload/service-clients/Uploader.ts Co-authored-by: Trivikram Kamat <[email protected]> Co-authored-by: Trivikram Kamat <[email protected]>
1 parent 8b35943 commit 16214be

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/storage/src/upload/Upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class Upload extends EventEmitter {
6262
*/
6363
async done(): Promise<ServiceOutputTypes> {
6464
try {
65-
await this.uploader.intialize();
65+
await this.uploader.initialize();
6666
await this.uploader.upload();
6767
const result = await this.uploader.complete();
6868
return result;

lib/storage/src/upload/service-clients/Uploader.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ export abstract class Uploader extends EventEmitter {
4747
abstract _completeMultipartUpload(command: CompleteMultipartUploadRequest): Promise<ServiceOutputTypes>;
4848
abstract _abortUpload(command: AbortMultipartUploadRequest): Promise<ServiceOutputTypes>;
4949

50+
/** @deprecated Use `initialize` instead. */
5051
async intialize() {
52+
return this.initialize();
53+
}
54+
55+
async initialize() {
5156
const intializeCommand = {
5257
Bucket: this.destination.Bucket,
5358
Key: this.destination.Key,

0 commit comments

Comments
 (0)