Skip to content

Commit

Permalink
feat: replace request with node-fetch, #100 (#105)
Browse files Browse the repository at this point in the history
* feat: replace request with node-fetch, #100

BREAKING CHANGE: Node fetch returns a different instance when used with `json:false` argument

* chore: typo src/api.js

Co-authored-by: Iheb KHEMISSI <iheb.khemissi+github@gmail.com>

Co-authored-by: Iheb KHEMISSI <iheb.khemissi+github@gmail.com>
  • Loading branch information
MrSwitch and ikhemissi authored Sep 29, 2021
1 parent 63fc416 commit 337df02
Show file tree
Hide file tree
Showing 10 changed files with 237 additions and 160 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"plugins": [
"promise"
],
"env": {
"node": true,
"es2020": true
},
"rules": {
"node/shebang": 0,
"prefer-promise-reject-errors": 2,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const hub = new Hub({

## api

This makes a request using [request-promise](https://www.npmjs.com/package/request-promise-native).
This makes a request using [node-fetch](https://www.npmjs.com/package/node-fetch).

```javascript
await hub.api({
Expand Down
Loading

0 comments on commit 337df02

Please sign in to comment.