libresolver/dist/resolverModule.js

14 lines
308 B
JavaScript

import { getTld } from "./util.js";
export class AbstractResolverModule {
resolver;
constructor(resolver) {
this.resolver = resolver;
}
getSupportedTlds() {
return [];
}
isTldSupported(domain) {
return this.getSupportedTlds().includes(getTld(domain));
}
}