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.10.0 to 0.10.1

23

lib/Subnets.js

@@ -15,6 +15,13 @@ 'use strict';

};
let url = node.json._links.self.href + '/subnets';
if (options) {
if (options._id) {
url += '/' + options._id;
url += `/${options._id}`;
if (options.full_dehydrate) {
url += `?full_dehydrate=${options.full_dehydrate}`;
}
APIClient.get(url, config, (err, json) => {

@@ -28,2 +35,14 @@ if (err) {

} else {
const params = [];
if (options.page) {
params.push(`page=${options.page}`);
}
if (options.per_page) {
params.push(`per_page=${options.per_page}`);
}
if (params.length > 0) {
url += `?${params.join('&')}`;
}
APIClient.get(url, config, (err, json) => {

@@ -57,2 +76,3 @@ if (err) {

const url = node.json._links.self.href + '/subnets';
APIClient.post(url, config, payload, (err, json) => {

@@ -66,5 +86,4 @@ if (err) {

}
};
module.exports = Subnets;

2

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

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

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