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

[Bugfix] JS-SDK: Remove dotenv and add tests #68

Merged
merged 7 commits into from
Apr 26, 2024

Conversation

mdp
Copy link
Contributor

@mdp mdp commented Apr 25, 2024

I might be misunderstanding something here, but I suspect that using 'dotenv' in an NPM module could result in some unexpected modification of the users environment variables. For example, upon importing FirecrawlApp, I would be surprised if it loaded my .env file into the environment. I think this should be a decision left to the end-user.

I also added tests after removing dotenv, but it's in a second commit, so feel free to ignore and cherry pick a7be09e if you don't want the jest tests.

Copy link
Collaborator

@rafaelsideguide rafaelsideguide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Awesome work with the tests!

@rafaelsideguide
Copy link
Collaborator

rafaelsideguide commented Apr 25, 2024

  • publish npm package

@nickscamara
Copy link
Member

All good

@nickscamara nickscamara merged commit ebd9be3 into mendableai:main Apr 26, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants