Skip to content

Commit 6006095

Browse files
committed
fix empty output format bug
Signed-off-by: Utkarsh Srivastava <[email protected]>
1 parent cb004b5 commit 6006095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helper/output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const jp = require("jsonpath");
77
* @param {*} data
88
* @param {"json" | "yaml"} format output format
99
*/
10-
function Output(data, format = "json", filter = "", silent = false) {
10+
function Output(data, format = "json", filter = "$", silent = false) {
1111
if (silent) return;
1212

1313
data = jp.query(data, filter);

0 commit comments

Comments
 (0)