node-papergame-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
17
index.js
@@ -44,3 +44,3 @@ const request = require('request-promise'); | ||
//console.log(response); | ||
cb(response['success']); | ||
cb(response); | ||
// {"success":true,"amount":100,"to":"{ID кому}","current":56} | ||
@@ -81,3 +81,3 @@ | ||
*/ | ||
txList(last_tx_id){ | ||
txList(last_tx_id,cb){ | ||
@@ -100,6 +100,10 @@ request( | ||
var txs = response['tx_list']; | ||
if(txs.length>0){ | ||
console.log('получено %s транзакций',txs.length); | ||
} | ||
if(txs.success){ | ||
var txs = response['tx_list']; | ||
cb(false,txs); | ||
}else { | ||
cb(new Error('Не удалось получить txList')); | ||
} | ||
}); | ||
@@ -131,3 +135,2 @@ } | ||
* Получить ссылку на перевод | ||
* id кому перевод | ||
* summa - сумма | ||
@@ -134,0 +137,0 @@ */ |
{ | ||
"name": "node-papergame-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Papergame api wrapper", | ||
@@ -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
3349
123