2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

Releasing 0.21.0

This commit is contained in:
Emily Morehouse
2020-10-23 10:26:35 -06:00
parent 2130a0c8ac
commit 94ca24b5b2
6 changed files with 10 additions and 16 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "axios",
"main": "./dist/axios.js",
"version": "0.20.0",
"version": "0.21.0",
"homepage": "https://github.com/axios/axios",
"authors": [
"Matt Zabriskie"
+4 -10
View File
@@ -1,4 +1,4 @@
/* axios v0.20.0 | (c) 2020 by Matt Zabriskie */
/* axios v0.21.0 | (c) 2020 by Matt Zabriskie */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
@@ -571,7 +571,8 @@ return /******/ (function(modules) { // webpackBootstrap
Axios.prototype[method] = function(url, config) {
return this.request(mergeConfig(config || {}, {
method: method,
url: url
url: url,
data: (config || {}).data
}));
};
});
@@ -992,19 +993,12 @@ return /******/ (function(modules) { // webpackBootstrap
delete requestHeaders['Content-Type']; // Let the browser set it
}
if (
(utils.isBlob(requestData) || utils.isFile(requestData)) &&
requestData.type
) {
delete requestHeaders['Content-Type']; // Let the browser set it
}
var request = new XMLHttpRequest();
// HTTP basic authentication
if (config.auth) {
var username = config.auth.username || '';
var password = unescape(encodeURIComponent(config.auth.password)) || '';
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
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
@@ -1,6 +1,6 @@
{
"name": "axios",
"version": "0.20.0",
"version": "0.21.0",
"description": "Promise based HTTP client for the browser and node.js",
"main": "index.js",
"scripts": {