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

Releasing 0.13.1

This commit is contained in:
Matt Zabriskie
2016-07-16 11:13:15 -06:00
parent af07c3145b
commit 377efb89ae
6 changed files with 18 additions and 7 deletions
+12 -1
View File
@@ -1,4 +1,4 @@
/* axios v0.13.0 | (c) 2016 by Matt Zabriskie */
/* axios v0.13.1 | (c) 2016 by Matt Zabriskie */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
@@ -737,6 +737,17 @@ return /******/ (function(modules) { // webpackBootstrap
);
return response;
}, function onRejected(error) {
// Transform response data
if (error && error.response) {
error.response.data = transformData(
error.response.data,
error.response.headers,
config.transformResponse
);
}
return Promise.reject(error);
});
};