Comparing version 1.0.25 to 1.0.26
26
index.js
@@ -116,2 +116,28 @@ var CryptoJS = require('crypto-js') | ||
}, | ||
getRewardsPending: (name, cb) => { | ||
fetch(avalon.randomNode()+'/rewards/pending/'+name, { | ||
method: 'get', | ||
headers: { | ||
'Accept': 'application/json, text/plain, */*', | ||
'Content-Type': 'application/json' | ||
} | ||
}).then(res => res.json()).then(function(res) { | ||
cb(null, res) | ||
}).catch(function(err) { | ||
cb(err) | ||
}) | ||
}, | ||
getRewardsClaimed: (name, cb) => { | ||
fetch(avalon.randomNode()+'/rewards/claimed/'+name, { | ||
method: 'get', | ||
headers: { | ||
'Accept': 'application/json, text/plain, */*', | ||
'Content-Type': 'application/json' | ||
} | ||
}).then(res => res.json()).then(function(res) { | ||
cb(null, res) | ||
}).catch(function(err) { | ||
cb(err) | ||
}) | ||
}, | ||
generateCommentTree: (root, author, link) => { | ||
@@ -118,0 +144,0 @@ var replies = [] |
{ | ||
"name": "javalon", | ||
"version": "1.0.25", | ||
"version": "1.0.26", | ||
"description": "javascript api for the avalon blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
513374
666
27