Skip to content

Commit

Permalink
fix: npm#3737
Browse files Browse the repository at this point in the history
return valid json with npm search module_not_exists --json
  • Loading branch information
AyushRawal committed Sep 11, 2021
1 parent d57b43d commit 37bc790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/search/format-package-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class JSONOutputStream extends Minipass {
}

end () {
super.write(this._didFirst ? ']\n' : '\n]\n')
super.write(this._didFirst ? ']\n' : '\n[]\n')
super.end()
}
}
Expand Down

0 comments on commit 37bc790

Please sign in to comment.