2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Releasing 0.5.2

This commit is contained in:
mzabriskie
2015-03-13 17:13:41 -06:00
parent dd2aa791e6
commit 2ce5aa77df
21 changed files with 141 additions and 251 deletions
+7 -3
View File
@@ -49,10 +49,14 @@
### 0.5.0 (Jan 23, 2015) ### 0.5.0 (Jan 23, 2015)
- Adding support for intercepetors - Adding support for intercepetors ([#14](https://github.com/mzabriskie/axios/issues/14))
- Updating es6-promise dependency - Updating es6-promise dependency
### 0.5.1 (Mar 10, 2015) ### 0.5.1 (Mar 10, 2015)
- Fixing issue using strict mode - Fixing issue using strict mode ([#45](https://github.com/mzabriskie/axios/issues/45))
- Fixing issue with standalone build - Fixing issue with standalone build ([#47](https://github.com/mzabriskie/axios/issues/47))
### 0.5.2 (Mar 13, 2015)
- Adding support for `statusText` in response ([#46](https://github.com/mzabriskie/axios/issues/46))
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "axios", "name": "axios",
"main": "./dist/axios.js", "main": "./dist/axios.js",
"version": "0.5.1", "version": "0.5.2",
"homepage": "https://github.com/mzabriskie/axios", "homepage": "https://github.com/mzabriskie/axios",
"authors": [ "authors": [
"Matt Zabriskie" "Matt Zabriskie"
+28 -57
View File
@@ -469,8 +469,6 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack
/* WEBPACK VAR INJECTION */(function(process) {'use strict'; /* WEBPACK VAR INJECTION */(function(process) {'use strict';
var Promise = __webpack_require__(9).Promise;
/** /**
* Dispatch a request to the server using whichever adapter * Dispatch a request to the server using whichever adapter
* is supported by the current environment. * is supported by the current environment.
@@ -635,6 +633,7 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack
config.transformResponse config.transformResponse
), ),
status: request.status, status: request.status,
statusText: request.statusText,
headers: headers, headers: headers,
config: config config: config
}; };
@@ -1667,69 +1666,40 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack
// shim for using process in browser // shim for using process in browser
var process = module.exports = {}; var process = module.exports = {};
var queue = [];
var draining = false;
process.nextTick = (function () { function drainQueue() {
var canSetImmediate = typeof window !== 'undefined' if (draining) {
&& window.setImmediate; return;
var canMutationObserver = typeof window !== 'undefined'
&& window.MutationObserver;
var canPost = typeof window !== 'undefined'
&& window.postMessage && window.addEventListener
;
if (canSetImmediate) {
return function (f) { return window.setImmediate(f) };
} }
draining = true;
var queue = []; var currentQueue;
var len = queue.length;
if (canMutationObserver) { while(len) {
var hiddenDiv = document.createElement("div"); currentQueue = queue;
var observer = new MutationObserver(function () { queue = [];
var queueList = queue.slice(); var i = -1;
queue.length = 0; while (++i < len) {
queueList.forEach(function (fn) { currentQueue[i]();
fn(); }
}); len = queue.length;
});
observer.observe(hiddenDiv, { attributes: true });
return function nextTick(fn) {
if (!queue.length) {
hiddenDiv.setAttribute('yes', 'no');
}
queue.push(fn);
};
} }
draining = false;
if (canPost) { }
window.addEventListener('message', function (ev) { process.nextTick = function (fun) {
var source = ev.source; queue.push(fun);
if ((source === window || source === null) && ev.data === 'process-tick') { if (!draining) {
ev.stopPropagation(); setTimeout(drainQueue, 0);
if (queue.length > 0) {
var fn = queue.shift();
fn();
}
}
}, true);
return function nextTick(fn) {
queue.push(fn);
window.postMessage('process-tick', '*');
};
} }
};
return function nextTick(fn) {
setTimeout(fn, 0);
};
})();
process.title = 'browser'; process.title = 'browser';
process.browser = true; process.browser = true;
process.env = {}; process.env = {};
process.argv = []; process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {} function noop() {}
@@ -1750,6 +1720,7 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack
process.chdir = function (dir) { process.chdir = function (dir) {
throw new Error('process.chdir is not supported'); throw new Error('process.chdir is not supported');
}; };
process.umask = function() { return 0; };
/***/ }, /***/ },
@@ -1994,5 +1965,5 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack
/***/ } /***/ }
/******/ ])}); /******/ ])});;
//# sourceMappingURL=axios.amd.map //# sourceMappingURL=axios.amd.map
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+28 -57
View File
@@ -475,8 +475,6 @@ define("axios", ["{Promise: Promise}"], function(__WEBPACK_EXTERNAL_MODULE_2__)
/* WEBPACK VAR INJECTION */(function(process) {'use strict'; /* WEBPACK VAR INJECTION */(function(process) {'use strict';
var Promise = __webpack_require__(2).Promise;
/** /**
* Dispatch a request to the server using whichever adapter * Dispatch a request to the server using whichever adapter
* is supported by the current environment. * is supported by the current environment.
@@ -641,6 +639,7 @@ define("axios", ["{Promise: Promise}"], function(__WEBPACK_EXTERNAL_MODULE_2__)
config.transformResponse config.transformResponse
), ),
status: request.status, status: request.status,
statusText: request.statusText,
headers: headers, headers: headers,
config: config config: config
}; };
@@ -707,69 +706,40 @@ define("axios", ["{Promise: Promise}"], function(__WEBPACK_EXTERNAL_MODULE_2__)
// shim for using process in browser // shim for using process in browser
var process = module.exports = {}; var process = module.exports = {};
var queue = [];
var draining = false;
process.nextTick = (function () { function drainQueue() {
var canSetImmediate = typeof window !== 'undefined' if (draining) {
&& window.setImmediate; return;
var canMutationObserver = typeof window !== 'undefined'
&& window.MutationObserver;
var canPost = typeof window !== 'undefined'
&& window.postMessage && window.addEventListener
;
if (canSetImmediate) {
return function (f) { return window.setImmediate(f) };
} }
draining = true;
var queue = []; var currentQueue;
var len = queue.length;
if (canMutationObserver) { while(len) {
var hiddenDiv = document.createElement("div"); currentQueue = queue;
var observer = new MutationObserver(function () { queue = [];
var queueList = queue.slice(); var i = -1;
queue.length = 0; while (++i < len) {
queueList.forEach(function (fn) { currentQueue[i]();
fn(); }
}); len = queue.length;
});
observer.observe(hiddenDiv, { attributes: true });
return function nextTick(fn) {
if (!queue.length) {
hiddenDiv.setAttribute('yes', 'no');
}
queue.push(fn);
};
} }
draining = false;
if (canPost) { }
window.addEventListener('message', function (ev) { process.nextTick = function (fun) {
var source = ev.source; queue.push(fun);
if ((source === window || source === null) && ev.data === 'process-tick') { if (!draining) {
ev.stopPropagation(); setTimeout(drainQueue, 0);
if (queue.length > 0) {
var fn = queue.shift();
fn();
}
}
}, true);
return function nextTick(fn) {
queue.push(fn);
window.postMessage('process-tick', '*');
};
} }
};
return function nextTick(fn) {
setTimeout(fn, 0);
};
})();
process.title = 'browser'; process.title = 'browser';
process.browser = true; process.browser = true;
process.env = {}; process.env = {};
process.argv = []; process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {} function noop() {}
@@ -790,6 +760,7 @@ define("axios", ["{Promise: Promise}"], function(__WEBPACK_EXTERNAL_MODULE_2__)
process.chdir = function (dir) { process.chdir = function (dir) {
throw new Error('process.chdir is not supported'); throw new Error('process.chdir is not supported');
}; };
process.umask = function() { return 0; };
/***/ }, /***/ },
@@ -1011,5 +982,5 @@ define("axios", ["{Promise: Promise}"], function(__WEBPACK_EXTERNAL_MODULE_2__)
}; };
/***/ } /***/ }
/******/ ])}); /******/ ])});;
//# sourceMappingURL=axios.amd.standalone.map //# sourceMappingURL=axios.amd.standalone.map
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+28 -57
View File
@@ -470,8 +470,6 @@ var axios =
/* WEBPACK VAR INJECTION */(function(process) {'use strict'; /* WEBPACK VAR INJECTION */(function(process) {'use strict';
var Promise = __webpack_require__(9).Promise;
/** /**
* Dispatch a request to the server using whichever adapter * Dispatch a request to the server using whichever adapter
* is supported by the current environment. * is supported by the current environment.
@@ -636,6 +634,7 @@ var axios =
config.transformResponse config.transformResponse
), ),
status: request.status, status: request.status,
statusText: request.statusText,
headers: headers, headers: headers,
config: config config: config
}; };
@@ -1668,69 +1667,40 @@ var axios =
// shim for using process in browser // shim for using process in browser
var process = module.exports = {}; var process = module.exports = {};
var queue = [];
var draining = false;
process.nextTick = (function () { function drainQueue() {
var canSetImmediate = typeof window !== 'undefined' if (draining) {
&& window.setImmediate; return;
var canMutationObserver = typeof window !== 'undefined'
&& window.MutationObserver;
var canPost = typeof window !== 'undefined'
&& window.postMessage && window.addEventListener
;
if (canSetImmediate) {
return function (f) { return window.setImmediate(f) };
} }
draining = true;
var queue = []; var currentQueue;
var len = queue.length;
if (canMutationObserver) { while(len) {
var hiddenDiv = document.createElement("div"); currentQueue = queue;
var observer = new MutationObserver(function () { queue = [];
var queueList = queue.slice(); var i = -1;
queue.length = 0; while (++i < len) {
queueList.forEach(function (fn) { currentQueue[i]();
fn(); }
}); len = queue.length;
});
observer.observe(hiddenDiv, { attributes: true });
return function nextTick(fn) {
if (!queue.length) {
hiddenDiv.setAttribute('yes', 'no');
}
queue.push(fn);
};
} }
draining = false;
if (canPost) { }
window.addEventListener('message', function (ev) { process.nextTick = function (fun) {
var source = ev.source; queue.push(fun);
if ((source === window || source === null) && ev.data === 'process-tick') { if (!draining) {
ev.stopPropagation(); setTimeout(drainQueue, 0);
if (queue.length > 0) {
var fn = queue.shift();
fn();
}
}
}, true);
return function nextTick(fn) {
queue.push(fn);
window.postMessage('process-tick', '*');
};
} }
};
return function nextTick(fn) {
setTimeout(fn, 0);
};
})();
process.title = 'browser'; process.title = 'browser';
process.browser = true; process.browser = true;
process.env = {}; process.env = {};
process.argv = []; process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {} function noop() {}
@@ -1751,6 +1721,7 @@ var axios =
process.chdir = function (dir) { process.chdir = function (dir) {
throw new Error('process.chdir is not supported'); throw new Error('process.chdir is not supported');
}; };
process.umask = function() { return 0; };
/***/ }, /***/ },
@@ -1995,5 +1966,5 @@ var axios =
/***/ } /***/ }
/******/ ]) /******/ ]);
//# sourceMappingURL=axios.map //# sourceMappingURL=axios.map
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+28 -57
View File
@@ -476,8 +476,6 @@ var axios =
/* WEBPACK VAR INJECTION */(function(process) {'use strict'; /* WEBPACK VAR INJECTION */(function(process) {'use strict';
var Promise = __webpack_require__(2).Promise;
/** /**
* Dispatch a request to the server using whichever adapter * Dispatch a request to the server using whichever adapter
* is supported by the current environment. * is supported by the current environment.
@@ -642,6 +640,7 @@ var axios =
config.transformResponse config.transformResponse
), ),
status: request.status, status: request.status,
statusText: request.statusText,
headers: headers, headers: headers,
config: config config: config
}; };
@@ -708,69 +707,40 @@ var axios =
// shim for using process in browser // shim for using process in browser
var process = module.exports = {}; var process = module.exports = {};
var queue = [];
var draining = false;
process.nextTick = (function () { function drainQueue() {
var canSetImmediate = typeof window !== 'undefined' if (draining) {
&& window.setImmediate; return;
var canMutationObserver = typeof window !== 'undefined'
&& window.MutationObserver;
var canPost = typeof window !== 'undefined'
&& window.postMessage && window.addEventListener
;
if (canSetImmediate) {
return function (f) { return window.setImmediate(f) };
} }
draining = true;
var queue = []; var currentQueue;
var len = queue.length;
if (canMutationObserver) { while(len) {
var hiddenDiv = document.createElement("div"); currentQueue = queue;
var observer = new MutationObserver(function () { queue = [];
var queueList = queue.slice(); var i = -1;
queue.length = 0; while (++i < len) {
queueList.forEach(function (fn) { currentQueue[i]();
fn(); }
}); len = queue.length;
});
observer.observe(hiddenDiv, { attributes: true });
return function nextTick(fn) {
if (!queue.length) {
hiddenDiv.setAttribute('yes', 'no');
}
queue.push(fn);
};
} }
draining = false;
if (canPost) { }
window.addEventListener('message', function (ev) { process.nextTick = function (fun) {
var source = ev.source; queue.push(fun);
if ((source === window || source === null) && ev.data === 'process-tick') { if (!draining) {
ev.stopPropagation(); setTimeout(drainQueue, 0);
if (queue.length > 0) {
var fn = queue.shift();
fn();
}
}
}, true);
return function nextTick(fn) {
queue.push(fn);
window.postMessage('process-tick', '*');
};
} }
};
return function nextTick(fn) {
setTimeout(fn, 0);
};
})();
process.title = 'browser'; process.title = 'browser';
process.browser = true; process.browser = true;
process.env = {}; process.env = {};
process.argv = []; process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {} function noop() {}
@@ -791,6 +761,7 @@ var axios =
process.chdir = function (dir) { process.chdir = function (dir) {
throw new Error('process.chdir is not supported'); throw new Error('process.chdir is not supported');
}; };
process.umask = function() { return 0; };
/***/ }, /***/ },
@@ -1012,5 +983,5 @@ var axios =
}; };
/***/ } /***/ }
/******/ ]) /******/ ]);
//# sourceMappingURL=axios.standalone.map //# sourceMappingURL=axios.standalone.map
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "axios", "name": "axios",
"version": "0.5.1", "version": "0.5.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": {
+1
View File
@@ -0,0 +1 @@
//# sourceMappingURL=out.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"out.js","sourceRoot":"","sources":[],"names":[],"mappings":""}