libp2p-pubsub
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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) |
{ | ||
"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
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
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
1143023
9217
7
+ Addedtime-cache@~0.3.0
+ Addedlodash.throttle@4.1.1(transitive)
+ Addedtime-cache@0.3.0(transitive)