Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

synapsepay

Package Overview
Dependencies
Maintainers
5
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synapsepay - npm Package Compare versions

Comparing version 0.11.2 to 0.12.0

17

lib/Node.js

@@ -64,2 +64,3 @@ 'use strict';

let url = `${this.json._links.self.href}/dummy-tran`;
let useSubsequentDelimiter = false;

@@ -69,3 +70,19 @@ if (options) {

url += `?is_credit=${options.is_credit}`;
useSubsequentDelimiter = true;
}
if (options.type) {
let delimiter = useSubsequentDelimiter ? '&' : '?';
url += `${delimiter}type=${options.type}`;
useSubsequentDelimiter = true;
}
if (options.foreign_transaction) {
let delimiter = useSubsequentDelimiter ? '&' : '?';
url += `${delimiter}foreign_transaction=${options.foreign_transaction}`;
useSubsequentDelimiter = true;
}
if (options.subnetid) {
let delimiter = useSubsequentDelimiter ? '&' : '?';
url += `${delimiter}subnetid=${options.subnetid}`;
useSubsequentDelimiter = true;
}
}

@@ -72,0 +89,0 @@

2

package.json
{
"name": "synapsepay",
"version": "0.11.2",
"version": "0.12.0",
"description": "Node.js Library for SynapsePay API v3.x Rest",

@@ -5,0 +5,0 @@ "repository": {

@@ -18,12 +18,180 @@ var Clients = require('./lib/Clients.js');

const testFunc = () => {
PublicKey.get(
Users.get(
Helpers.client,
{},
function(err, pubKeyObj) {
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log('ERR ', err);
console.log(err);
return;
} else {
console.log('PK ', pubKeyObj);
return;
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
return;
} else {
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
return;
} else {
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
return;
} else {
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
return;
} else {
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
return;
} else {
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
return;
} else {
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
return;
} else {
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
return;
} else {
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
return;
} else {
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
return;
} else {
Users.get(
Helpers.client,
{
_id: '5b0da0e4ea4cf70075f74c4c',
fingerprint: '5aae733c07d79c741fbb12e039bbee6a',
ip_address: '127.0.0.1'
},
function(err, user) {
if (err) {
console.log(err);
} else {
console.log(user);
return;
}
}
)
}
}
)
}
}
)
}
}
)
}
}
)
}
}
)
}
}
)
}
}
)
}
}
)
}
}
)
}
}
)
}

@@ -30,0 +198,0 @@ }

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