Comparing version 2.7.5 to 2.8.0
@@ -258,24 +258,25 @@ #!/usr/bin/env node | ||
if (loadJSV2Module) { | ||
if (branch != 'dev') { | ||
console.log(chalk.redBright('===== JS V2 module is only available in dev currently, skipping =====')); | ||
} else { | ||
res = await fetchJsonData(`https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_linux/update.json`, { | ||
responseType: 'application/json', | ||
headers, | ||
}); | ||
for ([file, hash] of Object.entries(res.hashList)) { | ||
linuxFiles[file] = `https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_linux/${file}`; | ||
} | ||
if (branch != 'dev' && branch != 'rc' && !branch.startsWith('qa')) { | ||
console.log(chalk.redBright('===== JSv2 module is currently only available in dev and rc, skipping =====')); | ||
return; | ||
} | ||
res = await fetchJsonData(`https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_win32/update.json`, { | ||
responseType: 'application/json', | ||
headers, | ||
}); | ||
for ([file, hash] of Object.entries(res.hashList)) { | ||
windowsFiles[file] = `https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_win32/${file}`; | ||
} | ||
res = await fetchJsonData(`https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_linux/update.json`, { | ||
responseType: 'application/json', | ||
headers, | ||
}); | ||
for ([file, hash] of Object.entries(res.hashList)) { | ||
linuxFiles[file] = `https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_linux/${file}`; | ||
} | ||
linuxUpdates.push(`https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_linux/update.json`); | ||
windowsUpdates.push(`https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_win32/update.json`); | ||
res = await fetchJsonData(`https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_win32/update.json`, { | ||
responseType: 'application/json', | ||
headers, | ||
}); | ||
for ([file, hash] of Object.entries(res.hashList)) { | ||
windowsFiles[file] = `https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_win32/${file}`; | ||
} | ||
linuxUpdates.push(`https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_linux/update.json`); | ||
windowsUpdates.push(`https://${CDN_ADDRESS}/js-module-v2/${branch}/x64_win32/update.json`); | ||
} | ||
@@ -282,0 +283,0 @@ |
{ | ||
"name": "altv-pkg", | ||
"version": "2.7.5", | ||
"version": "2.8.0", | ||
"description": "Install alt:V Binaries Quickly", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53263