axios 1.6.2 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of axios might be problematic. Click here for more details.

package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.4](https://github.com/axios/axios/compare/v1.6.3...v1.6.4) (2024-01-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **security:** fixed formToJSON prototype pollution vulnerability; ([#6167](https://github.com/axios/axios/issues/6167)) ([3c0c11c](https://github.com/axios/axios/commit/3c0c11cade045c4412c242b5727308cff9897a0e))
9
+ * **security:** fixed security vulnerability in follow-redirects ([#6163](https://github.com/axios/axios/issues/6163)) ([75af1cd](https://github.com/axios/axios/commit/75af1cdff5b3a6ca3766d3d3afbc3115bb0811b8))
10
+
11
+ ### Contributors to this release
12
+
13
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+34/-6 ()")
14
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+34/-3 (#6172 #6167 )")
15
+ - <img src="https://avatars.githubusercontent.com/u/1402060?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Guy Nesher](https://github.com/gnesher "+10/-10 (#6163 )")
16
+
17
+ ## [1.6.3](https://github.com/axios/axios/compare/v1.6.2...v1.6.3) (2023-12-26)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * Regular Expression Denial of Service (ReDoS) ([#6132](https://github.com/axios/axios/issues/6132)) ([5e7ad38](https://github.com/axios/axios/commit/5e7ad38fb0f819fceb19fb2ee5d5d38f56aa837d))
23
+
24
+ ### Contributors to this release
25
+
26
+ - <img src="https://avatars.githubusercontent.com/u/4814473?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+15/-6 (#6145 )")
27
+ - <img src="https://avatars.githubusercontent.com/u/22686401?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Willian Agostini](https://github.com/WillianAgostini "+17/-2 (#6132 )")
28
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+3/-0 (#6084 )")
29
+
3
30
  ## [1.6.2](https://github.com/axios/axios/compare/v1.6.1...v1.6.2) (2023-11-14)
4
31
 
5
32
 
package/README.md CHANGED
@@ -1,8 +1,45 @@
1
- <h1 align="center">
2
- <b>
3
- <a href="https://axios-http.com"><img src="https://axios-http.com/assets/logo.svg" /></a><br>
4
- </b>
5
- </h1>
1
+ <h3 align="center">
2
+ Platinum sponsors
3
+ <br>
4
+ </h3>
5
+
6
+ <div align="center">
7
+ <a href="https://runalloy.com?utm_source=github&utm_medium=referral&utm_campaign=121423_axios">
8
+ <picture>
9
+ <source width="400px" media="(prefers-color-scheme: dark)" srcset="https://github.com/axios/axios/assets/4814473/f6067247-7eba-4069-852a-ab1bb85b1780">
10
+ <source width="400px" media="(prefers-color-scheme: light)" srcset="https://github.com/axios/axios/assets/4814473/75c37f4d-36e6-44f5-a068-3edd77c00a10">
11
+ <img width="400px" src="https://github.com/axios/axios/assets/4814473/75c37f4d-36e6-44f5-a068-3edd77c00a10" />
12
+ </picture>
13
+ </a>
14
+ <p>Alloy is the integration development platform that makes it simple and <br>fast for SaaS companies to launch critical user-facing integrations.</p>
15
+ <br><br>
16
+ </div>
17
+
18
+ <h3 align="center">
19
+ Gold sponsors
20
+ <br><br>
21
+ </h3>
22
+
23
+ <div align="center">
24
+ <a href="https://stytch.com?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=logo&utm_campaign=axios-http">
25
+ <picture>
26
+ <source width="200px" media="(prefers-color-scheme: dark)" srcset="https://github.com/axios/axios/assets/4814473/538d715a-13c7-4668-ae7d-37a4548423f4">
27
+ <source width="200px" media="(prefers-color-scheme: light)" srcset="https://github.com/axios/axios/assets/4814473/b6a9a7bc-9fb1-4b9b-909f-1b4bee1fd142">
28
+ <img width="200px" src="https://github.com/axios/axios/assets/4814473/b6a9a7bc-9fb1-4b9b-909f-1b4bee1fd142" />
29
+ </picture>
30
+ </a>
31
+ <p align="center">API-first authentication, authorization, and fraud prevention</p>
32
+ <p align="center">
33
+ <a href="https://stytch.com?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http"><b>Website</b></a> •
34
+ <a href="https://stytch.com/docs?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=docs-link&utm_campaign=axios-http"><b>Documentation</b></a> • <a href="https://github.com/stytchauth/stytch-node?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=node-sdk&utm_campaign=axios-http"><b>Node.js Backend SDK</b></a>
35
+ </p>
36
+ </div>
37
+
38
+
39
+ <br><br>
40
+ <div align="center">
41
+ <a href="https://axios-http.com"><img src="https://axios-http.com/assets/logo.svg" /></a><br>
42
+ </div>
6
43
 
7
44
  <p align="center">Promise based HTTP client for the browser and node.js</p>
8
45
 
package/dist/axios.js CHANGED
@@ -1,4 +1,4 @@
1
- // Axios v1.6.2 Copyright (c) 2023 Matt Zabriskie and contributors
1
+ // Axios v1.6.4 Copyright (c) 2024 Matt Zabriskie and contributors
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -1387,6 +1387,7 @@
1387
1387
  function formDataToJSON(formData) {
1388
1388
  function buildPath(path, value, target, index) {
1389
1389
  var name = path[index++];
1390
+ if (name === '__proto__') return true;
1390
1391
  var isNumericKey = Number.isFinite(+name);
1391
1392
  var isLast = index >= path.length;
1392
1393
  name = !name && utils$1.isArray(target) ? target.length : name;
@@ -1959,7 +1960,7 @@
1959
1960
  * @returns {string} The combined URL
1960
1961
  */
1961
1962
  function combineURLs(baseURL, relativeURL) {
1962
- return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
1963
+ return relativeURL ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
1963
1964
  }
1964
1965
 
1965
1966
  /**
@@ -2519,7 +2520,7 @@
2519
2520
  return config;
2520
2521
  }
2521
2522
 
2522
- var VERSION = "1.6.2";
2523
+ var VERSION = "1.6.4";
2523
2524
 
2524
2525
  var validators$1 = {};
2525
2526