Fix linting error for winusb-driver-generator

Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
This commit is contained in:
Lorenzo Alberto Maria Ambrosi 2019-01-17 11:29:47 +01:00
parent e85251d2e3
commit 8c8a0bf8eb
3 changed files with 5 additions and 14 deletions

View File

@ -80,7 +80,9 @@ exports.listDevices = () => {
// due to C Runtime issues on Windows;
// see https://github.com/resin-io/etcher/issues/1956
try {
/* eslint-disable node/no-missing-require */
const winusbDriverGenerator = require('winusb-driver-generator')
/* eslint-enable node/no-missing-require */
for (const device of winusbDriverGenerator.listDriverlessDevices()) {
devices.push({
accessible: false,

12
npm-shrinkwrap.json generated
View File

@ -8801,18 +8801,6 @@
"resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz",
"dev": true
},
"winusb-driver-generator": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/winusb-driver-generator/-/winusb-driver-generator-1.2.3.tgz",
"optional": true,
"dependencies": {
"nan": {
"version": "2.11.1",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.11.1.tgz",
"optional": true
}
}
},
"wordwrap": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",

View File

@ -38,7 +38,8 @@
"7zip-bin-mac",
"7zip-bin-win",
"7zip-bin-linux",
"fsevents"
"fsevents",
"winusb-driver-generator"
],
"dependencies": {
"@fortawesome/fontawesome-free-webfonts": "^1.0.9",
@ -99,7 +100,7 @@
"usb": "github:resin-io/node-usb#1.3.5",
"uuid": "3.0.1",
"xml2js": "0.4.17",
"xxhash": "github:balena-io-modules/node-xxhash#70ac31da1a41c6f8c53d931b5802c6c93f7b6b83",
"xxhash": "git://github.com/balena-io-modules/node-xxhash.git#70ac31da1a41c6f8c53d931b5802c6c93f7b6b83",
"yargs": "11.0.0",
"yauzl": "2.6.0"
},