2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-24 14:04:14 +03:00
Commit Graph

1279 Commits

Author SHA1 Message Date
Günther Foidl b0710bf8a2 SerializerOptions.indexes allows boolean | null | undefined (#4862)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-26 20:26:32 +02:00
WD daa426a01c fix: the error of calling extend to pass parameters #4844 (#4857)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-26 20:14:37 +02:00
Usman Ali Siddiqui 892c241773 Fix: typo in readme (#4942)
Co-authored-by: Usman Ali Siddiqui <usmanali.siddiqui@wsa.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-15 07:36:31 +02:00
Yue JIN 5138c302bb docs: fix Gitpod dead link (#4941)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-15 07:32:36 +02:00
WD cec2287024 chore: remove unnecessary spaces (#4854)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-15 07:25:21 +02:00
Karl Horky d57fdb6510 Fix typo and formatting, add colons (#4853)
* Fix typo, add colons

* Fix code formatting

* Fix code formatting

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-15 07:21:40 +02:00
felipedamin 738fa63661 Use WHATWG URL API instead of url.parse() (#4852)
* replace url.parse with new whatwg url api

* remove comments

* use const instead of var

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-14 21:40:08 +02:00
Grégoire Pineau dd5ba02254 Fix markup for note in README (#4825)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-14 21:32:23 +02:00
Bassel Rachid 242c1d9782 fix(adapters/http): remove repeated compression algorithm (#4820)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-14 21:28:09 +02:00
Dmitriy Mozgovoy 379fdebc46 Fixed a regression bug with unsubscribing from cancel token; (#4819)
Reverts #4795;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-14 21:24:22 +02:00
hcwhan ce8a9211b6 fix type error (#4815)
AxiosPromise is contains AxiosResponse and the `R` is AxiosResponse

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-14 21:18:39 +02:00
Jay 649d739288 chore: ql should run on any branch 2022-08-08 18:20:38 +02:00
Jay e6f0efc75d chore: ci should run on any branch 2022-08-08 18:20:03 +02:00
Dmitriy Mozgovoy cd8989a987 Fixed missed minified builds; (#4805)
* Fixed missed minified builds;
Refactored utils.js;
Refactored `utils.isStandardBrowserEnv()` as a `platform/browser` property;
Added builds size log;

* Replaced `rollup-plugin-filesize` with `rollup-plugin-bundle-size`;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-08-01 19:13:14 +02:00
wenzheng d17d9a66c5 feat: brower platform add data protocol. (#4804)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-08-01 18:58:12 +02:00
Jay 3e2a925731 Update ci.yml 2022-07-27 19:27:20 +02:00
Jay 22b01d3d3f Update codeql-analysis.yml 2022-07-27 19:26:54 +02:00
dependabot[bot] 94555a635a chore(deps): bump terser from 4.8.0 to 4.8.1 (#4872)
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-27 19:23:50 +02:00
Jay 64dcec5e41 feat: add code quality scanner 2022-07-09 15:50:35 +02:00
dependabot[bot] 62d8eb793e chore(deps): bump actions/dependency-review-action from 1 to 2 (#4801)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 1 to 2.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](https://github.com/actions/dependency-review-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 16:02:57 +02:00
Dmitriy Mozgovoy bdf493cf8b Axios ES2017 (#4787)
* Added AxiosHeaders class;

* Fixed README.md href;

* Fixed a potential bug with headers normalization;

* Fixed a potential bug with headers normalization;
Refactored accessor building routine;
Refactored default transforms;
Removed `normalizeHeaderName` helper;

* Added `Content-Length` accessor;
Added missed `has` accessor to TS types;

* Added `AxiosTransformStream` class;
Added progress capturing ability for node.js environment;
Added `maxRate` option to limit the data rate in node.js environment;
Refactored event handled by `onUploadProgress` && `onDownloadProgress` listeners in browser environment;
Added progress & data rate tests for the http adapter;
Added response stream aborting test;
Added a manual progress capture test for the browser;
Updated TS types;
Added TS tests;
Refactored request abort logic for the http adapter;
Added ability to abort the response stream;

* Remove `stream/promises` & `timers/promises` modules usage in tests;

* Use `abortcontroller-polyfill`;

* Fixed AxiosTransformStream dead-lock in legacy node versions;
Fixed CancelError emitting in streams;

* Reworked AxiosTransformStream internal logic to optimize memory consumption;
Added throwing an error if the request stream was silently destroying (without error) Refers to #3966;

* Treat the destruction of the request stream as a cancellation of the request;
Fixed tests;

* Emit `progress` event in the next tick;

* Initial refactoring;

* Refactored Mocha tests to use ESM;

* Refactored Karma tests to use rollup preprocessor & ESM;
Replaced grunt with gulp;
Improved dev scripts;
Added Babel for rollup build;

* Added default commonjs package export for Node build;
Added automatic contributors list generator for package.json;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-06-18 11:19:27 +02:00
dependabot[bot] 1db715dd3b chore(deps): bump actions/setup-node from 2 to 3 (#4798)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-18 11:15:53 +02:00
dependabot[bot] 68723fc389 chore(deps): bump actions/stale from 3 to 5 (#4797)
Bumps [actions/stale](https://github.com/actions/stale) from 3 to 5.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v3...v5)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-06-18 11:13:19 +02:00
dependabot[bot] de7f4c6c39 chore(deps): bump actions/checkout from 2 to 3 (#4796)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-18 11:11:11 +02:00
Naveen 6ac313a01e chore(deps): Included dependency review (#4771)
> Dependency Review GitHub Action in your repository to enforce dependency
> reviews on your pull requests.
> The action scans for vulnerable versions of dependencies introduced by package version
> changes in pull requests,
> and warns you about the associated security vulnerabilities.
> This gives you better visibility of what's changing in a pull request,
> and helps prevent vulnerabilities being added to your repository.

https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-06-18 11:07:56 +02:00
Naveen 7fac8ef19b chore: Included githubactions in the dependabot config (#4770)
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-06-18 11:05:40 +02:00
visortelle 5ba3f787c4 Fix - Request ignores false, 0 and empty string as body values (#4785)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-06-14 21:56:17 +02:00
Pavlos e518c5da1b update security.md (#4784)
+ points to axios page instead of bounty calculator
+ improved copy
2022-06-14 20:44:31 +02:00
Jay 9e5145e714 fixed(ci): removed wrkflow permissions that are wrong 2022-06-02 21:38:47 +02:00
Jay 21a12de13e fix: merge conflict 2022-06-02 21:20:16 +02:00
Jay 7ec84f817f chore(GitHub Actions): rename master to main, added protections 2022-06-02 21:12:48 +02:00
neilnaveen ef6064c83b chore: Set permissions for GitHub actions (#4765)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-06-02 21:09:29 +02:00
dependabot[bot] e42f35da7f Bump eventsource from 1.1.0 to 1.1.1 (#4764)
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-06-02 21:01:30 +02:00
Jay 5db829d118 docs(adapters/http) 2022-06-02 20:57:16 +02:00
Jay 8a92772d16 docs(axios.js) 2022-06-02 20:56:53 +02:00
Jay 31fbee888f docs(cancel/CancelToken) 2022-06-02 20:56:32 +02:00
Jay a009842af9 docs(cancel/CanceledError) 2022-06-02 20:56:09 +02:00
Jay b80c7d3844 docs(core/Axios) 2022-06-02 20:55:27 +02:00
Jay c4c30b22d6 docs(core/AxiosError) 2022-06-02 20:54:47 +02:00
Jay fb8efb9a70 docs(core/InterceptorManager) 2022-06-02 20:54:24 +02:00
Jay 81c0b3568f docs(core/buildFullPath) 2022-06-02 20:53:57 +02:00
Jay 4f4c1d3be9 docs(core/dispatchRequest) 2022-06-02 20:53:31 +02:00
Jay 722640aeda docs(core/mergeConfig) 2022-06-02 20:53:07 +02:00
Jay 6e0aff9407 docs(core/settle) 2022-06-02 20:52:44 +02:00
Jay e9bd1626ff docs(core/transformData) 2022-06-02 20:52:22 +02:00
Jay 0148e4563d docs(defaults/index) 2022-06-02 20:52:04 +02:00
Jay e8dd5cb1ed docs(helpers/AxiosURLSearchParams) 2022-06-02 20:51:32 +02:00
Jay 6f06e25f53 docs(helpers/buildURL) 2022-06-02 20:51:03 +02:00
Jay 18e563d7f8 docs(helpers/combineURLs) 2022-06-02 20:50:41 +02:00
Jay 714daab1e7 docs(helpers/deprecatedMethod) 2022-06-02 20:50:16 +02:00