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.2.2 to 0.3.0

.env

8

index.js

@@ -6,2 +6,6 @@ var Clients = require('./lib/Clients.js'),

Node = require('./lib/Node.js'),
Subnets = require('./lib/Subnets.js'),
Subnet = require('./lib/Subnet.js'),
Subscriptions = require('./lib/Subscriptions.js'),
Subscription = require('./lib/Subscription.js'),
Transactions = require('./lib/Transactions.js'),

@@ -17,2 +21,6 @@ Transaction = require('./lib/Transaction.js'),

Node: Node,
Subnets : Subnets,
Subnet : Subnet,
Subscriptions : Subscriptions,
Subscription : Subscription,
Transactions: Transactions,

@@ -19,0 +27,0 @@ Transaction: Transaction,

2

lib/Clients.js

@@ -13,3 +13,3 @@ 'use strict';

this.isProduction = isProduction;
this.baseUrl = 'https://synapsepay.com/api/3';
this.baseUrl = 'https://api.synapsefi.com/v3.1';
if (!this.isProduction) {

@@ -16,0 +16,0 @@ this.baseUrl = 'https://uat-api.synapsefi.com/v3.1';

@@ -29,5 +29,11 @@ 'use strict';

}
if (options.force_refresh && !options.full_dehydrate) {
url += `?full_dehydrate=yes&force_refresh=${options.force_refresh}`;
}
if (options.full_dehydrate) {
url += `?full_dehydrate=${options.full_dehydrate}`;
}
if (options.full_dehydrate && options.force_refresh) {
url += `&force_refresh=${options.force_refresh}`;
}
}

@@ -34,0 +40,0 @@ APIClient.get(url, config, (err, json) => {

{
"name": "synapsepay",
"version": "0.2.2",
"version": "0.3.0",
"description": "Node.js Library for SynapsePay API v3.x Rest",

@@ -17,2 +17,3 @@ "main": "index.js",

"devDependencies": {
"chai": "^4.1.2",
"chai-http": "^3.0.0",

@@ -19,0 +20,0 @@ "eslint": "^3.7.1",

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