Skip to content

Migrate from got to simple-get#945

Merged
lovell merged 1 commit intolovell:masterfrom
pbomb:got-to-simple-get
Sep 12, 2017
Merged

Migrate from got to simple-get#945
lovell merged 1 commit intolovell:masterfrom
pbomb:got-to-simple-get

Conversation

@pbomb
Copy link
Copy Markdown
Contributor

@pbomb pbomb commented Sep 11, 2017

Fixes #938

Copy link
Copy Markdown
Owner

@lovell lovell left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. There are a couple of lines that will need updating to get everything working.

binding.js Outdated
const gotOpt = {
const url = distBaseUrl + tarFilename;
const simpleGetOpt = {
url,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This will probably need to be url: url, as Node v4 lacks destructuring support.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

will do

binding.js Outdated
};
const url = distBaseUrl + tarFilename;
got.stream(url, gotOpt).on('response', function (response) {
simpleGet.stream(simpleGetOpt, function (err, response) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Is this correct? Perhaps simpleGet(simpleGetOpt, ...?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops, yeah. You're right. Fixing.

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 11, 2017

Coverage Status

Coverage remained the same at 99.319% when pulling b71a342 on pbomb:got-to-simple-get into 5f29d1b on lovell:master.

Repository owner deleted a comment from coveralls Sep 12, 2017
@lovell lovell merged commit 0004f5d into lovell:master Sep 12, 2017
@lovell
Copy link
Copy Markdown
Owner

lovell commented Sep 12, 2017

Brilliant, thank you!

@lovell lovell added this to the v0.19.0 milestone Sep 12, 2017
@pbomb
Copy link
Copy Markdown
Contributor Author

pbomb commented Sep 12, 2017

The v0.19.0 milestone still has 9 open issues, but I'd really like to get this change released to unblock my work. Any chance of making a patch release with just this change? It should be transparent to users.

@lovell
Copy link
Copy Markdown
Owner

lovell commented Sep 12, 2017

"get this change released to unblock my work"

No worries.

Your profile suggests "work" in this context might relate to "Workday, Inc". If so, do you think your employer might be able to make a suitable donation to a local homelessness charity by way of thanks?

@pbomb
Copy link
Copy Markdown
Contributor Author

pbomb commented Sep 12, 2017

Sure. I just made a donation which they'll match. Thanks!

@lovell lovell modified the milestones: v0.19.0, v0.18.3 Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants