2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Releasing 0.5.1

This commit is contained in:
mzabriskie
2015-03-10 14:46:29 -06:00
parent 8fded1802b
commit bd5d9b7258
19 changed files with 85 additions and 40 deletions
+5
View File
@@ -51,3 +51,8 @@
- Adding support for intercepetors
- Updating es6-promise dependency
### 0.5.1 (Mar 10, 2015)
- Fixing issue using strict mode
- Fixing issue with standalone build
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "axios",
"main": "./dist/axios.js",
"version": "0.5.0",
"version": "0.5.1",
"homepage": "https://github.com/mzabriskie/axios",
"authors": [
"Matt Zabriskie"
+15 -5
View File
@@ -57,7 +57,14 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack
var InterceptorManager = __webpack_require__(6);
// Polyfill ES6 Promise if needed
__webpack_require__(9).polyfill();
(function () {
// webpack is being used to set es6-promise to the native Promise
// for the standalone build. It's necessary to make sure polyfill exists.
var P = __webpack_require__(9);
if (P && typeof P.polyfill === 'function') {
P.polyfill();
}
})();
var axios = module.exports = function axios(config) {
config = utils.merge({
@@ -360,15 +367,15 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack
}
// Check if obj is array-like
var isArray = obj.constructor === Array || typeof obj.callee === 'function';
var isArrayLike = isArray(obj) || (typeof obj === 'object' && !isNaN(obj.length));
// Force an array if not already something iterable
if (typeof obj !== 'object' && !isArray) {
if (typeof obj !== 'object' && !isArrayLike) {
obj = [obj];
}
// Iterate over array values
if (isArray) {
if (isArrayLike) {
for (var i=0, l=obj.length; i<l; i++) {
fn.call(null, obj[i], i, obj);
}
@@ -427,6 +434,7 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack
trim: trim
};
/***/ },
/* 4 */
/***/ function(module, exports, __webpack_require__) {
@@ -619,9 +627,10 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack
if (request && request.readyState === 4) {
// Prepare the response
var headers = parseHeaders(request.getAllResponseHeaders());
var responseData = ['text', ''].indexOf(config.responseType || '') !== -1 ? request.responseText : request.response;
var response = {
data: transformData(
request.responseText,
responseData,
headers,
config.transformResponse
),
@@ -684,6 +693,7 @@ define("axios", [], function() { return /******/ (function(modules) { // webpack
request.send(data);
};
/***/ },
/* 9 */
/***/ function(module, exports, __webpack_require__) {
+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
+15 -5
View File
@@ -57,7 +57,14 @@ define("axios", ["{Promise: Promise}"], function(__WEBPACK_EXTERNAL_MODULE_2__)
var InterceptorManager = __webpack_require__(7);
// Polyfill ES6 Promise if needed
__webpack_require__(2).polyfill();
(function () {
// webpack is being used to set es6-promise to the native Promise
// for the standalone build. It's necessary to make sure polyfill exists.
var P = __webpack_require__(2);
if (P && typeof P.polyfill === 'function') {
P.polyfill();
}
})();
var axios = module.exports = function axios(config) {
config = utils.merge({
@@ -366,15 +373,15 @@ define("axios", ["{Promise: Promise}"], function(__WEBPACK_EXTERNAL_MODULE_2__)
}
// Check if obj is array-like
var isArray = obj.constructor === Array || typeof obj.callee === 'function';
var isArrayLike = isArray(obj) || (typeof obj === 'object' && !isNaN(obj.length));
// Force an array if not already something iterable
if (typeof obj !== 'object' && !isArray) {
if (typeof obj !== 'object' && !isArrayLike) {
obj = [obj];
}
// Iterate over array values
if (isArray) {
if (isArrayLike) {
for (var i=0, l=obj.length; i<l; i++) {
fn.call(null, obj[i], i, obj);
}
@@ -433,6 +440,7 @@ define("axios", ["{Promise: Promise}"], function(__WEBPACK_EXTERNAL_MODULE_2__)
trim: trim
};
/***/ },
/* 5 */
/***/ function(module, exports, __webpack_require__) {
@@ -625,9 +633,10 @@ define("axios", ["{Promise: Promise}"], function(__WEBPACK_EXTERNAL_MODULE_2__)
if (request && request.readyState === 4) {
// Prepare the response
var headers = parseHeaders(request.getAllResponseHeaders());
var responseData = ['text', ''].indexOf(config.responseType || '') !== -1 ? request.responseText : request.response;
var response = {
data: transformData(
request.responseText,
responseData,
headers,
config.transformResponse
),
@@ -690,6 +699,7 @@ define("axios", ["{Promise: Promise}"], function(__WEBPACK_EXTERNAL_MODULE_2__)
request.send(data);
};
/***/ },
/* 10 */
/***/ function(module, exports, __webpack_require__) {
+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
+15 -5
View File
@@ -58,7 +58,14 @@ var axios =
var InterceptorManager = __webpack_require__(6);
// Polyfill ES6 Promise if needed
__webpack_require__(9).polyfill();
(function () {
// webpack is being used to set es6-promise to the native Promise
// for the standalone build. It's necessary to make sure polyfill exists.
var P = __webpack_require__(9);
if (P && typeof P.polyfill === 'function') {
P.polyfill();
}
})();
var axios = module.exports = function axios(config) {
config = utils.merge({
@@ -361,15 +368,15 @@ var axios =
}
// Check if obj is array-like
var isArray = obj.constructor === Array || typeof obj.callee === 'function';
var isArrayLike = isArray(obj) || (typeof obj === 'object' && !isNaN(obj.length));
// Force an array if not already something iterable
if (typeof obj !== 'object' && !isArray) {
if (typeof obj !== 'object' && !isArrayLike) {
obj = [obj];
}
// Iterate over array values
if (isArray) {
if (isArrayLike) {
for (var i=0, l=obj.length; i<l; i++) {
fn.call(null, obj[i], i, obj);
}
@@ -428,6 +435,7 @@ var axios =
trim: trim
};
/***/ },
/* 4 */
/***/ function(module, exports, __webpack_require__) {
@@ -620,9 +628,10 @@ var axios =
if (request && request.readyState === 4) {
// Prepare the response
var headers = parseHeaders(request.getAllResponseHeaders());
var responseData = ['text', ''].indexOf(config.responseType || '') !== -1 ? request.responseText : request.response;
var response = {
data: transformData(
request.responseText,
responseData,
headers,
config.transformResponse
),
@@ -685,6 +694,7 @@ var axios =
request.send(data);
};
/***/ },
/* 9 */
/***/ function(module, exports, __webpack_require__) {
+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
+15 -5
View File
@@ -58,7 +58,14 @@ var axios =
var InterceptorManager = __webpack_require__(7);
// Polyfill ES6 Promise if needed
__webpack_require__(2).polyfill();
(function () {
// webpack is being used to set es6-promise to the native Promise
// for the standalone build. It's necessary to make sure polyfill exists.
var P = __webpack_require__(2);
if (P && typeof P.polyfill === 'function') {
P.polyfill();
}
})();
var axios = module.exports = function axios(config) {
config = utils.merge({
@@ -367,15 +374,15 @@ var axios =
}
// Check if obj is array-like
var isArray = obj.constructor === Array || typeof obj.callee === 'function';
var isArrayLike = isArray(obj) || (typeof obj === 'object' && !isNaN(obj.length));
// Force an array if not already something iterable
if (typeof obj !== 'object' && !isArray) {
if (typeof obj !== 'object' && !isArrayLike) {
obj = [obj];
}
// Iterate over array values
if (isArray) {
if (isArrayLike) {
for (var i=0, l=obj.length; i<l; i++) {
fn.call(null, obj[i], i, obj);
}
@@ -434,6 +441,7 @@ var axios =
trim: trim
};
/***/ },
/* 5 */
/***/ function(module, exports, __webpack_require__) {
@@ -626,9 +634,10 @@ var axios =
if (request && request.readyState === 4) {
// Prepare the response
var headers = parseHeaders(request.getAllResponseHeaders());
var responseData = ['text', ''].indexOf(config.responseType || '') !== -1 ? request.responseText : request.response;
var response = {
data: transformData(
request.responseText,
responseData,
headers,
config.transformResponse
),
@@ -691,6 +700,7 @@ var axios =
request.send(data);
};
/***/ },
/* 10 */
/***/ function(module, exports, __webpack_require__) {
+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",
"version": "0.5.0",
"version": "0.5.1",
"description": "Promise based HTTP client for the browser and node.js",
"main": "index.js",
"scripts": {