Socket
Socket
Sign inDemoInstall

usb

Package Overview
Dependencies
Maintainers
2
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

usb - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

.npmignore

2

package.json
{
"name": "usb",
"description": "Library to access USB devices",
"version": "1.3.2",
"version": "1.3.3",
"engines": {

@@ -6,0 +6,0 @@ "node": ">=0.12.x"

@@ -9,5 +9,10 @@ var binary = require('node-pre-gyp');

// Check that libusb was initialized.
if (usb.INIT_ERROR) {
throw new Error('Could not initialize libusb. Check that your system has a usb controller.');
console.warn("Failed to initialize libusb.")
usb.Device = function () { throw new Error("Device cannot be instantiated directly.") };
usb.Transfer = function () { throw new Error("Transfer cannot be instantiated directly.") };
usb.setDebugLevel = function () { };
usb.getDeviceList = function () { return []; };
usb._enableHotplugEvents = function () { };
usb._disableHotplugEvents = function () { };
}

@@ -401,3 +406,5 @@

if (name !== 'attach' && name !== 'detach') return;
if (++hotplugListeners === 1) usb._enableHotplugEvents();
if (++hotplugListeners === 1) {
usb._enableHotplugEvents();
}
});

@@ -407,3 +414,5 @@

if (name !== 'attach' && name !== 'detach') return;
if (--hotplugListeners === 0) usb._disableHotplugEvents();
if (--hotplugListeners === 0) {
usb._disableHotplugEvents();
}
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc