mirror of
https://github.com/alexbosworth/balanceofsatoshis.git
synced 2026-08-13 12:33:37 +02:00
bump version
This commit is contained in:
parent
a8377e434e
commit
8226983be2
5 changed files with 15 additions and 10 deletions
|
|
@ -1,5 +1,9 @@
|
|||
# Versions
|
||||
|
||||
## 22.1.1
|
||||
|
||||
- Improve support for SOCKS proxy on old node versions
|
||||
|
||||
## 22.1.0
|
||||
|
||||
- Add support for LND 0.21.0
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ module.exports = (args, cbk) => {
|
|||
},
|
||||
|
||||
// Create a key pair for a virtual channel invoice
|
||||
getKeyPair: ['validate', async ({}, cbk) => {
|
||||
getKeyPair: ['validate', async ({}) => {
|
||||
// Exit early when not using a virtual channel
|
||||
if (!args.is_virtual) {
|
||||
return;
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "balanceofsatoshis",
|
||||
"version": "22.1.0",
|
||||
"version": "22.1.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "balanceofsatoshis",
|
||||
"version": "22.1.0",
|
||||
"version": "22.1.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@alexbosworth/blockchain": "3.2.0",
|
||||
|
|
|
|||
|
|
@ -81,5 +81,5 @@
|
|||
"postpublish": "docker buildx build --platform linux/amd64,linux/arm64 -t alexbosworth/balanceofsatoshis -t alexbosworth/balanceofsatoshis:$npm_package_version --push .",
|
||||
"test": "npx nyc@17.1.0 node --experimental-test-coverage --test test/arrays/*.js test/balances/*.js test/chain/*.js test/display/*.js test/encryption/*.js test/lnd/*.js test/network/*.js test/nodes/*.js test/peers/*.js test/responses/*.js test/routing/*.js test/services/*.js test/swaps/*.js test/tags/*.js test/telegram/*.js test/wallets/*.js"
|
||||
},
|
||||
"version": "22.1.0"
|
||||
"version": "22.1.1"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
const asyncAuto = require('async/auto');
|
||||
const {returnResult} = require('asyncjs-util');
|
||||
|
||||
const {parse} = JSON;
|
||||
|
||||
/** Get a SOCKS proxy given a JSON configuration file path
|
||||
|
|
@ -32,12 +33,13 @@ module.exports = ({fs, path}, cbk) => {
|
|||
},
|
||||
|
||||
// Import socks-proxy-agent as ESM
|
||||
getSocksProxyAgent: ['validate', async ({}, cbk) => {
|
||||
getSocksAgent: ['validate', async ({}) => {
|
||||
try {
|
||||
const {SocksProxyAgent} = await import('socks-proxy-agent');
|
||||
return cbk(null, SocksProxyAgent);
|
||||
|
||||
return SocksProxyAgent;
|
||||
} catch (err) {
|
||||
return cbk([503, 'FailedToImportSocksProxyAgent', {err}]);
|
||||
throw([503, 'FailedToImportSocksProxyAgent', {err}]);
|
||||
}
|
||||
}],
|
||||
|
||||
|
|
@ -57,7 +59,7 @@ module.exports = ({fs, path}, cbk) => {
|
|||
}],
|
||||
|
||||
// Construct the SOCKS proxy agent
|
||||
agent: ['getFile', 'getSocksProxyAgent', ({getFile, getSocksProxyAgent}, cbk) => {
|
||||
agent: ['getFile', 'getSocksAgent', ({getFile, getSocksAgent}, cbk) => {
|
||||
try {
|
||||
parse(getFile);
|
||||
} catch (err) {
|
||||
|
|
@ -65,7 +67,6 @@ module.exports = ({fs, path}, cbk) => {
|
|||
}
|
||||
|
||||
const {host, password, port, userId} = parse(getFile);
|
||||
const SocksProxyAgent = getSocksProxyAgent;
|
||||
|
||||
try {
|
||||
if (!host) {
|
||||
|
|
@ -86,7 +87,7 @@ module.exports = ({fs, path}, cbk) => {
|
|||
url.username = userId;
|
||||
}
|
||||
|
||||
const agent = new SocksProxyAgent(url.toString());
|
||||
const agent = new getSocksAgent(url.toString());
|
||||
|
||||
return cbk(null, {agent});
|
||||
} catch (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue