From bea742218c063197135c30d480fe5625db1d01a4 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 19 Aug 2022 14:48:35 -0400 Subject: [PATCH] *Remove async --- dist/resolverModule.d.ts | 2 +- dist/resolverModule.d.ts.map | 2 +- src/resolverModule.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/resolverModule.d.ts b/dist/resolverModule.d.ts index 4e94e61..6f4596d 100644 --- a/dist/resolverModule.d.ts +++ b/dist/resolverModule.d.ts @@ -9,7 +9,7 @@ export interface ResolverModule { ): Promise; getSupportedTlds(): string[]; } -export declare abstract class AbstractResolverModule implements ResolverModule { +export declare abstract class AbstractResolverModule { protected resolver: ResolverRegistry; constructor(resolver: ResolverRegistry); abstract resolve( diff --git a/dist/resolverModule.d.ts.map b/dist/resolverModule.d.ts.map index 33c81d5..5eddbba 100644 --- a/dist/resolverModule.d.ts.map +++ b/dist/resolverModule.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"resolverModule.d.ts","sourceRoot":"","sources":["../src/resolverModule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,QAAQ,EAAE,gBAAgB,OAAE;IAExC,OAAO,CACL,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtB,gBAAgB,IAAI,MAAM,EAAE,CAAC;CAC9B;AAGD,8BAAsB,sBAAuB,YAAW,cAAc;IACpE,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAEzB,QAAQ,EAAE,gBAAgB;aAIvB,OAAO,CACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC;IAErB,gBAAgB,IAAI,MAAM,EAAE;IAI5B,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAGxC"} \ No newline at end of file +{"version":3,"file":"resolverModule.d.ts","sourceRoot":"","sources":["../src/resolverModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,QAAQ,EAAE,gBAAgB,OAAE;IAExC,OAAO,CACL,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtB,gBAAgB,IAAI,MAAM,EAAE,CAAC;CAC9B;AAGD,8BAAsB,sBAAsB;IAC1C,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAEzB,QAAQ,EAAE,gBAAgB;aAIvB,OAAO,CACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,SAAS,CAAC;IAErB,gBAAgB,IAAI,MAAM,EAAE;IAI5B,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAGxC"} \ No newline at end of file diff --git a/src/resolverModule.ts b/src/resolverModule.ts index 7a4e3d3..19bc2c0 100644 --- a/src/resolverModule.ts +++ b/src/resolverModule.ts @@ -22,7 +22,7 @@ export abstract class AbstractResolverModule { this.resolver = resolver; } - abstract async resolve( + abstract resolve( domain: string, options: ResolverOptions, bypassCache: boolean