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

transporttycoon

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transporttycoon - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

1

lib/index.d.ts

@@ -40,3 +40,4 @@ import { PlayerPositions } from './models/PlayerPositions';

getAdvancedUserlist(server?: number): Promise<any>;
getWebadmin(server?: number): Promise<any>;
getEconomyInfo(): Promise<Economy[]>;
}

@@ -258,2 +258,13 @@ "use strict";

}
async getWebadmin(server = 0) {
if (server - 1 > tycoonServers.length)
return Promise.reject('Please enter a valid server id from 0 - 9.');
try {
const res = await this.tycoon.get(`http://${tycoonServers[server]}/webadmin/`);
return Promise.resolve(res.data);
}
catch (err) {
return Promise.reject(err);
}
}
async getEconomyInfo() {

@@ -260,0 +271,0 @@ try {

2

package.json
{
"name": "transporttycoon",
"version": "1.0.6",
"version": "1.0.7",
"description": "Wrapper for the Transport Tycoon FiveM server API",

@@ -5,0 +5,0 @@ "main": "lib/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