MCPcopy Index your code
hub / github.com/larksuite/cli / isValidDownloadBase

Function isValidDownloadBase

scripts/install.js:81–88  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

79}
80
81function isValidDownloadBase(raw) {
82 try {
83 const parsed = new URL(raw);
84 return parsed.protocol === "https:" && !!parsed.hostname;
85 } catch (_) {
86 return false;
87 }
88}
89
90function isDefaultNpmjsRegistry(url) {
91 try {

Callers 1

resolveMirrorUrlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected