Socket
Socket
Sign inDemoInstall

usb

Package Overview
Dependencies
Maintainers
3
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 2.1.2 to 2.1.3

5

CHANGELOG.md
# Changelog
## [2.1.3] - 2022-03-18
### Fixed
- Fixed update to @types/w3c-web-usb - [`485`](https://github.com/node-usb/node-usb/pull/485) ([Rob Moran](https://github.com/thegecko))
## [2.1.2] - 2022-02-09

@@ -4,0 +9,0 @@

3

dist/webusb/webusb-device.d.ts

@@ -39,5 +39,6 @@ /// <reference types="w3c-web-usb" />

transferOut(endpointNumber: number, data: ArrayBuffer): Promise<USBOutTransferResult>;
reset(): Promise<void>;
isochronousTransferIn(_endpointNumber: number, _packetLengths: number[]): Promise<USBIsochronousInTransferResult>;
isochronousTransferOut(_endpointNumber: number, _data: BufferSource, _packetLengths: number[]): Promise<USBIsochronousOutTransferResult>;
reset(): Promise<void>;
forget(): Promise<void>;
private initialize;

@@ -44,0 +45,0 @@ private decodeVersion;

@@ -558,16 +558,2 @@ "use strict";

};
WebUSBDevice.prototype.isochronousTransferIn = function (_endpointNumber, _packetLengths) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
throw new Error('isochronousTransferIn error: method not implemented');
});
});
};
WebUSBDevice.prototype.isochronousTransferOut = function (_endpointNumber, _data, _packetLengths) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
throw new Error('isochronousTransferOut error: method not implemented');
});
});
};
WebUSBDevice.prototype.reset = function () {

@@ -599,2 +585,23 @@ return __awaiter(this, void 0, void 0, function () {

};
WebUSBDevice.prototype.isochronousTransferIn = function (_endpointNumber, _packetLengths) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
throw new Error('isochronousTransferIn error: method not implemented');
});
});
};
WebUSBDevice.prototype.isochronousTransferOut = function (_endpointNumber, _data, _packetLengths) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
throw new Error('isochronousTransferOut error: method not implemented');
});
});
};
WebUSBDevice.prototype.forget = function () {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
throw new Error('forget error: method not implemented');
});
});
};
WebUSBDevice.prototype.initialize = function () {

@@ -601,0 +608,0 @@ return __awaiter(this, void 0, void 0, function () {

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "2.1.2",
"version": "2.1.3",
"main": "dist/index.js",

@@ -56,3 +56,3 @@ "engines": {

"dependencies": {
"@types/w3c-web-usb": "^1.0.4",
"@types/w3c-web-usb": "1.0.6",
"node-addon-api": "^4.2.0",

@@ -59,0 +59,0 @@ "node-gyp-build": "^4.3.0"

@@ -268,2 +268,3 @@ # USB Library for Node.JS

- [ ] isochronousTransferOut()
- [ ] forget()

@@ -270,0 +271,0 @@ #### Events

@@ -371,10 +371,2 @@ import * as usb from '../usb';

public async isochronousTransferIn(_endpointNumber: number, _packetLengths: number[]): Promise<USBIsochronousInTransferResult> {
throw new Error('isochronousTransferIn error: method not implemented');
}
public async isochronousTransferOut(_endpointNumber: number, _data: BufferSource, _packetLengths: number[]): Promise<USBIsochronousOutTransferResult> {
throw new Error('isochronousTransferOut error: method not implemented');
}
public async reset(): Promise<void> {

@@ -392,2 +384,14 @@ try {

public async isochronousTransferIn(_endpointNumber: number, _packetLengths: number[]): Promise<USBIsochronousInTransferResult> {
throw new Error('isochronousTransferIn error: method not implemented');
}
public async isochronousTransferOut(_endpointNumber: number, _data: BufferSource, _packetLengths: number[]): Promise<USBIsochronousOutTransferResult> {
throw new Error('isochronousTransferOut error: method not implemented');
}
public async forget(): Promise<void> {
throw new Error('forget error: method not implemented');
}
private async initialize(): Promise<void> {

@@ -394,0 +398,0 @@ try {

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

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