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.13.0 to 2.14.0

5

CHANGELOG.md
# Changelog
## [2.14.0] - 2024-09-15
### Fixed
- Fixed fatal exceptions by using `ThrowAsJavaScriptException` instead of `Napi::Error::Fatal` - [`817`](https://github.com/node-usb/node-usb/pull/817) ([cleoo](https://github.com/cleoo))
## [2.13.0] - 2024-05-26

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

1

dist/usb/bindings.d.ts

@@ -1,2 +0,1 @@

/// <reference types="node" />
import type { DeviceDescriptor, ConfigDescriptor, BosDescriptor } from './descriptors';

@@ -3,0 +2,0 @@ /**

@@ -1,2 +0,1 @@

/// <reference types="node" />
import type { Device } from './bindings';

@@ -3,0 +2,0 @@ import { CapabilityDescriptor } from './descriptors';

@@ -1,2 +0,1 @@

/// <reference types="node" />
/** A structure representing the standard USB device descriptor */

@@ -3,0 +2,0 @@ export interface DeviceDescriptor {

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as usb from './bindings';

@@ -3,0 +2,0 @@ import { Interface } from './interface';

@@ -1,3 +0,1 @@

/// <reference types="node" />
/// <reference types="node" />
import { EventEmitter } from 'events';

@@ -4,0 +2,0 @@ import { LibUSBException, Transfer, Device } from './bindings';

@@ -1,3 +0,1 @@

/// <reference types="node" />
/// <reference types="w3c-web-usb" />
import * as usb from '../usb';

@@ -4,0 +2,0 @@ import { EventEmitter } from 'events';

@@ -1,2 +0,1 @@

/// <reference types="w3c-web-usb" />
import * as usb from '../usb';

@@ -3,0 +2,0 @@ /**

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

"license": "MIT",
"version": "2.13.0",
"version": "2.14.0",
"main": "dist/index.js",

@@ -70,4 +70,4 @@ "engines": {

"prebuildify-ci": "^1.0.5",
"prebuildify-cross": "^5.0.0",
"typedoc": "^0.25.13",
"prebuildify-cross": "thegecko/prebuildify-cross#fix-docker",
"typedoc": "^0.26.7",
"typescript": "^5.4.5"

@@ -74,0 +74,0 @@ },

@@ -33,2 +33,6 @@ # USB Library for Node.JS

You may need to modify your udev and permission rules in order to access your desired device. Along the lines of:
SUBSYSTEM=="usb", ATTR{idVendor}=="USB-VENDOR-ID", ATTR{idProduct}=="USB-PRODUCT-ID", MODE="0660", GROUP="GROUP-YOUR-USER-IS-IN"
# Troubleshooting

@@ -207,2 +211,8 @@

If using a packaging system for electron, ensure the `node-usb` library does not get recompiled as the correct binaries are already shipped with the package. For example, for [electron-builder](https://www.electron.build/), use these settings:
- buildDependenciesFromSource: true
- nodeGypRebuild: false
- npmRebuild: false
# APIs

@@ -209,0 +219,0 @@ Since `v2.0.0`, the `node-usb` library supports two APIs:

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

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

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

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