mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
Moving utility functions into utils
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
var forEach = require('./forEach');
|
||||
var utils = require('./utils');
|
||||
|
||||
/**
|
||||
* Transform the data for a request or a response
|
||||
@@ -11,7 +11,7 @@ var forEach = require('./forEach');
|
||||
* @returns {*} The resulting transformed data
|
||||
*/
|
||||
module.exports = function transformData(data, headers, fns) {
|
||||
forEach(fns, function (fn) {
|
||||
utils.forEach(fns, function (fn) {
|
||||
data = fn(data, headers);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user