mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
1 line
1.7 KiB
JSON
1 line
1.7 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,"sources":["/app/node_modules/axios/lib/core/transformData.js"],"names":["utils","require","module","exports","transformData","data","headers","fns","forEach","transform","fn"],"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;AAC1D;AACAP,EAAAA,KAAK,CAACQ,OAAN,CAAcD,GAAd,EAAmB,SAASE,SAAT,CAAmBC,EAAnB,EAAuB;AACxCL,IAAAA,IAAI,GAAGK,EAAE,CAACL,IAAD,EAAOC,OAAP,CAAT;AACD,GAFD;AAIA,SAAOD,IAAP;AACD,CAPD","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"]},"metadata":{},"sourceType":"script"} |