Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const clearDevices = async () => {
const connectedPaths = await TransportNodeHid.list();
devices
.filter(device => !connectedPaths.includes(device.path))
.forEach(device => removeConnectedDeviceByPath(device.path));
devices = devices.filter(device => connectedPaths.includes(device.path));
};
static async list (): Promise {
return LedgerNode.list()
}