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.3 to 1.1.4

14

usb/index.d.ts
// Type definitions for node-usb 1.1
// Project: https://github.com/nonolith/node-usb
// Project: https://github.com/tessel/node-usb
// Definitions by: Eric Brody <https://github.com/underscorebrody>

@@ -8,2 +8,4 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped

import { EventEmitter } from "events";
export class Device {

@@ -85,3 +87,3 @@ timeout: number;

export interface Endpoint {
export interface Endpoint extends EventEmitter {
direction: string;

@@ -93,3 +95,3 @@ transferType: number;

export class InEndpoint implements Endpoint {
export class InEndpoint extends EventEmitter implements Endpoint {
direction: string;

@@ -101,7 +103,7 @@ transferType: number;

transfer(length: number, callback: (error: string, data: Buffer) => void): InEndpoint;
startPoll(nTransfers: number, transferSize: number): void;
stopPoll(cb: () => void): void;
startPoll(nTransfers?: number, transferSize?: number): void;
stopPoll(cb?: () => void): void;
}
export class OutEndpoint implements Endpoint {
export class OutEndpoint extends EventEmitter implements Endpoint {
direction: string;

@@ -108,0 +110,0 @@ transferType: number;

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

@@ -9,3 +9,4 @@ "license": "MIT",

"name": "Eric Brody",
"url": "https://github.com/underscorebrody"
"url": "https://github.com/underscorebrody",
"githubUsername": "underscorebrody"
}

@@ -20,7 +21,7 @@ ],

"dependencies": {
"@types/events": "*",
"@types/node": "*"
},
"peerDependencies": {},
"typesPublisherContentHash": "a47a1f9f0fdd827ff94e563156641a6aa18d0354c2eb1770dd6cc488a8541978",
"typesPublisherContentHash": "787bd60b615553482a87e0666da1c826562a116212306059c647a59d58c75fe1",
"typeScriptVersion": "2.0"
}

@@ -5,3 +5,3 @@ # Installation

# Summary
This package contains type definitions for node-usb (https://github.com/nonolith/node-usb).
This package contains type definitions for node-usb (https://github.com/tessel/node-usb).

@@ -12,4 +12,4 @@ # Details

Additional Details
* Last updated: Mon, 17 Apr 2017 17:55:17 GMT
* Dependencies: node
* Last updated: Wed, 13 Dec 2017 19:13:38 GMT
* Dependencies: events, node
* Global values: none

@@ -16,0 +16,0 @@

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