Skip to content

WIP Replace request with teeny-request#302

Closed
XhmikosR wants to merge 1 commit intonickmerwin:masterfrom
XhmikosR:teeny-request
Closed

WIP Replace request with teeny-request#302
XhmikosR wants to merge 1 commit intonickmerwin:masterfrom
XhmikosR:teeny-request

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