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 0.3.5 to 0.3.7

.travis.yml

2

package.json

@@ -22,3 +22,3 @@ {

],
"version": "0.3.5",
"version": "0.3.7",
"optionalDependencies": {

@@ -25,0 +25,0 @@ "usb-shyp-win32-x64": "0.3.x",

USB Library for Node.JS
===============================
**POSIX:** [![Build Status](https://travis-ci.org/nonolith/node-usb.svg?branch=tcr-usb)](https://travis-ci.org/nonolith/node-usb)     **Windows:** [![Build status](https://ci.appveyor.com/api/projects/status/1q64jnnfseidkjwl)](https://ci.appveyor.com/project/tcr/node-usb)
Node.JS library for communicating with USB devices in JavaScript / CoffeeScript.

@@ -5,0 +7,0 @@

@@ -291,2 +291,10 @@ var usb = exports = module.exports = require("bindings-shyp")("usb_bindings")

OutEndpoint.prototype.transferWithZLP = function (buf, cb) {
if (buf.length % this.descriptor.wMaxPacketSize == 0) {
this.transfer(buf);
this.transfer(new Buffer(0), cb);
} else {
this.transfer(buf, cb);
}
}

@@ -293,0 +301,0 @@

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