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 +11 -0
- 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 +31 -30
- package/dist/node/axios.cjs.map +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/dist/esm/axios.js
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
/*! Axios v1.8.
|
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.
|
3069
|
+
const VERSION$1 = "1.8.1";
|
3096
3070
|
|
3097
3071
|
const validators$1 = {};
|
3098
3072
|
|