this repo has no description
atproto bluesky typescript express

wow i am soooo clueless

+2 -5
+1 -4
src/lib/resolver.ts
··· 71 71 72 72 export async function byPLC(did: string) { 73 73 const didDoc = await getPLC(did); 74 - 75 - if (typeof didDoc?.id !== "string") return null; 76 - 77 - return didDoc.id.replace(/^"+|"$/g, ""); 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 - console.log("PLC: " + JSON.stringify(result)), 6 + console.log("PLC: " + result), 7 7 ); 8 8 getPDS("did:plc:vro3sykit2gjemuza2pwvxwy").then((result) => 9 9 console.log("PDS: " + result),