multicast-dns
Advanced tools
Comparing version 5.2.0 to 5.3.0
{ | ||
"name": "multicast-dns", | ||
"version": "5.2.0", | ||
"version": "5.3.0", | ||
"description": "Low level multicast-dns implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -130,3 +130,5 @@ var types = require('./types') | ||
var rtxt = {} | ||
var rnull = {} | ||
rnull.encode = | ||
rtxt.encode = function (data, buf, offset) { | ||
@@ -151,2 +153,3 @@ if (typeof data === 'string') data = new Buffer(data) | ||
rnull.decode = | ||
rtxt.decode = function (buf, offset) { | ||
@@ -165,2 +168,3 @@ var oldOffset = offset | ||
rnull.encodingLength = | ||
rtxt.encodingLength = function (data) { | ||
@@ -303,2 +307,3 @@ if (!data) return 3 // 2 bytes (RDATA field length) + 1 byte (single empty byte) | ||
case 'TXT': return rtxt | ||
case 'NULL': return rnull | ||
case 'AAAA': return raaaa | ||
@@ -305,0 +310,0 @@ case 'SRV': return rsrv |
exports.toString = function (type) { | ||
switch (type) { | ||
case 1: return 'A' | ||
case 10: return 'NULL' | ||
case 28: return 'AAAA' | ||
@@ -53,2 +54,3 @@ case 18: return 'AFSDB' | ||
case 'A': return 1 | ||
case 'NULL': return 10 | ||
case 'AAAA': return 28 | ||
@@ -55,0 +57,0 @@ case 'AFSDB': return 18 |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2
30467
11
774