Skip to content

Commit

Permalink
fix(lib-storage): fix typo in Upload.intialize (initialize) (#2025)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
TysonAndre and trivikr authored Feb 17, 2021
1 parent 8b35943 commit 16214be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/storage/src/upload/Upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class Upload extends EventEmitter {
*/
async done(): Promise<ServiceOutputTypes> {
try {
await this.uploader.intialize();
await this.uploader.initialize();
await this.uploader.upload();
const result = await this.uploader.complete();
return result;
Expand Down
5 changes: 5 additions & 0 deletions lib/storage/src/upload/service-clients/Uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ export abstract class Uploader extends EventEmitter {
abstract _completeMultipartUpload(command: CompleteMultipartUploadRequest): Promise<ServiceOutputTypes>;
abstract _abortUpload(command: AbortMultipartUploadRequest): Promise<ServiceOutputTypes>;

/** @deprecated Use `initialize` instead. */
async intialize() {
return this.initialize();
}

async initialize() {
const intializeCommand = {
Bucket: this.destination.Bucket,
Key: this.destination.Key,
Expand Down

0 comments on commit 16214be

Please sign in to comment.