Skip to content

Commit 37bc790

Browse files
committed
fix: #3737
return valid json with npm search module_not_exists --json
1 parent d57b43d commit 37bc790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/search/format-package-stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class JSONOutputStream extends Minipass {
4242
}
4343

4444
end () {
45-
super.write(this._didFirst ? ']\n' : '\n]\n')
45+
super.write(this._didFirst ? ']\n' : '\n[]\n')
4646
super.end()
4747
}
4848
}

0 commit comments

Comments
 (0)