Fix extension setup

This commit is contained in:
Shivam Mathur
2021-06-04 21:23:57 +05:30
parent 86e1ccdd8d
commit b2f833f7d1
5 changed files with 7710 additions and 10 deletions

2
dist/index.js vendored
View File

@ -1119,7 +1119,7 @@ exports.fetch = fetch;
* @param version
*/
async function parseVersion(version) {
const manifest = 'https://dl.bintray.com/shivammathur/php/php-versions.json';
const manifest = 'https://raw.githubusercontent.com/shivammathur/setup-php/develop/src/configs/php-versions.json';
switch (true) {
case /latest|\d.x/.test(version):
return JSON.parse(await fetch(manifest))[version];