balanceofsatoshis 22.1.1 → 22.1.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 +1 -1
- package/commands/call_raw_api.js +2 -1
- package/commands/prompt_type.js +29 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/commands/call_raw_api.js
CHANGED
|
@@ -10,6 +10,7 @@ const {getNodeAlias} = require('ln-sync');
|
|
|
10
10
|
const {returnResult} = require('asyncjs-util');
|
|
11
11
|
|
|
12
12
|
const {calls} = require('./api');
|
|
13
|
+
const promptType = require('./prompt_type');
|
|
13
14
|
|
|
14
15
|
const {assign} = Object;
|
|
15
16
|
const fromLnSync = 'ln-sync';
|
|
@@ -126,7 +127,7 @@ module.exports = ({ask, lnd, logger, method, params}, cbk) => {
|
|
|
126
127
|
name: named,
|
|
127
128
|
prefix: `[${named}]`,
|
|
128
129
|
suffix: !!argument.optional ? ' (Optional)' : String(),
|
|
129
|
-
type: argument.type || 'input',
|
|
130
|
+
type: promptType({type: argument.type}).type || 'input',
|
|
130
131
|
validate: async input => {
|
|
131
132
|
const isNumber = argument.type === 'number';
|
|
132
133
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** Derive a prompt type from an argument type
|
|
2
|
+
|
|
3
|
+
{
|
|
4
|
+
type: <Prompt Type String>
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@returns
|
|
8
|
+
{
|
|
9
|
+
[type]: <Sanitized Prompt Type String>
|
|
10
|
+
}
|
|
11
|
+
*/
|
|
12
|
+
module.exports = ({type}) => {
|
|
13
|
+
switch (type) {
|
|
14
|
+
case 'checkbox':
|
|
15
|
+
case 'confirm':
|
|
16
|
+
case 'editor':
|
|
17
|
+
case 'expand':
|
|
18
|
+
case 'input':
|
|
19
|
+
case 'number':
|
|
20
|
+
case 'password':
|
|
21
|
+
case 'rawlist':
|
|
22
|
+
case 'search':
|
|
23
|
+
case 'select':
|
|
24
|
+
return {type};
|
|
25
|
+
|
|
26
|
+
default:
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
};
|
package/package.json
CHANGED
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"csv-parse": "6.2.1",
|
|
32
32
|
"ecpair": "2.1.0",
|
|
33
33
|
"goldengate": "16.0.2",
|
|
34
|
-
"grammy": "1.
|
|
34
|
+
"grammy": "1.44.0",
|
|
35
35
|
"hot-formula-parser": "4.0.0",
|
|
36
36
|
"import-lazy": "4.0.0",
|
|
37
37
|
"ini": "7.0.0",
|
|
38
38
|
"inquirer": "14.0.2",
|
|
39
39
|
"ln-accounting": "10.0.2",
|
|
40
|
-
"ln-service": "59.1.
|
|
40
|
+
"ln-service": "59.1.1",
|
|
41
41
|
"ln-sync": "8.0.2",
|
|
42
42
|
"ln-telegram": "8.0.2",
|
|
43
43
|
"minimist": "1.2.8",
|
|
44
44
|
"moment": "2.30.1",
|
|
45
45
|
"paid-services": "8.0.2",
|
|
46
|
-
"probing": "
|
|
46
|
+
"probing": "7.0.0",
|
|
47
47
|
"qrcode-terminal": "0.12.0",
|
|
48
48
|
"sanitize-filename": "1.6.4",
|
|
49
|
-
"socks-proxy-agent": "10.
|
|
49
|
+
"socks-proxy-agent": "10.1.0",
|
|
50
50
|
"table": "6.9.0",
|
|
51
51
|
"tiny-secp256k1": "2.2.4",
|
|
52
52
|
"window-size": "1.1.1"
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"postpublish": "docker buildx build --platform linux/amd64,linux/arm64 -t alexbosworth/balanceofsatoshis -t alexbosworth/balanceofsatoshis:$npm_package_version --push .",
|
|
82
82
|
"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"
|
|
83
83
|
},
|
|
84
|
-
"version": "22.1.
|
|
84
|
+
"version": "22.1.3"
|
|
85
85
|
}
|