Compare commits
No commits in common. "b856cf16d2e4e70b9e4e6d6ff6d6f4351a68177e" and "e3697e8f5de82179081daf5ec39804b9b747a259" have entirely different histories.
b856cf16d2
...
e3697e8f5d
|
@ -1,6 +1,6 @@
|
||||||
import { Client } from "@lumeweb/libkernel-universal";
|
import { Client } from "@lumeweb/libkernel-universal";
|
||||||
export declare class DnsClient extends Client {
|
export declare class DnsClient extends Client {
|
||||||
register(): Promise<void>;
|
register(module: string): Promise<void>;
|
||||||
clear(): Promise<void>;
|
clear(): Promise<void>;
|
||||||
getResolvers(): Promise<void>;
|
getResolvers(): Promise<void>;
|
||||||
ready(): Promise<void>;
|
ready(): Promise<void>;
|
||||||
|
|
|
@ -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"}
|
|
@ -1,8 +1,10 @@
|
||||||
import { Client, factory } from "@lumeweb/libkernel-universal";
|
import { Client, factory } from "@lumeweb/libkernel-universal";
|
||||||
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
||||||
export class DnsClient extends Client {
|
export class DnsClient extends Client {
|
||||||
async register() {
|
async register(module) {
|
||||||
return this.callModuleReturn("register");
|
const bag = await this.loadBound(module);
|
||||||
|
const ret = await bag.callModule("register");
|
||||||
|
this.handleError(ret);
|
||||||
}
|
}
|
||||||
async clear() {
|
async clear() {
|
||||||
return this.callModuleReturn("clear");
|
return this.callModuleReturn("clear");
|
||||||
|
|
|
@ -3,8 +3,10 @@ import { Client, factory } from "@lumeweb/libkernel-universal";
|
||||||
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
||||||
|
|
||||||
export class DnsClient extends Client {
|
export class DnsClient extends Client {
|
||||||
public async register(): Promise<void> {
|
public async register(module: string): Promise<void> {
|
||||||
return this.callModuleReturn("register");
|
const bag = await this.loadBound(module);
|
||||||
|
const ret = await bag.callModule("register");
|
||||||
|
this.handleError(ret);
|
||||||
}
|
}
|
||||||
public async clear(): Promise<void> {
|
public async clear(): Promise<void> {
|
||||||
return this.callModuleReturn("clear");
|
return this.callModuleReturn("clear");
|
||||||
|
|
Loading…
Reference in New Issue