- 05 9月, 2021 9 次提交
-
-
由 Remco Haszing 提交于
This requires TypeScript users to explicitly define the type of the data they are consuming. Before this, data was `any` by default. This means TypeScript consumers didn’t get type safety if they forgot to specify the type. Technically this is a breaking change for TypeScript users, as this will report errors if they forgot to specifiy the response type. The simplest workaround would be to explicitly set the response type to `any`, so it’s not breaking much. The `unknown` type is probably a slightly better fit, but this requires TypeScript ^3. `data` is still `any` in the very specific use case mentioned in https://github.com/microsoft/TypeScript/issues/38969Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Carlos Chida 提交于
* Improved type-safety for AxiosRequestConfig - AxiosRequestConfig is now a generic type whose template corresponds to data Signed-off-by: NCarlos Chida <carlos.chida@starchitecture.eu> * Fixed tests - TS tests now match the behaviour described in the PR Signed-off-by: NCarlos Chida <carlos.chida@starchitecture.eu> Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Greg Byrne 提交于
* Adding HTTP status code to error.toJSON (axios#2947) * Adding Error display div to internal server client.html Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Fabiel Leon 提交于
Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Tim Düsterhus 提交于
This patch allows TypeScript users to extend the `Axios` class without the type checker complaining. see 7548f2f7Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 howel52 提交于
Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Isaac Whitfield 提交于
Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Jay 提交于
-
由 Julian Hollmann 提交于
-
- 04 9月, 2021 2 次提交
- 02 9月, 2021 1 次提交
-
-
由 Ziding Zhang 提交于
* Create SECURITY.md A simple instruction for security researchers. * Adding security report email address Co-authored-by: NJay <jasonsaayman@gmail.com>
-
- 30 8月, 2021 1 次提交
-
-
由 ready-research 提交于
-
- 13 8月, 2021 7 次提交
-
-
由 Matt Czapliński 提交于
Add axios-multi-api to the list Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Nash 提交于
* Fixing README.md * Update README.md Co-authored-by: NAsher Hwang <dev@hsh.kr> Co-authored-by: NAsher Hwang <dev@hsh.kr> Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Sam Carlton 提交于
Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Mo Sattler 提交于
Fixing the example JSON of `Request Config` Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Jay 提交于
Removed un-needed bracket
-
由 Jay 提交于
Updated CI status badge to show Github workflow status
-
由 Kohta Ito 提交于
-
- 27 5月, 2021 1 次提交
-
-
由 Brian Anglin 提交于
-
- 21 5月, 2021 1 次提交
-
-
由 Daniel Lopretto 提交于
* removed charset setting when setting default header * Remove charset from tests Co-authored-by: Nmpark86 <dev.minuk.park@gmail.com> Co-authored-by: NJay <jasonsaayman@gmail.com> Co-authored-by: NPilot <timemachine@ctrl-c.club>
-
- 18 5月, 2021 1 次提交
-
-
由 Jay 提交于
Thanks to @socketpair for testing and checking this.
-
- 14 5月, 2021 1 次提交
-
-
由 hippo 提交于
close #3448 Co-authored-by: NJay <jasonsaayman@gmail.com>
-
- 13 5月, 2021 1 次提交
-
-
由 Jay 提交于
Add open collective to repo
-
- 06 5月, 2021 1 次提交
-
-
由 Philipe Gouveia Paixão 提交于
* Adding parseInt to config.timeout * Fixing test message
-
- 05 5月, 2021 2 次提交
-
-
由 Johannes Jarbratt 提交于
Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Mark 提交于
Previously checking whether a response has exceeded `maxContentLength` was quadratic with respect to the number of chunks in the response stream and also caused unnecessary additional memory usage. Co-authored-by: NJay <jasonsaayman@gmail.com>
-
- 30 4月, 2021 2 次提交
-
-
由 TagawaHirotaka 提交于
* Updating lib/core/README.md :Dispatching requests * Fixing expression
-
由 Jay 提交于
-
- 20 4月, 2021 2 次提交
-
-
由 Dmitriy Mozgovoy 提交于
* Draft * Added support for primitive types to be converted to JSON if the request Content-Type is 'application/json'; Added throwing SyntaxError if JSON parsing failed and responseType is json; Added transitional option object; Added options validator to assert transitional options; Added transitional option `silentJSONParsing= true` for backward compatibility; Updated README.md; Updated typings; * Fixed isOlderVersion helper; Fixed typo; Added validator.spec.js; * Added forcedJSONParsing transitional option #2791 * `transformData` is now called in the default configuration context if the function context is not specified (for tests compatibility); * Added `transitional.clarifyTimeoutError` to throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts; Added support of onloadend handler if available instead of onreadystatechange; Added xhr timeout test; Fixed potential bug of xhr adapter with proper handling timeouts&errors (FakeXMLHTTPRequest failed to handle timeouts); * Removed unnecessary assertion;
-
由 Dmitriy Mozgovoy 提交于
JSON improvements: throw if JSON parsing failed; number, boolean can be passed directly as payload for encoding to JSON #2613, #61, #907 (#3688) * Draft * Added support for primitive types to be converted to JSON if the request Content-Type is 'application/json'; Added throwing SyntaxError if JSON parsing failed and responseType is json; Added transitional option object; Added options validator to assert transitional options; Added transitional option `silentJSONParsing= true` for backward compatibility; Updated README.md; Updated typings; * Fixed isOlderVersion helper; Fixed typo; Added validator.spec.js; * Added forcedJSONParsing transitional option #2791 * `transformData` is now called in the default configuration context if the function context is not specified (for tests compatibility); * Added `transitional.clarifyTimeoutError` to throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts; Added support of onloadend handler if available instead of onreadystatechange; Added xhr timeout test; Fixed potential bug of xhr adapter with proper handling timeouts&errors (FakeXMLHTTPRequest failed to handle timeouts);
-
- 01 4月, 2021 1 次提交
-
-
由 Jay 提交于
* [Updated] karma sauce launcher which should fix suace tests that are no longer showing as passed and rather completed * [Updated] karma config to follow es-lint rules of axios * [Updated] karma version to latest * [Added] propper browsers when testing local
-
- 30 3月, 2021 1 次提交
-
-
由 Jay 提交于
[Updated] karma sauce launcher which should fix suace tests that are no longer showing as passed and rather completed (#3712)
-
- 29 3月, 2021 2 次提交
-
-
由 Mike Bishop 提交于
* Adding ability to omit User-Agent header * Update line to be more compact * Add unit tests for user-agent cases Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Jay 提交于
-
- 24 3月, 2021 1 次提交
-
-
由 Daniel Lopretto 提交于
- Tests for transformResponse - Remove eslint error by renaming the var - Test that there data a length to avoid JSON.parse headache - Use `util.isString()` over `typeof` Co-authored-by: NJay <jasonsaayman@gmail.com>
-
- 23 3月, 2021 1 次提交
-
-
由 Jay 提交于
I have updated the version of follow redirects to see if this will fix a potential memory leak that has been noted by a couple users. This is also being updated to see if it will pass building.
-
- 15 3月, 2021 1 次提交
-
-
https://axios-http.com由 Jake 提交于
-
- 01 3月, 2021 1 次提交
-
-
由 Sasha Korotkov 提交于
* issue#2609 | Sasha | predictable axios requests - axios requests are not delayed by pre-emptive promise creation by default - add options to interceptors api ("synchronous" and "runWhen") - add documentation and unit tests * issue#2609 | Sasha | pull request feedback changes * issue#2609 | Sasha | additional feedback changes * issue#2609 | Sasha | put back try/catch * issue#2609 | Sasha | add 2 adapter unit tests - remove check for requestCancelled Co-authored-by: Nak71845 <alexandre.korotkov@kroger.com> Co-authored-by: NXianming Zhong <chinesedfan@qq.com> Co-authored-by: NJay <jasonsaayman@gmail.com>
-