lib/middleware/transformData.js
function checkAndTransform(method) {
            return re.test(method) ? function (req) {
                return next[method](req).then(function (res) {
                    return Object.assign(res, { data: transform(res.data) });
                });
            } : function (req) {
                return next[method](req);
            };
        }
function checkAndTransform(method) {
            return re.test(method) ? function (req) {
                return next[method](req).then(function (res) {
                    return Object.assign(res, { data: transform(res.data) });
                });
            } : function (req) {
                return next[method](req);
            };
        }
function checkAndTransform ( method ) { return re . test ( method ) ? function ( req ) { return next [ method ] ( req ) . then ( function ( res ) { return Object . assign ( res , { data : transform ( res . data ) } ) ; } ) ; } : function ( req ) { return next [ method ] ( req ) ; } ; }
Checks if the call should be transformed. If yes, it applies the transform function
Checks if the call should be transformed . If yes it applies the transform function