Socket
Socket
Sign inDemoInstall

altv-pkg

Package Overview
Dependencies
3
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.2.0

11

bin/altv-pkg.js

@@ -33,3 +33,3 @@ #!/usr/bin/env node

resolve(code);
} catch(e) {
} catch (e) {
reject(e);

@@ -43,3 +43,3 @@ return;

await client.login({ clientId: DISCORD_ID });
} catch(e) {
} catch (e) {
reject(e);

@@ -53,5 +53,5 @@ }

try {
const res = await axios.get('https://qa-auth.alt-mp.com/auth', { responseType: 'json', headers: { Authorization: code }});
const res = await axios.get('https://qa-auth.alt-mp.com/auth', { responseType: 'json', headers: { Authorization: code } });
return res.data.token;
} catch(e) {
} catch (e) {
if (e?.response?.status != 403) throw e;

@@ -110,2 +110,3 @@ throw new Error("You do not have permissions to access this branch");

'data/rpfdata.bin': `https://${CDN_ADDRESS}/data/${branch}/data/rpfdata.bin`,
'data/weaponmodels.bin': `https://${CDN_ADDRESS}/data/${branch}/data/weaponmodels.bin`,
};

@@ -188,3 +189,3 @@

headers = { 'X-Auth': token }
} catch(e) {
} catch (e) {
console.error(chalk.redBright(`Failed to authorize: ${e}`));

@@ -191,0 +192,0 @@ return;

{
"name": "altv-pkg",
"version": "2.1.0",
"version": "2.2.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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc