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

Function isDefaultNpmjsRegistry

scripts/install.js:90–97  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

88}
89
90function isDefaultNpmjsRegistry(url) {
91 try {
92 const { hostname } = new URL(url);
93 return hostname === "registry.npmjs.org";
94 } catch (_) {
95 return false;
96 }
97}
98
99function assertAllowedHost(url) {
100 const { hostname } = new URL(url);

Callers 1

resolveMirrorUrlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected