Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
Increased npmsearch query limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Heejin Lee committed Mar 24, 2016
1 parent 0735e8b commit 2c3b605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main-es6/plugins/hain-package-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = (context) => {
function* searchPackages(query) {
const query_enc = query;
const fields = 'name,rating,version,description,keywords,author';
const url = `http://npmsearch.com/query?q=name:${query_enc}&fields=${fields}&default_operator=AND&sort=rating:desc`;
const url = `http://npmsearch.com/query?q=name:${query_enc}&fields=${fields}&default_operator=AND&sort=rating:desc&size=50`;
const res = yield got(url, { json: true });
const packages = _.filter(res.body.results, x => {
return (x.keywords && x.keywords.indexOf(PLUGIN_API_VERSION) >= 0);
Expand Down

0 comments on commit 2c3b605

Please sign in to comment.