2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

chore(release): v1.3.6 (#5666)

Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-04-19 22:37:45 +03:00
committed by GitHub
parent 1b8cc3b02b
commit 59eb991835
17 changed files with 66 additions and 39 deletions
+13
View File
@@ -1,5 +1,18 @@
# Changelog
## [1.3.6](https://github.com/axios/axios/compare/v1.3.5...v1.3.6) (2023-04-19)
### Bug Fixes
* **types:** added transport to RawAxiosRequestConfig ([#5445](https://github.com/axios/axios/issues/5445)) ([6f360a2](https://github.com/axios/axios/commit/6f360a2531d8d70363fd9becef6a45a323f170e2))
* **utils:** make isFormData detection logic stricter to avoid unnecessary calling of the `toString` method on the target; ([#5661](https://github.com/axios/axios/issues/5661)) ([aa372f7](https://github.com/axios/axios/commit/aa372f7306295dfd1100c1c2c77ce95c95808e76))
### Contributors to this release
- <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 "+48/-10 (#5665 #5661 #5663 )")
- <img src="https://avatars.githubusercontent.com/u/5492927?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+2/-0 (#5445 )")
## [1.3.5](https://github.com/axios/axios/compare/v1.3.4...v1.3.5) (2023-04-05)
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "axios",
"main": "./dist/axios.js",
"version": "1.3.5",
"version": "1.3.6",
"homepage": "https://axios-http.com",
"authors": [
"Matt Zabriskie"
+6 -4
View File
@@ -1,4 +1,4 @@
// Axios v1.3.5 Copyright (c) 2023 Matt Zabriskie and contributors
// Axios v1.3.6 Copyright (c) 2023 Matt Zabriskie and contributors
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
@@ -283,8 +283,10 @@
* @returns {boolean} True if value is an FormData, otherwise false
*/
var isFormData = function isFormData(thing) {
var pattern = '[object FormData]';
return thing && (typeof FormData === 'function' && thing instanceof FormData || toString.call(thing) === pattern || isFunction(thing.toString) && thing.toString() === pattern);
var kind;
return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === 'formdata' ||
// detect form-data instance
kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]'));
};
/**
@@ -2428,7 +2430,7 @@
return config;
}
var VERSION = "1.3.5";
var VERSION = "1.3.6";
var validators$1 = {};
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+11 -7
View File
@@ -1,4 +1,4 @@
// Axios v1.3.5 Copyright (c) 2023 Matt Zabriskie and contributors
// Axios v1.3.6 Copyright (c) 2023 Matt Zabriskie and contributors
'use strict';
function bind(fn, thisArg) {
@@ -193,12 +193,16 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
* @returns {boolean} True if value is an FormData, otherwise false
*/
const isFormData = (thing) => {
const pattern = '[object FormData]';
let kind;
return thing && (
(typeof FormData === 'function' && thing instanceof FormData) ||
toString.call(thing) === pattern ||
(isFunction(thing.toString) && thing.toString() === pattern)
);
(typeof FormData === 'function' && thing instanceof FormData) || (
isFunction(thing.append) && (
(kind = kindOf(thing)) === 'formdata' ||
// detect form-data instance
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
)
)
)
};
/**
@@ -2616,7 +2620,7 @@ function mergeConfig(config1, config2) {
return config;
}
const VERSION = "1.3.5";
const VERSION = "1.3.6";
const validators$1 = {};
+1 -1
View File
File diff suppressed because one or more lines are too long
+11 -7
View File
@@ -1,4 +1,4 @@
// Axios v1.3.5 Copyright (c) 2023 Matt Zabriskie and contributors
// Axios v1.3.6 Copyright (c) 2023 Matt Zabriskie and contributors
function bind(fn, thisArg) {
return function wrap() {
return fn.apply(thisArg, arguments);
@@ -191,12 +191,16 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
* @returns {boolean} True if value is an FormData, otherwise false
*/
const isFormData = (thing) => {
const pattern = '[object FormData]';
let kind;
return thing && (
(typeof FormData === 'function' && thing instanceof FormData) ||
toString.call(thing) === pattern ||
(isFunction(thing.toString) && thing.toString() === pattern)
);
(typeof FormData === 'function' && thing instanceof FormData) || (
isFunction(thing.append) && (
(kind = kindOf(thing)) === 'formdata' ||
// detect form-data instance
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
)
)
)
};
/**
@@ -2614,7 +2618,7 @@ function mergeConfig$1(config1, config2) {
return config;
}
const VERSION$1 = "1.3.5";
const VERSION$1 = "1.3.6";
const validators$1 = {};
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+11 -7
View File
@@ -1,4 +1,4 @@
// Axios v1.3.5 Copyright (c) 2023 Matt Zabriskie and contributors
// Axios v1.3.6 Copyright (c) 2023 Matt Zabriskie and contributors
'use strict';
const FormData$1 = require('form-data');
@@ -216,12 +216,16 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
* @returns {boolean} True if value is an FormData, otherwise false
*/
const isFormData = (thing) => {
const pattern = '[object FormData]';
let kind;
return thing && (
(typeof FormData === 'function' && thing instanceof FormData) ||
toString.call(thing) === pattern ||
(isFunction(thing.toString) && thing.toString() === pattern)
);
(typeof FormData === 'function' && thing instanceof FormData) || (
isFunction(thing.append) && (
(kind = kindOf(thing)) === 'formdata' ||
// detect form-data instance
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
)
)
)
};
/**
@@ -1950,7 +1954,7 @@ function buildFullPath(baseURL, requestedURL) {
return requestedURL;
}
const VERSION = "1.3.5";
const VERSION = "1.3.6";
function parseProtocol(url) {
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
export const VERSION = "1.3.5";
export const VERSION = "1.3.6";
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "axios",
"version": "1.3.5",
"version": "1.3.6",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "axios",
"version": "1.3.5",
"version": "1.3.6",
"license": "MIT",
"dependencies": {
"follow-redirects": "^1.15.0",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "axios",
"version": "1.3.5",
"version": "1.3.6",
"description": "Promise based HTTP client for the browser and node.js",
"main": "index.js",
"exports": {
@@ -203,4 +203,4 @@
"@commitlint/config-conventional"
]
}
}
}