[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ ] I have updated the documentation accordingly. If you are changing code related to user secrets you need to really make sure that security documentation is correct.
Description
This PR fixes handling Buffers in
multipart/form-data
. It also adds support to duplicate fields by allowing define array as value.Switched from
isomorphic-form-data
toform-data
, which handles buffers correctly.Also, I had to fix
fetch.node.test.ts
where the mocking wasn't working as expected. https://github.com/superfaceai/one-sdk-js/pull/292/commits/6c193a8ed0fd65779475c4830c8e426d01749b9bMotivation and Context
Fixes #291
Types of changes
Checklist: