*Update dist

This commit is contained in:
Derrick Hammer 2022-08-19 12:49:26 -04:00
parent 7e5b9e4b22
commit 8df42b7202
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 1 deletions

5
dist/index.js vendored
View File

@ -1,5 +1,5 @@
import tldEnum from "@lumeweb/tld-enum"; import tldEnum from "@lumeweb/tld-enum";
import { AbstractResolverModule, DNS_RECORD_TYPE, isDomain, isIp, isPromise, normalizeDomain, resolverEmptyResponse, } from "@lumeweb/resolver-common"; import { AbstractResolverModule, DNS_RECORD_TYPE, isDomain, isIp, isPromise, normalizeDomain, resolverEmptyResponse, resolveSuccess, } from "@lumeweb/resolver-common";
import { getTld } from "@lumeweb/resolver-common"; import { getTld } from "@lumeweb/resolver-common";
const HIP5_EXTENSIONS = ["eth", "_eth"]; const HIP5_EXTENSIONS = ["eth", "_eth"];
export default class Handshake extends AbstractResolverModule { export default class Handshake extends AbstractResolverModule {
@ -74,6 +74,9 @@ export default class Handshake extends AbstractResolverModule {
} }
} }
} }
if (0 < records.length) {
return resolveSuccess(records);
}
return resolverEmptyResponse(); return resolverEmptyResponse();
} }
// @ts-ignore // @ts-ignore