Skip to content

Conversation

@Mathieu2301
Copy link
Owner

This pull request includes several updates to the @mathieuc/tradingview package to enhance functionality and fix issues. The most important changes involve updating the package version, modifying the getUser function to handle redirects, and adjusting a test case for custom chart types.

Version Update:

  • package.json: Updated the package version from 3.5.0 to 3.5.1.

Enhancements to getUser Function:

  • src/miscRequests.js: Added the headers variable to capture response headers and included maxRedirects: 0 in the axios.get call to prevent automatic redirects.
  • src/miscRequests.js: Added a check to recursively call getUser with the new location if a redirect is detected in the response headers.

Test Adjustments:

@Mathieu2301 Mathieu2301 merged commit d60fc3e into main Feb 22, 2025
8 checks passed
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.

2 participants