DoctorMcKay / node-tf2

Simple module to interact with the TF2 game coordinator
https://www.npmjs.com/package/tf2
MIT License
54 stars 26 forks source link

Fix steam-user version check #29

Closed Nicklason closed 1 year ago

Nicklason commented 1 year ago

I can't use steam-user v5 because of this check:

https://github.com/DoctorMcKay/node-tf2/blob/5615801b08652a3544202275ad5d7f3cbef69e1b/index.js#L16-L24

The problem is that it checks if major version is less than 4 or minor version is less than 2. This means that steam-user v5.0.0 does not work because the minor version is less than 2.

DoctorMcKay commented 1 year ago

Your proposed fix would not cover versions 3.>2.x. I've fixed the check and published 3.0.3.