Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/usb

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/usb - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

12

usb/index.d.ts

@@ -11,2 +11,6 @@ // Type definitions for node-usb 1.1

export class LibUSBException extends Error {
errno: number;
}
export class Device {

@@ -29,3 +33,3 @@ timeout: number;

interface(addr: number): Interface;
controlTransfer(bmRequestType: number, bRequest: number, wValue: number, wIndex: number, data_or_length: any, callback: (error?: string, buf?: Buffer) => void): Device;
controlTransfer(bmRequestType: number, bRequest: number, wValue: number, wIndex: number, data_or_length: any, callback: (error?: LibUSBException, buf?: Buffer) => void): Device;
getStringDescriptor(desc_index: number, callback: (error?: string, buf?: Buffer) => void): void;

@@ -109,3 +113,3 @@ setConfiguration(desired: number, cb: (err?: string) => void): void;

constructor(device: Device, descriptor: EndpointDescriptor);
transfer(length: number, callback: (error: string, data: Buffer) => void): InEndpoint;
transfer(length: number, callback: (error: LibUSBException, data: Buffer) => void): InEndpoint;
startPoll(nTransfers?: number, transferSize?: number): void;

@@ -121,4 +125,4 @@ stopPoll(cb?: () => void): void;

constructor(device: Device, descriptor: EndpointDescriptor);
transfer(buffer: Buffer, cb: (err?: string) => void): OutEndpoint;
transferWithZLP(buf: Buffer, cb: (err?: string) => void): void;
transfer(buffer: Buffer, cb: (err?: LibUSBException) => void): OutEndpoint;
transferWithZLP(buf: Buffer, cb: (err?: LibUSBException) => void): void;
}

@@ -125,0 +129,0 @@

{
"name": "@types/usb",
"version": "1.1.6",
"version": "1.1.7",
"description": "TypeScript definitions for node-usb",

@@ -19,2 +19,3 @@ "license": "MIT",

"main": "",
"types": "index",
"repository": {

@@ -26,7 +27,6 @@ "type": "git",

"dependencies": {
"@types/events": "*",
"@types/node": "*"
},
"typesPublisherContentHash": "dabf4ac574472b442f867bb016e6ee095cbf4f6ec09e46433aaf43009dbeb2bf",
"typesPublisherContentHash": "842ab08d6a2fc28d9263e558b98edb43a674d30bd086cb9672f8d791dc0b023a",
"typeScriptVersion": "2.0"
}

@@ -11,4 +11,4 @@ # Installation

Additional Details
* Last updated: Fri, 29 Jun 2018 03:18:45 GMT
* Dependencies: events, node
* Last updated: Tue, 18 Dec 2018 23:36:05 GMT
* Dependencies: @types/node
* Global values: none

@@ -15,0 +15,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