🤖 Merge PR #47254 fix(gamedig): add new givenPortOnly query option by @P4sca1

* fix(gamedig): add new givenPortOnly query option

* fix(gamedig): update tests and remove patch version number
This commit is contained in:
Pascal Sthamer 2020-09-04 00:11:25 +02:00 committed by GitHub
parent a158272027
commit 42aaa4a278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,13 @@ import Gamedig = require("gamedig");
Gamedig.query({
type: "tf2",
host: "127.0.0.1"
host: "127.0.0.1",
port: 27015,
maxAttempts: 1,
socketTimeout: 2000,
attemptTimeout: 10000,
givenPortOnly: true,
debug: false
}, (error, state) => {
if (error) throw error();

View File

@ -2,6 +2,7 @@
// Project: https://github.com/sonicsnes/node-gamedig
// Definitions by: Ivan Sieder <https://github.com/ivansieder>
// Marco Vockner <https://github.com/marcopixel>
// Pascal Sthamer <https://github.com/p4sca1>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export type Type =
@ -292,6 +293,7 @@ export interface QueryOptions {
maxAttempts?: number;
socketTimeout?: number;
attemptTimeout?: number;
givenPortOnly?: boolean;
debug?: boolean;
}