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

1615 Commits

Author SHA1 Message Date
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
github-actions[bot] fc6fa697fb chore(sponsor): update sponsor block (#6687)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-11-06 03:47:34 +02:00
Jay e4176368b1 docs: update README.md 2024-11-05 21:08:30 +02:00
Jay 1ebbb7b48b docs: update gold sponsors doc block 2024-11-05 21:01:42 +02:00
github-actions[bot] ddb8683381 chore(sponsor): update sponsor block (#6682)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-11-01 12:02:31 +02:00
Amit Saini 82f94556e5 updated interceptor use type definition to remove interceptor options parameter from use method for response interceptors (#5237)
* updated interceptor use type definition to remove interceptor options parameter from use method for response interceptors

* incorporated type changes to index.d.cts

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2024-10-31 16:01:37 +02:00
github-actions[bot] dbb56aaf96 chore(sponsor): update sponsor block (#6666)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2024-10-30 23:59:24 +02:00
Akki 5d99fe4491 fix(core): fixed config merging bug (#6668)
Co-authored-by: rana-aakash <aakash.rana@rooter.io>
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2024-10-30 23:39:55 +02:00
Jay 76dc3e6836 docs: add es6 example 2024-10-28 16:10:15 +02:00
github-actions[bot] cda671af81 chore(sponsor): update sponsor block (#6652)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-10-16 20:31:21 +03:00
Henco Appel 6841d8d18d fix(http): add support for File objects as payload in http adapter (#6588) (#6605)
Co-authored-by: Hendrik Appel <happel@europe.altair.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2024-10-13 20:43:40 +03:00
Jay 17cab9c296 chore: descope logo fix 2024-10-10 10:18:45 +02:00
Jay 070f11ba91 chore: readme (#6640) 2024-10-10 10:17:20 +02:00
Sampo Silvennoinen 023efb6f03 Add Node.js 22 to CI version matrix (#6633)
* CI: add Node.js 22, drop non-LTS 21

* CI: update actions versions 3 -> 4

Previous actions version showed deprecation warnings when run. Update them to V4
2024-10-07 11:58:50 +02:00
Jay c96aa6257f chore: remove IE logo; initialise dropping support for IE (#6619) 2024-09-29 13:13:14 +02:00
Taylor Flatt cc3217a612 fix: updated stream aborted error message to be more clear (#6615) 2024-09-28 13:04:22 +02:00
Ell Bradshaw 8f3cde11d2 Warn about common option misspellings (#6489)
* chore(tests): add failing tests for baseUrl

* chore(tests): simplify to just warning

* feat: warn about likely-misspelled options

* chore: add semi-colon

* chore: add missing semi-colons

---------

Co-authored-by: Ell Bradshaw <ell@c9a.co>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2024-09-26 21:31:24 +02:00
Haven 00de614cd0 fix(types): add missing types for mergeConfig function (#6590)
* add mergeConfig types

* Update index.d.ts

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2024-09-26 19:36:47 +02:00
Kenzo Wada 763895270f fix: ios11 breaks when build (#6608)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2024-09-26 19:28:35 +02:00
github-actions[bot] 6dbbda617b chore(sponsor): update sponsor block (#6606)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-09-24 17:16:56 +03:00
github-actions[bot] 1472163d37 chore(sponsor): update sponsor block (#6603)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-09-15 16:40:47 +03:00
github-actions[bot] 5b8a826771 chore(release): v1.7.7 (#6585)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-09-01 01:01:25 +03:00
Rishi556 364993f0d8 fix(http): fixed support for IPv6 literal strings in url (#5731) 2024-09-01 00:47:25 +03:00
Dmitriy Mozgovoy d1980854fe fix(fetch): fix stream handling in Safari by fallback to using a stream reader instead of an async iterator; (#6584) 2024-08-31 22:14:23 +03:00
github-actions[bot] d584fcfa62 chore(release): v1.7.6 (#6583)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-08-30 22:56:08 +03:00
kuroino721 bc03c6cbc4 chore(examples): fix module import (#6575) 2024-08-30 22:42:42 +03:00
Dmitriy Mozgovoy df9889b83c fix(fetch): optimize signals composing logic; (#6582) 2024-08-30 21:26:12 +03:00