Commit Graph

38 Commits

Author SHA1 Message Date
Derrick Hammer 8be5af2f45
feat: add ready method to AbstractResolverModule 2023-07-15 04:29:02 -04:00
Derrick Hammer 0f0ee49914
*Add resolver get/set to ResolverModule interface 2023-02-19 20:26:50 -05:00
Derrick Hammer f4283e2d8f
*add a setter for the resolver object and dont use constructor based init 2023-02-19 20:07:52 -05:00
Derrick Hammer 68640a2bb8
*Cast supported due to overload 2023-02-19 20:02:24 -05:00
Derrick Hammer 6a8c6b9535
*make getSupportedTlds an overloaded method 2023-02-19 20:00:43 -05:00
Derrick Hammer b5d4b63ade
*Use function overloading 2023-02-19 18:18:00 -05:00
Derrick Hammer 1e62962a1d
*Refactor isTldSupported to support promises 2023-02-19 18:03:32 -05:00
Derrick Hammer d1c8f72ab8
*Add extra promise return type 2023-02-19 17:47:33 -05:00
Derrick Hammer 067080c83e
*Remove _resolvers private property 2023-02-19 16:59:11 -05:00
Derrick Hammer e07d479ce1
*Remove rpc code for now 2023-02-19 15:55:02 -05:00
Derrick Hammer cfc827829a
*Use newer dht-rpc-client, now rpc-client 2023-02-19 15:02:21 -05:00
Derrick Hammer c0b6384fa5
*Add utility function ensureUniqueRecords to ensure there are no duplicate records 2022-08-29 00:55:53 -04:00
Derrick Hammer ee4b80b4ce
*add ResolverModuleConstructor interface 2022-08-20 02:48:48 -04:00
Derrick Hammer 7a1a2d2150
*import only the type RpcNetwork 2022-08-19 15:49:30 -04:00
Derrick Hammer e4c0a1b9ba
*add a stub declare for ResolverRegistry to break circular dependency 2022-08-19 15:44:51 -04:00
Derrick Hammer bea742218c
*Remove async 2022-08-19 14:48:35 -04:00
Derrick Hammer 37c31d57d2
*Remove implements as it causes too many issues 2022-08-19 14:48:16 -04:00
Derrick Hammer 902cc9ec67
*resolve should be async 2022-08-19 13:46:10 -04:00
Derrick Hammer 7d3383dd4f
*Input should be domain 2022-08-19 13:42:32 -04:00
Derrick Hammer fa0e3d6a71
*More type changes 2022-08-19 13:42:14 -04:00
Derrick Hammer 084c4c7347
*Remove DEFAULT 2022-08-19 12:37:05 -04:00
Derrick Hammer 42712a51d7
*Update types 2022-08-19 11:53:26 -04:00
Derrick Hammer 3b3e70af21
*AbstractResolverModule should implement ResolverModule 2022-08-19 11:29:46 -04:00
Derrick Hammer 171791d491
*Add isPromise to util 2022-08-18 20:10:00 -04:00
Derrick Hammer ba155ab715
*Add getSupportedTlds to ResolverModule interface 2022-08-18 20:01:23 -04:00
Derrick Hammer 87a563c92d
*Add normalizeDomain function 2022-08-18 14:31:52 -04:00
Derrick Hammer 01664a35dd
*force should be bypassCache 2022-08-18 14:08:53 -04:00
Derrick Hammer aa3502bf71
*DNSResult.records should be type DNSRecord[] 2022-08-18 14:03:22 -04:00
Derrick Hammer 692417b1e5
*Add helper functions for handling resolver responses 2022-08-18 14:03:04 -04:00
Derrick Hammer 82d11b30f5
*Export util 2022-08-18 13:54:45 -04:00
Derrick Hammer 815c6e6f75
*Update ResolverRegistry import 2022-08-18 13:08:15 -04:00
Derrick Hammer dbe35225be
*Add types 2022-08-18 13:02:27 -04:00
Derrick Hammer 9d95bb59e3
*Make type a string 2022-08-18 11:13:49 -04:00
Derrick Hammer 97e45a098d
*Options should be optional 2022-08-18 11:11:53 -04:00
Derrick Hammer a72c530fc0
*Add a DEFAULT DNS record type 2022-08-18 11:04:41 -04:00
Derrick Hammer 351e4ceb85
*records should not be in ResolverOptions 2022-08-18 11:03:50 -04:00
Derrick Hammer 3f68971640
*ResolverModule should not be default 2022-08-18 11:01:07 -04:00
Derrick Hammer c4498d812d
*Initial version 2022-08-18 10:57:46 -04:00