Socket
Socket
Sign inDemoInstall

@ionic/discover

Package Overview
Dependencies
Maintainers
13
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic/discover - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

19

dist/publisher.js

@@ -72,10 +72,15 @@ "use strict";

sayHello() {
for (let iface of this.getInterfaces()) {
const message = new Buffer(this.buildMessage(iface.address));
this.client.send(message, 0, message.length, PORT, iface.broadcast, err => {
if (err) {
this.emit('error', err);
}
});
try {
for (let iface of this.getInterfaces()) {
const message = new Buffer(this.buildMessage(iface.address));
this.client.send(message, 0, message.length, PORT, iface.broadcast, err => {
if (err) {
this.emit('error', err);
}
});
}
}
catch (e) {
this.emit('error', e);
}
}

@@ -82,0 +87,0 @@ getInterfaces() {

{
"name": "@ionic/discover",
"version": "0.3.0",
"version": "0.3.1",
"description": "Simple UDP based protocol for service discovery implemented in pure JS. Not mDNS or bonjour. ",

@@ -5,0 +5,0 @@ "main": "dist/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