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
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
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
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
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
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
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
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
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]
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
Dmitriy Mozgovoy
df9889b83c
fix(fetch): optimize signals composing logic; ( #6582 )
2024-08-30 21:26:12 +03:00
Jacques Germishuys
085f56861a
fix(fetch): fix content length calculation for FormData payload; ( #6524 )
2024-08-25 20:38:10 +03:00
github-actions[bot]
59cd6b0dec
chore(release): v1.7.5 ( #6574 )
...
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com >
2024-08-23 16:31:50 +03:00
Dmitriy Mozgovoy
6700a8adac
fix(core): add the missed implementation of AxiosError#status property; ( #6573 )
2024-08-23 15:58:38 +03:00
Antonin Bas
7004707c41
fix(adapter): fix undefined reference to hasBrowserEnv ( #6572 )
2024-08-23 15:23:14 +03:00
Dmitriy Mozgovoy
fed1a4b2d7
fix(core): fix ReferenceError: navigator is not defined for custom environments; ( #6567 )
2024-08-23 15:16:42 +03:00
Hans Otto Wirtz
550d885eb9
fix(fetch): fix credentials handling in Cloudflare workers ( #6533 )
...
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com >
2024-08-20 15:23:32 +03:00
github-actions[bot]
abd24a7367
chore(release): v1.7.4 ( #6544 )
...
Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com >
2024-08-13 21:32:20 +02:00
Lev Pachmanov
6b6b605eaf
fix(sec): CVE-2024-39338 ( #6539 ) ( #6543 )
...
* fix(sec): cve-2024-39338 (#6539 )
* fix(sec): fix test
2024-08-13 20:43:05 +02:00
Đỗ Trọng Hải
07a661a2a6
fix(sec): disregard protocol-relative URL to remediate SSRF ( #6539 )
...
* fix(sec): disregard protocol-relative URL to remediate SSRF
Signed-off-by: hainenber <dotronghai96@gmail.com >
* feat(test/unit/regression): add regression test to ensure SNYK-JS-AXIOS-7361793 fixed in future version
Signed-off-by: hainenber <dotronghai96@gmail.com >
* chore: add EoF newline + comments
Signed-off-by: hainenber <dotronghai96@gmail.com >
* chore: fix eslint issues
Signed-off-by: hainenber <dotronghai96@gmail.com >
* Update SNYK-JS-AXIOS-7361793.js
Co-authored-by: tom-reinders <tom-reinders@users.noreply.github.com >
---------
Signed-off-by: hainenber <dotronghai96@gmail.com >
Co-authored-by: tom-reinders <tom-reinders@users.noreply.github.com >
2024-08-13 17:03:25 +02:00
github-actions[bot]
c6cce43cd9
chore(release): v1.7.3 ( #6521 )
...
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com >
2024-08-01 19:15:27 +03:00
Dmitriy Mozgovoy
e3c76fc9bd
fix(adapter): fix progress event emitting; ( #6518 )
2024-08-01 16:59:58 +03:00
prianYu
85d4d0ea0a
fix(fetch): fix withCredentials request config ( #6505 )
2024-08-01 15:26:06 +03:00
Valerii Sidorenko
8966ee7ea6
fix(xhr): return original config on errors from XHR adapter ( #6515 )
2024-07-30 21:38:22 +03:00
github-actions[bot]
0e4f9fa290
chore(release): v1.7.2 ( #6414 )
...
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com >
2024-05-21 19:57:14 +03:00
Dmitriy Mozgovoy
4f79aef81b
fix(fetch): enhance fetch API detection; ( #6413 )
2024-05-21 17:20:15 +03:00
github-actions[bot]
67d1373131
chore(release): v1.7.1 ( #6411 )
...
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com >
2024-05-20 16:31:57 +03:00
Dmitriy Mozgovoy
733f15fe5b
fix(fetch): fixed ReferenceError issue when TextEncoder is not available in the environment; ( #6410 )
2024-05-20 16:15:15 +03:00
github-actions[bot]
3041c61ada
[Release] v1.7.0 ( #6408 )
...
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com >
2024-05-19 23:24:05 +03:00
Dmitriy Mozgovoy
e62099bc8b
fix(fetch): fixed a possible memory leak in the AbortController for the stream response if the ReadableStream is not supported; ( #6406 )
2024-05-19 23:04:40 +03:00
github-actions[bot]
b49aa8e3d8
chore(release): v1.7.0-beta.2 ( #6403 )
...
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com >
2024-05-19 21:00:36 +03:00
Dmitriy Mozgovoy
870e0a76f6
fix(fetch): fix headers getting from a stream response; ( #6401 )
2024-05-19 01:40:21 +03:00
Dmitriy Mozgovoy
95a3e8e346
fix(fetch): fix & optimize progress capturing for cases when the request data has a nullish value or zero data length ( #6400 )
2024-05-18 18:16:42 +03:00
Dmitriy Mozgovoy
ad3174a351
fix(fetch): capitalize HTTP method names; ( #6395 )
2024-05-18 18:01:01 +03:00
github-actions[bot]
b9f4848f8c
chore(release): v1.7.0-beta.1 ( #6383 )
...
Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com >
2024-05-07 21:37:01 +03:00
Dmitriy Mozgovoy
bb5f9a5ab7
fix(fetch): treat fetch-related TypeError as an AxiosError.ERR_NETWORK error; ( #6380 )
2024-05-07 21:26:46 +03:00
Alexandre ABRIOUX
81e0455b7b
fix(core/axios): handle un-writable error stack ( #6362 )
...
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com >
2024-05-07 20:57:03 +03:00
Dmitriy Mozgovoy
d1d359da34
fix(fetch): fix cases when ReadableStream or Response.body are not available; ( #6377 )
2024-05-03 20:22:11 +03:00
github-actions[bot]
8e4314bfd6
chore(release): v1.7.0-beta.0 ( #6373 )
...
Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com >
2024-04-28 22:50:08 +03:00
Dmitriy Mozgovoy
a3ff99b59d
feat(adapter): add fetch adapter; ( #6371 )
2024-04-28 22:33:49 +03:00
github-actions[bot]
ab3f0f9a94
chore(release): v1.6.8 ( #6303 )
...
Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com >
2024-03-15 18:31:56 +02:00
Miroslav Petrov
2656612bc1
fix(AxiosHeaders): fix AxiosHeaders conversion to an object during config merging ( #6243 )
...
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com >
2024-03-15 18:10:18 +02:00