Comparing version 0.0.20 to 0.0.21
@@ -44,9 +44,15 @@ 'use strict' | ||
case 'POST': | ||
// if(typeof window === 'undefined') { | ||
// body = JSON.stringify(data); | ||
// headers = {'Content-Type': 'application/json;charset=utf-8'}; | ||
// } else { | ||
// const form = new FormData(); | ||
// keys.forEach(key => { form.append(key, data[key]) }); | ||
// body = form; | ||
// headers = {}; | ||
// } | ||
body = JSON.stringify(data); | ||
if(typeof window === 'undefined') { | ||
body = JSON.stringify(data); | ||
headers = {'Content-Type': 'application/json;charset=utf-8'}; | ||
} else { | ||
const form = new FormData(); | ||
keys.forEach(key => { form.append(key, data[key]) }); | ||
body = form; | ||
headers = {}; | ||
@@ -53,0 +59,0 @@ } |
{ | ||
"name": "guardee", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Guardee Wallet API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43507
1165