From 1f8e9d86e67a34af693af7ca4b72b4c3bdd6cc44 Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Tue, 21 May 2019 21:11:10 +0200 Subject: [PATCH] fix(packagist): default hostRule (#3793) fix(packagist): default hostRule --- lib/datasource/packagist/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/datasource/packagist/index.js b/lib/datasource/packagist/index.js index 85e26a15b8..9290b3b968 100644 --- a/lib/datasource/packagist/index.js +++ b/lib/datasource/packagist/index.js @@ -13,8 +13,10 @@ module.exports = { function getHostOpts(url) { const { host } = URL.parse(url); - const opts = hostRules.find({ hostType: 'packagist', host }); - opts.json = true; + const opts = { + ...hostRules.find({ hostType: 'packagist', host }), + json: true, + }; if (opts && opts.username && opts.password) { const auth = Buffer.from(`${opts.username}:${opts.password}`).toString( 'base64' -- GitLab