Last 12 weeks · 0 commits
3 of 6 standards met
Currently when i tried to get the data response as a text I found i was unable to get it so i went through the code and found that this the library calls JSON.parse() on the response data regardless of the responseType configuration. This causes issues when expecting plain text or when the response body is not valid JSON. so the logic i add just check if responseType is json else just return the normal data
Repository: developit/redaxios. Description: The Axios API, as an 800 byte Fetch wrapper. Stars: 4880, Forks: 104. Primary language: JavaScript. Languages: JavaScript (99.8%), TypeScript (0.2%). License: Apache-2.0. Homepage: https://npm.im/redaxios Latest release: 0.5.0 (4y ago). Open PRs: 7, open issues: 27. Last activity: 2y ago. Community health: 57%. Top contributors: developit, Hotell, fabricionaweb, crissto, idoshamun, jamesmosier, lukewarlow, dacioromero, Xenonym, neupauer and others.