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

@ledgerhq/hw-transport

Package Overview
Dependencies
Maintainers
5
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-transport - npm Package Compare versions

Comparing version 1.1.0-beta.e6f42082 to 1.1.0

2

lib/Transport.js

@@ -81,3 +81,3 @@ "use strict";

* events can come over times, for instance if you plug a USB device after listen() or a bluetooth device become discoverable
* @param cb is a function called each time a descriptor is found
* @param observer is an object with a next, error and complete function (compatible with observer pattern)
* @return a Subscription object on which you can `.unsubscribe()` to stop discovering descriptors.

@@ -84,0 +84,0 @@ * @example

{
"name": "@ledgerhq/hw-transport",
"version": "1.1.0-beta.e6f42082",
"version": "1.1.0",
"description": "Ledger Hardware Wallet common interface of the communication layer",

@@ -5,0 +5,0 @@ "keywords": [

@@ -6,3 +6,8 @@ //@flow

type Subscription = { unsubscribe: () => void };
export type Subscription = { unsubscribe: () => void };
export type Observer<T> = {
next: (descriptor: T) => void,
error: (e: ?Error) => void,
complete: () => void
};

@@ -29,3 +34,3 @@ /**

* events can come over times, for instance if you plug a USB device after listen() or a bluetooth device become discoverable
* @param cb is a function called each time a descriptor is found
* @param observer is an object with a next, error and complete function (compatible with observer pattern)
* @return a Subscription object on which you can `.unsubscribe()` to stop discovering descriptors.

@@ -39,3 +44,3 @@ * @example

*/
static +discover: (cb: (descriptor: Descriptor) => void) => Subscription;
static +discover: (observer: Observer<Descriptor>) => Subscription;

@@ -42,0 +47,0 @@ /**

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