mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
chore(release): v1.7.2 (#6414)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4f79aef81b
commit
0e4f9fa290
@@ -1,5 +1,16 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.7.2](https://github.com/axios/axios/compare/v1.7.1...v1.7.2) (2024-05-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **fetch:** enhance fetch API detection; ([#6413](https://github.com/axios/axios/issues/6413)) ([4f79aef](https://github.com/axios/axios/commit/4f79aef81b7c4644328365bfc33acf0a9ef595bc))
|
||||||
|
|
||||||
|
### Contributors to this release
|
||||||
|
|
||||||
|
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+3/-3 (#6413 )")
|
||||||
|
|
||||||
## [1.7.1](https://github.com/axios/axios/compare/v1.7.0...v1.7.1) (2024-05-20)
|
## [1.7.1](https://github.com/axios/axios/compare/v1.7.0...v1.7.1) (2024-05-20)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"main": "./dist/axios.js",
|
"main": "./dist/axios.js",
|
||||||
"version": "1.7.1",
|
"version": "1.7.2",
|
||||||
"homepage": "https://axios-http.com",
|
"homepage": "https://axios-http.com",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Matt Zabriskie"
|
"Matt Zabriskie"
|
||||||
|
|||||||
Vendored
+5
-5
@@ -1,4 +1,4 @@
|
|||||||
// Axios v1.7.1 Copyright (c) 2024 Matt Zabriskie and contributors
|
// Axios v1.7.2 Copyright (c) 2024 Matt Zabriskie and contributors
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||||
typeof define === 'function' && define.amd ? define(factory) :
|
typeof define === 'function' && define.amd ? define(factory) :
|
||||||
@@ -3224,11 +3224,11 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
var isFetchSupported = typeof fetch !== 'undefined';
|
var isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
|
||||||
var isReadableStreamSupported = isFetchSupported && typeof ReadableStream !== 'undefined';
|
var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
|
||||||
|
|
||||||
// used only inside the fetch adapter
|
// used only inside the fetch adapter
|
||||||
var encodeText = isFetchSupported && (typeof TextEncoder !== 'undefined' ? function (encoder) {
|
var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? function (encoder) {
|
||||||
return function (str) {
|
return function (str) {
|
||||||
return encoder.encode(str);
|
return encoder.encode(str);
|
||||||
};
|
};
|
||||||
@@ -3586,7 +3586,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var VERSION = "1.7.1";
|
var VERSION = "1.7.2";
|
||||||
|
|
||||||
var validators$1 = {};
|
var validators$1 = {};
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+5
-5
@@ -1,4 +1,4 @@
|
|||||||
// Axios v1.7.1 Copyright (c) 2024 Matt Zabriskie and contributors
|
// Axios v1.7.2 Copyright (c) 2024 Matt Zabriskie and contributors
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function bind(fn, thisArg) {
|
function bind(fn, thisArg) {
|
||||||
@@ -2678,11 +2678,11 @@ const fetchProgressDecorator = (total, fn) => {
|
|||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
const isFetchSupported = typeof fetch !== 'undefined';
|
const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
|
||||||
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream !== 'undefined';
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
|
||||||
|
|
||||||
// used only inside the fetch adapter
|
// used only inside the fetch adapter
|
||||||
const encodeText = isFetchSupported && (typeof TextEncoder !== 'undefined' ?
|
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
||||||
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
||||||
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
||||||
);
|
);
|
||||||
@@ -3032,7 +3032,7 @@ function dispatchRequest(config) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const VERSION = "1.7.1";
|
const VERSION = "1.7.2";
|
||||||
|
|
||||||
const validators$1 = {};
|
const validators$1 = {};
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+5
-5
@@ -1,4 +1,4 @@
|
|||||||
// Axios v1.7.1 Copyright (c) 2024 Matt Zabriskie and contributors
|
// Axios v1.7.2 Copyright (c) 2024 Matt Zabriskie and contributors
|
||||||
function bind(fn, thisArg) {
|
function bind(fn, thisArg) {
|
||||||
return function wrap() {
|
return function wrap() {
|
||||||
return fn.apply(thisArg, arguments);
|
return fn.apply(thisArg, arguments);
|
||||||
@@ -2676,11 +2676,11 @@ const fetchProgressDecorator = (total, fn) => {
|
|||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
const isFetchSupported = typeof fetch !== 'undefined';
|
const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
|
||||||
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream !== 'undefined';
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
|
||||||
|
|
||||||
// used only inside the fetch adapter
|
// used only inside the fetch adapter
|
||||||
const encodeText = isFetchSupported && (typeof TextEncoder !== 'undefined' ?
|
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
||||||
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
||||||
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
||||||
);
|
);
|
||||||
@@ -3030,7 +3030,7 @@ function dispatchRequest(config) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const VERSION$1 = "1.7.1";
|
const VERSION$1 = "1.7.2";
|
||||||
|
|
||||||
const validators$1 = {};
|
const validators$1 = {};
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+5
-5
@@ -1,4 +1,4 @@
|
|||||||
// Axios v1.7.1 Copyright (c) 2024 Matt Zabriskie and contributors
|
// Axios v1.7.2 Copyright (c) 2024 Matt Zabriskie and contributors
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const FormData$1 = require('form-data');
|
const FormData$1 = require('form-data');
|
||||||
@@ -2035,7 +2035,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|||||||
return requestedURL;
|
return requestedURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
const VERSION = "1.7.1";
|
const VERSION = "1.7.2";
|
||||||
|
|
||||||
function parseProtocol(url) {
|
function parseProtocol(url) {
|
||||||
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
||||||
@@ -3747,11 +3747,11 @@ const fetchProgressDecorator = (total, fn) => {
|
|||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
const isFetchSupported = typeof fetch !== 'undefined';
|
const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
|
||||||
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream !== 'undefined';
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
|
||||||
|
|
||||||
// used only inside the fetch adapter
|
// used only inside the fetch adapter
|
||||||
const encodeText = isFetchSupported && (typeof TextEncoder !== 'undefined' ?
|
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
||||||
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
||||||
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
||||||
);
|
);
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
export const VERSION = "1.7.1";
|
export const VERSION = "1.7.2";
|
||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"version": "1.7.1",
|
"version": "1.7.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"version": "1.7.1",
|
"version": "1.7.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"follow-redirects": "^1.15.6",
|
"follow-redirects": "^1.15.6",
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"version": "1.7.1",
|
"version": "1.7.2",
|
||||||
"description": "Promise based HTTP client for the browser and node.js",
|
"description": "Promise based HTTP client for the browser and node.js",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -160,8 +160,8 @@
|
|||||||
"contributors": [
|
"contributors": [
|
||||||
"Matt Zabriskie (https://github.com/mzabriskie)",
|
"Matt Zabriskie (https://github.com/mzabriskie)",
|
||||||
"Nick Uraltsev (https://github.com/nickuraltsev)",
|
"Nick Uraltsev (https://github.com/nickuraltsev)",
|
||||||
"Jay (https://github.com/jasonsaayman)",
|
|
||||||
"Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
|
"Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
|
||||||
|
"Jay (https://github.com/jasonsaayman)",
|
||||||
"Emily Morehouse (https://github.com/emilyemorehouse)",
|
"Emily Morehouse (https://github.com/emilyemorehouse)",
|
||||||
"Rubén Norte (https://github.com/rubennorte)",
|
"Rubén Norte (https://github.com/rubennorte)",
|
||||||
"Justin Beckwith (https://github.com/JustinBeckwith)",
|
"Justin Beckwith (https://github.com/JustinBeckwith)",
|
||||||
|
|||||||
Reference in New Issue
Block a user