code: 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);
              };
          }
docs: Checks if the call should be transformed. If yes, it applies the transform function