*Update dist

This commit is contained in:
Derrick Hammer 2022-08-19 09:49:15 -04:00
parent 74f60ea59a
commit 43944cb5b5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 1 deletions

6
dist/index.js vendored
View File

@ -5,7 +5,11 @@ const HIP5_EXTENSIONS = ["eth", "_eth"];
export default class Handshake extends AbstractResolverModule { export default class Handshake extends AbstractResolverModule {
async buildBlacklist() { async buildBlacklist() {
const blacklist = new Set(); const blacklist = new Set();
for (const resolver of this.resolver.resolvers) { let resolvers = this.resolver.resolvers;
if (isPromise(resolvers)) {
resolvers = await resolvers;
}
for (const resolver of resolvers) {
let tlds = resolver.getSupportedTlds(); let tlds = resolver.getSupportedTlds();
if (isPromise(tlds)) { if (isPromise(tlds)) {
tlds = await tlds; tlds = await tlds;