lightning 9.4.0 → 9.4.1

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,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 9.4.0
3
+ ## 9.4.1
4
4
 
5
5
  - `getChannels`: Add `description` to show the channel description
6
6
  - `openChannel`, `openChannels`, `proposeChannel`: Add `description` to set
@@ -8,7 +8,6 @@ const defaultMessageType = 32768;
8
8
  const isHex = n => !!n && !(n.length % 2) && /^[0-9A-F]*$/i.test(n);
9
9
  const isPublicKey = n => !!n && /^[0-9A-F]{66}$/i.test(n);
10
10
  const method = 'sendCustomMessage';
11
- const notSupported = /unknown/;
12
11
  const type = 'default';
13
12
 
14
13
  /** Send a custom message to a connected peer
@@ -58,10 +57,6 @@ module.exports = (args, cbk) => {
58
57
  type: args.type || defaultMessageType,
59
58
  },
60
59
  err => {
61
- if (!!err && notSupported.test(err.details)) {
62
- return cbk([501, 'SendMessageToPeerMethodNotSupported']);
63
- }
64
-
65
60
  if (!!err) {
66
61
  return cbk([503, 'UnexpectedErrorSendingMessageToPeer', {err}]);
67
62
  }
package/package.json CHANGED
@@ -7,15 +7,15 @@
7
7
  "url": "https://github.com/alexbosworth/lightning/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@grpc/grpc-js": "1.8.14",
10
+ "@grpc/grpc-js": "1.8.15",
11
11
  "@grpc/proto-loader": "0.7.7",
12
12
  "@types/express": "4.17.17",
13
- "@types/node": "20.2.3",
13
+ "@types/node": "20.2.5",
14
14
  "@types/request": "2.48.8",
15
15
  "@types/ws": "8.5.4",
16
16
  "async": "3.2.4",
17
17
  "asyncjs-util": "1.2.11",
18
- "bitcoinjs-lib": "6.1.0",
18
+ "bitcoinjs-lib": "6.1.2",
19
19
  "bn.js": "5.2.1",
20
20
  "body-parser": "1.20.2",
21
21
  "bolt07": "1.8.3",
@@ -25,15 +25,15 @@
25
25
  "express": "4.18.2",
26
26
  "invoices": "2.2.3",
27
27
  "psbt": "2.7.2",
28
- "tiny-secp256k1": "2.2.1",
29
- "type-fest": "3.11.0"
28
+ "tiny-secp256k1": "2.2.2",
29
+ "type-fest": "3.11.1"
30
30
  },
31
31
  "description": "Lightning Network client library",
32
32
  "devDependencies": {
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.4",
36
+ "typescript": "5.1.3",
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": "9.4.0"
62
+ "version": "9.4.1"
63
63
  }
@@ -35,11 +35,6 @@ const tests = [
35
35
  description: 'A public key is required',
36
36
  error: [400, 'ExpectedPeerPublicKeyToSendMessageTo'],
37
37
  },
38
- {
39
- args: makeArgs({lnd: makeLnd({err: {details: 'unknown service'}})}),
40
- description: 'Unimplemented error is returned',
41
- error: [501, 'SendMessageToPeerMethodNotSupported'],
42
- },
43
38
  {
44
39
  args: makeArgs({lnd: makeLnd({err: 'err'})}),
45
40
  description: 'Server error is returned',