ntzwrk / blockstack.ts

work in progress, please check back later
MIT License
10 stars 1 forks source link

Is the `form-data` dependency needed? #13

Open vsund opened 6 years ago

vsund commented 6 years ago

In src/network.js there's an import of [form-data](). tsc complains about incompatible types at its only usage.

When I remove the dependency tsc says it's fine. Is this dependency purposely in there?

kantai commented 6 years ago

Yeah -- it's required for submitting that request as a form submission (i.e., multipart/form-data) -- the FormData object is present in many browsers, but its not in NodeJS, so we needed to add it.