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

peer-exchange

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peer-exchange - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

.nyc_output/60345.json

16

lib/exchange.js

@@ -178,2 +178,10 @@ 'use strict';

Exchange.prototype.unaccept = function (transport, cb) {
var _this5 = this;
cb = cb || function (err) {
if (err) _this5._error(err);
};
if (!this._accepts[transport]) {
return cb(new Error('Not accepting connections with "' + transport + '" transport'));
}
var _iteratorNormalCompletion2 = true;

@@ -207,11 +215,11 @@ var _didIteratorError2 = false;

if (unaccept) unaccept();
if (cb) cb();
cb();
};
Exchange.prototype.addPeer = function (peer) {
var _this5 = this;
var _this6 = this;
peer._onReady(function () {
_this5.peers.push(peer);
_this5.emit('peer', peer);
_this6.peers.push(peer);
_this6.emit('peer', peer);
});

@@ -218,0 +226,0 @@ };

{
"name": "peer-exchange",
"version": "0.5.2",
"version": "0.5.3",
"description": "Decentralized peer discovery and signaling",

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

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