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.7 to 1.0.8

lib/models/Weather.d.ts

2

lib/index.d.ts

@@ -12,2 +12,3 @@ import { PlayerPositions } from './models/PlayerPositions';

import { OwnedVehicles } from './models/OwnedVehicles';
import { Weather } from './models/Weather';
export declare class TransportTycoon {

@@ -27,2 +28,3 @@ private token;

getCharges(): number;
getCurrentWeather(server?: number): Promise<Weather>;
getActiveAirlineRoutes(server?: number): Promise<ActiveAirline>;

@@ -29,0 +31,0 @@ getPlayerPositions(server?: number): Promise<PlayerPositions>;

@@ -86,2 +86,15 @@ "use strict";

}
async getCurrentWeather(server = 0) {
if (server - 1 > tycoonServers.length)
return Promise.reject('Please enter a valid server id from 0 - 9.');
try {
if (this.charges.checking && this.charges.count > 0)
this.charges.count--;
const res = await this.tycoon.get(`http://${tycoonServers[server]}/status/weather.json`);
return Promise.resolve(res.data);
}
catch (err) {
return Promise.reject(err);
}
}
async getActiveAirlineRoutes(server = 0) {

@@ -88,0 +101,0 @@ if (server - 1 > tycoonServers.length)

2

package.json
{
"name": "transporttycoon",
"version": "1.0.7",
"version": "1.0.8",
"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