Compare commits

..

No commits in common. "ae6609f0b07dea3afed3f528d42b55d771d81a3d" and "e2ed9ed1847b456d90f901f6e5bc8db11f8cb94a" have entirely different histories.

3 changed files with 0 additions and 8 deletions

1
dist/index.d.ts vendored
View File

@ -8,6 +8,5 @@ export declare class PeerDiscovery {
private _sources;
registerSource(name: string, source: PeerSource): boolean;
removeSource(name: string): boolean;
removeAllSources(): void;
discover(pubkey: string | Buffer, options?: {}): Promise<Peer | boolean>;
}

3
dist/index.js vendored
View File

@ -21,9 +21,6 @@ class PeerDiscovery {
this._sources.delete(name);
return true;
}
removeAllSources() {
this._sources.clear();
}
async discover(pubkey, options = {}) {
if (!b4a_1.default.isBuffer(pubkey)) {
pubkey = b4a_1.default.from(pubkey, "hex");

View File

@ -32,10 +32,6 @@ export class PeerDiscovery {
return true;
}
public removeAllSources(): void {
this._sources.clear();
}
public async discover(
pubkey: string | Buffer,
options = {}