Skip to content

Commit

Permalink
Update got to v11 (#794)
Browse files Browse the repository at this point in the history
* update got to v11

* don't call response.body because the response is the body now

* bump timeout to 30 seconds
  • Loading branch information
strmer15 authored Nov 6, 2023
1 parent 1390d64 commit ca168e4
Show file tree
Hide file tree
Showing 3 changed files with 1,242 additions and 2,331 deletions.
5 changes: 3 additions & 2 deletions lib/routes/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ function searchMatchingGenerators(app, term, cb) {
}, cb);
}

got('http://yeoman.io/blacklist.json', {json: true})
.then(response => handleDenyList(response.body))
got('http://yeoman.io/blacklist.json')
.json()
.then(response => handleDenyList(response))
.catch(() => handleDenyList([]));
}

Expand Down
Loading

0 comments on commit ca168e4

Please sign in to comment.