- 01 10月, 2021 1 次提交
-
-
由 Jay 提交于
* fix/Avoid package.json import; (#4041) * Added auto-generated config module `env/data.js` for importing package environment vars without importing the whole `package.json`; Refactored `http.js` to use `env/data.js` instead of package.json; * Added `env/data.js`; Added `env/README.md`; * Feat/export package version constant (#4065) * Added auto-generated config module `env/data.js` for importing package environment vars without importing the whole `package.json`; Refactored `http.js` to use `env/data.js` instead of package.json; * Added `env/data.js`; Added `env/README.md`; * Export package version constant; * Fixed cancelToken leakage; Added AbortController support; (#3305) * Fixed cancelToken leakage; Added AbortController support; * Fixed typings; * Documented `signal` option; * Added processing of early cancellation using AbortController without sending a request; Co-authored-by: NJay <jasonsaayman@gmail.com> * Updating CI to run on release branches * Fixed default transitional config for custom Axios instance; (#4052) Refactored `/core/mergeConfig`; Co-authored-by: NJay <jasonsaayman@gmail.com> * Prepping v0.22.0 for release * Updated date Co-authored-by: NDmitriy Mozgovoy <robotshara@gmail.com>
-
- 17 9月, 2021 3 次提交
-
-
由 Igor Randjelovic 提交于
Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Dobes Vandermeer 提交于
I seems like the browser imposes a default timeout despite the documented default timeout being "never". When this timeout occurs, axios confusingly reports an error "timeout of 0ms exceeded". This change the message to avoid the confusing "0ms" part. Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 Paweł Szymański 提交于
This should solve the issue of undefined `this` when importing from an ES6 module. I've put steps to reproduce in [this comment](https://github.com/axios/axios/issues/1861#issuecomment-669832435). Co-authored-by: NJay <jasonsaayman@gmail.com>
-
- 08 9月, 2021 1 次提交
-
-
由 Matt R. Wilson 提交于
* Caseless header comparing in HTTP adapter. It was adding User-Agent and removing Authorization, but only when existing headers had the exact right casing. Node uses caseless logic when managing headers. This was causing some requests to have `User-Agent` appended to the headers object and overriding provided agent strings. Also included is an update to not override the `Content-Length` if it was already defined in the options. It can be desirable to manually specify a content length that does not match the data on hand. Especially for testing. * Fix eslint error * fixup: update state UA logic Play nice with https://github.com/axios/axios/pull/3703Co-authored-by: NJay <jasonsaayman@gmail.com>
-
- 06 9月, 2021 1 次提交
-
-
由 Jay 提交于
* fix json transform when data is pre-stringified (#4020) * [Updating] incorrect JSON syntax in README.md * [Releasing] v0.21.4 Co-authored-by: NGuillaume FORTAINE <guillaume+github@fortaine.com>
-
- 05 9月, 2021 10 次提交
-
-
由 Remco Haszing 提交于
This correctly reflects the type in a more type safe manner. Co-authored-by: NJay <jasonsaayman@gmail.com>
-
由 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
-