提交 c9634866 编写于 作者: N Nick Uraltsev

Releasing 0.14.0

上级 66ec8c0a
{
"name": "axios",
"main": "./dist/axios.js",
"version": "0.13.1",
"version": "0.14.0",
"homepage": "https://github.com/mzabriskie/axios",
"authors": [
"Matt Zabriskie"
......
/* axios v0.13.1 | (c) 2016 by Matt Zabriskie */
/* axios v0.14.0 | (c) 2016 by Matt Zabriskie */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
......@@ -87,7 +87,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
// Create the default instance to be exported
var axios = module.exports = createInstance();
var axios = createInstance();
// Expose Axios class to allow class inheritance
axios.Axios = Axios;
......@@ -102,6 +102,11 @@ return /******/ (function(modules) { // webpackBootstrap
return Promise.all(promises);
};
axios.spread = __webpack_require__(21);
module.exports = axios;
// Allow use of default import syntax in TypeScript
module.exports.default = axios;
/***/ },
......@@ -887,7 +892,7 @@ return /******/ (function(modules) { // webpackBootstrap
var cookies = __webpack_require__(18);
// Add xsrf header
var xsrfValue = config.withCredentials || isURLSameOrigin(config.url) ?
var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
cookies.read(config.xsrfCookieName) :
undefined;
......@@ -926,14 +931,16 @@ return /******/ (function(modules) { // webpackBootstrap
}
// Handle progress if needed
if (typeof config.progress === 'function') {
if (config.method === 'post' || config.method === 'put') {
request.upload.addEventListener('progress', config.progress);
} else if (config.method === 'get') {
request.addEventListener('progress', config.progress);
}
if (typeof config.onDownloadProgress === 'function') {
request.addEventListener('progress', config.onDownloadProgress);
}
// Not all browsers support upload events
if (typeof config.onUploadProgress === 'function' && request.upload) {
request.upload.addEventListener('progress', config.onUploadProgress);
}
if (requestData === undefined) {
requestData = null;
}
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
{
"name": "axios",
"version": "0.13.1",
"version": "0.14.0",
"description": "Promise based HTTP client for the browser and node.js",
"main": "index.js",
"scripts": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册