Comparing version 1.2.9 to 1.2.10
@@ -52,6 +52,6 @@ (function (exports) { | ||
// and in reverse | ||
for (var key in types) { | ||
Object.keys(types).forEach(function (key) { | ||
types[types[key]] = key; | ||
} | ||
}); | ||
}('undefined' !== typeof window ? window : exports)); |
{ | ||
"name": "dns-suite", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"description": "testing dns", | ||
@@ -5,0 +5,0 @@ "main": "dns.js", |
(function (exports) { | ||
'use strict'; | ||
// RFC 6844 https://tools.ietf.org/html/rfc6844#section-3 | ||
// https://support.dnsimple.com/articles/caa-record/ | ||
// A Certification Authority Authorization (CAA) record is used to specify which | ||
@@ -29,10 +32,20 @@ // certificate authorities (CAs) are allowed to issue certificates for a domain. | ||
var i = record.rdstart; | ||
var flag = data[i++]; | ||
var mid = data[i++]; | ||
var flag = data[i]; | ||
var mid = data[i + 1]; | ||
i += 2; | ||
mid += i; | ||
var end = record.rdstart + record.rdlength; | ||
var tag = '', value = ''; | ||
while (i < mid) { tag += String.fromCharCode(data[i++]); } | ||
while (i < end) { value += String.fromCharCode(data[i++]); } | ||
var tag = ''; | ||
var value = ''; | ||
while (i < mid) { | ||
tag += String.fromCharCode(data[i]); | ||
i += 1; | ||
} | ||
while (i < end) { | ||
value += String.fromCharCode(data[i]); | ||
i += 1; | ||
} | ||
record.flag = flag; | ||
@@ -39,0 +52,0 @@ record.tag = tag; |
@@ -6,2 +6,3 @@ dns-suite.js | ||
| [dig.js](https://git.coolaj86.com/coolaj86/dig.js) | ||
| [mdig.js](https://git.coolaj86.com/coolaj86/mdig.js) | ||
| [digd.js](https://git.coolaj86.com/coolaj86/digd.js) | ||
@@ -8,0 +9,0 @@ | Sponsored by [Daplie](https://daplie.com). |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
111740
77
2235
500
1