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

@mempool/electrum-client

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mempool/electrum-client - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

14

lib/client.js
'use strict';
/**
* expecting NET & TLS to be injected from outside:
* for RN it should be in shim.js:
* global.net = require('react-native-tcp');
* global.tls = require('react-native-tcp/tls');
*
* for nodejs tests it should be provided before tests:
* global.net = require('net');
* global.tls = require('tls');
* */
let net = global.net;
let tls = global.tls;
let net = require('net');
let tls = require('tls');
const TIMEOUT = 5000;

@@ -15,0 +5,0 @@

5

package.json
{
"name": "@mempool/electrum-client",
"version": "1.1.7",
"version": "1.1.8",
"description": "Electrum protocol client for React Native & Node.js",

@@ -30,5 +30,6 @@ "main": "index.js",

{ "name": "overtorment" },
{ "name": "janoside" }
{ "name": "janoside" },
{ "name": "softsimon" }
],
"license": "MIT"
}

@@ -23,13 +23,2 @@ # electrum-client

Relies on `react-native-tcp` so it should be already installed and linked in RN project. `net` should be provided from outside, this library wont do `require('net')`.
For RN it should be in `shim.js`:
```javascript
global.net = require('react-native-tcp');
```
For nodejs it should be provided before usage:
```javascript
global.net = require('net');
```
Relies on `net` so will only run in NodeJS environment.
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