mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
Releasing 0.15.3
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"main": "./dist/axios.js",
|
"main": "./dist/axios.js",
|
||||||
"version": "0.15.2",
|
"version": "0.15.3",
|
||||||
"homepage": "https://github.com/mzabriskie/axios",
|
"homepage": "https://github.com/mzabriskie/axios",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Matt Zabriskie"
|
"Matt Zabriskie"
|
||||||
|
|||||||
Vendored
+26
-18
@@ -1,4 +1,4 @@
|
|||||||
/* axios v0.15.2 | (c) 2016 by Matt Zabriskie */
|
/* axios v0.15.3 | (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();
|
||||||
@@ -66,6 +66,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
var utils = __webpack_require__(2);
|
var utils = __webpack_require__(2);
|
||||||
var bind = __webpack_require__(3);
|
var bind = __webpack_require__(3);
|
||||||
var Axios = __webpack_require__(4);
|
var Axios = __webpack_require__(4);
|
||||||
|
var defaults = __webpack_require__(5);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an instance of Axios
|
* Create an instance of Axios
|
||||||
@@ -87,14 +88,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create the default instance to be exported
|
// Create the default instance to be exported
|
||||||
var axios = createInstance();
|
var axios = createInstance(defaults);
|
||||||
|
|
||||||
// Expose Axios class to allow class inheritance
|
// Expose Axios class to allow class inheritance
|
||||||
axios.Axios = Axios;
|
axios.Axios = Axios;
|
||||||
|
|
||||||
// Factory for creating new instances
|
// Factory for creating new instances
|
||||||
axios.create = function create(defaultConfig) {
|
axios.create = function create(instanceConfig) {
|
||||||
return createInstance(defaultConfig);
|
return createInstance(utils.merge(defaults, instanceConfig));
|
||||||
};
|
};
|
||||||
|
|
||||||
// Expose Cancel & CancelToken
|
// Expose Cancel & CancelToken
|
||||||
@@ -452,10 +453,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
/**
|
/**
|
||||||
* Create a new instance of Axios
|
* Create a new instance of Axios
|
||||||
*
|
*
|
||||||
* @param {Object} defaultConfig The default config for the instance
|
* @param {Object} instanceConfig The default config for the instance
|
||||||
*/
|
*/
|
||||||
function Axios(defaultConfig) {
|
function Axios(instanceConfig) {
|
||||||
this.defaults = utils.merge(defaults, defaultConfig);
|
this.defaults = instanceConfig;
|
||||||
this.interceptors = {
|
this.interceptors = {
|
||||||
request: new InterceptorManager(),
|
request: new InterceptorManager(),
|
||||||
response: new InterceptorManager()
|
response: new InterceptorManager()
|
||||||
@@ -559,7 +560,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
return adapter;
|
return adapter;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
var defaults = {
|
||||||
adapter: getDefaultAdapter(),
|
adapter: getDefaultAdapter(),
|
||||||
|
|
||||||
transformRequest: [function transformRequest(data, headers) {
|
transformRequest: [function transformRequest(data, headers) {
|
||||||
@@ -597,15 +598,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
return data;
|
return data;
|
||||||
}],
|
}],
|
||||||
|
|
||||||
headers: {
|
|
||||||
common: {
|
|
||||||
'Accept': 'application/json, text/plain, */*'
|
|
||||||
},
|
|
||||||
patch: utils.merge(DEFAULT_CONTENT_TYPE),
|
|
||||||
post: utils.merge(DEFAULT_CONTENT_TYPE),
|
|
||||||
put: utils.merge(DEFAULT_CONTENT_TYPE)
|
|
||||||
},
|
|
||||||
|
|
||||||
timeout: 0,
|
timeout: 0,
|
||||||
|
|
||||||
xsrfCookieName: 'XSRF-TOKEN',
|
xsrfCookieName: 'XSRF-TOKEN',
|
||||||
@@ -617,6 +609,22 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
return status >= 200 && status < 300;
|
return status >= 200 && status < 300;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
defaults.headers = {
|
||||||
|
common: {
|
||||||
|
'Accept': 'application/json, text/plain, */*'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
utils.forEach(['delete', 'get', 'head'], function forEachMehtodNoData(method) {
|
||||||
|
defaults.headers[method] = {};
|
||||||
|
});
|
||||||
|
|
||||||
|
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
||||||
|
defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = defaults;
|
||||||
|
|
||||||
|
|
||||||
/***/ },
|
/***/ },
|
||||||
@@ -649,7 +657,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
var parseHeaders = __webpack_require__(12);
|
var parseHeaders = __webpack_require__(12);
|
||||||
var isURLSameOrigin = __webpack_require__(13);
|
var isURLSameOrigin = __webpack_require__(13);
|
||||||
var createError = __webpack_require__(9);
|
var createError = __webpack_require__(9);
|
||||||
var btoa = (typeof window !== 'undefined' && window.btoa) || __webpack_require__(14);
|
var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(14);
|
||||||
|
|
||||||
module.exports = function xhrAdapter(config) {
|
module.exports = function xhrAdapter(config) {
|
||||||
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
||||||
|
|||||||
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.15.2",
|
"version": "0.15.3",
|
||||||
"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