synapsepay
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -101,7 +101,11 @@ 'use strict'; | ||
} else { | ||
const nodes = []; | ||
for (let i = 0; i < json.nodes.length; i++) { | ||
nodes.push(new Node(user, json.nodes[i])); | ||
if (json.nodes) { | ||
const nodes = []; | ||
for (let i = 0; i < json.nodes.length; i++) { | ||
nodes.push(new Node(user, json.nodes[i])); | ||
} | ||
callback(null, nodes); | ||
} else { | ||
callback(null, json); | ||
} | ||
callback(null, nodes); | ||
} | ||
@@ -108,0 +112,0 @@ }); |
{ | ||
"name": "synapsepay", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Node.js Library for SynapsePay API v3.x Rest", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
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
41713
20
1050