We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ee153e commit 1b82778Copy full SHA for 1b82778
packages/core/deno.jsonc
@@ -1,6 +1,6 @@
1
{
2
"name": "@lpm/core",
3
- "version": "0.2.5",
+ "version": "0.2.6",
4
"license": "MIT",
5
"exports": "./mod.ts",
6
packages/core/src/nsid-authority.ts
@@ -29,9 +29,14 @@ export class NSIDAuthorityService {
29
)
30
: nsidOrPattern;
31
32
- const record = await this.dnsServicer.resolveTxt(
33
- `_lexicon.${nsid.authority}`,
34
- );
+ let record;
+ try {
+ record = await this.dnsServicer.resolveTxt(
35
+ `_lexicon.${nsid.authority}`,
36
+ );
37
+ } catch (_) {
38
+ return null;
39
+ }
40
41
const authorityDid = record.join("").replace(/^did=/, "");
42
0 commit comments