electrum-cash
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -108,3 +108,3 @@ /// <reference types="node" /> | ||
declare type RequestResolver = (error?: Error, data?: string) => void; | ||
declare type ResolveFunction<T> = (value?: T | PromiseLike<T>) => void; | ||
declare type ResolveFunction<T> = (value: T | PromiseLike<T>) => void; | ||
declare type RejectFunction = (reason?: any) => void; | ||
@@ -218,2 +218,3 @@ interface VersionRejected { | ||
timeout: number; | ||
pingInterval: number; | ||
socket: ElectrumSocket; | ||
@@ -237,6 +238,7 @@ sentTimestamp: number; | ||
* @param {number} timeout how long network delays we will wait for before taking action, in milliseconds. | ||
* @param {number} pingInterval the time between sending pings to the electrum host, in milliseconds. | ||
* | ||
* @throws {Error} if `version` is not a valid version string. | ||
*/ | ||
constructor(application: string, version: string, host: string, port?: number, scheme?: TransportScheme, timeout?: number); | ||
constructor(application: string, version: string, host: string, port?: number, scheme?: TransportScheme, timeout?: number, pingInterval?: number); | ||
/** | ||
@@ -361,6 +363,7 @@ * Returns a string for the host identifier for usage in debug messages. | ||
* @param {number} timeout how long network delays we will wait for before taking action, in milliseconds. | ||
* @param {number} pingInterval the time between sending pings to the electrum host, in milliseconds. | ||
* | ||
* @throws {Error} if `version` is not a valid version string. | ||
*/ | ||
constructor(application: string, version: string, host: string, port?: number, scheme?: TransportScheme, timeout?: number); | ||
constructor(application: string, version: string, host: string, port?: number, scheme?: TransportScheme, timeout?: number, pingInterval?: number); | ||
/** | ||
@@ -465,2 +468,3 @@ * Connects to the remote server. | ||
timeout: number; | ||
pingInterval: number; | ||
strategy: ClusterStrategy; | ||
@@ -488,4 +492,5 @@ clients: { | ||
* @param {number} timeout how long network delays we will wait for before taking action, in milliseconds. | ||
* @param {number} pingInterval the time between sending pings to the electrum host, in milliseconds. | ||
*/ | ||
constructor(application: string, version: string, confidence?: number, distribution?: number, order?: ClusterOrder, timeout?: number); | ||
constructor(application: string, version: string, confidence?: number, distribution?: number, order?: ClusterOrder, timeout?: number, pingInterval?: number); | ||
/** | ||
@@ -597,2 +602,3 @@ * Adds a server to the cluster. | ||
TIMEOUT: number; | ||
PING_INTERVAL: number; | ||
CLUSTER_CONFIDENCE: number; | ||
@@ -599,0 +605,0 @@ CLUSTER_DISTRIBUTION: ClusterDistribution; |
{ | ||
"name": "electrum-cash", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Electrum-cash is a lightweight JavaScript library that lets you connect with one or more Electrum servers.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
199921
3885
5