*Update dist
This commit is contained in:
parent
fcf3c9d4f0
commit
5f3056d697
|
@ -2,6 +2,7 @@ import { Client } from "@lumeweb/libkernel-universal";
|
||||||
import type { Peer } from "@lumeweb/peer-discovery";
|
import type { Peer } from "@lumeweb/peer-discovery";
|
||||||
export declare class PeerDiscoveryClient extends Client {
|
export declare class PeerDiscoveryClient extends Client {
|
||||||
register(source: string): Promise<void>;
|
register(source: string): Promise<void>;
|
||||||
|
registerSelf(): Promise<void>;
|
||||||
remove(name: string): Promise<boolean>;
|
remove(name: string): Promise<boolean>;
|
||||||
removeAll(): Promise<void>;
|
removeAll(): Promise<void>;
|
||||||
exists(name: string): Promise<boolean>;
|
exists(name: string): Promise<boolean>;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,mBAAoB,SAAQ,MAAM;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAItC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAGtC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC;CAW5E;AAED,eAAO,MAAM,YAAY,uCAGxB,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,mBAAoB,SAAQ,MAAM;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAItC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAGtC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC;CAW5E;AAED,eAAO,MAAM,YAAY,uCAGxB,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@ -6,6 +6,9 @@ export class PeerDiscoveryClient extends Client {
|
||||||
const ret = await bag.callModule("register");
|
const ret = await bag.callModule("register");
|
||||||
this.handleError(ret);
|
this.handleError(ret);
|
||||||
}
|
}
|
||||||
|
async registerSelf() {
|
||||||
|
return await this.callModuleReturn("register");
|
||||||
|
}
|
||||||
async remove(name) {
|
async remove(name) {
|
||||||
return await this.callModuleReturn("remove", { name });
|
return await this.callModuleReturn("remove", { name });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue