mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Releasing 0.4.2
This commit is contained in:
@@ -39,3 +39,10 @@
|
|||||||
### 0.4.1 (Oct 15, 2014)
|
### 0.4.1 (Oct 15, 2014)
|
||||||
|
|
||||||
- Adding error handling to request for node.js ([#18](https://github.com/mzabriskie/axios/issues/18))
|
- Adding error handling to request for node.js ([#18](https://github.com/mzabriskie/axios/issues/18))
|
||||||
|
|
||||||
|
### 0.4.2 (Dec 10, 2014)
|
||||||
|
|
||||||
|
- Fixing issue with `Content-Type` when using `FormData` ([#22](https://github.com/mzabriskie/axios/issues/22))
|
||||||
|
- Adding support for TypeScript ([#25](https://github.com/mzabriskie/axios/issues/25))
|
||||||
|
- Fixing issue with standalone build ([#29](https://github.com/mzabriskie/axios/issues/29))
|
||||||
|
- Fixing issue with verbs needing to be capitalized in some browsers ([#30](https://github.com/mzabriskie/axios/issues/30))
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"main": "./dist/axios.js",
|
"main": "./dist/axios.js",
|
||||||
"version": "0.4.1",
|
"version": "0.4.2",
|
||||||
"homepage": "https://github.com/mzabriskie/axios",
|
"homepage": "https://github.com/mzabriskie/axios",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Matt Zabriskie"
|
"Matt Zabriskie"
|
||||||
|
|||||||
Vendored
+66
-14
@@ -65,20 +65,22 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
// Don't allow overriding defaults.withCredentials
|
// Don't allow overriding defaults.withCredentials
|
||||||
config.withCredentials = config.withCredentials || defaults.withCredentials;
|
config.withCredentials = config.withCredentials || defaults.withCredentials;
|
||||||
|
|
||||||
var promise = new Promise(function (resolve, reject) {
|
var serverRequest = function (config) {
|
||||||
try {
|
return new Promise(function (resolve, reject) {
|
||||||
// For browsers use XHR adapter
|
try {
|
||||||
if (typeof window !== 'undefined') {
|
// For browsers use XHR adapter
|
||||||
__webpack_require__(5)(resolve, reject, config);
|
if (typeof window !== 'undefined') {
|
||||||
|
__webpack_require__(5)(resolve, reject, config);
|
||||||
|
}
|
||||||
|
// For node use HTTP adapter
|
||||||
|
else if (typeof process !== 'undefined') {
|
||||||
|
__webpack_require__(2)(resolve, reject, config);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
reject(e);
|
||||||
}
|
}
|
||||||
// For node use HTTP adapter
|
});
|
||||||
else if (typeof process !== 'undefined') {
|
};
|
||||||
__webpack_require__(2)(resolve, reject, config);
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
reject(e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function deprecatedMethod(method, instead, docs) {
|
function deprecatedMethod(method, instead, docs) {
|
||||||
try {
|
try {
|
||||||
@@ -93,6 +95,24 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var chain = [serverRequest, undefined];
|
||||||
|
var promise = Promise.resolve(config);
|
||||||
|
|
||||||
|
utils.forEach(axios.interceptors.request.handlers, function (interceptor) {
|
||||||
|
chain.unshift(interceptor.request, interceptor.requestError);
|
||||||
|
});
|
||||||
|
|
||||||
|
utils.forEach(axios.interceptors.response.handlers, function (interceptor) {
|
||||||
|
chain.push(interceptor.response, interceptor.responseError);
|
||||||
|
});
|
||||||
|
|
||||||
|
while (chain.length) {
|
||||||
|
var thenFn = chain.shift();
|
||||||
|
var rejectFn = chain.shift();
|
||||||
|
|
||||||
|
promise = promise.then(thenFn, rejectFn);
|
||||||
|
}
|
||||||
|
|
||||||
// Provide alias for success
|
// Provide alias for success
|
||||||
promise.success = function success(fn) {
|
promise.success = function success(fn) {
|
||||||
deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');
|
deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');
|
||||||
@@ -125,6 +145,22 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
axios.spread = __webpack_require__(6);
|
axios.spread = __webpack_require__(6);
|
||||||
|
|
||||||
|
// interceptors
|
||||||
|
axios.interceptors = {
|
||||||
|
request: {
|
||||||
|
handlers: [],
|
||||||
|
use: function (thenFn, rejectFn) {
|
||||||
|
axios.interceptors.request.handlers.push({ request: thenFn, requestError: rejectFn });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
response: {
|
||||||
|
handlers: [],
|
||||||
|
use: function (thenFn, rejectFn) {
|
||||||
|
axios.interceptors.response.handlers.push({ response: thenFn, responseError: rejectFn });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Provide aliases for supported request methods
|
// Provide aliases for supported request methods
|
||||||
createShortMethods('delete', 'get', 'head');
|
createShortMethods('delete', 'get', 'head');
|
||||||
createShortMethodsWithData('post', 'put', 'patch');
|
createShortMethodsWithData('post', 'put', 'patch');
|
||||||
@@ -151,6 +187,7 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
@@ -244,6 +281,16 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
return toString.call(val) === '[object ArrayBuffer]';
|
return toString.call(val) === '[object ArrayBuffer]';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine if a value is a FormData
|
||||||
|
*
|
||||||
|
* @param {Object} val The value to test
|
||||||
|
* @returns {boolean} True if value is an FormData, otherwise false
|
||||||
|
*/
|
||||||
|
function isFormData(val) {
|
||||||
|
return toString.call(val) === '[object FormData]';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if a value is a view on an ArrayBuffer
|
* Determine if a value is a view on an ArrayBuffer
|
||||||
*
|
*
|
||||||
@@ -410,6 +457,7 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
isArray: isArray,
|
isArray: isArray,
|
||||||
isArrayBuffer: isArrayBuffer,
|
isArrayBuffer: isArrayBuffer,
|
||||||
|
isFormData: isFormData,
|
||||||
isArrayBufferView: isArrayBufferView,
|
isArrayBufferView: isArrayBufferView,
|
||||||
isString: isString,
|
isString: isString,
|
||||||
isNumber: isNumber,
|
isNumber: isNumber,
|
||||||
@@ -450,9 +498,13 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
config.headers || {}
|
config.headers || {}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (utils.isFormData(data)) {
|
||||||
|
delete headers['Content-Type']; // Let the browser set it
|
||||||
|
}
|
||||||
|
|
||||||
// Create the request
|
// Create the request
|
||||||
var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');
|
var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');
|
||||||
request.open(config.method, buildUrl(config.url, config.params), true);
|
request.open(config.method.toUpperCase(), buildUrl(config.url, config.params), true);
|
||||||
|
|
||||||
// Listen for ready state
|
// Listen for ready state
|
||||||
request.onreadystatechange = function () {
|
request.onreadystatechange = function () {
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
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
+101
-42
@@ -1,4 +1,4 @@
|
|||||||
define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return /******/ (function(modules) { // webpackBootstrap
|
define("axios", ["{Promise: Promise}","undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__) { return /******/ (function(modules) { // webpackBootstrap
|
||||||
/******/ // The module cache
|
/******/ // The module cache
|
||||||
/******/ var installedModules = {};
|
/******/ var installedModules = {};
|
||||||
/******/
|
/******/
|
||||||
@@ -51,8 +51,8 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(2).Promise;
|
/* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(2).Promise;
|
||||||
var defaults = __webpack_require__(3);
|
var defaults = __webpack_require__(4);
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
var axios = module.exports = function axios(config) {
|
var axios = module.exports = function axios(config) {
|
||||||
config = utils.merge({
|
config = utils.merge({
|
||||||
@@ -65,20 +65,22 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
// Don't allow overriding defaults.withCredentials
|
// Don't allow overriding defaults.withCredentials
|
||||||
config.withCredentials = config.withCredentials || defaults.withCredentials;
|
config.withCredentials = config.withCredentials || defaults.withCredentials;
|
||||||
|
|
||||||
var promise = new Promise(function (resolve, reject) {
|
var serverRequest = function (config) {
|
||||||
try {
|
return new Promise(function (resolve, reject) {
|
||||||
// For browsers use XHR adapter
|
try {
|
||||||
if (typeof window !== 'undefined') {
|
// For browsers use XHR adapter
|
||||||
__webpack_require__(5)(resolve, reject, config);
|
if (typeof window !== 'undefined') {
|
||||||
|
__webpack_require__(6)(resolve, reject, config);
|
||||||
|
}
|
||||||
|
// For node use HTTP adapter
|
||||||
|
else if (typeof process !== 'undefined') {
|
||||||
|
__webpack_require__(3)(resolve, reject, config);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
reject(e);
|
||||||
}
|
}
|
||||||
// For node use HTTP adapter
|
});
|
||||||
else if (typeof process !== 'undefined') {
|
};
|
||||||
__webpack_require__(2)(resolve, reject, config);
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
reject(e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function deprecatedMethod(method, instead, docs) {
|
function deprecatedMethod(method, instead, docs) {
|
||||||
try {
|
try {
|
||||||
@@ -93,6 +95,24 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var chain = [serverRequest, undefined];
|
||||||
|
var promise = Promise.resolve(config);
|
||||||
|
|
||||||
|
utils.forEach(axios.interceptors.request.handlers, function (interceptor) {
|
||||||
|
chain.unshift(interceptor.request, interceptor.requestError);
|
||||||
|
});
|
||||||
|
|
||||||
|
utils.forEach(axios.interceptors.response.handlers, function (interceptor) {
|
||||||
|
chain.push(interceptor.response, interceptor.responseError);
|
||||||
|
});
|
||||||
|
|
||||||
|
while (chain.length) {
|
||||||
|
var thenFn = chain.shift();
|
||||||
|
var rejectFn = chain.shift();
|
||||||
|
|
||||||
|
promise = promise.then(thenFn, rejectFn);
|
||||||
|
}
|
||||||
|
|
||||||
// Provide alias for success
|
// Provide alias for success
|
||||||
promise.success = function success(fn) {
|
promise.success = function success(fn) {
|
||||||
deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');
|
deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');
|
||||||
@@ -123,7 +143,23 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
axios.all = function (promises) {
|
axios.all = function (promises) {
|
||||||
return Promise.all(promises);
|
return Promise.all(promises);
|
||||||
};
|
};
|
||||||
axios.spread = __webpack_require__(6);
|
axios.spread = __webpack_require__(7);
|
||||||
|
|
||||||
|
// interceptors
|
||||||
|
axios.interceptors = {
|
||||||
|
request: {
|
||||||
|
handlers: [],
|
||||||
|
use: function (thenFn, rejectFn) {
|
||||||
|
axios.interceptors.request.handlers.push({ request: thenFn, requestError: rejectFn });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
response: {
|
||||||
|
handlers: [],
|
||||||
|
use: function (thenFn, rejectFn) {
|
||||||
|
axios.interceptors.response.handlers.push({ response: thenFn, responseError: rejectFn });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Provide aliases for supported request methods
|
// Provide aliases for supported request methods
|
||||||
createShortMethods('delete', 'get', 'head');
|
createShortMethods('delete', 'get', 'head');
|
||||||
@@ -151,21 +187,29 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))
|
|
||||||
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8)))
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 2 */
|
/* 2 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
module.exports = undefined;
|
module.exports = __WEBPACK_EXTERNAL_MODULE_2__;
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 3 */
|
/* 3 */
|
||||||
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
if(typeof undefined === 'undefined') {var e = new Error("Cannot find module \"undefined\""); e.code = 'MODULE_NOT_FOUND'; throw e;}
|
||||||
|
module.exports = undefined;
|
||||||
|
|
||||||
|
/***/ },
|
||||||
|
/* 4 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
var JSON_START = /^\s*(\[|\{[^\{])/;
|
var JSON_START = /^\s*(\[|\{[^\{])/;
|
||||||
var JSON_END = /[\}\]]\s*$/;
|
var JSON_END = /[\}\]]\s*$/;
|
||||||
@@ -216,7 +260,7 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 4 */
|
/* 5 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
// utils is a library of generic helper functions non-specific to axios
|
// utils is a library of generic helper functions non-specific to axios
|
||||||
@@ -243,6 +287,16 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
return toString.call(val) === '[object ArrayBuffer]';
|
return toString.call(val) === '[object ArrayBuffer]';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine if a value is a FormData
|
||||||
|
*
|
||||||
|
* @param {Object} val The value to test
|
||||||
|
* @returns {boolean} True if value is an FormData, otherwise false
|
||||||
|
*/
|
||||||
|
function isFormData(val) {
|
||||||
|
return toString.call(val) === '[object FormData]';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if a value is a view on an ArrayBuffer
|
* Determine if a value is a view on an ArrayBuffer
|
||||||
*
|
*
|
||||||
@@ -409,6 +463,7 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
isArray: isArray,
|
isArray: isArray,
|
||||||
isArrayBuffer: isArrayBuffer,
|
isArrayBuffer: isArrayBuffer,
|
||||||
|
isFormData: isFormData,
|
||||||
isArrayBufferView: isArrayBufferView,
|
isArrayBufferView: isArrayBufferView,
|
||||||
isString: isString,
|
isString: isString,
|
||||||
isNumber: isNumber,
|
isNumber: isNumber,
|
||||||
@@ -423,16 +478,16 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 5 */
|
/* 6 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
var defaults = __webpack_require__(3);
|
var defaults = __webpack_require__(4);
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
var buildUrl = __webpack_require__(8);
|
var buildUrl = __webpack_require__(9);
|
||||||
var cookies = __webpack_require__(9);
|
var cookies = __webpack_require__(10);
|
||||||
var parseHeaders = __webpack_require__(10);
|
var parseHeaders = __webpack_require__(11);
|
||||||
var transformData = __webpack_require__(11);
|
var transformData = __webpack_require__(12);
|
||||||
var urlIsSameOrigin = __webpack_require__(12);
|
var urlIsSameOrigin = __webpack_require__(13);
|
||||||
|
|
||||||
module.exports = function xhrAdapter(resolve, reject, config) {
|
module.exports = function xhrAdapter(resolve, reject, config) {
|
||||||
// Transform request data
|
// Transform request data
|
||||||
@@ -449,9 +504,13 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
config.headers || {}
|
config.headers || {}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (utils.isFormData(data)) {
|
||||||
|
delete headers['Content-Type']; // Let the browser set it
|
||||||
|
}
|
||||||
|
|
||||||
// Create the request
|
// Create the request
|
||||||
var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');
|
var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');
|
||||||
request.open(config.method, buildUrl(config.url, config.params), true);
|
request.open(config.method.toUpperCase(), buildUrl(config.url, config.params), true);
|
||||||
|
|
||||||
// Listen for ready state
|
// Listen for ready state
|
||||||
request.onreadystatechange = function () {
|
request.onreadystatechange = function () {
|
||||||
@@ -524,7 +583,7 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 6 */
|
/* 7 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -554,7 +613,7 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 7 */
|
/* 8 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
// shim for using process in browser
|
// shim for using process in browser
|
||||||
@@ -623,12 +682,12 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
|
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 8 */
|
/* 9 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
function encode(val) {
|
function encode(val) {
|
||||||
return encodeURIComponent(val).
|
return encodeURIComponent(val).
|
||||||
@@ -673,12 +732,12 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 9 */
|
/* 10 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
write: function write(name, value, expires, path, domain, secure) {
|
write: function write(name, value, expires, path, domain, secure) {
|
||||||
@@ -715,12 +774,12 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 10 */
|
/* 11 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse headers into an object
|
* Parse headers into an object
|
||||||
@@ -754,12 +813,12 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 11 */
|
/* 12 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transform the data for a request or a response
|
* Transform the data for a request or a response
|
||||||
@@ -778,13 +837,13 @@ define("axios", ["undefined"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 12 */
|
/* 13 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
var urlParsingNode = document.createElement('a');
|
var urlParsingNode = document.createElement('a');
|
||||||
var originUrl = urlResolve(window.location.href);
|
var originUrl = urlResolve(window.location.href);
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
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
+66
-14
@@ -66,20 +66,22 @@ var axios =
|
|||||||
// Don't allow overriding defaults.withCredentials
|
// Don't allow overriding defaults.withCredentials
|
||||||
config.withCredentials = config.withCredentials || defaults.withCredentials;
|
config.withCredentials = config.withCredentials || defaults.withCredentials;
|
||||||
|
|
||||||
var promise = new Promise(function (resolve, reject) {
|
var serverRequest = function (config) {
|
||||||
try {
|
return new Promise(function (resolve, reject) {
|
||||||
// For browsers use XHR adapter
|
try {
|
||||||
if (typeof window !== 'undefined') {
|
// For browsers use XHR adapter
|
||||||
__webpack_require__(5)(resolve, reject, config);
|
if (typeof window !== 'undefined') {
|
||||||
|
__webpack_require__(5)(resolve, reject, config);
|
||||||
|
}
|
||||||
|
// For node use HTTP adapter
|
||||||
|
else if (typeof process !== 'undefined') {
|
||||||
|
__webpack_require__(2)(resolve, reject, config);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
reject(e);
|
||||||
}
|
}
|
||||||
// For node use HTTP adapter
|
});
|
||||||
else if (typeof process !== 'undefined') {
|
};
|
||||||
__webpack_require__(2)(resolve, reject, config);
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
reject(e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function deprecatedMethod(method, instead, docs) {
|
function deprecatedMethod(method, instead, docs) {
|
||||||
try {
|
try {
|
||||||
@@ -94,6 +96,24 @@ var axios =
|
|||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var chain = [serverRequest, undefined];
|
||||||
|
var promise = Promise.resolve(config);
|
||||||
|
|
||||||
|
utils.forEach(axios.interceptors.request.handlers, function (interceptor) {
|
||||||
|
chain.unshift(interceptor.request, interceptor.requestError);
|
||||||
|
});
|
||||||
|
|
||||||
|
utils.forEach(axios.interceptors.response.handlers, function (interceptor) {
|
||||||
|
chain.push(interceptor.response, interceptor.responseError);
|
||||||
|
});
|
||||||
|
|
||||||
|
while (chain.length) {
|
||||||
|
var thenFn = chain.shift();
|
||||||
|
var rejectFn = chain.shift();
|
||||||
|
|
||||||
|
promise = promise.then(thenFn, rejectFn);
|
||||||
|
}
|
||||||
|
|
||||||
// Provide alias for success
|
// Provide alias for success
|
||||||
promise.success = function success(fn) {
|
promise.success = function success(fn) {
|
||||||
deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');
|
deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');
|
||||||
@@ -126,6 +146,22 @@ var axios =
|
|||||||
};
|
};
|
||||||
axios.spread = __webpack_require__(6);
|
axios.spread = __webpack_require__(6);
|
||||||
|
|
||||||
|
// interceptors
|
||||||
|
axios.interceptors = {
|
||||||
|
request: {
|
||||||
|
handlers: [],
|
||||||
|
use: function (thenFn, rejectFn) {
|
||||||
|
axios.interceptors.request.handlers.push({ request: thenFn, requestError: rejectFn });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
response: {
|
||||||
|
handlers: [],
|
||||||
|
use: function (thenFn, rejectFn) {
|
||||||
|
axios.interceptors.response.handlers.push({ response: thenFn, responseError: rejectFn });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Provide aliases for supported request methods
|
// Provide aliases for supported request methods
|
||||||
createShortMethods('delete', 'get', 'head');
|
createShortMethods('delete', 'get', 'head');
|
||||||
createShortMethodsWithData('post', 'put', 'patch');
|
createShortMethodsWithData('post', 'put', 'patch');
|
||||||
@@ -152,6 +188,7 @@ var axios =
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
@@ -245,6 +282,16 @@ var axios =
|
|||||||
return toString.call(val) === '[object ArrayBuffer]';
|
return toString.call(val) === '[object ArrayBuffer]';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine if a value is a FormData
|
||||||
|
*
|
||||||
|
* @param {Object} val The value to test
|
||||||
|
* @returns {boolean} True if value is an FormData, otherwise false
|
||||||
|
*/
|
||||||
|
function isFormData(val) {
|
||||||
|
return toString.call(val) === '[object FormData]';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if a value is a view on an ArrayBuffer
|
* Determine if a value is a view on an ArrayBuffer
|
||||||
*
|
*
|
||||||
@@ -411,6 +458,7 @@ var axios =
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
isArray: isArray,
|
isArray: isArray,
|
||||||
isArrayBuffer: isArrayBuffer,
|
isArrayBuffer: isArrayBuffer,
|
||||||
|
isFormData: isFormData,
|
||||||
isArrayBufferView: isArrayBufferView,
|
isArrayBufferView: isArrayBufferView,
|
||||||
isString: isString,
|
isString: isString,
|
||||||
isNumber: isNumber,
|
isNumber: isNumber,
|
||||||
@@ -451,9 +499,13 @@ var axios =
|
|||||||
config.headers || {}
|
config.headers || {}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (utils.isFormData(data)) {
|
||||||
|
delete headers['Content-Type']; // Let the browser set it
|
||||||
|
}
|
||||||
|
|
||||||
// Create the request
|
// Create the request
|
||||||
var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');
|
var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');
|
||||||
request.open(config.method, buildUrl(config.url, config.params), true);
|
request.open(config.method.toUpperCase(), buildUrl(config.url, config.params), true);
|
||||||
|
|
||||||
// Listen for ready state
|
// Listen for ready state
|
||||||
request.onreadystatechange = function () {
|
request.onreadystatechange = function () {
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
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
+100
-41
@@ -52,8 +52,8 @@ var axios =
|
|||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
/* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(2).Promise;
|
/* WEBPACK VAR INJECTION */(function(process) {var Promise = __webpack_require__(2).Promise;
|
||||||
var defaults = __webpack_require__(3);
|
var defaults = __webpack_require__(4);
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
var axios = module.exports = function axios(config) {
|
var axios = module.exports = function axios(config) {
|
||||||
config = utils.merge({
|
config = utils.merge({
|
||||||
@@ -66,20 +66,22 @@ var axios =
|
|||||||
// Don't allow overriding defaults.withCredentials
|
// Don't allow overriding defaults.withCredentials
|
||||||
config.withCredentials = config.withCredentials || defaults.withCredentials;
|
config.withCredentials = config.withCredentials || defaults.withCredentials;
|
||||||
|
|
||||||
var promise = new Promise(function (resolve, reject) {
|
var serverRequest = function (config) {
|
||||||
try {
|
return new Promise(function (resolve, reject) {
|
||||||
// For browsers use XHR adapter
|
try {
|
||||||
if (typeof window !== 'undefined') {
|
// For browsers use XHR adapter
|
||||||
__webpack_require__(5)(resolve, reject, config);
|
if (typeof window !== 'undefined') {
|
||||||
|
__webpack_require__(6)(resolve, reject, config);
|
||||||
|
}
|
||||||
|
// For node use HTTP adapter
|
||||||
|
else if (typeof process !== 'undefined') {
|
||||||
|
__webpack_require__(3)(resolve, reject, config);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
reject(e);
|
||||||
}
|
}
|
||||||
// For node use HTTP adapter
|
});
|
||||||
else if (typeof process !== 'undefined') {
|
};
|
||||||
__webpack_require__(2)(resolve, reject, config);
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
reject(e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function deprecatedMethod(method, instead, docs) {
|
function deprecatedMethod(method, instead, docs) {
|
||||||
try {
|
try {
|
||||||
@@ -94,6 +96,24 @@ var axios =
|
|||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var chain = [serverRequest, undefined];
|
||||||
|
var promise = Promise.resolve(config);
|
||||||
|
|
||||||
|
utils.forEach(axios.interceptors.request.handlers, function (interceptor) {
|
||||||
|
chain.unshift(interceptor.request, interceptor.requestError);
|
||||||
|
});
|
||||||
|
|
||||||
|
utils.forEach(axios.interceptors.response.handlers, function (interceptor) {
|
||||||
|
chain.push(interceptor.response, interceptor.responseError);
|
||||||
|
});
|
||||||
|
|
||||||
|
while (chain.length) {
|
||||||
|
var thenFn = chain.shift();
|
||||||
|
var rejectFn = chain.shift();
|
||||||
|
|
||||||
|
promise = promise.then(thenFn, rejectFn);
|
||||||
|
}
|
||||||
|
|
||||||
// Provide alias for success
|
// Provide alias for success
|
||||||
promise.success = function success(fn) {
|
promise.success = function success(fn) {
|
||||||
deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');
|
deprecatedMethod('success', 'then', 'https://github.com/mzabriskie/axios/blob/master/README.md#response-api');
|
||||||
@@ -124,7 +144,23 @@ var axios =
|
|||||||
axios.all = function (promises) {
|
axios.all = function (promises) {
|
||||||
return Promise.all(promises);
|
return Promise.all(promises);
|
||||||
};
|
};
|
||||||
axios.spread = __webpack_require__(6);
|
axios.spread = __webpack_require__(7);
|
||||||
|
|
||||||
|
// interceptors
|
||||||
|
axios.interceptors = {
|
||||||
|
request: {
|
||||||
|
handlers: [],
|
||||||
|
use: function (thenFn, rejectFn) {
|
||||||
|
axios.interceptors.request.handlers.push({ request: thenFn, requestError: rejectFn });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
response: {
|
||||||
|
handlers: [],
|
||||||
|
use: function (thenFn, rejectFn) {
|
||||||
|
axios.interceptors.response.handlers.push({ response: thenFn, responseError: rejectFn });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Provide aliases for supported request methods
|
// Provide aliases for supported request methods
|
||||||
createShortMethods('delete', 'get', 'head');
|
createShortMethods('delete', 'get', 'head');
|
||||||
@@ -152,21 +188,29 @@ var axios =
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))
|
|
||||||
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8)))
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 2 */
|
/* 2 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
module.exports = undefined;
|
module.exports = {Promise: Promise};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 3 */
|
/* 3 */
|
||||||
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
if(typeof undefined === 'undefined') {var e = new Error("Cannot find module \"undefined\""); e.code = 'MODULE_NOT_FOUND'; throw e;}
|
||||||
|
module.exports = undefined;
|
||||||
|
|
||||||
|
/***/ },
|
||||||
|
/* 4 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
var JSON_START = /^\s*(\[|\{[^\{])/;
|
var JSON_START = /^\s*(\[|\{[^\{])/;
|
||||||
var JSON_END = /[\}\]]\s*$/;
|
var JSON_END = /[\}\]]\s*$/;
|
||||||
@@ -217,7 +261,7 @@ var axios =
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 4 */
|
/* 5 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
// utils is a library of generic helper functions non-specific to axios
|
// utils is a library of generic helper functions non-specific to axios
|
||||||
@@ -244,6 +288,16 @@ var axios =
|
|||||||
return toString.call(val) === '[object ArrayBuffer]';
|
return toString.call(val) === '[object ArrayBuffer]';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine if a value is a FormData
|
||||||
|
*
|
||||||
|
* @param {Object} val The value to test
|
||||||
|
* @returns {boolean} True if value is an FormData, otherwise false
|
||||||
|
*/
|
||||||
|
function isFormData(val) {
|
||||||
|
return toString.call(val) === '[object FormData]';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if a value is a view on an ArrayBuffer
|
* Determine if a value is a view on an ArrayBuffer
|
||||||
*
|
*
|
||||||
@@ -410,6 +464,7 @@ var axios =
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
isArray: isArray,
|
isArray: isArray,
|
||||||
isArrayBuffer: isArrayBuffer,
|
isArrayBuffer: isArrayBuffer,
|
||||||
|
isFormData: isFormData,
|
||||||
isArrayBufferView: isArrayBufferView,
|
isArrayBufferView: isArrayBufferView,
|
||||||
isString: isString,
|
isString: isString,
|
||||||
isNumber: isNumber,
|
isNumber: isNumber,
|
||||||
@@ -424,16 +479,16 @@ var axios =
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 5 */
|
/* 6 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
var defaults = __webpack_require__(3);
|
var defaults = __webpack_require__(4);
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
var buildUrl = __webpack_require__(8);
|
var buildUrl = __webpack_require__(9);
|
||||||
var cookies = __webpack_require__(9);
|
var cookies = __webpack_require__(10);
|
||||||
var parseHeaders = __webpack_require__(10);
|
var parseHeaders = __webpack_require__(11);
|
||||||
var transformData = __webpack_require__(11);
|
var transformData = __webpack_require__(12);
|
||||||
var urlIsSameOrigin = __webpack_require__(12);
|
var urlIsSameOrigin = __webpack_require__(13);
|
||||||
|
|
||||||
module.exports = function xhrAdapter(resolve, reject, config) {
|
module.exports = function xhrAdapter(resolve, reject, config) {
|
||||||
// Transform request data
|
// Transform request data
|
||||||
@@ -450,9 +505,13 @@ var axios =
|
|||||||
config.headers || {}
|
config.headers || {}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (utils.isFormData(data)) {
|
||||||
|
delete headers['Content-Type']; // Let the browser set it
|
||||||
|
}
|
||||||
|
|
||||||
// Create the request
|
// Create the request
|
||||||
var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');
|
var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');
|
||||||
request.open(config.method, buildUrl(config.url, config.params), true);
|
request.open(config.method.toUpperCase(), buildUrl(config.url, config.params), true);
|
||||||
|
|
||||||
// Listen for ready state
|
// Listen for ready state
|
||||||
request.onreadystatechange = function () {
|
request.onreadystatechange = function () {
|
||||||
@@ -525,7 +584,7 @@ var axios =
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 6 */
|
/* 7 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -555,7 +614,7 @@ var axios =
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 7 */
|
/* 8 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
// shim for using process in browser
|
// shim for using process in browser
|
||||||
@@ -624,12 +683,12 @@ var axios =
|
|||||||
|
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 8 */
|
/* 9 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
function encode(val) {
|
function encode(val) {
|
||||||
return encodeURIComponent(val).
|
return encodeURIComponent(val).
|
||||||
@@ -674,12 +733,12 @@ var axios =
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 9 */
|
/* 10 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
write: function write(name, value, expires, path, domain, secure) {
|
write: function write(name, value, expires, path, domain, secure) {
|
||||||
@@ -716,12 +775,12 @@ var axios =
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 10 */
|
/* 11 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse headers into an object
|
* Parse headers into an object
|
||||||
@@ -755,12 +814,12 @@ var axios =
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 11 */
|
/* 12 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transform the data for a request or a response
|
* Transform the data for a request or a response
|
||||||
@@ -779,13 +838,13 @@ var axios =
|
|||||||
};
|
};
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
/* 12 */
|
/* 13 */
|
||||||
/***/ function(module, exports, __webpack_require__) {
|
/***/ function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
||||||
var utils = __webpack_require__(4);
|
var utils = __webpack_require__(5);
|
||||||
var urlParsingNode = document.createElement('a');
|
var urlParsingNode = document.createElement('a');
|
||||||
var originUrl = urlResolve(window.location.href);
|
var originUrl = urlResolve(window.location.href);
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
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
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"version": "0.4.1",
|
"version": "0.4.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",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user