@synonymdev/blocktank-lsp-http-client
Advanced tools
Comparing version 0.2.3 to 0.2.4
# Changelog | ||
## 0.2.3 - 28.07.2023 | ||
## 0.2.4 - 09.08.2023 | ||
- (enhance) Made `_baseUrl` in BlocktankClient private. | ||
## 0.2.3 - 08.08.2023 | ||
- (feat) Added lnurl channel_request support. | ||
@@ -6,0 +10,0 @@ |
@@ -27,5 +27,6 @@ import { IBtInfo, IBtOrder } from './shared'; | ||
export declare class BlocktankClient { | ||
_baseUrl: string; | ||
private _baseUrl; | ||
constructor(_baseUrl?: string); | ||
get baseUrl(): string; | ||
set baseUrl(url: string); | ||
private wrapErrorHandler; | ||
@@ -53,3 +54,3 @@ /** | ||
* Get orders by multiple order ids. Throws if it doesn't find the orders. | ||
* @param orderId UUID | ||
* @param orderIds UUID[] | ||
* @returns | ||
@@ -56,0 +57,0 @@ */ |
@@ -37,2 +37,5 @@ "use strict"; | ||
} | ||
set baseUrl(url) { | ||
this._baseUrl = url; | ||
} | ||
async wrapErrorHandler(message, run) { | ||
@@ -87,3 +90,3 @@ try { | ||
* Get orders by multiple order ids. Throws if it doesn't find the orders. | ||
* @param orderId UUID | ||
* @param orderIds UUID[] | ||
* @returns | ||
@@ -90,0 +93,0 @@ */ |
{ | ||
"name": "@synonymdev/blocktank-lsp-http-client", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Blocktank Http Api Client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -38,3 +38,3 @@ import axios from 'axios'; | ||
export class BlocktankClient { | ||
constructor(public _baseUrl: string = 'https://blocktank.synonym.to/api/v2') { } | ||
constructor(private _baseUrl: string = 'https://blocktank.synonym.to/api/v2') { } | ||
@@ -49,2 +49,6 @@ get baseUrl(): string { | ||
set baseUrl(url: string) { | ||
this._baseUrl = url; | ||
} | ||
private async wrapErrorHandler(message: string, run: () => any) { | ||
@@ -60,3 +64,3 @@ try { | ||
* Get general service information. | ||
* @returns | ||
* @returns | ||
*/ | ||
@@ -75,3 +79,3 @@ async getInfo(): Promise<IBtInfo> { | ||
* @param options Optional parameters. | ||
* @returns | ||
* @returns | ||
*/ | ||
@@ -93,3 +97,3 @@ async createOrder(lspBalanceSat: number, channelExpiryWeeks: number, options: Partial<ICreateOrderOptions> = {}): Promise<IBtOrder> { | ||
* @param orderId UUID | ||
* @returns | ||
* @returns | ||
*/ | ||
@@ -105,4 +109,4 @@ async getOrder(orderId: string): Promise<IBtOrder> { | ||
* Get orders by multiple order ids. Throws if it doesn't find the orders. | ||
* @param orderId UUID | ||
* @returns | ||
* @param orderIds UUID[] | ||
* @returns | ||
*/ | ||
@@ -122,6 +126,6 @@ async getOrders(orderIds: string[]): Promise<IBtOrder[]> { | ||
* Open channel to a specific node. | ||
* @param orderId | ||
* @param connectionStringOrPubkey | ||
* @param announceChannel | ||
* @returns | ||
* @param orderId | ||
* @param connectionStringOrPubkey | ||
* @param announceChannel | ||
* @returns | ||
*/ | ||
@@ -147,2 +151,2 @@ async openChannel(orderId: string, connectionStringOrPubkey: string, announceChannel: boolean): Promise<IBtOrder> { | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39199
702