trae
trae copied to clipboard
:postbox: Minimalistic Fetch based HTTP client
All tests now have type checking disabled. *IMPORTANT* this is blocked by #317
Right now types of middlewares and types of what the methods are returning are not properly done (using `any`, or not matching). Some things to be fixed - Types for...
Below is something I tried using ```js trae.create({baseUrl: '/api'}) .post('some url') .then(do some operation) .catch(err) ``` I don't get error response in `catch` block... I just get `Unexpected end of...
I'd think this would be safer for most programmers who are like me and forget the return
I am using trae in two separate Vue projects and I had the same issue on both, when I use trae to get information from an api I the data...
I've tryed to use this library to send a multipart form data. I'm using vuejs and javascript FormData but it does not work. I've using axios semantic like this: [https://scotch.io/tutorials/how-to-handle-file-uploads-in-vue-2](https://scotch.io/tutorials/how-to-handle-file-uploads-in-vue-2)...
I gonna quote @ianaya89 ( #47 ) on this > We should consider create a CHANGELOG.md file to include this new stuff. I think we should automate it. Some options:...
Found out about it while investigating #226 https://github.com/Huemul/trae/blob/fa83b7ffd4013f35b52447a397a8a734afa406df/lib/helpers/response-handler.js#L45 We should have a default error message. Also, since the `Error` has its own `.toString` debugging of the response is not ideal,...
It seems [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) is using an old version of [node-fetch](https://github.com/bitinn/node-fetch) that doesn't render stack traces correctly for their custom fetch error class. I've made a [PR](https://github.com/matthew-andrews/isomorphic-fetch/pull/138) to resolve the issue....