axios 1.7.1 → 1.7.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.

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.7.2](https://github.com/axios/axios/compare/v1.7.1...v1.7.2) (2024-05-21)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **fetch:** enhance fetch API detection; ([#6413](https://github.com/axios/axios/issues/6413)) ([4f79aef](https://github.com/axios/axios/commit/4f79aef81b7c4644328365bfc33acf0a9ef595bc))
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 "+3/-3 (#6413 )")
13
+
3
14
  ## [1.7.1](https://github.com/axios/axios/compare/v1.7.0...v1.7.1) (2024-05-20)
4
15
 
5
16
 
package/dist/axios.js CHANGED
@@ -1,4 +1,4 @@
1
- // Axios v1.7.1 Copyright (c) 2024 Matt Zabriskie and contributors
1
+ // Axios v1.7.2 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) :
@@ -3224,11 +3224,11 @@
3224
3224
  });
3225
3225
  };
3226
3226
  };
3227
- var isFetchSupported = typeof fetch !== 'undefined';
3228
- var isReadableStreamSupported = isFetchSupported && typeof ReadableStream !== 'undefined';
3227
+ var isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
3228
+ var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
3229
3229
 
3230
3230
  // used only inside the fetch adapter
3231
- var encodeText = isFetchSupported && (typeof TextEncoder !== 'undefined' ? function (encoder) {
3231
+ var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? function (encoder) {
3232
3232
  return function (str) {
3233
3233
  return encoder.encode(str);
3234
3234
  };
@@ -3586,7 +3586,7 @@
3586
3586
  });
3587
3587
  }
3588
3588
 
3589
- var VERSION = "1.7.1";
3589
+ var VERSION = "1.7.2";
3590
3590
 
3591
3591
  var validators$1 = {};
3592
3592