synapsepay
Advanced tools
Comparing version 0.2.2 to 0.3.0
@@ -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, |
@@ -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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
34222
19
841
6
1