libresolver/dist/resolverModule.js

15 lines
321 B
JavaScript
Raw Normal View History

2022-08-18 14:58:17 +00:00
import { getTld } from "./util.js";
2022-08-19 15:53:39 +00:00
// ts-ignore
2022-08-18 14:58:17 +00:00
export class AbstractResolverModule {
resolver;
constructor(resolver) {
this.resolver = resolver;
}
getSupportedTlds() {
return [];
}
isTldSupported(domain) {
return this.getSupportedTlds().includes(getTld(domain));
}
}