tangled
alpha
login
or
join now
yoyle.city
/
skittr
6
fork
atom
this repo has no description
atproto
bluesky
typescript
express
6
fork
atom
overview
issues
3
pulls
pipelines
strip quotation marks from the did document resolver
lime360
3 weeks ago
6df87cc3
1984930c
1/1
test.yml
success
14s
+4
-1
1 changed file
expand all
collapse all
unified
split
src
lib
resolver.ts
+4
-1
src/lib/resolver.ts
···
71
72
export async function byPLC(did: string) {
73
const didDoc = await getPLC(did);
74
-
return didDoc.id;
0
0
0
75
}
76
77
export async function getPDS(did: string) {
···
71
72
export async function byPLC(did: string) {
73
const didDoc = await getPLC(did);
74
+
75
+
if (typeof didDoc?.id !== "string") return null;
76
+
77
+
return didDoc.id.replace(/^"+|"$/g, "");
78
}
79
80
export async function getPDS(did: string) {