Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

multicast-dns

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multicast-dns - npm Package Compare versions

Comparing version 5.2.0 to 5.3.0

2

package.json
{
"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

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