1. 20 4月, 2021 2 次提交
    • D
      Feat/json improvements (#3763) · 7821ed20
      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;
      7821ed20
    • D
      JSON improvements: throw if JSON parsing failed; number, boolean can be passed... · 5ad6994d
      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);
      5ad6994d
  2. 01 4月, 2021 1 次提交
    • J
      Fix/karma sauce errors (#3717) · d99d5faa
      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
      d99d5faa
  3. 30 3月, 2021 1 次提交
  4. 29 3月, 2021 2 次提交
  5. 24 3月, 2021 1 次提交
  6. 23 3月, 2021 1 次提交
    • J
      [Updated] follow-redirects version (#3694) · 364867ed
      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.
      364867ed
  7. 15 3月, 2021 1 次提交
  8. 01 3月, 2021 1 次提交
  9. 17 2月, 2021 1 次提交
  10. 15 2月, 2021 1 次提交
  11. 06 2月, 2021 1 次提交
  12. 05 2月, 2021 1 次提交
  13. 01 2月, 2021 1 次提交
  14. 29 1月, 2021 1 次提交
  15. 12 1月, 2021 1 次提交
    • A
      Default headers example AUTH_TOKEN comment (#3539) · fe52a611
      Ali Clark 提交于
      * Updating the 'Global axios defaults' README to use a safer example
      
      The existing example usage it isn't safe in the general case as it can
      lead to auth tokens being leaked to 3rd party endpoints by unexpectedly.
      
      This change instead gives an example using
      "axios.defaults.headers.common" to set the User-Agent, which is an
      equally helpful use-case to document.
      
      The 'Custom instance defaults' example just below the 'Global axios
      defaults' example shows a method to set the 'Authorization' header
      specific to a given API. I've also updated the variable in the 'Custom
      instance defaults' code to use a semantically more relevant name within
      that example.
      
      * Revert the example instance name in response to PR request
      
      * Reintroduce the Authorization example with a disclaimer about its usage
      
      * Update wording nb -> important on usage comment
      
      * Remove User-Agent example due to issues with this on Chrome and Safari
      
      See https://github.com/axios/axios/issues/1231
      Credit @chinesedfan for pointing this out
      fe52a611
  16. 16 12月, 2020 1 次提交
    • D
      Update dev dependencies (#3401) · 59ab5593
      Daniel Lopretto 提交于
      - Everything still works as expected.
        - Remove bundlesize
          - It still uses libtorb which is deprecated and broken on Win and
            requires a full suite of build tools on Mac. Keeping it in the
            package makes it difficult for anyone filing issues to run tests.
          - See: #3396
        - Update grunt and it's plugins
        - Update karma to v4...so much faster!
          - Changed the karma config. Better changes: #3394
        - Update Webpack
          - Uses terser over uglify
        - Update eslint
          - Caused an error in util.js from the `global` directive so the
            directive is removed (it was not needed).
        - Update typescript
          - The old version of tsc didn't know about new features in
            @types/node (like `asserts value`).
      Co-authored-by: NJay <jasonsaayman@gmail.com>
      59ab5593
  17. 09 12月, 2020 1 次提交
  18. 03 12月, 2020 1 次提交
  19. 24 11月, 2020 1 次提交
    • D
      Hotfix: Prevent SSRF (#3410) · c7329fef
      Daniel Lopretto 提交于
      * Reproducing the Vulnerability
      
      * Prevent SSRF
      
      * Cleanup
      
      * Refactor to skip duplicate code
      
      * Tests for correct passed data.
      
      * Code review changes.
      c7329fef
  20. 03 11月, 2020 1 次提交
  21. 30 10月, 2020 1 次提交
  22. 27 10月, 2020 1 次提交
  23. 24 10月, 2020 2 次提交
  24. 23 10月, 2020 1 次提交
  25. 20 10月, 2020 1 次提交
  26. 13 10月, 2020 1 次提交
  27. 04 10月, 2020 1 次提交
  28. 01 10月, 2020 2 次提交
  29. 20 9月, 2020 1 次提交
  30. 12 9月, 2020 1 次提交
  31. 21 8月, 2020 2 次提交
  32. 16 7月, 2020 1 次提交
  33. 15 7月, 2020 1 次提交
  34. 02 7月, 2020 1 次提交
  35. 26 6月, 2020 1 次提交