@mempool/electrum-client
Advanced tools
Comparing version 1.1.7 to 1.1.8
'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 @@ |
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19435
569
24
2