Skip to content

Commit

Permalink
Upgrade forked uvc-control v2
Browse files Browse the repository at this point in the history
- Targets `node-usb` `^2.4.1`.
- Includes a fix for infinite delay when listing devices.

See

- https://github.com/joelpurra/node-uvc-control/commits/v2
- joelpurra/node-uvc-control@267b0db
- https://github.com/node-usb/node-usb/releases/tag/v2.4.1
  • Loading branch information
joelpurra committed May 12, 2022
1 parent 2e70598 commit 999c7d5
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 75 deletions.
139 changes: 67 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"@types/bluebird": "^3.5.36",
"@types/engine-check": "^1.1.1",
"@types/stream-to-promise": "^2.2.1",
"@types/usb": "^1.5.4",
"@types/yargs": "^17.0.10",
"eslint-config-joelpurra": "github:joelpurra/eslint-config-joelpurra#semver:^v11.0.1",
"husky": "^4.3.8",
Expand Down
5 changes: 3 additions & 2 deletions src/types/uvc-control.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ declare module "uvc-control" {
ReadonlyDeep,
} from "type-fest";

// eslint-disable-next-line import/no-extraneous-dependencies
import usb from "usb";
import {
usb,
} from "usb";

/* eslint-disable @typescript-eslint/member-ordering */
export default class Camera {
Expand Down

0 comments on commit 999c7d5

Please sign in to comment.