File tree Expand file tree Collapse file tree 4 files changed +4
-16
lines changed
Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 3434 " webusb"
3535 ],
3636 "scripts" : {
37- "build" : " rollup -c && typedoc --tsconfig ./typedoc.tsconfig.json src" ,
37+ "build" : " rollup -c && typedoc src" ,
3838 "watch" : " rollup -c -w"
3939 },
4040 "engines" : {
Original file line number Diff line number Diff line change @@ -58,11 +58,9 @@ export class HID implements Transport {
5858 }
5959
6060 try {
61- return import ( "node-hid" )
62- . then ( hid => {
63- this . device = new hid . HID ( this . path ) ;
64- resolve ( ) ;
65- } ) ;
61+ const hid = require ( "node-hid" ) ;
62+ this . device = new hid . HID ( this . path ) ;
63+ resolve ( ) ;
6664 } catch ( ex ) {
6765 reject ( ex ) ;
6866 }
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
33 "target" : " es5" ,
4- "module" : " esNext" ,
54 "lib" : [
65 " es5" ,
76 " dom" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments