summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/libnpmsearch/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/libnpmsearch/index.js')
-rw-r--r--deps/npm/node_modules/libnpmsearch/index.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/deps/npm/node_modules/libnpmsearch/index.js b/deps/npm/node_modules/libnpmsearch/index.js
index b84cab150b..995549aeee 100644
--- a/deps/npm/node_modules/libnpmsearch/index.js
+++ b/deps/npm/node_modules/libnpmsearch/index.js
@@ -5,12 +5,12 @@ const getStream = require('get-stream')
const npmFetch = require('npm-registry-fetch')
const SearchOpts = figgyPudding({
- detailed: {default: false},
- limit: {default: 20},
- from: {default: 0},
- quality: {default: 0.65},
- popularity: {default: 0.98},
- maintenance: {default: 0.5},
+ detailed: { default: false },
+ limit: { default: 20 },
+ from: { default: 0 },
+ quality: { default: 0.65 },
+ popularity: { default: 0.98 },
+ maintenance: { default: 0.5 },
sortBy: {}
})
@@ -60,6 +60,7 @@ function searchStream (query, opts) {
query: {
text: Array.isArray(query) ? query.join(' ') : query,
size: opts.limit,
+ from: opts.from,
quality: opts.quality,
popularity: opts.popularity,
maintenance: opts.maintenance