mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
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:
parent
e85251d2e3
commit
8c8a0bf8eb
@ -80,7 +80,9 @@ exports.listDevices = () => {
|
|||||||
// due to C Runtime issues on Windows;
|
// due to C Runtime issues on Windows;
|
||||||
// see https://github.com/resin-io/etcher/issues/1956
|
// see https://github.com/resin-io/etcher/issues/1956
|
||||||
try {
|
try {
|
||||||
|
/* eslint-disable node/no-missing-require */
|
||||||
const winusbDriverGenerator = require('winusb-driver-generator')
|
const winusbDriverGenerator = require('winusb-driver-generator')
|
||||||
|
/* eslint-enable node/no-missing-require */
|
||||||
for (const device of winusbDriverGenerator.listDriverlessDevices()) {
|
for (const device of winusbDriverGenerator.listDriverlessDevices()) {
|
||||||
devices.push({
|
devices.push({
|
||||||
accessible: false,
|
accessible: false,
|
||||||
|
12
npm-shrinkwrap.json
generated
12
npm-shrinkwrap.json
generated
@ -8801,18 +8801,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz",
|
||||||
"dev": true
|
"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": {
|
"wordwrap": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
|
||||||
|
@ -38,7 +38,8 @@
|
|||||||
"7zip-bin-mac",
|
"7zip-bin-mac",
|
||||||
"7zip-bin-win",
|
"7zip-bin-win",
|
||||||
"7zip-bin-linux",
|
"7zip-bin-linux",
|
||||||
"fsevents"
|
"fsevents",
|
||||||
|
"winusb-driver-generator"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free-webfonts": "^1.0.9",
|
"@fortawesome/fontawesome-free-webfonts": "^1.0.9",
|
||||||
@ -99,7 +100,7 @@
|
|||||||
"usb": "github:resin-io/node-usb#1.3.5",
|
"usb": "github:resin-io/node-usb#1.3.5",
|
||||||
"uuid": "3.0.1",
|
"uuid": "3.0.1",
|
||||||
"xml2js": "0.4.17",
|
"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",
|
"yargs": "11.0.0",
|
||||||
"yauzl": "2.6.0"
|
"yauzl": "2.6.0"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user