2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

fix: convert resolveConfig default export to named function for webpack/babel compatibility (#10891)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
SapirBaruch
2026-05-24 16:04:25 +03:00
committed by GitHub
parent 67e10e7976
commit b0771a3c3e
+4 -2
View File
@@ -35,7 +35,7 @@ const encodeUTF8 = (str) =>
String.fromCharCode(parseInt(hex, 16))
);
export default (config) => {
function resolveConfig(config) {
const newConfig = mergeConfig({}, config);
// Read only own properties to prevent prototype pollution gadgets
@@ -103,4 +103,6 @@ export default (config) => {
}
return newConfig;
};
}
export default resolveConfig;