Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the deprecated addToBody option and return files as buffers wh…
…en attachFieldsToBody is set to keyValues (#481) * Return buffers directly when `attachFieldsToBody` is set to `'keyValues'` (#468) * return buffer directly * add test * move tap path to taprc * update README.md * typo * refactor keyValues handler * use already set variable * use for...of * ditch for...of for Arrays * use keys rather than entries * Remove legacy addToBody and callback API (#465) * remove deprecated method * remove unused package * revert modification * remove addToBody documentation * remove request.multipart type * remove legacy comment * Use for loop for arrays and fix schema option for `keyValues` (#474) * only add schema when attachfieldstobody is true * fs/promises * use `for` for arrays * conditionally call Object.values * fix lint * Update test/multipart-attach-body.test.js Co-authored-by: Frazer Smith <[email protected]> * Update README.md Co-authored-by: Frazer Smith <[email protected]> --------- Co-authored-by: Uzlopak <[email protected]> Co-authored-by: Frazer Smith <[email protected]>
- Loading branch information