Commit graph

55 commits

Author SHA1 Message Date
Tom
01794f6339
Add support for running using deno (#362)
* Add missing CRLF line ending

* Add support for running using deno

Prefix node imports with "node:" and gate a socket API that is not
implemented in [deno](https://deno.land) so that the library can be used
there. This should not break node and doesn't in my brief testing.
2023-10-10 12:25:57 +03:00
CosminPerRam
93a9095d99
Add eslint (#364)
* Add initial prettier and eslint configs

* Modify prettierrc

* Run eslint on everything

* Actually remove prettier

* Fix some eslints

* Remove label in gs2

* Update CHANGELOG

* Update eslintrc to specify es2021
2023-09-19 19:52:35 +03:00
CosminPerRam
17f91904ab Updated node version to 14.17 from 14 2023-09-15 00:05:06 +03:00
CosminPerRam
544610f085
Replace punycode (#359)
* Replace by package

* Update CHANGELOG
2023-09-14 23:44:57 +03:00
CosminPerRam
ad9adff06c
Move to ES6 module (#357)
* Redo imports and exports for lib

* Redo imports and exports for bim

* Redo imports and exports for games

* Remove remaining module.exports

* Use export default in lib

* Use export default in protocols

* Fix import in genreadme.js

* Make package module and solve __dirname

* Fix minecraft protocol imports

* Fix imports on games and make binary runnable

* Renamed protocol class exports to lowercase

* Export promises class as default

* Update README.md to use imports instead of require

* Update CHANGELOG to mention the changes.

* Remove Valve unused imports

* Fix iconv import
2023-09-14 23:28:31 +03:00
CosminPerRam
5b01e1be17
Replace deprecated substr with substring (#355)
* Make the QueryRunner more readable

* Remove use of deprecated substr and replace with substring, and some formatting
2023-09-13 17:31:58 +03:00
cetteup
3c38fe48fe feat: Allow direct control of IP family to be returned by DNS lookup
implements #306
2022-12-13 10:46:43 +01:00
Michael Morrison
b11eac277d Improve dayz mod parsing with more random reverse engineering guesses 2022-02-05 19:28:48 -06:00
Michael Morrison
5c2d15df49 Remove complex players setter overload (3.0.8) 2021-12-09 18:08:36 -06:00
Smith
6354e34d18 handle ambiguity of the setters (players, bots)
* cases where the protocol overwrites the property with a prepared Players instance (eg.: minecraft & gamespy3)
2021-12-09 22:56:24 +01:00
Smith
e6db2a9b72 fix undef prop 2021-12-09 22:27:44 +01:00
Michael Morrison
ce4e728493 Add support for udp bind port override (3.0.5) Fixes #149 2021-05-18 23:13:18 -05:00
Michael Morrison
fe124a4487 Bring discord protocol up to date with gamedig 3.0 2021-05-18 22:33:36 -05:00
Michael Morrison
d65a24dc18 Release 3.0.0 2021-02-25 02:15:53 -06:00
Michael Morrison
f70112d092 * Properly handle non-indexed team names in gamespy1 Fixes #213
* Rename raw.steamappid and raw.gameid to raw.appId in steam protocol
* Don't query valve rules by default, unless requestRules option is set Fixes #176
2021-02-25 01:58:35 -06:00
cetteup
a362d1d113 Added givenPortOnly user option
Allows user to disable gamedig's default behavior of adding query attempts using the default query port(-offset)
2020-08-24 20:27:44 +02:00
mmorrison
1b47fd2096 Support dnsLookupAsync returning a string for some reason, Fixes #135 2019-10-15 14:32:28 -05:00
mmorrison
f0a24b8f65 Use @types/node@8.0.0 to validate (and fix) small node 8 api issues 2019-02-19 21:15:34 -06:00
mmorrison
dd5dce21db Improve multi-attempt logging 2019-02-13 22:46:13 -06:00
mmorrison
ab6e9064d2 More release dates and readme cleanup 2019-02-07 00:37:33 -06:00
mmorrison
0c19c734b1 Filling out more release dates in the readme 2019-02-06 23:19:32 -06:00
mmorrison
a37994e1bf Add Atlas (2018)
Begin filling out dates for games in the list
2019-02-06 06:23:34 -06:00
mmorrison
fc5975bf0c Clean up reader.string 2019-02-04 19:58:28 -06:00
mmorrison
2a87360a0e Minor debug logging improvements 2019-01-20 04:21:40 -06:00
mmorrison
05619469b7 Add punycode support (2.0.6) 2019-01-20 03:45:57 -06:00
mmorrison
9619449d77 Added support for Starsiege 2009 Closes #100 (v2.0.2) 2019-01-13 00:02:31 -06:00
mmorrison
dd478a7bce Re-gen readme for 2.0 release, and remove notes about Separate Query Port (as it's now less important) 2019-01-12 22:52:06 -06:00
mmorrison
dfa5c95efc Remove callback support and global Gamedig.debug option 2019-01-12 22:38:49 -06:00
mmorrison
e937c725bb More async 2019-01-12 05:45:09 -06:00
mmorrison
29ce0b82d0 Additional async rewrite 2019-01-12 04:43:36 -06:00
mmorrison
efe12a00aa More async conversion 2019-01-10 22:20:56 -06:00
mmorrison
77b2cc1c7f Initial es6 async conversion work 2019-01-07 00:52:29 -06:00
mmorrison
a054557f10 Clean up imports to make Intellij code analysis happy 2019-01-06 18:52:03 -06:00
mmorrison
68ee06ef11 Allow encoding override by parameter (1.0.49) 2019-01-06 17:55:12 -06:00
mmorrison
8b3126e430 Use win1252 character encoding for samp (1.0.48) Fixes #99 2019-01-06 14:10:46 -06:00
mmorrison
0f1deb03da Update readme to remove legacy minecraft notes 2018-11-11 06:21:12 -06:00
mmorrison
37319ea876 Bind to a random udp port (Fixes #71) 2018-01-31 00:43:11 -06:00
mmorrison
4c18b6a3fd Add support for FiveM closes #55 2017-08-10 06:49:42 -05:00
mmorrison
c0548fb886 Minor cleanup to satisfy code inspection 2017-08-09 05:41:30 -05:00
mmorrison
3674d384d0 Convert tabs to spaces 2017-08-09 05:32:09 -05:00
mmorrison
69288baebc Upgrade syntax of everything to more modern javascript 2017-08-09 04:05:55 -05:00
mmorrison
7b9fe2161c Add support for promises 2017-03-14 03:40:02 -05:00
Michael Morrison
0fe80d14e7 Add openttd support 2014-11-18 00:43:33 -06:00
Michael Morrison
f1467c5a04 crlf -> ln conversion 2014-10-29 02:02:03 -05:00
Michael Morrison
a3c3184eb8 crlf -> lf conversion 2014-10-29 01:42:33 -05:00
Michael Morrison
4b911c61cf Update readme 2014-09-13 09:34:18 -05:00
Michael Morrison
141529076d Update DayZ query port offset and add documentation 2014-09-13 08:57:12 -05:00
Michael Morrison
bd17fb0001 Add SA:MP support, fixes #3 2014-03-29 09:34:12 -05:00
Michael Morrison
1cafb4eb86 Add warning when connection port is unknown. 2014-02-03 16:38:10 -06:00
Michael Morrison
bc6b5c9225 Super epic commit 3
Move everything around
Add another 50 or so games
*** 'port' option should now be CONNECT port, not query port ***
add reference for many missing games
2014-02-03 14:00:51 -06:00