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

fix(util-base64): allow arrays to stand in for Uint8Array (runtime only) #1185

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Mar 12, 2024

There was some application code using arrays [] instead of Uint8Array, ignoring types.

https://github.com/aws-amplify/amplify-ui/blob/bd05991f9bf0f666694c90d6445b63dcc8c795f3/packages/react-liveness/src/components/FaceLivenessDetector/service/utils/streamProvider.ts#L174-L198

We requested the client code to patch the behavior, but we can modify this to be consistent with prior runtime behavior as well.

ArrayLike values are acceptable but not preferred (for compactness) in lieu of Uint8Array because in the browser implementation, data is read from index entries of the input object.

@kuhe kuhe requested review from a team as code owners March 12, 2024 17:27
@kuhe kuhe requested a review from JordonPhillips March 12, 2024 17:27
@kuhe kuhe force-pushed the fix/util-base64 branch from c2fcde5 to b370b7a Compare March 12, 2024 17:40
@kuhe kuhe merged commit 8e8f351 into smithy-lang:main Mar 12, 2024
7 checks passed
@kuhe kuhe deleted the fix/util-base64 branch March 12, 2024 18:06
gosar pushed a commit to gosar/smithy-typescript that referenced this pull request May 28, 2024
gosar pushed a commit to gosar/smithy-typescript that referenced this pull request May 28, 2024
gosar pushed a commit to gosar/smithy-typescript that referenced this pull request May 28, 2024
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.

4 participants