Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@synonymdev/blocktank-lsp-http-client

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synonymdev/blocktank-lsp-http-client - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

6

CHANGELOG.md
# 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 @@

5

dist/BlocktankClient.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc