-
Notifications
You must be signed in to change notification settings - Fork 31
Are sequential patched supported? #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So i did some tesing with import and require. |
Looks like the issue is with proxy created in https://github.com/DataDog/import-in-the-middle/blob/main/lib/register.js. |
So the issue is that in register only setter is used so every time hook is called with the original |
Could you submit a PR to fix this or do you have a patch I could try? |
I managed to fix the issue with default import patching but when i tested patching named exports tests failed :( Right now i don't have a solution to this problem |
As far as i understand and according to some testing being done if there are multiple multiple hooks attached to the same package the last one will be eventually used in application. Am i right? If so are there any methods to apply sequential patches to the package. The case is that i'm using library that's patched the package i want to patch.
Library version: 1.8.0
Node version: 20.11.1
The text was updated successfully, but these errors were encountered: