Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(middleware-flexible-checksums): add config resolver #6470

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Sep 13, 2024

Issue

Internal JS-5396

Description

Add resolver for flexible checksums.
This PR also moves default values for configurations to constants.

Testing

CI


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr requested a review from a team as a code owner September 13, 2024 14:59
@trivikr trivikr changed the title chore(middleware-flexible-checksums): add resolver chore(middleware-flexible-checksums): add config resolver Sep 13, 2024
export const resolveFlexibleChecksumsConfig = <T>(
input: T & FlexibleChecksumsInputConfig
): T & FlexibleChecksumsResolvedConfig => ({
...input,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not something to address for this PR, but overall I think we should mutate directly instead of shallow-copy-and-write Object.assign.

This is a config resolver and not in a hot path so it's fine here.

@trivikr trivikr merged commit 8c6a2fb into aws:main Sep 13, 2024
3 checks passed
@trivikr trivikr deleted the flexchecks-resolver branch September 13, 2024 15:28
RanVaknin pushed a commit to RanVaknin/aws-sdk-js-v3 that referenced this pull request Sep 21, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants