Compare commits

..

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

3 changed files with 0 additions and 8 deletions

1
dist/index.d.ts vendored
View File

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

3
dist/index.js vendored
View File

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

View File

@ -36,10 +36,6 @@ export class PeerDiscovery {
this._sources.clear(); this._sources.clear();
} }
public sourceExists(name: string): boolean {
return this._sources.has(name);
}
public async discover( public async discover(
pubkey: string | Buffer, pubkey: string | Buffer,
options = {} options = {}