MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / fetchProfile

Method fetchProfile

tests/fixtures/sample.ts:52–58  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

50
51 @LogMethod
52 async fetchProfile(url: string): Promise<Record<string, unknown>> {
53 const response = await fetch(url);
54 const data = await response.json();
55 this._cache.set(url, data);
56 log(`Fetched profile for ${this.name}`);
57 return data as Record<string, unknown>;
58 }
59
60 private resetCache(): void {
61 this._cache.clear();

Callers

nothing calls this directly

Calls 2

logFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected