multicast-dns
Advanced tools
Comparing version 1.0.1 to 1.0.2
var mdns = require('./')() | ||
mdns.on('warning', function(err) { | ||
console.log(err.stack) | ||
}) | ||
mdns.on('response', function(response) { | ||
@@ -4,0 +8,0 @@ console.log('got a response packet:', response) |
{ | ||
"name": "multicast-dns", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Low level multicast-dns implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -289,3 +289,3 @@ var types = require('./types') | ||
var renc = function(type) { | ||
switch (type.toUpperCase()) { | ||
switch (type.toString().toUpperCase()) { | ||
case 'A': return ra | ||
@@ -292,0 +292,0 @@ case 'PTR': return rptr |
@@ -49,3 +49,3 @@ exports.toString = function(type) { | ||
exports.toType = function(name) { | ||
switch (name.toUpperCase()) { | ||
switch (name.toString().toUpperCase()) { | ||
case 'A': return 1 | ||
@@ -52,0 +52,0 @@ case 'AAAA': return 28 |
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
25250
623