From b34ee65ad1c82b53d5b5b28595203e18163fe4df Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Tue, 15 Aug 2023 17:20:03 -0700 Subject: [PATCH] fix: set objectMode for search filter stream --- lib/commands/search.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/commands/search.js b/lib/commands/search.js index 5fb0a12bce138..85ff7db2b7884 100644 --- a/lib/commands/search.js +++ b/lib/commands/search.js @@ -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)