Socket
Socket
Sign inDemoInstall

@ledgerhq/hw-transport-http

Package Overview
Dependencies
Maintainers
6
Versions
382
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-transport-http - npm Package Compare versions

Comparing version 2.0.2 to 2.0.4

7

lib/withStaticURL.js

@@ -13,3 +13,4 @@ "use strict";

exports.default = url => {
exports.default = urlArg => {
const url = urlArg;
if (!url) return _HttpTransport2.default; // by default, HttpTransport don't yield anything in list/listen

@@ -22,3 +23,2 @@ class StaticHttpTransport extends _HttpTransport2.default {}

let unsubscribed = false;
function attemptToConnect() {

@@ -28,3 +28,4 @@ if (unsubscribed) return;

if (unsubscribed) return;
observer.next({ descriptor: url, type: "add" });
// $FlowFixMe wtf flow
observer.next({ type: "add", descriptor: url });
observer.complete();

@@ -31,0 +32,0 @@ }, () => {

{
"name": "@ledgerhq/hw-transport-http",
"version": "2.0.2",
"version": "2.0.4",
"description": "Ledger Hardware Wallet communication layer over http",

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

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

// @flow
import HttpTransport from "./HttpTransport";
export default (url: ?string) => {
export default (urlArg: ?string): Class<HttpTransport> => {
const url = urlArg;
if (!url) return HttpTransport; // by default, HttpTransport don't yield anything in list/listen

@@ -8,3 +10,2 @@ class StaticHttpTransport extends HttpTransport {

let unsubscribed = false;
function attemptToConnect() {

@@ -15,3 +16,4 @@ if (unsubscribed) return;

if (unsubscribed) return;
observer.next({ descriptor: url, type: "add" });
// $FlowFixMe wtf flow
observer.next({ type: "add", descriptor: url });
observer.complete();

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