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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Replace request with teeny-request #302

Closed
wants to merge 1 commit into from
Closed

WIP Replace request with teeny-request #302

wants to merge 1 commit into from

Conversation

XhmikosR
Copy link
Contributor

@XhmikosR XhmikosR commented May 3, 2020

Draft because I could use some help with tests

@nickmerwin if you have any suggestions how to fix the tests to stub teeny-request since it doesn't expose a post function let me know 馃檪

Size comparison:

Screenshot_2020-05-03 Package Phobia

This is an alternative to #275 with a package that has very close API to request. I'm not sure if v6.0.3 works with Node.js 6.x, but we'll know for sure after we fix the tests.

If merged fixes #204 and closes #275.

@mykola-mokhnach
Copy link

https://www.npmjs.com/package/axios could also be a good replacement

@XhmikosR
Copy link
Contributor Author

XhmikosR commented May 4, 2020

I'm trying to keep using callbacks and not promises.

@mykola-mokhnach
Copy link

I'm trying to keep using callbacks and not promises.

Any particular reason for that? I thought everything is now moving to promises for good

@XhmikosR
Copy link
Contributor Author

XhmikosR commented May 4, 2020

The whole codebase is using callbacks, I'm not going to change that myself 馃槢

@XhmikosR XhmikosR closed this Dec 11, 2020
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.

Replace request lib?
2 participants