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

Replace request with axios #267

Closed
wants to merge 2 commits into from
Closed

Replace request with axios #267

wants to merge 2 commits into from

Conversation

cktang88
Copy link

@cktang88 cktang88 commented Nov 29, 2019

Fix #204
Uses: https://bundlephobia.com/result?p=axios@0.19.0
Should save around 170kb gzipped

@cktang88
Copy link
Author

@XhmikosR review?

@cktang88 cktang88 changed the title Replace request Replace request with axios Nov 29, 2019
@@ -1,6 +1,7 @@
'use strict';
// @ts-check
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't needed

@@ -61,7 +63,7 @@ describe('sendToCoveralls', () => {

// set up mock process.stdout.write temporarily
const origStdoutWrite = process.stdout.write;
process.stdout.write = function(string, ...args) {
process.stdout.write = function (string, ...args) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be reverted

@XhmikosR
Copy link
Contributor

@cktang88 my main concern is if everything will work fine in case of exceptions.

/CC @nickmerwin

@XhmikosR
Copy link
Contributor

Also, TBH I'm not sure I'd go with axios. Maybe node-fetch or got (8.x for Node.js 6.x support) would be a better choice.

@jaeh jaeh mentioned this pull request Feb 13, 2020
@XhmikosR
Copy link
Contributor

@nickmerwin this can be closed

@nickmerwin nickmerwin closed this Apr 23, 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?
3 participants