From 6839971c6d5fe1458adb519b9b6d1e4db69644f2 Mon Sep 17 00:00:00 2001
From: Valmir Barbosa <valmir.php@gmail.com>
Date: Wed, 25 Sep 2019 04:00:45 -0300
Subject: [PATCH] fix auth GPR

---
 lib/authutil.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/authutil.js b/lib/authutil.js
index ea8ba6e3..ef9531fa 100644
--- a/lib/authutil.js
+++ b/lib/authutil.js
@@ -43,8 +43,9 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) {
         });
     }
     // Remove http: or https: from front of registry.
-    const authString = registryUrl.replace(/(^\w+:|^)/, '')
-        + ':_authToken=' + process.env['NODE_AUTH_TOKEN'];
+    const authString = registryUrl.replace(/(^\w+:|^)/, '') +
+        ':_authToken=' +
+        process.env['NODE_AUTH_TOKEN'];
     const registryString = scope
         ? `${scope}:registry=${registryUrl}`
         : `registry=${registryUrl}`;