Socket
Socket
Sign inDemoInstall

@deadlock-delegate/crawler

Package Overview
Dependencies
17
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.3.1

3

CHANGELOG.md
# Changelog
## [1.3.1] - 2020-09-23
- Fetch node version from headers
## [1.2.10] - 2019-08-06
- Lower socketcluster client timeout from 10s to 2s

2

package.json
{
"name": "@deadlock-delegate/crawler",
"version": "1.3.0",
"version": "1.3.1",
"description": "Crawler scans the ARK network to get information about the peers in the network.",

@@ -5,0 +5,0 @@ "main": "src/crawler.js",

@@ -74,6 +74,7 @@ const { map } = require('lodash')

if (err) {
console.error(`Error when calling p2p.peer.getPeers on ${peer.ip}`)
console.error(`Error when calling p2p.peer.getPeers on ${peer.ip}: ${err}`)
return resolve()
}
if (peer.ip in this.samplePeers) {

@@ -126,3 +127,3 @@ this.samplePeers[peer.ip] = VISITED

if (err) {
console.error(`Error when calling p2p.peer.getStatus on ${peer.ip}`)
console.error(`Error when calling p2p.peer.getStatus on ${peer.ip}: ${err}`)
return resolve()

@@ -136,2 +137,3 @@ }

this.nodes[peer.ip].id = response.data.state.header.id
this.nodes[peer.ip].version = response.headers.version
return resolve()

@@ -138,0 +140,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc