balanceofsatoshis 25.6.0 → 25.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/package.json +4 -3
- package/telegram/start_telegram_bot.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Versions
|
|
2
2
|
|
|
3
|
+
## 25.6.2
|
|
4
|
+
|
|
5
|
+
- `telegram`: Fix invoices settled before the bot started being reported as new
|
|
6
|
+
|
|
7
|
+
## 25.6.1
|
|
8
|
+
|
|
9
|
+
- Add support for LND 0.21.6 and LND 0.20.7
|
|
10
|
+
|
|
3
11
|
## 25.6.0
|
|
4
12
|
|
|
5
13
|
- `stream`: Add command to stream a payment to a lnurl or lightning address
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"ini": "7.0.0",
|
|
36
36
|
"inquirer": "14.2.5",
|
|
37
37
|
"ln-accounting": "10.0.9",
|
|
38
|
-
"ln-service": "60.
|
|
38
|
+
"ln-service": "60.2.0",
|
|
39
39
|
"ln-sync": "8.0.9",
|
|
40
40
|
"ln-telegram": "8.2.0",
|
|
41
41
|
"moment": "2.31.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"qrcode-terminal": "0.12.0",
|
|
45
45
|
"sanitize-filename": "1.6.4",
|
|
46
46
|
"socks-proxy-agent": "10.1.0",
|
|
47
|
-
"table": "6.
|
|
47
|
+
"table": "6.10.1",
|
|
48
48
|
"tiny-secp256k1": "2.2.5",
|
|
49
49
|
"window-size": "1.1.1"
|
|
50
50
|
},
|
|
@@ -100,7 +100,8 @@
|
|
|
100
100
|
"integration-tests": "node test/integration",
|
|
101
101
|
"postpack": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag -s v$PACKAGE_VERSION -m v$PACKAGE_VERSION && git push github --tags",
|
|
102
102
|
"postpublish": "docker buildx build --platform linux/amd64,linux/arm64 -t alexbosworth/balanceofsatoshis -t alexbosworth/balanceofsatoshis:$npm_package_version --push .",
|
|
103
|
+
"reinstall-dependencies": "rm -rf node_modules package-lock.json && npm i",
|
|
103
104
|
"test": "node --experimental-test-coverage --test test/arrays/*.js test/balances/*.js test/chain/*.js test/commands/*.js test/display/*.js test/encryption/*.js test/lnd/*.js test/lnurl/*.js test/network/*.js test/nodes/*.js test/offchain/*.js test/peers/*.js test/responses/*.js test/routing/*.js test/services/*.js test/swaps/*.js test/tags/*.js test/telegram/*.js test/wallets/*.js"
|
|
104
105
|
},
|
|
105
|
-
"version": "25.6.
|
|
106
|
+
"version": "25.6.2"
|
|
106
107
|
}
|
|
@@ -729,6 +729,7 @@ module.exports = (args, cbk) => {
|
|
|
729
729
|
// Subscribe to invoices
|
|
730
730
|
invoices: ['getNodes', 'userId', ({getNodes}, cbk) => {
|
|
731
731
|
return asyncEach(getNodes, (node, cbk) => {
|
|
732
|
+
const start = new Date().toISOString();
|
|
732
733
|
const sub = subscribeToInvoices({lnd: node.lnd});
|
|
733
734
|
|
|
734
735
|
subscriptions.push(sub);
|
|
@@ -739,6 +740,11 @@ module.exports = (args, cbk) => {
|
|
|
739
740
|
return;
|
|
740
741
|
}
|
|
741
742
|
|
|
743
|
+
// Exit early when the invoice was settled before subscribing
|
|
744
|
+
if (!!invoice.confirmed_at && invoice.confirmed_at < start) {
|
|
745
|
+
return;
|
|
746
|
+
}
|
|
747
|
+
|
|
742
748
|
return postSettledInvoice({
|
|
743
749
|
from: node.from,
|
|
744
750
|
id: connectedId,
|