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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user