New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 0.4.0 to 0.5.0

14

lib/advertisement.js

@@ -44,3 +44,4 @@

pf.buildANPacket.apply(service, [DNSRecord.TTL]));
} else {
}
else {
debug('skipping query; type %s not * or %s', type,

@@ -50,3 +51,4 @@ service.serviceType);

});
} catch (err) {
}
catch (err) {
// invalid service type

@@ -84,3 +86,4 @@ }

});
} catch (err) {
}
catch (err) {
// invalid service type

@@ -118,3 +121,4 @@ }

this.nameSuffix = '1';
} else {
}
else {
this.nameSuffix = (parseInt(this.nameSuffix) + 1) + '';

@@ -157,3 +161,3 @@ }

this.networking = networking;
if (typeof this.options.INADDR_ANY !== undefined) {
if (typeof this.options.INADDR_ANY !== 'undefined') {
this.networking.INADDR_ANY = this.options.INADDR_ANY;

@@ -160,0 +164,0 @@ }

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

packets = dns.DNSPacket.parse(message);
} catch (err) {
}
catch (err) {
debug('packet parsing error', err);

@@ -82,0 +83,0 @@ return;

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

sock = dgram.createSocket({type:'udp4', reuseAddr:true});
} else {
}
else {
sock = dgram.createSocket('udp4');

@@ -105,4 +106,3 @@ }

Networking.prototype.bindToAddress = function (
err, interfaceIndex, networkInterface, sock) {
Networking.prototype.bindToAddress = function (err, interfaceIndex, networkInterface, sock) {
if (err) {

@@ -138,5 +138,5 @@ debug('there was an error binding %s', err);

}
catch (err) {
catch (er) {
//partial, skip it
debug('packet parsing error', err);
debug('packet parsing error', er);
}

@@ -176,3 +176,4 @@

debug('skip send on pseudo interface.');
} else {
}
else {
debug('sending to', sock.address());

@@ -179,0 +180,0 @@

@@ -88,3 +88,4 @@ var debug = require('debug')('mdns:packetfactory');

address: iface.address});
} else {
}
else {
// TODO: also publish the ip6_address in an AAAA record

@@ -105,3 +106,4 @@ }

address: address});
} else {
}
else {
// TODO: also publish the ip6_address in an AAAA record

@@ -108,0 +110,0 @@ }

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

args = Array.isArray(arguments[0]) ? arguments[0] : [arguments[0]];
} else if (arguments.length > 1) {
}
else if (arguments.length > 1) {
args = Array.prototype.slice.call(arguments);

@@ -34,10 +35,14 @@ }

// this.fromArray(args[0]);
} else if (typeof args[0] === 'object') {
}
else if (typeof args[0] === 'object') {
this.fromJSON(args[0]);
} else {
}
else {
throw new Error('argument must be a string, array or object');
}
} else if (args.length >= 2) {
}
else if (args.length >= 2) {
this.fromArray(args);
} else { // zero arguments
}
else { // zero arguments
// uninitialized ServiceType ... fine with me

@@ -115,3 +120,4 @@ }

this.fullyQualified = true;
} else if (serviceTokens.length > 0) {
}
else if (serviceTokens.length > 0) {
throw new Error('trailing tokens "' + serviceTokens.join('.') + '" in ' +

@@ -118,0 +124,0 @@ 'service type string "' + text + '"');

@@ -23,3 +23,4 @@

return -1;
} else if (lp[i] > rp[i]) {
}
else if (lp[i] > rp[i]) {
return +1;

@@ -26,0 +27,0 @@ }

{
"name": "mdns-js",
"version": "0.4.0",
"version": "0.5.0",
"repository": {
"type": "git",
"url": "git://github.com/kmpm/node-mdns-js.git"
"url": "git://github.com/mdns-js/node-mdns-js.git"
},

@@ -15,3 +15,3 @@ "description": "JavaScript/NodeJS mDNS discovery implementation",

"engines": {
"node": "^0.10.3 || ^0.12.0"
"node": ">= 4.1.0"
},

@@ -21,9 +21,9 @@ "main": "index.js",

"debug": "^2.1.1",
"mdns-js-packet": "^0.1.11",
"semver": "^4.3.1"
"mdns-js-packet": "~0.2.0",
"semver": "~5.1.0"
},
"devDependencies": {
"code": "^1.3.0",
"joi": "^5.1.0",
"lab": "^5.2.1"
"code": "*",
"joi": "~7.1.0",
"lab": "*"
},

@@ -30,0 +30,0 @@ "scripts": {

mDNS-js
==========
[![Build Status](https://travis-ci.org/mdns-js/node-mdns-js.svg?branch=master)](https://travis-ci.org/mdns-js/node-mdns-js)
Pure JavaScript/NodeJS mDNS discovery implementation.

@@ -12,2 +14,8 @@ It's definitely not a full implementation at the current

__NEW LOCATION__
This project was moved into it's own organisation. Please update any git remotes you might have pointing here.
git remote set-url origin https://github.com/mdns-js/node-mdns-js.git
Install by

@@ -17,3 +25,4 @@

[![Build Status](https://travis-ci.org/kmpm/node-mdns-js.svg?branch=master)](https://travis-ci.org/kmpm/node-mdns-js)
If you are running node version < 4.1 you will have to use a version of this library that is below
version 0.5.0

@@ -50,3 +59,3 @@ Future

----------------
Please report any issues at https://github.com/kmpm/node-mdns-js/issues
Please report any issues at https://github.com/mdns-js/node-mdns-js/issues

@@ -53,0 +62,0 @@ But please check if there is a similar issue already reported and

@@ -11,3 +11,3 @@ var Joi = require('joi');

exports.question = {
type: Joi.array().includes(exports.type),
type: Joi.array().items(exports.type),
port: Joi.number().integer().optional(),

@@ -20,3 +20,3 @@ fullname: Joi.string().optional(),

exports.answer = {
type: Joi.array().includes(exports.type),
type: Joi.array().items(exports.type),
host: Joi.string(),

@@ -29,3 +29,3 @@ port: Joi.number().integer(),

exports.additional = {
type: Joi.array().includes(exports.type),
type: Joi.array().items(exports.type),
port: Joi.number().integer(),

@@ -38,3 +38,3 @@ fullname: Joi.string(),

exports.authority = {
type: Joi.array().includes(exports.type)
type: Joi.array().items(exports.type)
};

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

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