libresolver/dist/resolverModule.js

14 lines
308 B
JavaScript
Raw Normal View History

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