axios 1.8.0 → 1.8.1

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,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.1](https://github.com/axios/axios/compare/v1.8.0...v1.8.1) (2025-02-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **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))
9
+
10
+ ### Contributors to this release
11
+
12
+ - <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 "+51/-47 (#6789 )")
13
+
3
14
  # [1.8.0](https://github.com/axios/axios/compare/v1.7.9...v1.8.0) (2025-02-25)
4
15
 
5
16
 
package/dist/axios.js CHANGED
@@ -1,13 +1,9 @@
1
- /*! Axios v1.8.0 Copyright (c) 2025 Matt Zabriskie and contributors */
1
+ /*! Axios v1.8.1 Copyright (c) 2025 Matt Zabriskie and contributors */
2
2
  (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('crypto')) :
4
- typeof define === 'function' && define.amd ? define(['crypto'], factory) :
5
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.axios = factory(global.crypto));
6
- })(this, (function (crypto) { 'use strict';
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.0";
3661
+ var VERSION = "1.8.1";
3687
3662
 
3688
3663
  var validators$1 = {};
3689
3664