Fix Track.lookAt crash and fetchBuffer hang; bump to 2.0.1

- Track.lookAt: was calling client.user.lookAtEntity (undefined), now
  correctly routes to client.behavior.lookAtEntity — fixes unhandled
  promise rejections on every face-detection event
- connection: httpGet/httpGetStream had no socket timeout; added 15 s
  req.setTimeout so fetchBuffer/pipe reject instead of hanging forever
- connection: _txSend silently dropped commands when session not yet
  ready and returned a dead txId, causing callers to hang for the full
  timeout; now throws immediately with code NOT_READY

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Paskooter
2026-04-25 12:45:48 -04:00
parent 3985b19338
commit 8c92e1c963
4 changed files with 14 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "rom-control",
"version": "2.0.0",
"version": "2.0.1",
"description": "Discord.js-style OOP client for the Jibo ROM WebSocket API",
"main": "./index.js",
"exports": {