Comparing version 1.2.4 to 1.2.5
@@ -52,6 +52,6 @@ (function (exports) { | ||
// and in reverse | ||
Object.keys(types).forEach(function (key) { | ||
for (var key in types) { | ||
types[types[key]] = key; | ||
}); | ||
} | ||
}('undefined' !== typeof window ? window : exports)); |
{ | ||
"name": "dns-suite", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "testing dns", | ||
@@ -17,3 +17,3 @@ "main": "dns.js", | ||
"type": "git", | ||
"url": "git@git.daplie.com:Daplie/dns-suite.git" | ||
"url": "https://git.coolaj86.com/coolaj86/dns-suite.js.git" | ||
}, | ||
@@ -27,4 +27,4 @@ "author": "", | ||
"bluebird": "^3.5.0", | ||
"hexdump.js": "^1.0.4" | ||
"hexdump.js": "git+https://git.coolaj86.com/coolaj86/hexdump.js#v1.0.4" | ||
} | ||
} |
(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 | ||
@@ -32,20 +29,10 @@ // certificate authorities (CAs) are allowed to issue certificates for a domain. | ||
var i = record.rdstart; | ||
var flag = data[i]; | ||
var mid = data[i + 1]; | ||
i += 2; | ||
var flag = data[i++]; | ||
var mid = data[i++]; | ||
mid += i; | ||
var end = record.rdstart + record.rdlength; | ||
var tag = ''; | ||
var value = ''; | ||
var tag = '', value = ''; | ||
while (i < mid) { tag += String.fromCharCode(data[i++]); } | ||
while (i < end) { value += String.fromCharCode(data[i++]); } | ||
while (i < mid) { | ||
tag += String.fromCharCode(data[i]); | ||
i += 1; | ||
} | ||
while (i < end) { | ||
value += String.fromCharCode(data[i]); | ||
i += 1; | ||
} | ||
record.flag = flag; | ||
@@ -52,0 +39,0 @@ record.tag = tag; |
@@ -1,5 +0,8 @@ | ||
dns-suite | ||
dns-suite.js | ||
======== | ||
| **dns-suite** | [dig.js](https://git.daplie.com/Daplie/dig.js) | [digd.js](https://git.daplie.com/Daplie/digd.js) | | ||
| **dns-suite.js** | ||
| [dig.js](https://git.coolaj86.com/coolaj86/dig.js) | ||
| [digd.js](https://git.coolaj86.com/coolaj86/digd.js) | ||
| | ||
@@ -60,3 +63,3 @@ Fast, lightweight, and easy-to-extend **pure JavaScript** (ES5.1) implementation for DNS / mDNS. | ||
# latest of v1.x | ||
npm install 'git+https://git@git.daplie.com:Daplie/dns-suite#v1' | ||
npm install 'git+https://git.coolaj86.com/coolaj86/dns-suite.js#v1' | ||
``` | ||
@@ -68,6 +71,6 @@ | ||
# latest of v1.0.x | ||
npm install 'git+https://git@git.daplie.com:Daplie/dns-suite#v1.0' | ||
npm install 'git+https://git.coolaj86.com/coolaj86/dns-suite.js#v1.0' | ||
# exactly v1.0.2 | ||
npm install 'git+https://git@git.daplie.com:Daplie/dns-suite#v1.0.2' | ||
npm install 'git+https://git.coolaj86.com/coolaj86/dns-suite.js#v1.0.2' | ||
``` | ||
@@ -109,4 +112,4 @@ | ||
For **capturing packets** you should use [`dig.js`](https://git.daplie.com/Daplie/dig.js#options) with the `--output` option. | ||
It can capture mDNS as well. See <https://git.daplie.com/Daplie/dig.js#options>. | ||
For **capturing packets** you should use [`dig.js`](https://git.coolaj86.com/coolaj86/dig.js#options) with the `--output` option. | ||
It can capture mDNS as well. See <https://git.coolaj86.com/coolaj86/dig.js#options>. | ||
@@ -153,7 +156,7 @@ You can also access them directly from `node_modules/dns-suite` in a project: | ||
We have a command line tool for that! See [dig.js](https://git.daplie.com/Daplie/dig.js). | ||
We have a command line tool for that! See [dig.js](https://git.coolaj86.com/coolaj86/dig.js). | ||
```bash | ||
# Install | ||
npm install -g 'git+https://git@git.daplie.com/Daplie/dig.js.git' | ||
npm install -g 'git+https://git.coolaj86.com/coolaj86/dig.js.git' | ||
@@ -160,0 +163,0 @@ # Use with DNS |
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
499
135688
123
3169
1
- Removed@root/hexdump@1.1.1(transitive)
- Removedhexdump.js@1.1.0(transitive)
Updatedhexdump.js@git+https://git.coolaj86.com/coolaj86/hexdump.js#v1.0.4