2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Releasing v0.18.0

This commit is contained in:
Emily Morehouse
2018-02-19 16:23:58 -07:00
parent 48a790222c
commit d59c70fdfd
6 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "axios", "name": "axios",
"main": "./dist/axios.js", "main": "./dist/axios.js",
"version": "0.17.1", "version": "0.18.0",
"homepage": "https://github.com/axios/axios", "homepage": "https://github.com/axios/axios",
"authors": [ "authors": [
"Matt Zabriskie" "Matt Zabriskie"
+8 -6
View File
@@ -1,4 +1,4 @@
/* axios v0.17.1 | (c) 2017 by Matt Zabriskie */ /* axios v0.18.0 | (c) 2018 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();
@@ -448,7 +448,7 @@ return /******/ (function(modules) { // webpackBootstrap
/*! /*!
* Determine if an object is a Buffer * Determine if an object is a Buffer
* *
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @author Feross Aboukhadijeh <https://feross.org>
* @license MIT * @license MIT
*/ */
@@ -506,7 +506,7 @@ return /******/ (function(modules) { // webpackBootstrap
}, arguments[1]); }, arguments[1]);
} }
config = utils.merge(defaults, this.defaults, { method: 'get' }, config); config = utils.merge(defaults, {method: 'get'}, this.defaults, config);
config.method = config.method.toLowerCase(); config.method = config.method.toLowerCase();
// Hook up interceptors middleware // Hook up interceptors middleware
@@ -622,6 +622,10 @@ return /******/ (function(modules) { // webpackBootstrap
return data; return data;
}], }],
/**
* A timeout in milliseconds to abort a request. If set to 0 (default) a
* timeout is not created.
*/
timeout: 0, timeout: 0,
xsrfCookieName: 'XSRF-TOKEN', xsrfCookieName: 'XSRF-TOKEN',
@@ -985,9 +989,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (utils.isArray(val)) { if (utils.isArray(val)) {
key = key + '[]'; key = key + '[]';
} } else {
if (!utils.isArray(val)) {
val = [val]; val = [val];
} }
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -3
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.17.1", "version": "0.18.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": {