Socket
Socket
Sign inDemoInstall

guardee

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guardee - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

14

controller/api.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc