axios 1.8.0 β 1.8.2
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.
- package/CHANGELOG.md +22 -0
- package/README.md +2 -2
- package/dist/axios.js +6 -31
- package/dist/axios.js.map +1 -1
- package/dist/axios.min.js +2 -2
- package/dist/axios.min.js.map +1 -1
- package/dist/browser/axios.cjs +2 -32
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +2 -28
- package/dist/esm/axios.js.map +1 -1
- package/dist/esm/axios.min.js +2 -2
- package/dist/esm/axios.min.js.map +1 -1
- package/dist/node/axios.cjs +32 -31
- package/dist/node/axios.cjs.map +1 -1
- package/lib/adapters/http.js +1 -1
- package/lib/env/data.js +1 -1
- package/lib/helpers/formDataToStream.js +3 -2
- package/lib/platform/node/index.js +26 -0
- package/lib/utils.js +0 -25
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.8.2](https://github.com/axios/axios/compare/v1.8.1...v1.8.2) (2025-03-07)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* **http-adapter:** add allowAbsoluteUrls to path building ([#6810](https://github.com/axios/axios/issues/6810)) ([fb8eec2](https://github.com/axios/axios/commit/fb8eec214ce7744b5ca787f2c3b8339b2f54b00f))
|
9
|
+
|
10
|
+
### Contributors to this release
|
11
|
+
|
12
|
+
- <img src="https://avatars.githubusercontent.com/u/14166260?v=4&s=18" alt="avatar" width="18"/> [Fasoro-Joseph Alexander](https://github.com/lexcorp16 "+1/-1 (#6810 )")
|
13
|
+
|
14
|
+
## [1.8.1](https://github.com/axios/axios/compare/v1.8.0...v1.8.1) (2025-02-26)
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* **utils:** move `generateString` to platform utils to avoid importing crypto module into client builds; ([#6789](https://github.com/axios/axios/issues/6789)) ([36a5a62](https://github.com/axios/axios/commit/36a5a620bec0b181451927f13ac85b9888b86cec))
|
20
|
+
|
21
|
+
### Contributors to this release
|
22
|
+
|
23
|
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+51/-47 (#6789 )")
|
24
|
+
|
3
25
|
# [1.8.0](https://github.com/axios/axios/compare/v1.7.9...v1.8.0) (2025-02-25)
|
4
26
|
|
5
27
|
|
package/README.md
CHANGED
@@ -6,9 +6,9 @@
|
|
6
6
|
</td><td align="center" width="33.333333333333336%"> <a href="https://www.famety.com/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/famety-buy-instagram-followers.png" alt="Famety - Buy Instagram Followers"/> </a> <p align="center" title="At Famety, you can grow your social media following quickly, safely, and easily with just a few clicks. Rated the worldβs #1 social media service since 2013.">At Famety, you can grow your social media following quickly, safely, and easily with just a few clic...</p> <p align="center"> <a href="https://www.famety.com/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>www.famety.com</b></a> </p>
|
7
7
|
</td><td align="center" width="33.333333333333336%"> <a href="https://poprey.com/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/instagram-likes.png" alt="Poprey - Buy Instagram Likes"/> </a> <p align="center" title="Buy Instagram Likes">Buy Instagram Likes</p> <p align="center"> <a href="https://poprey.com/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>poprey.com</b></a> </p>
|
8
8
|
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://musicza.co.za/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="124px" height="52px" src="https://axios-http.com/assets/sponsors/opencollective/musicza.png" alt="Tubidy"/> </a> <p align="center" title="Tubidy: Free Music and Video Downloads | MP3, MP4">Tubidy: Free Music and Video Downloads | MP3, MP4</p> <p align="center"> <a href="https://musicza.co.za/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>musicza.co.za</b></a> </p>
|
9
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://www.linkedin.com/pulse/7-best-sites-buy-instagram-followers-2024-100-non-drop-arvinder-singh-u6goc/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="63px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/bestsitesbuyinstagramfollowers.png" alt="Buy Instagram Followers"/> </a> <p align="center" title="Ookfy is the best place to buy Instagram followers, likes & views. You can buy Real & Non-Drop Instagram followers from Ookfy.">Ookfy is the best place to buy Instagram followers, likes & views. You can buy Real & Non-Dr...</p> <p align="center"> <a href="https://www.linkedin.com/pulse/7-best-sites-buy-instagram-followers-2024-100-non-drop-arvinder-singh-u6goc/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>www.linkedin.com</b></a> </p>
|
10
9
|
</td><td align="center" width="33.333333333333336%"> <a href="https://ssmarket.net/buy-youtube-subscribers?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/youtube-subscribers-ssmarket.png" alt="Buy Youtube Subscribers"/> </a> <p align="center" title="SS Market offers professional social media services that rapidly increase your YouTube subscriber count, elevating your channel to a powerful position.">SS Market offers professional social media services that rapidly increase your YouTube subscriber co...</p> <p align="center"> <a href="https://ssmarket.net/buy-youtube-subscribers?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>ssmarket.net</b></a> </p>
|
11
|
-
</td
|
10
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://twicsy.com/buy-instagram-followers?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="85px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/buy-instagram-followers-twicsy.png" alt="Buy Instagram Followers Twicsy"/> </a> <p align="center" title="Buy real Instagram followers from Twicsy starting at only $2.97. Twicsy has been voted the best site to buy followers from the likes of US Magazine.">Buy real Instagram followers from Twicsy starting at only $2.97. Twicsy has been voted the best site...</p> <p align="center"> <a href="https://twicsy.com/buy-instagram-followers?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>twicsy.com</b></a> </p>
|
11
|
+
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute">π Become a sponsor</a>
|
12
12
|
</td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute">π Become a sponsor</a>
|
13
13
|
</td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute">π Become a sponsor</a>
|
14
14
|
</td></tr></table>
|
package/dist/axios.js
CHANGED
@@ -1,13 +1,9 @@
|
|
1
|
-
/*! Axios v1.8.
|
1
|
+
/*! Axios v1.8.2 Copyright (c) 2025 Matt Zabriskie and contributors */
|
2
2
|
(function (global, factory) {
|
3
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(
|
4
|
-
typeof define === 'function' && define.amd ? define(
|
5
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.axios = factory(
|
6
|
-
})(this, (function (
|
7
|
-
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
9
|
-
|
10
|
-
var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
|
3
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
4
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
5
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.axios = factory());
|
6
|
+
})(this, (function () { 'use strict';
|
11
7
|
|
12
8
|
function _AsyncGenerator(e) {
|
13
9
|
var r, t;
|
@@ -1270,25 +1266,6 @@
|
|
1270
1266
|
var toFiniteNumber = function toFiniteNumber(value, defaultValue) {
|
1271
1267
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
1272
1268
|
};
|
1273
|
-
var ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
1274
|
-
var DIGIT = '0123456789';
|
1275
|
-
var ALPHABET = {
|
1276
|
-
DIGIT: DIGIT,
|
1277
|
-
ALPHA: ALPHA,
|
1278
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
1279
|
-
};
|
1280
|
-
var generateString = function generateString() {
|
1281
|
-
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 16;
|
1282
|
-
var alphabet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ALPHABET.ALPHA_DIGIT;
|
1283
|
-
var str = '';
|
1284
|
-
var length = alphabet.length;
|
1285
|
-
var randomValues = new Uint32Array(size);
|
1286
|
-
crypto__default["default"].randomFillSync(randomValues);
|
1287
|
-
for (var i = 0; i < size; i++) {
|
1288
|
-
str += alphabet[randomValues[i] % length];
|
1289
|
-
}
|
1290
|
-
return str;
|
1291
|
-
};
|
1292
1269
|
|
1293
1270
|
/**
|
1294
1271
|
* If the thing is a FormData object, return true, otherwise return false.
|
@@ -1405,8 +1382,6 @@
|
|
1405
1382
|
findKey: findKey,
|
1406
1383
|
global: _global,
|
1407
1384
|
isContextDefined: isContextDefined,
|
1408
|
-
ALPHABET: ALPHABET,
|
1409
|
-
generateString: generateString,
|
1410
1385
|
isSpecCompliantForm: isSpecCompliantForm,
|
1411
1386
|
toJSONObject: toJSONObject,
|
1412
1387
|
isAsyncFn: isAsyncFn,
|
@@ -3683,7 +3658,7 @@
|
|
3683
3658
|
});
|
3684
3659
|
}
|
3685
3660
|
|
3686
|
-
var VERSION = "1.8.
|
3661
|
+
var VERSION = "1.8.2";
|
3687
3662
|
|
3688
3663
|
var validators$1 = {};
|
3689
3664
|
|