lightning 7.1.8 → 7.1.9

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
+ ## 7.1.9
4
+
5
+ - `getPeers`: Correct feature bit returned as string and not number
6
+
3
7
  ## 7.1.8
4
8
 
5
9
  - `signChainAddressMessage`: Add method to sign a message given a chain address
@@ -116,7 +116,7 @@ module.exports = peer => {
116
116
  bytes_received: Number(peer.bytes_recv),
117
117
  bytes_sent: Number(peer.bytes_sent),
118
118
  features: keys(peer.features).map(bit => ({
119
- bit,
119
+ bit: Number(bit),
120
120
  is_known: peer.features[bit].is_known,
121
121
  is_required: peer.features[bit].is_required,
122
122
  type: featureFlagDetails({bit}).type,
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "@alexbosworth/node-fetch": "2.6.2",
34
34
  "@alexbosworth/tap": "15.0.12",
35
35
  "tsd": "0.28.1",
36
- "typescript": "5.0.3",
36
+ "typescript": "5.0.4",
37
37
  "ws": "8.13.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": "7.1.8"
62
+ "version": "7.1.9"
63
63
  }
@@ -34,7 +34,7 @@ const makeExpected = overrides => {
34
34
  bytes_received: 1,
35
35
  bytes_sent: 1,
36
36
  features: [{
37
- bit: '1',
37
+ bit: 1,
38
38
  is_known: true,
39
39
  is_required: false,
40
40
  type: 'data_loss_protection',