Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

altv-pkg

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

altv-pkg - npm Package Compare versions

Comparing version 2.2.3 to 2.3.0

56

bin/altv-pkg.js

@@ -112,10 +112,7 @@ #!/usr/bin/env node

const sharedFiles = {
'data/vehmodels.bin': `https://${CDN_ADDRESS}/data/${branch}/data/vehmodels.bin`,
'data/vehmods.bin': `https://${CDN_ADDRESS}/data/${branch}/data/vehmods.bin`,
'data/clothes.bin': `https://${CDN_ADDRESS}/data/${branch}/data/clothes.bin`,
'data/pedmodels.bin': `https://${CDN_ADDRESS}/data/${branch}/data/pedmodels.bin`,
'data/rpfdata.bin': `https://${CDN_ADDRESS}/data/${branch}/data/rpfdata.bin`,
'data/weaponmodels.bin': `https://${CDN_ADDRESS}/data/${branch}/data/weaponmodels.bin`,
};
const sharedFiles = {};
let res = await axios.get(`https://${CDN_ADDRESS}/data/${branch}/update.json`, { responseType: 'json' });
for ([file, hash] of Object.entries(res.data.hashList)) {
sharedFiles[file] = `https://${CDN_ADDRESS}/data/${branch}/${file}`;
}

@@ -127,6 +124,9 @@ const linuxFiles = {

'start.sh': `https://${CDN_ADDRESS}/others/start.sh`,
'altv-server': `https://${SERVER_CDN_ADDRESS}/server/${serverBranch}/x64_linux/altv-server`,
'altv-crash-handler': `https://${SERVER_CDN_ADDRESS}/server/${serverBranch}/x64_linux/altv-crash-handler`,
};
res = await axios.get(`https://${SERVER_CDN_ADDRESS}/server/${serverBranch}/x64_linux/update.json`, { responseType: 'json' });
for ([file, hash] of Object.entries(res.data.hashList)) {
linuxFiles[file] = `https://${SERVER_CDN_ADDRESS}/server/${serverBranch}/x64_linux/${file}`;
}
const windowsFiles = {

@@ -136,6 +136,9 @@ ...sharedFiles,

'libnode.dll': `https://${CDN_ADDRESS}/js-module/${branch}/${platform}/modules/js-module/libnode.dll`,
'altv-server.exe': `https://${SERVER_CDN_ADDRESS}/server/${serverBranch}/${platform}/altv-server.exe`,
'altv-crash-handler.exe': `https://${SERVER_CDN_ADDRESS}/server/${serverBranch}/${platform}/altv-crash-handler.exe`,
};
res = await axios.get(`https://${SERVER_CDN_ADDRESS}/server/${serverBranch}/x64_win32/update.json`, { responseType: 'json' });
for ([file, hash] of Object.entries(res.data.hashList)) {
windowsFiles[file] = `https://${SERVER_CDN_ADDRESS}/server/${serverBranch}/x64_win32/${file}`;
}
const sharedUpdates = [

@@ -158,5 +161,12 @@ `https://${CDN_ADDRESS}/data/${branch}/update.json`,

if (loadBytecodeModule) {
linuxFiles['modules/libjs-bytecode-module.so'] = `https://${CDN_ADDRESS}/js-bytecode-module/${branch}/${platform}/modules/libjs-bytecode-module.so`;
windowsFiles['modules/js-bytecode-module.dll'] = `https://${CDN_ADDRESS}/js-bytecode-module/${branch}/${platform}/modules/js-bytecode-module.dll`;
res = await axios.get(`https://${CDN_ADDRESS}/js-bytecode-module/${branch}/x64_linux/update.json`, { responseType: 'json' });
for ([file, hash] of Object.entries(res.data.hashList)) {
linuxFiles[file] = `https://${CDN_ADDRESS}/js-bytecode-module/${branch}/x64_linux/${file}`;
}
res = await axios.get(`https://${CDN_ADDRESS}/js-bytecode-module/${branch}/x64_win32/update.json`, { responseType: 'json' });
for ([file, hash] of Object.entries(res.data.hashList)) {
windowsFiles[file] = `https://${CDN_ADDRESS}/js-bytecode-module/${branch}/x64_win32/${file}`;
}
linuxUpdates.push(`https://${CDN_ADDRESS}/js-bytecode-module/${branch}/x64_linux/update.json`)

@@ -167,14 +177,12 @@ windowsUpdates.push(`https://${CDN_ADDRESS}/js-bytecode-module/${branch}/x64_win32/update.json`);

if (loadCSharpModule) {
res = await axios.get(`https://${CDN_ADDRESS}/coreclr-module/${branch}/x64_linux/update.json`, { responseType: 'json' });
for ([file, hash] of Object.entries(res.data.hashList)) {
linuxFiles[file] = `https://${CDN_ADDRESS}/coreclr-module/${branch}/x64_linux/${file}`;
}
linuxFiles['AltV.Net.Host.dll'] = `https://${CDN_ADDRESS}/coreclr-module/${branch}/${platform}/AltV.Net.Host.dll`;
linuxFiles['AltV.Net.Host.runtimeconfig.json'] = `https://${CDN_ADDRESS}/coreclr-module/${branch}/${platform}/AltV.Net.Host.runtimeconfig.json`;
res = await axios.get(`https://${CDN_ADDRESS}/coreclr-module/${branch}/x64_win32/update.json`, { responseType: 'json' });
for ([file, hash] of Object.entries(res.data.hashList)) {
windowsFiles[file] = `https://${CDN_ADDRESS}/coreclr-module/${branch}/x64_win32/${file}`;
}
linuxFiles['modules/libcsharp-module.so'] = `https://${CDN_ADDRESS}/coreclr-module/${branch}/${platform}/modules/libcsharp-module.so`;
windowsFiles['AltV.Net.Host.dll'] = `https://${CDN_ADDRESS}/coreclr-module/${branch}/${platform}/AltV.Net.Host.dll`;
windowsFiles['AltV.Net.Host.runtimeconfig.json'] = `https://${CDN_ADDRESS}/coreclr-module/${branch}/${platform}/AltV.Net.Host.runtimeconfig.json`;
windowsFiles['modules/csharp-module.dll'] = `https://${CDN_ADDRESS}/coreclr-module/${branch}/${platform}/modules/csharp-module.dll`;
windowsFiles['modules/csharp-module.pdb'] = `https://${CDN_ADDRESS}/coreclr-module/${branch}/${platform}/modules/csharp-module.pdb`;
linuxUpdates.push(`https://${CDN_ADDRESS}/coreclr-module/${branch}/x64_linux/update.json`);

@@ -181,0 +189,0 @@ windowsUpdates.push(`https://${CDN_ADDRESS}/coreclr-module/${branch}/x64_win32/update.json`);

{
"name": "altv-pkg",
"version": "2.2.3",
"version": "2.3.0",
"description": "Install alt:V Binaries Quickly",

@@ -5,0 +5,0 @@ "main": "bin/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc