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
wow i am soooo clueless
lime360
1 month ago
ddcc6bab
6df87cc3
1/1
test.yml
success
16s
+2
-5
2 changed files
expand all
collapse all
unified
split
src
lib
resolver.ts
tests
resolver.test.ts
+1
-4
src/lib/resolver.ts
···
71
71
72
72
export async function byPLC(did: string) {
73
73
const didDoc = await getPLC(did);
74
74
-
75
75
-
if (typeof didDoc?.id !== "string") return null;
76
76
-
77
77
-
return didDoc.id.replace(/^"+|"$/g, "");
74
74
+
return didDoc.id;
78
75
}
79
76
80
77
export async function getPDS(did: string) {
+1
-1
src/tests/resolver.test.ts
···
3
3
byDNS("yoyle.city").then((result) => console.log("DNS: " + result));
4
4
byHTTP("yoyle.city").then((result) => console.log("HTTP: " + result));
5
5
byPLC("did:plc:vro3sykit2gjemuza2pwvxwy").then((result) =>
6
6
-
console.log("PLC: " + JSON.stringify(result)),
6
6
+
console.log("PLC: " + result),
7
7
);
8
8
getPDS("did:plc:vro3sykit2gjemuza2pwvxwy").then((result) =>
9
9
console.log("PDS: " + result),