Socket
Socket
Sign inDemoInstall

dns-packet

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dns-packet - npm Package Compare versions

Comparing version 5.2.3 to 5.2.4

56

index.js

@@ -20,3 +20,3 @@ 'use strict'

name.encode = function (str, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(name.encodingLength(str))
if (!buf) buf = Buffer.alloc(name.encodingLength(str))
if (!offset) offset = 0

@@ -88,3 +88,3 @@ const oldOffset = offset

string.encode = function (s, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(string.encodingLength(s))
if (!buf) buf = Buffer.alloc(string.encodingLength(s))
if (!offset) offset = 0

@@ -171,3 +171,3 @@

runknown.encode = function (data, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(runknown.encodingLength(data))
if (!buf) buf = Buffer.alloc(runknown.encodingLength(data))
if (!offset) offset = 0

@@ -202,3 +202,3 @@

rns.encode = function (data, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rns.encodingLength(data))
if (!buf) buf = Buffer.alloc(rns.encodingLength(data))
if (!offset) offset = 0

@@ -233,3 +233,3 @@

rsoa.encode = function (data, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rsoa.encodingLength(data))
if (!buf) buf = Buffer.alloc(rsoa.encodingLength(data))
if (!offset) offset = 0

@@ -306,3 +306,3 @@

if (!buf) buf = Buffer.allocUnsafe(rtxt.encodingLength(data))
if (!buf) buf = Buffer.alloc(rtxt.encodingLength(data))
if (!offset) offset = 0

@@ -366,7 +366,7 @@

rnull.encode = function (data, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rnull.encodingLength(data))
if (!buf) buf = Buffer.alloc(rnull.encodingLength(data))
if (!offset) offset = 0
if (typeof data === 'string') data = Buffer.from(data)
if (!data) data = Buffer.allocUnsafe(0)
if (!data) data = Buffer.alloc(0)

@@ -411,3 +411,3 @@ const oldOffset = offset

rhinfo.encode = function (data, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rhinfo.encodingLength(data))
if (!buf) buf = Buffer.alloc(rhinfo.encodingLength(data))
if (!offset) offset = 0

@@ -454,3 +454,3 @@

rptr.encode = function (data, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rptr.encodingLength(data))
if (!buf) buf = Buffer.alloc(rptr.encodingLength(data))
if (!offset) offset = 0

@@ -483,3 +483,3 @@

rsrv.encode = function (data, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rsrv.encodingLength(data))
if (!buf) buf = Buffer.alloc(rsrv.encodingLength(data))
if (!offset) offset = 0

@@ -529,3 +529,3 @@

if (!buf) buf = Buffer.allocUnsafe(rcaa.encodingLength(data))
if (!buf) buf = Buffer.alloc(rcaa.encodingLength(data))
if (!offset) offset = 0

@@ -582,3 +582,3 @@

rmx.encode = function (data, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rmx.encodingLength(data))
if (!buf) buf = Buffer.alloc(rmx.encodingLength(data))
if (!offset) offset = 0

@@ -623,3 +623,3 @@

ra.encode = function (host, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(ra.encodingLength(host))
if (!buf) buf = Buffer.alloc(ra.encodingLength(host))
if (!offset) offset = 0

@@ -654,3 +654,3 @@

raaaa.encode = function (host, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(raaaa.encodingLength(host))
if (!buf) buf = Buffer.alloc(raaaa.encodingLength(host))
if (!offset) offset = 0

@@ -685,3 +685,3 @@

roption.encode = function (option, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(roption.encodingLength(option))
if (!buf) buf = Buffer.alloc(roption.encodingLength(option))
if (!offset) offset = 0

@@ -823,3 +823,3 @@ const oldOffset = offset

ropt.encode = function (options, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(ropt.encodingLength(options))
if (!buf) buf = Buffer.alloc(ropt.encodingLength(options))
if (!offset) offset = 0

@@ -868,3 +868,3 @@ const oldOffset = offset

rdnskey.encode = function (key, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rdnskey.encodingLength(key))
if (!buf) buf = Buffer.alloc(rdnskey.encodingLength(key))
if (!offset) offset = 0

@@ -925,3 +925,3 @@ const oldOffset = offset

rrrsig.encode = function (sig, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rrrsig.encodingLength(sig))
if (!buf) buf = Buffer.alloc(rrrsig.encodingLength(sig))
if (!offset) offset = 0

@@ -1002,3 +1002,3 @@ const oldOffset = offset

rrp.encode = function (data, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rrp.encodingLength(data))
if (!buf) buf = Buffer.alloc(rrp.encodingLength(data))
if (!offset) offset = 0

@@ -1042,3 +1042,3 @@ const oldOffset = offset

typebitmap.encode = function (typelist, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(typebitmap.encodingLength(typelist))
if (!buf) buf = Buffer.alloc(typebitmap.encodingLength(typelist))
if (!offset) offset = 0

@@ -1122,3 +1122,3 @@ const oldOffset = offset

rnsec.encode = function (record, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rnsec.encodingLength(record))
if (!buf) buf = Buffer.alloc(rnsec.encodingLength(record))
if (!offset) offset = 0

@@ -1167,3 +1167,3 @@ const oldOffset = offset

rnsec3.encode = function (record, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rnsec3.encodingLength(record))
if (!buf) buf = Buffer.alloc(rnsec3.encodingLength(record))
if (!offset) offset = 0

@@ -1247,3 +1247,3 @@ const oldOffset = offset

rds.encode = function (digest, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(rds.encodingLength(digest))
if (!buf) buf = Buffer.alloc(rds.encodingLength(digest))
if (!offset) offset = 0

@@ -1328,3 +1328,3 @@ const oldOffset = offset

answer.encode = function (a, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(answer.encodingLength(a))
if (!buf) buf = Buffer.alloc(answer.encodingLength(a))
if (!offset) offset = 0

@@ -1412,3 +1412,3 @@

question.encode = function (q, buf, offset) {
if (!buf) buf = Buffer.allocUnsafe(question.encodingLength(q))
if (!buf) buf = Buffer.alloc(question.encodingLength(q))
if (!offset) offset = 0

@@ -1472,3 +1472,3 @@

if (allocing) buf = Buffer.allocUnsafe(exports.encodingLength(result))
if (allocing) buf = Buffer.alloc(exports.encodingLength(result))
if (!offset) offset = 0

@@ -1532,3 +1532,3 @@

const buf = exports.encode(result)
const sbuf = Buffer.allocUnsafe(2)
const sbuf = Buffer.alloc(2)
sbuf.writeUInt16BE(buf.byteLength)

@@ -1535,0 +1535,0 @@ const combine = Buffer.concat([sbuf, buf])

{
"name": "dns-packet",
"version": "5.2.3",
"version": "5.2.4",
"description": "An abstract-encoding compliant module for encoding / decoding DNS packets",

@@ -5,0 +5,0 @@ "author": "Mathias Buus",

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