2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00
Commit Graph

1641 Commits

Author SHA1 Message Date
github-actions[bot] a9f7689b0c chore(release): v1.8.2 (#6812)
Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com>
2025-03-07 09:40:33 +02:00
Fasoro-Joseph Alexander fb8eec214c fix(http-adapter): add allowAbsoluteUrls to path building (#6810)
Co-authored-by: alex-paystack <alex@paystack.com>
2025-03-07 09:30:30 +02:00
github-actions[bot] 9812045755 chore(sponsor): update sponsor block (#6804)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-03-02 17:29:51 +02:00
github-actions[bot] 72acf75937 chore(sponsor): update sponsor block (#6794)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2025-02-26 18:44:52 +02:00
github-actions[bot] 2e64afdff5 chore(release): v1.8.1 (#6800)
Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com>
2025-02-26 11:06:15 +02:00
Dmitriy Mozgovoy 36a5a620be fix(utils): move generateString to platform utils to avoid importing crypto module into client builds; (#6789)
* chore(ci): Add release-it script;

* fix(utils): move generateString util to platform utils to avoid importing crypto module into client build;

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-02-26 10:30:55 +02:00
github-actions[bot] cceb7b1e15 chore(release): v1.8.0 (#6795)
Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com>
2025-02-26 08:00:31 +02:00
Willian Agostini 23a25af068 fix(utils): replace getRandomValues with crypto module (#6788) 2025-02-18 14:36:51 +02:00
Michael Toscano 32c7bcc0f2 feat: Add config for ignoring absolute URLs (#5902) (#6192)
* fix: prevent request url override

prevent request URL from overriding preconfigured base URL

BREAKING CHANGE: code relying on the above will now combine the URLs instead of prefer request URL

* feat: add config option for allowing absolute URLs

* fix: add default value for allowAbsoluteUrls in buildFullPath

* fix: typo in flow control when setting allowAbsoluteUrls

* feat: update tests supporting issue #5902 functionality

* feat: update README.md with allowAbsoluteUrls

* fix: properly group conditions in buildFullPath.js to avoid undefined error when baseUrl undefined

* Update README.md fix typo

* fix: update build full path logic to address failing test case

* fix: update base URL test

* fix: remove problem test (works locally, will not work in the pipeline)

* fix: update https test to use github.com instead of google.com

* fix: revert previous commit

* fix: add back problem test

* chore: remove un-needed passed var to URL class instanciation

---------

Co-authored-by: Austin Ryan Lawson <ryan.lawson2@gmail.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-02-12 11:09:24 +02:00
Willian Agostini 4a3e26cf65 chore(config): adjust rollup config to preserve license header to minified JavaScript (#6777) 2025-02-09 11:15:25 +02:00
Habip Akyol 30966a79cb docs(type): fix typo in index.ts (#6030)
docs(type): fix typo in index.ts (#6030)
2025-02-02 16:41:49 +02:00
Naron e7a9cbe3be test(transform): add test case for issue 5853 on response type to 'json' (#5901)
* test(transform): add test case for issue 5853 on response type to 'json'

* test(transform): formatted second argument

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-02-02 16:33:16 +02:00
Bailey Lissington 51c1d7ba9d chore(docs): typo in README (#6771)
chore(docs): typo in README (#6771)
2025-01-31 19:10:20 +02:00
Bernardo da Eira Duarte b5b063e476 docs(readme): fix Request Config options code highlight (#6480)
docs(readme): fix Request Config options code highlight (#6480)
2025-01-31 19:05:08 +02:00
Justin Dhillon 896f9af1be chore(docs): remove SECURITY.md (#6312)
chore(docs): remove SECURITY.md (#6312)
2025-01-31 19:01:58 +02:00
shravan || श्रvan 8889dc0383 chore(docs): fix documentation for usage of interceptors in axios (#6116)
chore(docs): fix documentation for usage of interceptors in axios (#6116)
2025-01-30 21:49:26 +02:00
yionr 45d0baa6b3 chore(docs): split long lines, easier for reading (#6129)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-01-30 21:45:54 +02:00
Nitin Ramnani 1260ded634 fix(examples): application crashed when navigating examples in browser (#5938)
fix(examples): application crashed when navigating examples in browser (#5938)
2025-01-30 21:25:28 +02:00
Shivam Batham bba8e2e47d chore(examples): change logo width to 100px (#5949)
chore(examples): change logo width to 100px (#5949)
2025-01-30 21:18:46 +02:00
Lipin Kariappa cdacd9761c chore(docs): Issue was related to the outdated file path and Permalink in README.md (#5936)
chore(docs): Issue was related to the outdated file path and Permalink in README.md (#5936)
2025-01-30 21:13:42 +02:00
Shin'ya Ueoka 4719d7c219 chore(docs): fix contribution guide (#5935)
chore(docs): fix contribution guide (#5935)
2025-01-30 21:09:12 +02:00
Dan Dascalescu f3723f5ad6 chore(docs): consistent spacing after comment start (#5908)
chore(docs): consistent spacing after comment start (#5908)
2025-01-30 21:02:11 +02:00
Dan Dascalescu 1f890b13f2 fix: missing word in SUPPORT_QUESTION.yml (#6757)
fix: missing word in SUPPORT_QUESTION.yml (#6757)
2025-01-28 19:36:33 +02:00
Shay Molcho 7f4dfb8c06 chore(docs): added missing colons and period for consistency (#6770)
chore(docs): added missing colons and period for consistency (#6770)
2025-01-28 19:31:24 +02:00
github-actions[bot] bad6d8b97b chore(sponsor): update sponsor block (#6754)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-01-10 04:57:40 +02:00
github-actions[bot] 2e58825bc7 chore(sponsor): update sponsor block (#6749)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-12-31 14:03:13 +02:00
github-actions[bot] 15054bca82 chore(sponsor): update sponsor block (#6748)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-12-28 03:53:14 +02:00
github-actions[bot] 2c9b33bab4 chore(sponsor): update sponsor block (#6746)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-12-27 05:15:03 +02:00
github-actions[bot] db44d339f0 chore(sponsor): update sponsor block (#6742)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-12-18 16:15:38 +02:00
github-actions[bot] ce350f1e21 chore(sponsor): update sponsor block (#6740)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-12-17 03:37:36 +02:00
Jay 1317261125 Revert "chore: expose fromDataToStream to be consumable (#6731)" (#6732)
This reverts commit 7aae04d292.
2024-12-06 11:30:15 +02:00
fancy45daddy 7aae04d292 chore: expose fromDataToStream to be consumable (#6731) 2024-12-05 16:27:34 +02:00
github-actions[bot] b2cb45d5a5 chore(release): v1.7.9 (#6730)
Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com>
2024-12-04 09:37:30 +02:00
Jay c44d2f2316 Revert "fix(types): export CJS types from ESM (#6218)" (#6729)
This reverts commit c71811b00f.
2024-12-04 09:20:19 +02:00
github-actions[bot] 415ca94401 chore(release): v1.7.8 (#6715)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-11-25 23:13:12 +02:00
Dmitriy Mozgovoy 0a8d6e19da fix: use URL API instead of DOM to fix a potential vulnerability warning; (#6714) 2024-11-25 22:02:07 +02:00
Remco Haszing c71811b00f fix(types): export CJS types from ESM (#6218)
This prevents discrepancies between those from occurring.

Co-authored-by: Jay <jasonsaayman@gmail.com>
2024-11-19 10:39:59 +02:00
github-actions[bot] 4355a6d3bc chore(sponsor): update sponsor block (#6709)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-11-17 03:35:15 +02:00
github-actions[bot] 5d54d22321 chore(sponsor): update sponsor block (#6707)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-11-14 04:06:50 +02:00
Tommaso Paulon eac4619fe2 fix: allow passing a callback as paramsSerializer to buildURL (#6680)
* fix: allow passing a callback as paramsSerializer to buildURL

* fix: add missing semicolon
2024-11-12 17:33:33 +02:00
Kasper Isager Dalsgarð df956d18fe fix(http): use globalThis.TextEncoder when available (#6634)
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2024-11-12 16:00:26 +02:00
dependabot[bot] 7139ce96c3 chore(deps): bump cookie and socket.io (#6704)
Bumps [cookie](https://github.com/jshttp/cookie) and [socket.io](https://github.com/socketio/socket.io). These dependencies needed to be updated together.

Updates `cookie` from 0.4.2 to 0.7.2
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](https://github.com/jshttp/cookie/compare/v0.4.2...v0.7.2)

Updates `socket.io` from 4.5.0 to 4.8.1
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/4.5.0...socket.io@4.8.1)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: indirect
- dependency-name: socket.io
  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>
2024-11-12 15:30:21 +02:00
dependabot[bot] 5ebb124b05 chore(deps-dev): bump elliptic from 6.5.4 to 6.6.0 (#6698)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.4 to 6.6.0.
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.4...v6.6.0)

---
updated-dependencies:
- dependency-name: elliptic
  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>
2024-11-12 14:44:28 +02:00
dependabot[bot] 4e9b33d62e chore(deps): bump send and express (#6699)
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `express` from 4.18.2 to 4.21.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.1/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.21.1)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: express
  dependency-type: direct:development
...

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>
2024-11-12 14:00:06 +02:00
Shrivali Dutt 524ccdf44e Update server.js (#6637)
Specified the content type as 'text/html' for index.html.

Co-authored-by: Jay <jasonsaayman@gmail.com>
2024-11-11 17:02:49 +02:00
dependabot[bot] 6a63614cc1 chore(deps): bump the github-actions group with 8 updates (#6693)
Bumps the github-actions group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `3` | `4` |
| [tj-actions/changed-files](https://github.com/tj-actions/changed-files) | `40` | `45` |
| [actions/setup-node](https://github.com/actions/setup-node) | `3` | `4` |
| [github/codeql-action](https://github.com/github/codeql-action) | `2` | `3` |
| [actions/dependency-review-action](https://github.com/actions/dependency-review-action) | `3` | `4` |
| [ffurrer2/extract-release-notes](https://github.com/ffurrer2/extract-release-notes) | `1` | `2` |
| [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) | `6` | `7` |
| [actions/stale](https://github.com/actions/stale) | `7` | `9` |


Updates `actions/checkout` from 3 to 4
- [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/v3...v4)

Updates `tj-actions/changed-files` from 40 to 45
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/v40...v45)

Updates `actions/setup-node` from 3 to 4
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

Updates `github/codeql-action` from 2 to 3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

Updates `actions/dependency-review-action` from 3 to 4
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](https://github.com/actions/dependency-review-action/compare/v3...v4)

Updates `ffurrer2/extract-release-notes` from 1 to 2
- [Release notes](https://github.com/ffurrer2/extract-release-notes/releases)
- [Changelog](https://github.com/ffurrer2/extract-release-notes/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ffurrer2/extract-release-notes/compare/v1...v2)

Updates `peter-evans/create-pull-request` from 6 to 7
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6...v7)

Updates `actions/stale` from 7 to 9
- [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/v7...v9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: ffurrer2/extract-release-notes
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-11 16:55:03 +02:00
Aayush Yadav 39f00c3335 Update client.html (#6617)
url synchronization with localStorage: Added url.value = localStorage.getItem('url') || '/api'; to sync the url field with localStorage.
Error Handling in Axios .catch(): Updated .catch() block to handle Axios errors correctly with err.response and err.message.
JSON Parsing in params, data, headers: Wrapped JSON.parse() with try-catch blocks to handle invalid JSON input errors.
Default URL Validation: Added a check to ensure a valid URL is provided.
Removed IE8 Compatibility Code: Removed the outdated code for Array.prototype.indexOf support.
Form Submission Prevention: Added event.preventDefault() to prevent form reload on submission.

Co-authored-by: Jay <jasonsaayman@gmail.com>
2024-11-08 11:50:23 +02:00
Ngole Lawson 7ccd5fd424 fix: fixed width form to not shrink after 'Send Request' button is clicked (#6644)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2024-11-08 11:39:10 +02:00
Christian Clauss 77b8f2fb86 Group all GitHub Actions updates into a single larger pull request (#6683)
Lots of individual upgrades are being ignored so unify them.
* https://github.com/axios/axios/pulls?q=is%3Aopen+is%3Apr+author%3Aapp%2Fdependabot+label%3Agithub_actions
* https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups

Co-authored-by: Jay <jasonsaayman@gmail.com>
2024-11-08 11:33:28 +02:00
Pavan Welihinda 12b32957f1 fix(http): fixed proxy-from-env module import (#5222)
Co-authored-by: Pavan Welihinda <pavan@babyjourney.se>
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2024-11-07 21:12:02 +02:00