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/dist/esm/axios.js CHANGED
@@ -1,6 +1,4 @@
1
- /*! Axios v1.8.0 Copyright (c) 2025 Matt Zabriskie and contributors */
2
- import crypto from 'crypto';
3
-
1
+ /*! Axios v1.8.1 Copyright (c) 2025 Matt Zabriskie and contributors */
4
2
  function bind(fn, thisArg) {
5
3
  return function wrap() {
6
4
  return fn.apply(thisArg, arguments);
@@ -607,28 +605,6 @@ const toFiniteNumber = (value, defaultValue) => {
607
605
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
608
606
  };
609
607
 
610
- const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
611
-
612
- const DIGIT = '0123456789';
613
-
614
- const ALPHABET = {
615
- DIGIT,
616
- ALPHA,
617
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
618
- };
619
-
620
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
621
- let str = '';
622
- const {length} = alphabet;
623
- const randomValues = new Uint32Array(size);
624
- crypto.randomFillSync(randomValues);
625
- for (let i = 0; i < size; i++) {
626
- str += alphabet[randomValues[i] % length];
627
- }
628
-
629
- return str;
630
- };
631
-
632
608
  /**
633
609
  * If the thing is a FormData object, return true, otherwise return false.
634
610
  *
@@ -756,8 +732,6 @@ const utils$1 = {
756
732
  findKey,
757
733
  global: _global,
758
734
  isContextDefined,
759
- ALPHABET,
760
- generateString,
761
735
  isSpecCompliantForm,
762
736
  toJSONObject,
763
737
  isAsyncFn,
@@ -3092,7 +3066,7 @@ function dispatchRequest(config) {
3092
3066
  });
3093
3067
  }
3094
3068
 
3095
- const VERSION$1 = "1.8.0";
3069
+ const VERSION$1 = "1.8.1";
3096
3070
 
3097
3071
  const validators$1 = {};
3098
3072