Skip to content

Commit ca168e4

Browse files
authored
Update got to v11 (#794)
* update got to v11 * don't call response.body because the response is the body now * bump timeout to 30 seconds
1 parent 1390d64 commit ca168e4

File tree

3 files changed

+1242
-2331
lines changed

3 files changed

+1242
-2331
lines changed

lib/routes/install.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ function searchMatchingGenerators(app, term, cb) {
5959
}, cb);
6060
}
6161

62-
got('http://yeoman.io/blacklist.json', {json: true})
63-
.then(response => handleDenyList(response.body))
62+
got('http://yeoman.io/blacklist.json')
63+
.json()
64+
.then(response => handleDenyList(response))
6465
.catch(() => handleDenyList([]));
6566
}
6667

0 commit comments

Comments
 (0)