mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
Releasing 0.15.3
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "axios",
|
||||
"main": "./dist/axios.js",
|
||||
"version": "0.15.2",
|
||||
"version": "0.15.3",
|
||||
"homepage": "https://github.com/mzabriskie/axios",
|
||||
"authors": [
|
||||
"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) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
module.exports = factory();
|
||||
@@ -66,6 +66,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
var utils = __webpack_require__(2);
|
||||
var bind = __webpack_require__(3);
|
||||
var Axios = __webpack_require__(4);
|
||||
var defaults = __webpack_require__(5);
|
||||
|
||||
/**
|
||||
* Create an instance of Axios
|
||||
@@ -87,14 +88,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
}
|
||||
|
||||
// Create the default instance to be exported
|
||||
var axios = createInstance();
|
||||
var axios = createInstance(defaults);
|
||||
|
||||
// Expose Axios class to allow class inheritance
|
||||
axios.Axios = Axios;
|
||||
|
||||
// Factory for creating new instances
|
||||
axios.create = function create(defaultConfig) {
|
||||
return createInstance(defaultConfig);
|
||||
axios.create = function create(instanceConfig) {
|
||||
return createInstance(utils.merge(defaults, instanceConfig));
|
||||
};
|
||||
|
||||
// Expose Cancel & CancelToken
|
||||
@@ -452,10 +453,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
/**
|
||||
* 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) {
|
||||
this.defaults = utils.merge(defaults, defaultConfig);
|
||||
function Axios(instanceConfig) {
|
||||
this.defaults = instanceConfig;
|
||||
this.interceptors = {
|
||||
request: new InterceptorManager(),
|
||||
response: new InterceptorManager()
|
||||
@@ -559,7 +560,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
return adapter;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
var defaults = {
|
||||
adapter: getDefaultAdapter(),
|
||||
|
||||
transformRequest: [function transformRequest(data, headers) {
|
||||
@@ -597,15 +598,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
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,
|
||||
|
||||
xsrfCookieName: 'XSRF-TOKEN',
|
||||
@@ -617,6 +609,22 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
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 isURLSameOrigin = __webpack_require__(13);
|
||||
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) {
|
||||
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",
|
||||
"version": "0.15.2",
|
||||
"version": "0.15.3",
|
||||
"description": "Promise based HTTP client for the browser and node.js",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user