We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02c22bc commit 0cdcbe2Copy full SHA for 0cdcbe2
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "legible",
3
- "version": "0.2.10",
+ "version": "0.2.11",
4
"description": "cleanly code your api requests",
5
"main": "dist/index.js",
6
"scripts": {
src/utilities/body.js
@@ -2,7 +2,7 @@ export default (body) => {
// Handle empty case
if (!body) return null
// Handle FormData
- if (body instanceof FormData) return body
+ if (typeof FormData !== 'undefined' && body instanceof FormData) return body
try {
7
// Handle already stringified JSON
8
JSON.parse(body)
0 commit comments