MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / resolve

Function resolve

examples/js/networkpromises/main.js:25–35  ·  view source on GitHub ↗
(domain)

Source from the content-addressed store, hash-verified

23}
24
25function resolve(domain)
26{
27 return new Promise((resolve, reject) => {
28 Net.resolve(domain, (name, address) => {
29 if (address)
30 resolve(address);
31 else
32 reject();
33 });
34 });
35}
36
37function fetch(host, path = "/")
38{

Callers 3

fetchFunction · 0.70
scanFunction · 0.70
main.jsFile · 0.70

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected