1 line
1.8 KiB
JSON
1 line
1.8 KiB
JSON
{"ast":null,"code":"'use strict';\n\nvar utils = require('./../utils');\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\n\n\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n return data;\n};","map":{"version":3,"names":["utils","require","module","exports","transformData","data","headers","fns","forEach","transform","fn"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/axios/lib/core/transformData.js"],"sourcesContent":["'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n"],"mappings":"AAAA;;AAEA,IAAIA,KAAK,GAAGC,OAAO,CAAC,YAAD,CAAnB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACAC,MAAM,CAACC,OAAP,GAAiB,SAASC,aAAT,CAAuBC,IAAvB,EAA6BC,OAA7B,EAAsCC,GAAtC,EAA2C;EAC1D;EACAP,KAAK,CAACQ,OAAN,CAAcD,GAAd,EAAmB,SAASE,SAAT,CAAmBC,EAAnB,EAAuB;IACxCL,IAAI,GAAGK,EAAE,CAACL,IAAD,EAAOC,OAAP,CAAT;EACD,CAFD;EAIA,OAAOD,IAAP;AACD,CAPD"},"metadata":{},"sourceType":"script"} |