Skip to content

Commit

Permalink
fix: set objectMode for search filter stream
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Aug 30, 2023
1 parent dbd5885 commit b34ee65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/commands/search.js
Expand Up @@ -68,6 +68,10 @@ class Search extends BaseCommand {
let anyOutput = false

class FilterStream extends Minipass {
constructor () {
super({ objectMode: true })
}

write (pkg) {
if (filter(pkg, opts.include, opts.exclude)) {
super.write(pkg)
Expand Down

0 comments on commit b34ee65

Please sign in to comment.