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

@dxos/broadcast

Package Overview
Dependencies
Maintainers
3
Versions
735
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/broadcast - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

11

dist/broadcast.js

@@ -82,3 +82,3 @@ "use strict";

this._id = id;
this._lookup = this._buildLookup(middleware.lookup);
this._lookup = this._buildLookup(() => middleware.lookup());

@@ -169,15 +169,8 @@ this._send = (...args) => middleware.send(...args);

_buildLookup(lookup) {
let looking = null;
return async () => {
try {
if (!looking) {
looking = lookup();
}
this._peers = await looking;
looking = null;
this._peers = await lookup();
log('lookup of %h', this._id, this._peers);
} catch (err) {
this.emit('lookup-error', err);
looking = null;
}

@@ -184,0 +177,0 @@ };

4

package.json
{
"name": "@dxos/broadcast",
"version": "0.0.3",
"version": "0.0.4",
"description": "Abstract module to send broadcast messages.",

@@ -48,2 +48,3 @@ "homepage": "https://github.com/dxos/broadcast#readme",

"@babel/preset-env": "^7.4.5",
"@dxos/network-generator": "^0.0.1",
"babel-eslint": "^10.0.2",

@@ -57,3 +58,2 @@ "babel-jest": "^24.8.0",

"jest": "^24.5.0",
"ngraph.generators": "^18.0.1",
"semistandard": "^14.2.0",

@@ -60,0 +60,0 @@ "wait-for-expect": "^3.0.1"

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