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

Releasing 0.14.0

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