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

libp2p-pubsub

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libp2p-pubsub - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="0.0.2"></a>
## [0.0.2](https://github.com/libp2p/js-libp2p-pubsub/compare/v0.0.1...v0.0.2) (2019-02-08)
### Features
* added a time cache and a mapping of topics to peers ([13a56a4](https://github.com/libp2p/js-libp2p-pubsub/commit/13a56a4))
<a name="0.0.1"></a>

@@ -2,0 +12,0 @@ ## 0.0.1 (2019-01-25)

6

package.json
{
"name": "libp2p-pubsub",
"version": "0.0.1",
"version": "0.0.2",
"description": "Pubsub base protocol for libp2p pubsub routers",

@@ -63,7 +63,9 @@ "leadMaintainer": "Vasco Santos <santos.vasco10@gmail.com>",

"protons": "^1.0.1",
"pull-pushable": "^2.2.0"
"pull-pushable": "^2.2.0",
"time-cache": "~0.3.0"
},
"contributors": [
"Mikerah <mikerahqc@protonmail.com>",
"Vasco Santos <vasco.santos@moxy.studio>"
]
}

@@ -7,3 +7,3 @@ 'use strict'

const asyncEach = require('async/each')
const TimeCache = require('time-cache')
const debug = require('debug')

@@ -37,2 +37,16 @@ const errcode = require('err-code')

/**
* Map of topics to which peers are subscribed to
*
* @type {Map<string, Peer>}
*/
this.topics = new Map()
/**
* Cache of seen messages
*
* @type {TimeCache}
*/
this.seenCache = new TimeCache()
/**
* Map of peers.

@@ -39,0 +53,0 @@ *

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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