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 1.2.0-beta.5f7fbb68 to 1.2.0-beta.7172f590

2

lib/HttpTransport.js

@@ -84,5 +84,5 @@ "use strict";

HttpTransport.discover = _observer => ({
HttpTransport.listen = _observer => ({
unsubscribe: () => {}
});
//# sourceMappingURL=HttpTransport.js.map

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

exports.default = url => {
if (!url) return _HttpTransport2.default; // by default, HttpTransport don't yield anything in list/discover
if (!url) return _HttpTransport2.default; // by default, HttpTransport don't yield anything in list/listen
class StaticHttpTransport extends _HttpTransport2.default {}

@@ -20,3 +20,3 @@

StaticHttpTransport.discover = observer => {
StaticHttpTransport.listen = observer => {
let unsubscribed = false;

@@ -28,3 +28,3 @@

if (unsubscribed) return;
observer.next(url);
observer.next({ descriptor: url, type: "add" });
observer.complete();

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

{
"name": "@ledgerhq/hw-transport-http",
"version": "1.2.0-beta.5f7fbb68",
"version": "1.2.0-beta.7172f590",
"description": "Ledger Hardware Wallet communication layer over http",

@@ -28,3 +28,3 @@ "keywords": [

"dependencies": {
"@ledgerhq/hw-transport": "^1.2.0-beta.5f7fbb68"
"@ledgerhq/hw-transport": "^1.2.0-beta.7172f590"
},

@@ -31,0 +31,0 @@ "devDependencies": {

@@ -13,3 +13,3 @@ //@flow

static list = (): * => Promise.resolve([]);
static discover = (_observer: *) => ({
static listen = (_observer: *) => ({
unsubscribe: () => {}

@@ -16,0 +16,0 @@ });

import HttpTransport from "./HttpTransport";
export default (url: ?string) => {
if (!url) return HttpTransport; // by default, HttpTransport don't yield anything in list/discover
if (!url) return HttpTransport; // by default, HttpTransport don't yield anything in list/listen
class StaticHttpTransport extends HttpTransport {
static list = (): * => HttpTransport.open(url).then(() => [url], () => []);
static discover = (observer: *) => {
static listen = (observer: *) => {
let unsubscribed = false;

@@ -14,3 +14,3 @@

if (unsubscribed) return;
observer.next(url);
observer.next({ descriptor: url, type: "add" });
observer.complete();

@@ -17,0 +17,0 @@ },

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