Skip to content

[BUG] search is ignoring --searchopts #2791

@wraithgar

Description

@wraithgar

Current Behavior:

--searchopts is not making it into the options passed to search

Expected Behavior:

--searchopts is added to the options passed into search

Steps To Reproduce:

They are passed into prepareIncludes

include: prepareIncludes(args, npm.flatOptions.search.opts),

And then ignored

cli/lib/search.js

Lines 70 to 74 in 113b131

function prepareIncludes (args, searchopts) {
return args
.map(s => s.toLowerCase())
.filter(s => s)
}

Environment:

npm v7.6.0

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 1high priority issueRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions