From cc2d86055603dc24dc4266519dd5f61e9bbd5da5 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Tue, 7 Aug 2018 07:30:59 +0200
Subject: [PATCH] fix: correct log for npmjs headers

---
 lib/datasource/npm.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/datasource/npm.js b/lib/datasource/npm.js
index ce56068239..76f6ee58fd 100644
--- a/lib/datasource/npm.js
+++ b/lib/datasource/npm.js
@@ -171,15 +171,15 @@ async function getDependency(name, retries = 5) {
     });
     const res = raw.body;
     // 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
       logger.debug(
         {
-          name,
+          package: name,
           latest: res['dist-tags'].latest,
           headers: raw.headers,
         },
-        'npmjs res.headers for scoped packages'
+        'npmjs res.headers for scoped package'
       );
     }
     if (!(res.name && res.name.toLowerCase() === name.toLowerCase())) {
-- 
GitLab