Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a90c133a authored by Simon Chan's avatar Simon Chan
Browse files

chore(webusb): update usb package info

parent 5e4d8392
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ Backend for `@yume-chan/adb` using WebUSB ([MDN](https://developer.mozilla.org/e

| Node.js | `usb` NPM Package |
| ------- | ----------------- |
| 10.5    | 2.9.0             |
| 10.5    | 2.8.1             |

Node.js doesn't have native support for WebUSB API, but the [`usb`](https://www.npmjs.com/package/usb) NPM package provides a WebUSB compatible API.

+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ export class AdbWebUsbBackendManager {
        } catch (e) {
            // No device selected
            // This check is compatible with both Browser implementation
            // and `usb` NPM package from version 2.9.0
            // and `usb` NPM package from version 2.8.1
            // https://github.com/node-usb/node-usb/issues/573
            if (
                typeof e === "object" &&