@getalby/cli 0.2.2 → 0.2.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.
|
@@ -13,14 +13,13 @@ export async function fetchL402(client, params) {
|
|
|
13
13
|
else if (params.headers) {
|
|
14
14
|
requestOptions.headers = params.headers;
|
|
15
15
|
}
|
|
16
|
-
const webln = {
|
|
17
|
-
sendPayment: async (invoice) => {
|
|
18
|
-
const result = await client.payInvoice({ invoice });
|
|
19
|
-
return { preimage: result.preimage };
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
16
|
const result = await fetchWithL402(params.url, requestOptions, {
|
|
23
|
-
|
|
17
|
+
wallet: {
|
|
18
|
+
sendPayment: async (invoice) => {
|
|
19
|
+
const result = await client.payInvoice({ invoice });
|
|
20
|
+
return { preimage: result.preimage };
|
|
21
|
+
},
|
|
22
|
+
},
|
|
24
23
|
});
|
|
25
24
|
const responseContent = await result.text();
|
|
26
25
|
if (!result.ok) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@getalby/cli",
|
|
3
3
|
"description": "CLI for Nostr Wallet Connect (NIP-47) with a few additional useful lightning tools",
|
|
4
4
|
"repository": "https://github.com/getAlby/cli.git",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"author": "Alby contributors",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@getalby/lightning-tools": "^
|
|
37
|
+
"@getalby/lightning-tools": "^7.0.2",
|
|
38
38
|
"@getalby/sdk": "^7.0.0",
|
|
39
39
|
"commander": "^13.1.0"
|
|
40
40
|
},
|