I think adding the bridgeid to bridge-validation.ts (line 51) would be very helpful.
result.bridgeid = res.data.bridgeid;
This is especially true, if the bridge was renamed and/or moved to another IP-address.
https://github.com/peter-murray/node-hue-api/blob/typescript/src/api/discovery/bridge-validation.ts