balanceofsatoshis 13.0.1 → 13.0.3

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Versions
2
2
 
3
+ ## 13.0.3
4
+
5
+ - `accounting`: Improve reliability
6
+
7
+ ## 13.0.2
8
+
9
+ - `telegram`: Fix termination when the invoices subscription fails
10
+
3
11
  ## 13.0.1
4
12
 
5
13
  - `report`: Fix error when running command
@@ -71,7 +71,11 @@ module.exports = (args, cbk) => {
71
71
  });
72
72
 
73
73
  req.on('error', err => error = err);
74
- req.on('timeout', () => req.abort());
74
+ req.on('timeout', () => {
75
+ req.abort();
76
+
77
+ return cbk([503, 'RequestTimedOut']);
78
+ });
75
79
 
76
80
  req.end();
77
81
 
package/package.json CHANGED
@@ -35,8 +35,8 @@
35
35
  "import-lazy": "4.0.0",
36
36
  "ini": "3.0.1",
37
37
  "inquirer": "9.1.2",
38
- "ln-accounting": "5.0.7",
39
- "ln-service": "54.1.1",
38
+ "ln-accounting": "6.0.0",
39
+ "ln-service": "54.2.0",
40
40
  "ln-sync": "3.14.0",
41
41
  "ln-telegram": "3.22.5",
42
42
  "moment": "2.29.4",
@@ -54,7 +54,7 @@
54
54
  "devDependencies": {
55
55
  "@alexbosworth/tap": "15.0.11",
56
56
  "invoices": "2.2.0",
57
- "ln-docker-daemons": "3.0.1",
57
+ "ln-docker-daemons": "3.1.0",
58
58
  "mock-lnd": "1.4.4",
59
59
  "tiny-secp256k1": "2.2.1"
60
60
  },
@@ -83,5 +83,5 @@
83
83
  "postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis --push .",
84
84
  "test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 test/arrays/*.js test/balances/*.js test/chain/*.js test/display/*.js test/encryption/*.js test/lnd/*.js test/network/*.js test/nodes/*.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"
85
85
  },
86
- "version": "13.0.1"
86
+ "version": "13.0.3"
87
87
  }
@@ -746,6 +746,8 @@ module.exports = (args, cbk) => {
746
746
  });
747
747
 
748
748
  sub.on('error', err => {
749
+ const from = node.from;
750
+
749
751
  sub.removeAllListeners();
750
752
 
751
753
  args.logger.error({invoices_err: err});