num-client
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -142,3 +142,2 @@ "use strict"; | ||
loglevel_1.default.warn('Domain was resolved but no records were found'); | ||
return [2, []]; | ||
} | ||
@@ -148,3 +147,2 @@ } | ||
loglevel_1.default.warn('DNSSEC checks not implemented.'); | ||
return [2, []]; | ||
} | ||
@@ -159,5 +157,5 @@ else if (response.data.Status === NXDOMAIN) { | ||
else { | ||
throw new Error('Response was empty'); | ||
loglevel_1.default.error('Response was empty'); | ||
} | ||
return [2]; | ||
return [2, []]; | ||
} | ||
@@ -164,0 +162,0 @@ }); |
@@ -145,7 +145,6 @@ "use strict"; | ||
.catch(function (e) { | ||
if (e && typeof e === 'object' && e.status) { | ||
if (e.status !== 0) { | ||
if (e && typeof e === 'object') { | ||
if ((e.status && e.status !== 0) || e.message === 'Found spf' || e.message === 'Found CNAME') { | ||
return Promise.resolve(''); | ||
} | ||
throw e; | ||
} | ||
@@ -152,0 +151,0 @@ dohIndex = (dohIndex + 1) % _this.dnsClients.length; |
@@ -11,3 +11,3 @@ "use strict"; | ||
lookupgenerators_1.setenvDomainLookups('test'); | ||
var numUri = _1.parseNumUri('num://aviva.co.uk:1'); | ||
var numUri = _1.parseNumUri('num://avivainvestors.com:3'); | ||
var client = client_1.createClient(); | ||
@@ -14,0 +14,0 @@ loglevel_1.default.setLevel('debug'); |
{ | ||
"name": "num-client", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "A NUM Protocol Client in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
507736
2841