fix(packagist): do proper url join

This commit is contained in:
Rhys Arkins 2018-10-18 05:04:19 +02:00
parent 058289e8bd
commit 53813e97b9

View file

@ -23,7 +23,8 @@ function authGot(url) {
async function getRegistryMeta(regUrl) {
try {
const res = (await authGot(regUrl + '/packages.json')).body;
const url = URL.resolve(regUrl, 'packages.json');
const res = (await authGot(url)).body;
const meta = {};
meta.packages = res.packages;
if (res.includes) {