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(credential-providers): move base fromTempCreds impl to non-browser file #6836

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Jan 21, 2025

fromTemporaryCredentials has a Node.js implementation which "extends" the base implementation. The browser implementation is identical to the base implementation.

Because of that, I allowed the base impl to sit in the browser file, and the Node.js implementation imported the browser file.

However, in some build transforms outside of this repository, we may delete anything with the pattern *.browser.{js|ts} when creating Node.js artifacts. This would make the Node.js implementation stop working because of the import.

  • This PR moves the base implementation to its own file to avoid that edge case.

@kuhe kuhe requested a review from a team as a code owner January 21, 2025 18:26
@kuhe kuhe merged commit 84d6c18 into aws:main Jan 21, 2025
4 checks passed
@kuhe kuhe deleted the chore/fromTempCreds branch January 21, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants