lightning 6.1.1 → 6.1.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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Versions
2
2
 
3
+ ## 6.1.2
4
+
5
+ - `subscribeToRpcRequests`: Fix support for LND 0.15.1
6
+
3
7
  ## 6.1.1
4
8
 
5
9
  - `subscribeToPayments`: Add method to listen to all outgoing payments
@@ -166,6 +166,11 @@ module.exports = (args, cbk) => {
166
166
  subscription.on('status', n => emitter.emit('status', n));
167
167
 
168
168
  subscription.on('data', update => {
169
+ // Exit early on notification of registration complete
170
+ if (update.intercept_type === 'reg_complete') {
171
+ return;
172
+ }
173
+
169
174
  try {
170
175
  const {accept, data, event} = handleRpcRequestUpdate({
171
176
  subscription,
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "@alexbosworth/node-fetch": "2.6.2",
34
34
  "@alexbosworth/tap": "15.0.11",
35
35
  "tsd": "0.24.1",
36
- "typescript": "4.8.3",
36
+ "typescript": "4.8.4",
37
37
  "ws": "8.9.0"
38
38
  },
39
39
  "engines": {
@@ -59,5 +59,5 @@
59
59
  "directory": "test/typescript"
60
60
  },
61
61
  "types": "index.d.ts",
62
- "version": "6.1.1"
62
+ "version": "6.1.2"
63
63
  }