Skip to content

Commit

Permalink
fix(provider): make signatureversion optional
Browse files Browse the repository at this point in the history
gh-0
  • Loading branch information
samarpan-b committed Jul 24, 2021
1 parent 29aa844 commit b0be85f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/providers/aws-s3.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class AwsS3Provider implements Provider<AWS.S3> {
AWS.config.update(
Object.assign(
{},
{signatureVersion: this.config.signatureVersion},
{signatureVersion: this.config.signatureVersion ?? 'v4'},
this.config,
),
);
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export namespace AWSS3Bindings {
export interface AwsS3Config {
accessKeyId: string;
secretAccessKey: string;
signatureVersion: string;
signatureVersion?: string;
}

0 comments on commit b0be85f

Please sign in to comment.