paid-services 5.0.4 → 6.0.0
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 +10 -0
- package/LICENSE +1 -1
- package/p2p/service_peer_requests.js +1 -0
- package/package.json +17 -16
- package/swaps/swap_field_types.json +4 -1
- package/trades/node_as_record.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Versions
|
|
2
2
|
|
|
3
|
+
## Version 6.0.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- node.js 16 is no longer supported, node.js 18+ required
|
|
8
|
+
|
|
9
|
+
## Version 5.0.5
|
|
10
|
+
|
|
11
|
+
- `manageTrades`: Fix advertising trades with a TorV3 network address
|
|
12
|
+
|
|
3
13
|
## Version 5.0.4
|
|
4
14
|
|
|
5
15
|
- `createGroupChannel`, `joinGroupChannel`, `manageGroupJoin`: Double check
|
package/LICENSE
CHANGED
|
@@ -102,6 +102,7 @@ module.exports = ({lnd}) => {
|
|
|
102
102
|
return {
|
|
103
103
|
end: cbk => service.end = cbk,
|
|
104
104
|
error: cbk => service.error = cbk,
|
|
105
|
+
receivers: () => sub.listenerCount('message_received'),
|
|
105
106
|
request: ({type}, cbk) => listeners[type] = cbk,
|
|
106
107
|
stop: ({}) => sub.removeAllListeners(),
|
|
107
108
|
};
|
package/package.json
CHANGED
|
@@ -7,30 +7,31 @@
|
|
|
7
7
|
"url": "https://github.com/alexbosworth/paid-services/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@alexbosworth/
|
|
11
|
-
"
|
|
12
|
-
"
|
|
10
|
+
"@alexbosworth/blockchain": "2.0.0",
|
|
11
|
+
"@alexbosworth/fiat": "2.0.0",
|
|
12
|
+
"async": "3.2.5",
|
|
13
|
+
"asyncjs-util": "1.2.12",
|
|
13
14
|
"bech32": "2.0.0",
|
|
14
|
-
"bolt01": "
|
|
15
|
-
"bolt07": "1.8.
|
|
15
|
+
"bolt01": "2.0.0",
|
|
16
|
+
"bolt07": "1.8.4",
|
|
16
17
|
"ecpair": "2.1.0",
|
|
17
|
-
"goldengate": "
|
|
18
|
-
"invoices": "
|
|
19
|
-
"ln-service": "
|
|
20
|
-
"ln-sync": "
|
|
21
|
-
"psbt": "
|
|
22
|
-
"p2tr": "
|
|
23
|
-
"tiny-secp256k1": "2.2.
|
|
18
|
+
"goldengate": "14.0.2",
|
|
19
|
+
"invoices": "3.0.0",
|
|
20
|
+
"ln-service": "57.8.1",
|
|
21
|
+
"ln-sync": "6.0.2",
|
|
22
|
+
"psbt": "3.0.0",
|
|
23
|
+
"p2tr": "2.0.0",
|
|
24
|
+
"tiny-secp256k1": "2.2.3"
|
|
24
25
|
},
|
|
25
26
|
"description": "Lightning Paid Services library",
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@alexbosworth/tap": "15.0.12",
|
|
28
|
-
"ln-docker-daemons": "
|
|
29
|
+
"ln-docker-daemons": "6.0.12",
|
|
29
30
|
"mock-lnd": "1.4.4",
|
|
30
31
|
"secp256k1": "5.0.0"
|
|
31
32
|
},
|
|
32
33
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
34
|
+
"node": ">=18"
|
|
34
35
|
},
|
|
35
36
|
"keywords": [
|
|
36
37
|
"lightning",
|
|
@@ -44,8 +45,8 @@
|
|
|
44
45
|
"url": "https://github.com/alexbosworth/paid-services.git"
|
|
45
46
|
},
|
|
46
47
|
"scripts": {
|
|
47
|
-
"integration-tests": "tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t
|
|
48
|
+
"integration-tests": "tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 2700 test/integration/*.js",
|
|
48
49
|
"test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 test/actions/*.js test/balanced/*.js test/capacity/*.js test/client/*.js test/config/*.js test/p2p/*.js test/records/*.js test/respond/*.js test/server/*.js test/swaps/*.js test/services/*.js test/trades/*.js"
|
|
49
50
|
},
|
|
50
|
-
"version": "
|
|
51
|
+
"version": "6.0.0"
|
|
51
52
|
}
|
|
@@ -31,7 +31,10 @@
|
|
|
31
31
|
"typeRequest": "11",
|
|
32
32
|
"typeTimeout": "12",
|
|
33
33
|
"typeTokens": "13",
|
|
34
|
-
"typeInboundPeer": "14"
|
|
34
|
+
"typeInboundPeer": "14",
|
|
35
|
+
"typeRefundCoopPublicKey": "15",
|
|
36
|
+
"typeRefundCoopPublicKeyHash": "16",
|
|
37
|
+
"typeClaimCoopPublicKey": "17"
|
|
35
38
|
},
|
|
36
39
|
"pushTypes": {
|
|
37
40
|
"typeSwapId": "0",
|
package/trades/node_as_record.js
CHANGED