axios 1.7.0-beta.2 → 1.7.0

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.

@@ -1,4 +1,4 @@
1
- // Axios v1.7.0-beta.2 Copyright (c) 2024 Matt Zabriskie and contributors
1
+ // Axios v1.7.0 Copyright (c) 2024 Matt Zabriskie and contributors
2
2
  'use strict';
3
3
 
4
4
  const FormData$1 = require('form-data');
@@ -2035,7 +2035,7 @@ function buildFullPath(baseURL, requestedURL) {
2035
2035
  return requestedURL;
2036
2036
  }
2037
2037
 
2038
- const VERSION = "1.7.0-beta.2";
2038
+ const VERSION = "1.7.0";
2039
2039
 
2040
2040
  function parseProtocol(url) {
2041
2041
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -3896,7 +3896,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
3896
3896
 
3897
3897
  let response = await fetch(request);
3898
3898
 
3899
- const isStreamResponse = responseType === 'stream' || responseType === 'response';
3899
+ const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
3900
3900
 
3901
3901
  if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {
3902
3902
  const options = {};