Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "caa", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "rfc6844-conform CAA record lookup", | ||
@@ -5,0 +5,0 @@ "author": "silverwind <me@silverwind.io>", |
@@ -17,6 +17,6 @@ # caa | ||
caa('subdomain.example.com').then(console.log); | ||
await caa('subdomain.example.com'); | ||
// => [{flags: 0, tag: 'issue', tag: 'issue', value: 'letsencrypt.org', issuerCritical: false}] | ||
caa.matches('subdomain.example.com', 'letsencrypt.org').then(console.log); | ||
await caa.matches('subdomain.example.com', 'letsencrypt.org'); | ||
// => true | ||
@@ -32,3 +32,3 @@ | ||
### caa(name, ca, {server, port}) | ||
### caa.matches(name, ca, {server, port}) | ||
@@ -39,3 +39,3 @@ Test if the CAA record for a given `name` matches a given `ca`. | ||
Optionally, a DNS `server` and `port` can be supplied, defaulting to the first system resolver and port 53. | ||
Optionally, a DNS `server` and `port` can be supplied, defaulting to the first system resolver (or `8.8.8.8` if none is configured) and port 53. | ||
@@ -42,0 +42,0 @@ ## License |
5855