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

hypercore

Package Overview
Dependencies
Maintainers
1
Versions
498
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypercore - npm Package Compare versions

Comparing version 1.5.8 to 1.6.0

1

index.js

@@ -30,2 +30,3 @@ var subleveldown = require('subleveldown')

this.swarm = swarm(this, opts)
this.peers = []
}

@@ -32,0 +33,0 @@

@@ -204,2 +204,6 @@ var protocol = require('./protocol')

peer.on('close', remove)
peer.on('handshake', function () {
self.core.peers.push(peer)
self.core.emit('peer', peer)
})

@@ -279,3 +283,5 @@ this.peers.push(peer)

if (i > -1) self.peers.splice(i, 1)
i = self.core.peers.indexOf(peer)
if (i > -1) self.core.peers.splice(i, 1)
}
}

2

package.json
{
"name": "hypercore",
"version": "1.5.8",
"version": "1.6.0",
"description": "Hypercore is a protocol and network for distributing and replicating static feeds of binary data.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -22,2 +22,14 @@ var tape = require('tape')

tape('emits peer', function (t) {
var core = create()
var remote = create()
core.once('peer', function (peer) {
t.ok(peer.remoteId)
t.end()
})
replicate(core, remote)
})
tape('replicate and get block', function (t) {

@@ -24,0 +36,0 @@ var core = create()

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