multicast-dns
Advanced tools
Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "multicast-dns", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"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.toString().toUpperCase()) { | ||
switch (type.toUpperCase()) { | ||
case 'A': return ra | ||
@@ -292,0 +292,0 @@ case 'PTR': return rptr |
@@ -44,8 +44,9 @@ exports.toString = function(type) { | ||
case 251: return 'IXFR' | ||
case 41: return 'OPT' | ||
} | ||
return type | ||
return 'UNKNOWN-'+type | ||
} | ||
exports.toType = function(name) { | ||
switch (name.toString().toUpperCase()) { | ||
switch (name.toUpperCase()) { | ||
case 'A': return 1 | ||
@@ -92,4 +93,5 @@ case 'AAAA': return 28 | ||
case 'IXFR': return 251 | ||
case 'OPT': return 41 | ||
} | ||
return 0 | ||
} |
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
25301
625