Fix binary object handling in multipart/form-data (File / Blob) when using nuxt#3459
Conversation
…ipart/form-data (File / Blob) when using nuxt
|
|
|
@LeiCraft is attempting to deploy a commit to the Hey API Team on Vercel. A member of the Team first needs to authorize it. |
|
Leaping into action... |
🦋 Changeset detectedLatest commit: 6bef793 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3459 +/- ##
==========================================
+ Coverage 40.10% 40.15% +0.04%
==========================================
Files 478 478
Lines 17494 17496 +2
Branches 5305 5306 +1
==========================================
+ Hits 7016 7025 +9
+ Misses 8426 8421 -5
+ Partials 2052 2050 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mrlubos
left a comment
There was a problem hiding this comment.
This looks good, thank you for the fix!
…-data-in-nuxt-client

When the body is FormData and includes a file object, the unwrapRefs logic would incorrectly convert the File / Blob values to plain JavaScript objects.
This caused binary values to be serialized incorrectly, breaking file upload.
so in order to fix the issue i updated unwrapRefs to correctly preserve File and Blob instances.