Comparing version 1.0.0 to 1.0.1
@@ -0,0 +0,0 @@ /*eslint no-console:0*/ |
@@ -0,0 +0,0 @@ /*eslint no-console:0*/ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1121
57742
18
+ Addeddebug@3.2.7(transitive)
+ Addedms@2.1.3(transitive)
+ Addedsemver@5.7.2(transitive)
- Removedsemver@5.1.1(transitive)
Updateddebug@^3.1.0
Updatedsemver@^5.4.1