MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / done

Function done

src/image.js:68–68  ·  view source on GitHub ↗
(fn, val)

Source from the content-addressed store, hash-verified

66 return new Promise((resolve, reject) => {
67 let settled = false;
68 const done = (fn, val) => { if (!settled) { settled = true; fn(val); } };
69
70 const mod = url.startsWith('https') ? https : http;
71 const req = mod.get(url, { timeout: timeoutMs, headers: { 'Accept': 'image/*' }, lookup: safeLookup }, (res) => {

Callers 1

fetchImageUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected