Compare commits
2 Commits
a0800a0feb
...
d2735c5470
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | d2735c5470 | |
Derrick Hammer | 63cec2129f |
|
@ -1,9 +1,15 @@
|
||||||
import { Client } from "@lumeweb/libkernel-universal";
|
import { Client } from "@lumeweb/libkernel-universal";
|
||||||
|
import { ResolverOptions } from "@lumeweb/libresolver";
|
||||||
export declare class DnsClient extends Client {
|
export declare class DnsClient extends Client {
|
||||||
register(): Promise<void>;
|
register(): Promise<void>;
|
||||||
clear(): Promise<void>;
|
clear(): Promise<void>;
|
||||||
getResolvers(): Promise<string[]>;
|
getResolvers(): Promise<string[]>;
|
||||||
ready(): Promise<void>;
|
ready(): Promise<void>;
|
||||||
|
resolve(
|
||||||
|
domain: string,
|
||||||
|
options?: ResolverOptions,
|
||||||
|
bypassCache?: boolean
|
||||||
|
): Promise<void>;
|
||||||
}
|
}
|
||||||
export declare const createClient: (...args: any) => DnsClient;
|
export declare const createClient: (...args: any) => DnsClient;
|
||||||
//# sourceMappingURL=index.d.ts.map
|
//# sourceMappingURL=index.d.ts.map
|
||||||
|
|
|
@ -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,MAAM,EAAE,CAAC;IAGjC,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;AAC/D,OAAO,EAAmB,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAIxE,qBAAa,SAAU,SAAQ,MAAM;IACtB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAGzB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAGtB,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAGjC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAGtB,OAAO,CAClB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,eAAmD,EAC5D,WAAW,GAAE,OAAe,GAC3B,OAAO,CAAC,IAAI,CAAC;CAGjB;AAED,eAAO,MAAM,YAAY,6BAAwC,CAAC"}
|
|
@ -1,4 +1,5 @@
|
||||||
import { Client, factory } from "@lumeweb/libkernel-universal";
|
import { Client, factory } from "@lumeweb/libkernel-universal";
|
||||||
|
import { DNS_RECORD_TYPE } from "@lumeweb/libresolver";
|
||||||
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
||||||
export class DnsClient extends Client {
|
export class DnsClient extends Client {
|
||||||
async register() {
|
async register() {
|
||||||
|
@ -13,5 +14,8 @@ export class DnsClient extends Client {
|
||||||
async ready() {
|
async ready() {
|
||||||
return this.callModuleReturn("ready");
|
return this.callModuleReturn("ready");
|
||||||
}
|
}
|
||||||
|
async resolve(domain, options = { type: DNS_RECORD_TYPE.CONTENT }, bypassCache = false) {
|
||||||
|
return this.callModuleReturn("ready");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
export const createClient = factory(DnsClient, MODULE);
|
export const createClient = factory(DnsClient, MODULE);
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lumeweb/libkernel-universal": "git+https://git.lumeweb.com/LumeWeb/libkernel-universal.git",
|
"@lumeweb/libkernel-universal": "git+https://git.lumeweb.com/LumeWeb/libkernel-universal.git",
|
||||||
|
"@lumeweb/libresolver": "git+https://git.lumeweb.com/LumeWeb/libresolver.git",
|
||||||
"libkernel": "^0.1.43",
|
"libkernel": "^0.1.43",
|
||||||
"libkmodule": "^0.2.44",
|
"libkmodule": "^0.2.44",
|
||||||
"libskynet": "^0.0.62"
|
"libskynet": "^0.0.62"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { Client, factory } from "@lumeweb/libkernel-universal";
|
import { Client, factory } from "@lumeweb/libkernel-universal";
|
||||||
|
import { DNS_RECORD_TYPE, ResolverOptions } from "@lumeweb/libresolver";
|
||||||
|
|
||||||
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
||||||
|
|
||||||
|
@ -15,6 +16,13 @@ export class DnsClient extends Client {
|
||||||
public async ready(): Promise<void> {
|
public async ready(): Promise<void> {
|
||||||
return this.callModuleReturn("ready");
|
return this.callModuleReturn("ready");
|
||||||
}
|
}
|
||||||
|
public async resolve(
|
||||||
|
domain: string,
|
||||||
|
options: ResolverOptions = { type: DNS_RECORD_TYPE.CONTENT },
|
||||||
|
bypassCache: boolean = false
|
||||||
|
): Promise<void> {
|
||||||
|
return this.callModuleReturn("ready");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createClient = factory<DnsClient>(DnsClient, MODULE);
|
export const createClient = factory<DnsClient>(DnsClient, MODULE);
|
||||||
|
|
Loading…
Reference in New Issue