2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +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", "name": "axios",
"main": "./dist/axios.js", "main": "./dist/axios.js",
"version": "0.20.0", "version": "0.21.0",
"homepage": "https://github.com/axios/axios", "homepage": "https://github.com/axios/axios",
"authors": [ "authors": [
"Matt Zabriskie" "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) { (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object') if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(); module.exports = factory();
@@ -571,7 +571,8 @@ return /******/ (function(modules) { // webpackBootstrap
Axios.prototype[method] = function(url, config) { Axios.prototype[method] = function(url, config) {
return this.request(mergeConfig(config || {}, { return this.request(mergeConfig(config || {}, {
method: method, 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 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(); var request = new XMLHttpRequest();
// HTTP basic authentication // HTTP basic authentication
if (config.auth) { if (config.auth) {
var username = config.auth.username || ''; 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); 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", "name": "axios",
"version": "0.20.0", "version": "0.21.0",
"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",
"scripts": { "scripts": {