update dist

This commit is contained in:
woodser 2024-10-13 12:09:14 -04:00
parent e3ea1ca4bf
commit 3143e77ced
12 changed files with 448 additions and 6 deletions

13
dist/HavenoClient.js vendored
View file

@ -562,6 +562,19 @@ class HavenoClient {
throw new HavenoError_1.default(e.message, e.code);
}
}
/**
* Get the current auto switch setting.
*
* @return {boolean} whether auto switch is enabled or disabled
*/
async getAutoSwitch() {
try {
return (await this._xmrConnectionsClient.getAutoSwitch(new grpc_pb_1.GetAutoSwitchRequest(), { password: this._password })).getAutoSwitch();
}
catch (e) {
throw new HavenoError_1.default(e.message, e.code);
}
}
/**
* Returns whether daemon is running a local monero node.
*/