apisauce icon indicating copy to clipboard operation
apisauce copied to clipboard

Axios + standardized errors + request/response transforms.

Results 46 apisauce issues
Sort by recently updated
recently updated
newest added

This PR updates axios package to 1.6.5 to address 1. axios [Prototype Pollution Vulnerability](https://learn.snyk.io/lesson/prototype-pollution/?_gl=1*rxu1k4*_ga*NTU4ODIzNzE0LjE3MDUwODgxNDc.*_ga_X9SH3KP7B4*MTcwNTA4ODE0Ny4xLjEuMTcwNTA4ODQ2NC4wLjAuMA..). 2. follow-redirects [Improper Input Validation Vulnerability](https://learn.snyk.io/lesson/improper-input-validation/?_gl=1*1nixamo*_ga*NTU4ODIzNzE0LjE3MDUwODgxNDc.*_ga_X9SH3KP7B4*MTcwNTA5MDMzOC4yLjAuMTcwNTA5MDMzOC4wLjAuMA..) Ran following commands: - [x] yarn test - [x] yarn...

Hello, I am not sure if this is related to this issue - https://github.com/infinitered/apisauce/issues/316 I have tried v3.0.1 and I still get this error when trying to create the apisauce...

Facing a very strange issue after upgrading to Xcode 15. All the urls that have query params in the url, have the percentage symbol encoded twice, so with Xcode 14.3,...

Below is the code, ```javascript const form = new FormData() form.append('image', { name: imageFileName, type: imageType,// image/jpeg uri: Platform.OS === 'ios' ? imageFilePath.replace('file://', '') : imageFilePath, }) const result =...

Hello, Basiclly I wounder if there is a way to insert the config of a older request in a new one? For example: ``` apiClient.addAsyncResponseTransform(async (response) => { console.log("Response after...

``` const axiosApiInstance = axios.create({ baseURL: "YOUR_BASE_URL_HERE" }); const apisauceInstance = create({ axiosInstance: axiosApiInstance, baseURL: "YOUR_BASE_URL_HERE", }); try { const response: ApiResponse = await apisauceInstance.post( endpoints[endpointKey], requestData ); return response;...

Hello, I have a question about response type, why is the `ApiOkResponse` has an optional data? I suppose that if the request is successful, the `ApiOkResponse` will contain `ok:true` with...

After upgrading apisauce to latest(3.0.1) version I got TypeError: axios.create is not a function error. Issue: Apisauce was failing to create ApisauceInstance using create function. Fix: After downgrading apisauce to...

1. pull the latest master branch, commit_id is `9d20d580e648c63c3a2e83a3285aed0d609b0a3f` 2. run `npm run prepare` 3. run `npm run dist` 4. then there are two test cases that failed, the details...

bug

I used flame and GPT-4 to convert the test code base from ava to jest. Full explanation in the YouTube video I made about it! https://www.youtube.com/watch?v=p2mO1JiF-7U