@getalby/cli
Advanced tools
@@ -16,10 +16,9 @@ import { fetchWithL402 } from "@getalby/lightning-tools"; | ||
| } | ||
| const webln = { | ||
| sendPayment: async (invoice) => { | ||
| const result = await client.payInvoice({ invoice }); | ||
| return { preimage: result.preimage }; | ||
| const result = await fetchWithL402(params.url, requestOptions, { | ||
| wallet: { | ||
| sendPayment: async (invoice) => { | ||
| const result = await client.payInvoice({ invoice }); | ||
| return { preimage: result.preimage }; | ||
| }, | ||
| }, | ||
| }; | ||
| const result = await fetchWithL402(params.url, requestOptions, { | ||
| webln: webln, | ||
| }); | ||
@@ -26,0 +25,0 @@ const responseContent = await result.text(); |
+2
-2
@@ -5,3 +5,3 @@ { | ||
| "repository": "https://github.com/getAlby/cli.git", | ||
| "version": "0.2.2", | ||
| "version": "0.2.3", | ||
| "type": "module", | ||
@@ -38,3 +38,3 @@ "main": "build/index.js", | ||
| "dependencies": { | ||
| "@getalby/lightning-tools": "^6.1.0", | ||
| "@getalby/lightning-tools": "^7.0.2", | ||
| "@getalby/sdk": "^7.0.0", | ||
@@ -41,0 +41,0 @@ "commander": "^13.1.0" |
63854
-0.01%1089
-0.09%+ Added