Skip to content

Commit 2c3b605

Browse files
author
Heejin Lee
committed
Increased npmsearch query limit
1 parent 0735e8b commit 2c3b605

File tree

1 file changed

+1
-1
lines changed
  • app/main-es6/plugins/hain-package-manager

1 file changed

+1
-1
lines changed

app/main-es6/plugins/hain-package-manager/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = (context) => {
2929
function* searchPackages(query) {
3030
const query_enc = query;
3131
const fields = 'name,rating,version,description,keywords,author';
32-
const url = `http://npmsearch.com/query?q=name:${query_enc}&fields=${fields}&default_operator=AND&sort=rating:desc`;
32+
const url = `http://npmsearch.com/query?q=name:${query_enc}&fields=${fields}&default_operator=AND&sort=rating:desc&size=50`;
3333
const res = yield got(url, { json: true });
3434
const packages = _.filter(res.body.results, x => {
3535
return (x.keywords && x.keywords.indexOf(PLUGIN_API_VERSION) >= 0);

0 commit comments

Comments
 (0)