transporttycoon
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -26,3 +26,3 @@ import { PlayerPositions } from './models/PlayerPositions'; | ||
}; | ||
constructor(apiToken?: string, trackCharges?: boolean); | ||
constructor(apiToken?: string, trackCharges?: boolean, timeout?: number); | ||
setupCharges(): Promise<any>; | ||
@@ -29,0 +29,0 @@ getCharges(): number; |
@@ -30,3 +30,3 @@ "use strict"; | ||
class TransportTycoon { | ||
constructor(apiToken = '', trackCharges = false) { | ||
constructor(apiToken = '', trackCharges = false, timeout = 5000) { | ||
this.charges = { | ||
@@ -44,3 +44,3 @@ checking: false, | ||
baseURL: `http://${tycoonServers[0]}/status`, | ||
timeout: 5000 | ||
timeout | ||
}); | ||
@@ -47,0 +47,0 @@ if (apiToken) |
{ | ||
"name": "transporttycoon", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Wrapper for the Transport Tycoon FiveM server API", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
29770