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

removing dependency node-fetch to alleviate snyk issues #325

Merged
merged 2 commits into from
Nov 16, 2022
Merged

removing dependency node-fetch to alleviate snyk issues #325

merged 2 commits into from
Nov 16, 2022

Conversation

clavery
Copy link
Contributor

@clavery clavery commented Sep 3, 2022

This removes node-fetch from the project as we keep getting snyk PRs that we cannot address due to node-fetch moving to ESM-only.

i.e. This should allow us to close #319 outright

This uses the existing request package and simply wraps it asynchronously so that the code flows largely the same without rewriting it in callback-style. Side-benefit here is that we get the same HTTP debug output as other commands.

I incidentally fixed some (but not all) bugs also fixed in @sandragolden's PR #318 as that was necessary to test some of these commands but there's lots more updates in that PR.

cc @hnestmann

@tobiaslohr
Copy link
Contributor

Awesome @clavery, will have a look at this.

@tobiaslohr
Copy link
Contributor

@clavery Can you please review the PR again as the branch has some conflicts.

@clavery
Copy link
Contributor Author

clavery commented Nov 16, 2022

@tobiaslohr all set

@sandragolden FYI I think all your stuff is merged properly here

@tobiaslohr tobiaslohr added the dependencies Pull requests that update a dependency file label Nov 16, 2022
@tobiaslohr tobiaslohr added this to the 2.10.0 milestone Nov 16, 2022
@tobiaslohr tobiaslohr merged commit eb26111 into SalesforceCommerceCloud:master Nov 16, 2022
@tobiaslohr
Copy link
Contributor

Thanks @clavery for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants