-
Couldn't load subscription status.
- Fork 146
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
When I add @alpacahq/alpaca-trade-api version 3.1.2 (newest as of writing) as a dependency, this adds an indirect dependency of axios version 0.21.4 which contains a moderate vulnerability, see GHSA-wf5p-g6vw-rhxx for more details on that vulnerability.
Expected Behavior
When I add @alpacahq/alpaca-trade-api it should add a or the most recent version of all its dependencies, e.g. axios version 1.7.8.
SDK Version I encountered this issue in
alpaca-trade-api 3.1.2
Steps To Reproduce
1. In a node environment, add `@alpacahq/alpaca-trade-api` to the project
2. Use your favorite package manager to fix vulnerabilities, e.g. "pnpm audit fix" to check for vulnerabilities.
3. Use a tool like "pnpm why axios" to confirm that `@alpacahq/alpaca-trade-api` uses it as an indirect dependencyFilled out the Steps to Reproduce section?
- I have entered valid steps to reproduce my issue or have attached a minimally reproducible case in code that shows my issue happening; and understand that without this my issue will be flagged as invalid and closed after 30 days.
Anything else?
It might make sense to consider a practice whereby keeping all dependencies on a recent version.
Also, it might make sense to consider making @alpacahq/alpaca-trade-api ESM-compatible. Based on the information I have at this time, axios is not ESM-compatible. A suitable replacement could be node-fetch which is ESM-compatible.