@samouraiwallet/electrum-client
Advanced tools
Comparing version 1.2.3 to 1.2.4
# Changelog | ||
## 1.2.4 (2022-03-11) | ||
- Fixed type of protocol version in config | ||
## 1.2.3 (2022-03-02) | ||
@@ -4,0 +7,0 @@ - Removed faulty parameter from `blockchain.headers.subscribe` call |
@@ -21,3 +21,3 @@ import { Client } from './lib/client.js'; | ||
private log; | ||
server_version(client_name: string, protocol_version: string[]): Promise<unknown>; | ||
server_version(client_name: string, protocol_version: string | [string, string]): Promise<unknown>; | ||
server_banner(): Promise<unknown>; | ||
@@ -24,0 +24,0 @@ server_features(): Promise<unknown>; |
@@ -29,3 +29,3 @@ import { Client } from './lib/client.js'; | ||
await this.connect(); | ||
this.versionInfo = (await this.server_version(this.electrumConfig?.client ?? '', this.electrumConfig?.version ?? ['', ''])); | ||
this.versionInfo = (await this.server_version(electrumConfig.client, electrumConfig.version)); | ||
if (this.onConnectCallback != null) { | ||
@@ -32,0 +32,0 @@ this.onConnectCallback(this, this.versionInfo); |
@@ -17,3 +17,3 @@ import { ElectrumClient } from '../index.js'; | ||
client: string; | ||
version: string[]; | ||
version: string | [string, string]; | ||
}; | ||
@@ -20,0 +20,0 @@ export declare type ElectrumRequestParams = Array<number | string | boolean | Array<any>>; |
{ | ||
"name": "@samouraiwallet/electrum-client", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=14.0.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
59427