axios-fetch icon indicating copy to clipboard operation
axios-fetch copied to clipboard

fix: proper fetch-spec related input handling

Open AuHau opened this issue 3 years ago • 2 comments

Closes #83

This PR improves spec compliance of this library with accepting Request instance as input and several other small improvements (see comments).

Also, I am not sure how form-data package works with axios as axios should not accept anything else than DOM instance of form-data as you can see here, but it indeed works which leaves me bit buffled. But I would advise against using `form-data as it is non-compliant with the spec.

Btw. also I would recommend separating the compiled JS files into build directory as for example if you build the project and then run tests it uses the builder sources and not the TypeScript one.

AuHau avatar Sep 07 '21 08:09 AuHau

@jagoda @mdlavin could you please have a look on the PR? Thanks!

AuHau avatar Sep 19 '21 20:09 AuHau

@mdlavin I have fixed the extra option as you requested, but the JSON one is actually not working...

AuHau avatar Sep 23 '21 09:09 AuHau