Skip to content
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

Polyfill with axios #3

Closed
wants to merge 3 commits into from
Closed

Polyfill with axios #3

wants to merge 3 commits into from

Conversation

Myestery
Copy link

@Myestery Myestery commented Aug 19, 2024

Fix woodser/monero-ts#229

Request-Promise and Request libraries are deprecated so I polyfilled with axios to escape using them
A more permanent solution will be to rewrite the implementation in monero-ts to use something like axios

@Myestery
Copy link
Author

Sample usage

Screenshot 2024-08-19 at 14 46 47

@Myestery
Copy link
Author

@woodser were you able to take a look?

@woodser
Copy link
Owner

woodser commented Aug 19, 2024

This solution from mainnet-pat gets us very close by simply adding "stream" as a node polyfill: #2

The only remaining issue should be resolved by updating the request and request promise dependencies, hopefully avoiding the need for axios polyfill.

@woodser
Copy link
Owner

woodser commented Aug 22, 2024

This issue was resolved by switching monero-ts to use Axios instead of the deprecated request libraries: woodser/monero-ts#230, #4

Thanks for your effort though!

@woodser woodser closed this Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix vite sample application [2 XMR]
2 participants