-
Notifications
You must be signed in to change notification settings - Fork 201
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
Upgrade to node-fetch v2.x. #477
Conversation
@@ -31,7 +31,8 @@ | |||
"form-data": "^2.2.0", | |||
"joi": "^13.0.0", | |||
"lodash": "^4.17.10", | |||
"node-fetch": "^1.5.2" | |||
"node-fetch": "^2.1.2", | |||
"encoding": "^0.1.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this module used?
@@ -128,7 +128,7 @@ class FrisbySpec { | |||
this._fetch = fetch(this._request, { timeout: this.timeout() }) // 'timeout' is a node-fetch option | |||
.then(response => { | |||
this._response = new FrisbyResponse(response); | |||
return response.text(); | |||
return response.textConverted(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably just use the text()
method, right?
encoding package and textConverted method are for Backward compatibility.(b42a82f) |
Thank you for your review. PRs that I am planning is completed. Please release new version. |
Upgrade from node-fetch v1.x to node-fetch v2.x.
https://github.com/bitinn/node-fetch/blob/master/UPGRADE-GUIDE.md