Skip to content

Commit

Permalink
fix empty output format bug
Browse files Browse the repository at this point in the history
Signed-off-by: Utkarsh Srivastava <[email protected]>
  • Loading branch information
tangledbytes committed Jul 5, 2021
1 parent cb004b5 commit 6006095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const jp = require("jsonpath");
* @param {*} data
* @param {"json" | "yaml"} format output format
*/
function Output(data, format = "json", filter = "", silent = false) {
function Output(data, format = "json", filter = "$", silent = false) {
if (silent) return;

data = jp.query(data, filter);
Expand Down

0 comments on commit 6006095

Please sign in to comment.