Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer e3697e8f5d
*Update dist 2023-02-19 16:27:37 -05:00
Derrick Hammer 096da60801
*Update register to use loadBound 2023-02-19 16:27:24 -05:00
4 changed files with 10 additions and 6 deletions

2
dist/index.d.ts vendored
View File

@ -1,6 +1,6 @@
import { Client } from "@lumeweb/libkernel-universal";
export declare class DnsClient extends Client {
register(): Promise<void>;
register(module: string): Promise<void>;
clear(): Promise<void>;
getResolvers(): Promise<void>;
ready(): Promise<void>;

2
dist/index.d.ts.map vendored
View File

@ -1 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAI/D,qBAAa,SAAU,SAAQ,MAAM;IACtB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAGzB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAGtB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAG7B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAGpC;AAED,eAAO,MAAM,YAAY,6BAAwC,CAAC"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAI/D,qBAAa,SAAU,SAAQ,MAAM;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAGtB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAG7B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAGpC;AAED,eAAO,MAAM,YAAY,6BAAwC,CAAC"}

6
dist/index.js vendored
View File

@ -1,8 +1,10 @@
import { Client, factory } from "@lumeweb/libkernel-universal";
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
export class DnsClient extends Client {
async register() {
return this.callModuleReturn("register");
async register(module) {
const bag = await this.loadBound(module);
const ret = await bag.callModule("register");
this.handleError(ret);
}
async clear() {
return this.callModuleReturn("clear");

View File

@ -3,8 +3,10 @@ import { Client, factory } from "@lumeweb/libkernel-universal";
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
export class DnsClient extends Client {
public async register(): Promise<void> {
return this.callModuleReturn("register");
public async register(module: string): Promise<void> {
const bag = await this.loadBound(module);
const ret = await bag.callModule("register");
this.handleError(ret);
}
public async clear(): Promise<void> {
return this.callModuleReturn("clear");