satanch / node-livesplit-client

Zero-dependency Node.js client library for the LiveSplit Server.
https://satanch.github.io/node-livesplit-client/
MIT License
12 stars 3 forks source link

Small typo in property from `getAll` #3

Closed jhobz closed 2 years ago

jhobz commented 2 years ago

There's a small typo for one of the getters, which leads to that typo being propagated to the object returned by the .getAll() function. getPreviousSplitname should be getPreviousSplitName to keep consistent camelCase with getCurrentSplitName. Minor thing, but figured I'd mention it as it caused me to trip up a bit at one point.

Relevant lines: function definition: https://github.com/satanch/node-livesplit-client/blob/49636e23795592754a7b5b5d679cb3af7c241433/src/LiveSplitClient.js#L331 usage in .getAll(): https://github.com/satanch/node-livesplit-client/blob/49636e23795592754a7b5b5d679cb3af7c241433/src/LiveSplitClient.js#L350

satanch commented 2 years ago

Fixed in https://github.com/satanch/node-livesplit-client/commit/df280d726f5fc9cf5690c91f44a24a466e5f1a25 You can test it by yourself, before package will be published to NPM.

jhobz commented 2 years ago

Confirmed working and now named as expected for me locally. 👍