paid-services 5.0.5 → 6.1.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # Versions
2
2
 
3
+ ## Version 6.1.0
4
+
5
+ - `manageSwap`: Add support for Loop Out to external address
6
+
7
+ ## Version 6.0.0
8
+
9
+ ### Breaking Changes
10
+
11
+ - node.js 16 is no longer supported, node.js 18+ required
12
+
3
13
  ## Version 5.0.5
4
14
 
5
15
  - `manageTrades`: Fix advertising trades with a TorV3 network address
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021-2023 Alex Bosworth
3
+ Copyright (c) 2021-2024 Alex Bosworth
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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,18 +7,18 @@
7
7
  "url": "https://github.com/alexbosworth/paid-services/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@alexbosworth/blockchain": "1.7.0",
10
+ "@alexbosworth/blockchain": "2.0.0",
11
11
  "@alexbosworth/fiat": "2.0.0",
12
- "async": "3.2.4",
12
+ "async": "3.2.5",
13
13
  "asyncjs-util": "1.2.12",
14
14
  "bech32": "2.0.0",
15
15
  "bolt01": "2.0.0",
16
16
  "bolt07": "1.8.4",
17
17
  "ecpair": "2.1.0",
18
- "goldengate": "13.0.2",
18
+ "goldengate": "14.0.2",
19
19
  "invoices": "3.0.0",
20
- "ln-service": "56.14.0",
21
- "ln-sync": "5.2.3",
20
+ "ln-service": "57.8.1",
21
+ "ln-sync": "6.0.2",
22
22
  "psbt": "3.0.0",
23
23
  "p2tr": "2.0.0",
24
24
  "tiny-secp256k1": "2.2.3"
@@ -26,12 +26,12 @@
26
26
  "description": "Lightning Paid Services library",
27
27
  "devDependencies": {
28
28
  "@alexbosworth/tap": "15.0.12",
29
- "ln-docker-daemons": "5.1.3",
29
+ "ln-docker-daemons": "6.0.12",
30
30
  "mock-lnd": "1.4.4",
31
31
  "secp256k1": "5.0.0"
32
32
  },
33
33
  "engines": {
34
- "node": ">=16"
34
+ "node": ">=18"
35
35
  },
36
36
  "keywords": [
37
37
  "lightning",
@@ -48,5 +48,5 @@
48
48
  "integration-tests": "tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 2700 test/integration/*.js",
49
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"
50
50
  },
51
- "version": "5.0.5"
51
+ "version": "6.1.0"
52
52
  }
@@ -299,6 +299,7 @@ module.exports = (args, cbk) => {
299
299
  ({getNetwork, selectAction}, cbk) =>
300
300
  {
301
301
  switch (selectAction) {
302
+ case actionLoopRequest:
302
303
  case actionPushRequest:
303
304
  case requestAction:
304
305
  return args.ask({