mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
Add a query parameter "local" to the search method of storage to allow listing only local packages
This commit is contained in:
parent
76bdc74670
commit
ea50f3d3ed
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ Storage.prototype.search = function(startkey, options, callback) {
|
||||||
|
|
||||||
function remote_search() {
|
function remote_search() {
|
||||||
var uplink = self.uplinks[uplinks[i]]
|
var uplink = self.uplinks[uplinks[i]]
|
||||||
if (!uplink) {
|
if (options.req.query.local !== undefined || !uplink) {
|
||||||
return merge_with_local_packages(null, null, {})
|
return merge_with_local_packages(null, null, {})
|
||||||
}
|
}
|
||||||
self.uplinks[uplinks[i]].request({
|
self.uplinks[uplinks[i]].request({
|
||||||
|
|
Loading…
Reference in a new issue