remove update notifier

This commit is contained in:
Alex Bosworth 2022-06-29 08:15:39 -07:00
parent 41374971e1
commit 20192f6b8c
No known key found for this signature in database
GPG key ID: E80D2F3F311FD87E
4 changed files with 319 additions and 1546 deletions

View file

@ -1,5 +1,9 @@
# Versions
## 12.13.4
- Remove update notifier functionality
## 12.13.3
- `reconnect`: Stop removing peers that have an inbound disabled routing policy

1848
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -27,7 +27,7 @@
"cbor": "8.1.0",
"colorette": "2.0.19",
"crypto-js": "4.1.1",
"csv-parse": "5.2.0",
"csv-parse": "5.2.1",
"ecpair": "2.0.1",
"goldengate": "11.2.3",
"grammy": "1.9.0",
@ -48,7 +48,6 @@
"socks-proxy-agent": "7.0.0",
"table": "6.8.0",
"tiny-secp256k1": "2.2.1",
"update-notifier": "5.1.0",
"window-size": "1.1.1"
},
"description": "Lightning balance CLI",
@ -84,5 +83,5 @@
"postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis --push .",
"test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 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": "12.13.3"
"version": "12.13.4"
}

View file

@ -1,6 +1,5 @@
const {getBorderCharacters} = require('table');
const renderTable = require('table').table;
const updateNotifier = require('update-notifier');
const pkg = require('./../package.json');
const writeJsonFile = require('./write_json_file');
@ -8,7 +7,6 @@ const writeJsonFile = require('./write_json_file');
const border = getBorderCharacters('norc');
const emptyCell = ' ';
const {isArray} = Array;
const notifier = updateNotifier({pkg});
const summary = n => `${n}_summary`;
/** Return an object result to a logger in a promise
@ -74,12 +72,6 @@ module.exports = ({exit, file, logger, reject, resolve, table, write}) => {
logger.info(res);
}
try {
notifier.notify({isGlobal: true});
} catch (err) {
// Suppress errors on version notify issues
}
if (!!exit) {
exit();
}