trae icon indicating copy to clipboard operation
trae copied to clipboard

:postbox: Minimalistic Fetch based HTTP client

Results 39 trae issues
Sort by recently updated
recently updated
newest added

All tests now have type checking disabled. *IMPORTANT* this is blocked by #317

help wanted

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

enhancement
needs discussion

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)...

bug
question

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:...

needs discussion

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,...

bug

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....