domain-alive 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3079,6 +3079,10 @@ function requireDoh () {
3079
3079
  u.search = searchParams.toString();
3080
3080
  const get = protocols[u.protocol];
3081
3081
  if (!get) throw new Error(`Unsupported protocol: ${u.protocol}, must be specified (http://, https:// or h2://)`);
3082
+ // after determining the protocol, convert h2 to https for get
3083
+ if (u.protocol === 'h2:') {
3084
+ u.protocol = 'https:';
3085
+ }
3082
3086
  const req = get(u.toString(), {
3083
3087
  headers: {
3084
3088
  accept: 'application/dns-message'
package/dist/index.mjs CHANGED
@@ -3061,6 +3061,10 @@ function requireDoh () {
3061
3061
  u.search = searchParams.toString();
3062
3062
  const get = protocols[u.protocol];
3063
3063
  if (!get) throw new Error(`Unsupported protocol: ${u.protocol}, must be specified (http://, https:// or h2://)`);
3064
+ // after determining the protocol, convert h2 to https for get
3065
+ if (u.protocol === 'h2:') {
3066
+ u.protocol = 'https:';
3067
+ }
3064
3068
  const req = get(u.toString(), {
3065
3069
  headers: {
3066
3070
  accept: 'application/dns-message'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domain-alive",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "A Node.js library for checking if an FQDN (Fully Qualified Domain Name) is alive or not, uses a combination techniques of `NS` records, WHOIS/RDAP lookups, `A/AAAA` records",
5
5
  "repository": {
6
6
  "type": "git",