ln-service 57.27.1 → 57.27.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,6 +1,11 @@
1
1
  # Versions
2
2
 
3
- ## 57.27.1
3
+ ## 57.27.3
4
+
5
+ - `pay`, `payViaPaymentRequest`, `subscribeToPayViaRequest`: Allow short CLTV
6
+ limit payments when the payment request final CLTV delta is very short
7
+
8
+ ## 57.27.2
4
9
 
5
10
  - Add support for LND 0.20.0-beta
6
11
 
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "bolt07": "1.9.4",
11
11
  "invoices": "4.0.0",
12
- "lightning": "10.27.3",
12
+ "lightning": "10.27.5",
13
13
  "macaroon": "3.0.4"
14
14
  },
15
15
  "description": "Interaction helper for your Lightning Network daemon",
@@ -24,7 +24,7 @@
24
24
  "bn.js": "5.2.2",
25
25
  "bs58check": "4.0.0",
26
26
  "ecpair": "3.0.0",
27
- "ln-docker-daemons": "6.0.27",
27
+ "ln-docker-daemons": "6.0.28",
28
28
  "p2tr": "2.0.0",
29
29
  "portfinder": "1.0.38",
30
30
  "psbt": "4.0.0",
@@ -51,6 +51,7 @@
51
51
  "url": "https://github.com/alexbosworth/ln-service.git"
52
52
  },
53
53
  "scripts": {
54
+ "integration-test-0.20.0": "DOCKER_LND_VERSION=v0.20.0-beta npm run test",
54
55
  "integration-test-0.19.3": "DOCKER_LND_VERSION=v0.19.3-beta npm run test",
55
56
  "integration-test-0.19.2": "DOCKER_LND_VERSION=v0.19.2-beta npm run test",
56
57
  "integration-test-0.19.1": "DOCKER_LND_VERSION=v0.19.1-beta npm run test",
@@ -80,5 +81,5 @@
80
81
  "integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
81
82
  "test": "echo $DOCKER_LND_VERSION && node test/runner"
82
83
  },
83
- "version": "57.27.1"
84
+ "version": "57.27.3"
84
85
  }
@@ -98,11 +98,12 @@ test(`Pay via payment details`, async () => {
98
98
 
99
99
  equal(tooSoonCltv, null, 'Should not be able to pay a too soon CLTV');
100
100
  } catch (err) {
101
- deepEqual(
102
- err,
103
- [400, 'MaxTimeoutTooNearCurrentHeightToMakePayment'],
104
- 'Fail'
105
- );
101
+ deepEqual(!!err, true, 'There should be an error');
102
+
103
+ const [code, msg] = err;
104
+
105
+ deepEqual(code, 400, 'The error is a user client error');
106
+ deepEqual(msg, 'MaxTimeoutTooNearCurrentHeightToMakePayment', 'Failed');
106
107
  }
107
108
 
108
109
  try {
package/test/runner.js CHANGED
@@ -20,7 +20,7 @@ const dirs = [
20
20
  'walletrpc-integration',
21
21
  ];
22
22
 
23
- const asPath = file => join(file.path, file.name);
23
+ const asPath = file => join(file.path || file.parentPath, file.name);
24
24
  const flatten = arr => [].concat(...arr);
25
25
 
26
26
  const files = flatten(dirs.map(dir => {