MCPcopy Create free account
hub / github.com/MathMan05/Fermi / setString

Method setString

src/webpage/utils/utils.ts:354–367  ·  view source on GitHub ↗
(name: string, value: string)

Source from the content-addressed store, hash-verified

352 value: string;
353}
354
355export async function getapiurls(str: string): Promise<InstanceUrls | null> {
356 str = str.trim();
357 if (!str) return null;
358
359 console.info("Attempting to fetch .well-known's for", str);
360
361 // Override first:
362 let urls: InstanceUrls | null = await getInstanceInfo(str);
363 if (urls) return urls;
364
365 // Otherwise, fall back to looking it up...
366 try {
367 urls = await getApiUrlsV2(str);
368 if (!urls) throw new Error("meow");
369 return urls;
370 } catch {

Callers

nothing calls this directly

Calls 2

setStringWorkerMethod · 0.95
closeMethod · 0.80

Tested by

no test coverage detected