Skip to content

Commit

Permalink
fix: fix stringify default type
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Dec 1, 2020
1 parent 867365a commit a3f147f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stringify.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ function stringify(data, options) {
}
}

const {type} = {
type: 'json',
const {type = 'json'} = {
...options,
}

Expand Down

0 comments on commit a3f147f

Please sign in to comment.