Skip to content
Snippets Groups Projects
Commit 1f8e9d86 authored by Michael Kriese's avatar Michael Kriese Committed by Rhys Arkins
Browse files

fix(packagist): default hostRule (#3793)

fix(packagist): default hostRule
parent d5017909
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment