Comparing version 0.0.21 to 0.0.23
@@ -44,17 +44,4 @@ '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 { | ||
headers = {}; | ||
} | ||
break; | ||
@@ -61,0 +48,0 @@ default: throw 'Invalid method.'; |
{ | ||
"name": "guardee", | ||
"version": "0.0.21", | ||
"version": "0.0.23", | ||
"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
42887
1152