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

mdns-js

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdns-js - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.vscode/settings.json

0

examples/service.js

@@ -0,0 +0,0 @@ /*eslint no-console:0*/

@@ -0,0 +0,0 @@ /*eslint no-console:0*/

2

lib/advertisement.js

@@ -47,3 +47,3 @@

debug('skipping query; type %s not * or %s', type,
service.serviceType);
service.serviceType);
}

@@ -50,0 +50,0 @@ });

@@ -17,3 +17,3 @@ const debug = require('debug')('mdns:browser');

class Browser extends EventEmitter {
constructor (networking, serviceType) {
constructor(networking, serviceType) {
super();

@@ -35,3 +35,3 @@ const notString = typeof serviceType !== 'string';

this.emit('ready');
})
});

@@ -46,3 +46,3 @@ this.onMessageListener = this.onMessage.bind(this);

*/
onMessage (packets, remote, connection) {
onMessage(packets, remote, connection) {
debug('got packets from remote', remote);

@@ -58,8 +58,8 @@

this.connections[iface] = this.connections[iface] || {
services: {},
addresses: {}
};
services: {},
addresses: {}
};
const { services, addresses } = this.connections[iface];
function setNew (...args) {
function setNew(...args) {
isNew = true;

@@ -69,3 +69,3 @@ debug('new on %s, because %s', iface, util.format(...args));

function updateValue (src, dst, name) {
function updateValue(src, dst, name) {
if (JSON.stringify(dst[name]) !== JSON.stringify(src)) {

@@ -77,3 +77,3 @@ setNew('updated host.%s', name);

function addValue (src, dst, name) {
function addValue(src, dst, name) {
if (typeof dst[name] === 'undefined') {

@@ -112,3 +112,4 @@ setNew('added host.%s', name);

host = addresses[adr];
}else {
}
else {
host = addresses[adr] = {address: adr};

@@ -139,3 +140,3 @@ setNew('new host');

stop () {
stop() {
this.networking.removeUsage(this);

@@ -146,3 +147,3 @@ this.networking.removeListener('packets', this.onMessageListener);

discover () {
discover() {
const packet = new DNSPacket();

@@ -157,2 +158,2 @@ packet.question.push(new DNSRecord(

module.exports = Browser
module.exports = Browser;

@@ -0,0 +0,0 @@ var debug = require('debug')('mdns:lib:decoder');

@@ -183,3 +183,3 @@ var debug = require('debug')('mdns:lib:networking');

debug('%s sent %d bytes with err:%s', sock.address().address, bytes,
err);
err);
});

@@ -186,0 +186,0 @@ }

@@ -0,0 +0,0 @@ var debug = require('debug')('mdns:packetfactory');

@@ -167,3 +167,3 @@ var debug = require('debug')('mdns:lib:ServiceType');

var subtypes = ('subtypes' in obj ?
obj.subtypes.map(function (t) { return _uu(t); }) : []);
obj.subtypes.map(function (t) { return _uu(t); }) : []);

@@ -170,0 +170,0 @@ checkLengthAndCharset(serviceType);

@@ -0,0 +0,0 @@

{
"name": "mdns-js",
"version": "1.0.0",
"version": "1.0.1",
"repository": {

@@ -15,15 +15,15 @@ "type": "git",

"engines": {
"node": ">= 6.11.0"
"node": ">= 8.0.0"
},
"main": "index.js",
"dependencies": {
"debug": "^2.1.1",
"debug": "^3.1.0",
"dns-js": "~0.2.1",
"semver": "~5.1.0"
"semver": "^5.4.1"
},
"devDependencies": {
"code": "^4.0.0",
"eslint": "^3.12.2",
"joi": "~7.1.0",
"lab": "^11.2.1"
"code": "^5.1.2",
"eslint": "^4.11.0",
"joi": "^13.0.2",
"lab": "^15.1.2"
},

@@ -49,2 +49,2 @@ "scripts": {

"homepage": "https://github.com/mdns-js/node-mdns-js"
}
}

@@ -0,0 +0,0 @@ mDNS-js

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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