Socket
Socket
Sign inDemoInstall

@types/w3c-web-usb

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/w3c-web-usb - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

34

w3c-web-usb/index.d.ts

@@ -30,8 +30,8 @@ // Type definitions for non-npm package W3C Web USB API 1.0

interface USBDeviceFilter {
vendorId?: number;
productId?: number;
classCode?: number;
subclassCode?: number;
protocolCode?: number;
serialNumber?: string;
vendorId?: number | undefined;
productId?: number | undefined;
classCode?: number | undefined;
subclassCode?: number | undefined;
protocolCode?: number | undefined;
serialNumber?: string | undefined;
}

@@ -49,3 +49,3 @@

readonly configurationValue: number;
readonly configurationName?: string;
readonly configurationName?: string | undefined;
readonly interfaces: USBInterface[];

@@ -68,3 +68,3 @@ }

readonly interfaceProtocol: number;
readonly interfaceName?: string;
readonly interfaceName?: string | undefined;
readonly endpoints: USBEndpoint[];

@@ -75,4 +75,4 @@ }

constructor(status: USBTransferStatus, data?: DataView);
readonly data?: DataView;
readonly status?: USBTransferStatus;
readonly data?: DataView | undefined;
readonly status?: USBTransferStatus | undefined;
}

@@ -88,4 +88,4 @@

constructor(status: USBTransferStatus, data?: DataView);
readonly data?: DataView;
readonly status?: USBTransferStatus;
readonly data?: DataView | undefined;
readonly status?: USBTransferStatus | undefined;
}

@@ -95,3 +95,3 @@

constructor(packets: USBIsochronousInTransferPacket[], data?: DataView);
readonly data?: DataView;
readonly data?: DataView | undefined;
readonly packets: USBIsochronousInTransferPacket[];

@@ -139,6 +139,6 @@ }

readonly deviceVersionSubminor: number;
readonly manufacturerName?: string;
readonly productName?: string;
readonly serialNumber?: string;
readonly configuration?: USBConfiguration;
readonly manufacturerName?: string | undefined;
readonly productName?: string | undefined;
readonly serialNumber?: string | undefined;
readonly configuration?: USBConfiguration | undefined;
readonly configurations: USBConfiguration[];

@@ -145,0 +145,0 @@ readonly opened: boolean;

{
"name": "@types/w3c-web-usb",
"version": "1.0.4",
"version": "1.0.5",
"description": "TypeScript definitions for W3C Web USB API",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/w3c-web-usb",
"license": "MIT",

@@ -27,4 +28,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "c84d4401780426b2693cddce262063ea050e3b326260d764273271326bff3efd",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "f715e2d6ebffb97fe4ba7120e40da3c0d05df9126785f92725ce7f0c186702a9",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 31 Dec 2019 21:32:18 GMT
* Last updated: Fri, 02 Jul 2021 18:05:13 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: `USB`, `USBAlternateInterface`, `USBConfiguration`, `USBConnectionEvent`, `USBDevice`, `USBInTransferResult`, `USBInterface`, `USBIsochronousInTransferPacket`, `USBIsochronousInTransferResult`, `USBIsochronousOutTransferPacket`, `USBIsochronousOutTransferResult`, `USBOutTransferResult`

# Credits
These definitions were written by Lars Knudsen (https://github.com/larsgk), and Rob Moran (https://github.com/thegecko).
These definitions were written by [Lars Knudsen](https://github.com/larsgk), and [Rob Moran](https://github.com/thegecko).

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