Skip to content

Commit

Permalink
chore: patch axios to avoid .constructor = clash with harden
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Aug 27, 2023
1 parent 8838724 commit a378090
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/fincaps/patches/axios+1.5.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/axios/lib/utils.js b/node_modules/axios/lib/utils.js
index a386b77..da4923f 100644
--- a/node_modules/axios/lib/utils.js
+++ b/node_modules/axios/lib/utils.js
@@ -542,7 +542,7 @@ const reduceDescriptors = (obj, reducer) => {
forEach(descriptors, (descriptor, name) => {
let ret;
if ((ret = reducer(descriptor, name, obj)) !== false) {
- reducedDescriptors[name] = ret || descriptor;
+ Object.defineProperty(reducedDescriptors, name, { value: ret || descriptor });
}
});

0 comments on commit a378090

Please sign in to comment.