MCPcopy
hub / github.com/larksuite/cli / getMirrorUrls

Function getMirrorUrls

scripts/install.js:108–112  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

106// Resolve the mirror URL chain and admit each host. Called from install() so
107// derived hosts only become trusted when actually needed.
108function getMirrorUrls(env) {
109 const urls = resolveMirrorUrls(env, archiveName, VERSION);
110 for (const u of urls) ALLOWED_HOSTS.add(new URL(u).hostname);
111 return urls;
112}
113
114/**
115 * Decide from a `curl --version` output whether curl is >= 7.70.0 — the

Callers 1

installFunction · 0.85

Calls 2

resolveMirrorUrlsFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected