Skip to content
Snippets Groups Projects
Commit cc2d8605 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: correct log for npmjs headers

parent 77fb7070
No related merge requests found
...@@ -171,15 +171,15 @@ async function getDependency(name, retries = 5) { ...@@ -171,15 +171,15 @@ async function getDependency(name, retries = 5) {
}); });
const res = raw.body; const res = raw.body;
// istanbul ignore if // istanbul ignore if
if (regUrl === 'https://registry.npmjs.org' && name.startsWith('@')) { if (regUrl === 'https://registry.npmjs.org/' && name.startsWith('@')) {
// npmjs is having problems with scoped package consistency so we are debug logging headers until the problem goes away // npmjs is having problems with scoped package consistency so we are debug logging headers until the problem goes away
logger.debug( logger.debug(
{ {
name, package: name,
latest: res['dist-tags'].latest, latest: res['dist-tags'].latest,
headers: raw.headers, headers: raw.headers,
}, },
'npmjs res.headers for scoped packages' 'npmjs res.headers for scoped package'
); );
} }
if (!(res.name && res.name.toLowerCase() === name.toLowerCase())) { if (!(res.name && res.name.toLowerCase() === name.toLowerCase())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment