True when url points at the public npm registry itself. Compares the parsed host — a
substring test would also accept https://evil.example/registry.npmjs.org and
https://registry.npmjs.org.evil.example. An unparseable URL is not the default, so it goes
on to ValidateRegistryUrl, which rejects it.
True when
urlpoints at the public npm registry itself. Compares the parsed host — a substring test would also accepthttps://evil.example/registry.npmjs.organdhttps://registry.npmjs.org.evil.example. An unparseable URL is not the default, so it goes on to ValidateRegistryUrl, which rejects it.