Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

num-client

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

num-client - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

12

dist/dnsservices.js

@@ -121,7 +121,7 @@ "use strict";

return __generator(this, function (_a) {
return [2, this._getRecordFromDns(query, checkDnsSecValidity, this.dnsClients.length)];
return [2, this._getRecordFromDns(query, checkDnsSecValidity, this.dnsClients.length, this.clientIndex)];
});
});
};
DnsServicesImpl.prototype._getRecordFromDns = function (query, checkDnsSecValidity, attempts) {
DnsServicesImpl.prototype._getRecordFromDns = function (query, checkDnsSecValidity, attempts, dohIndex) {
return __awaiter(this, void 0, void 0, function () {

@@ -135,3 +135,3 @@ var question;

question = new dnsclient_1.Question(query, 'TXT', checkDnsSecValidity);
return [2, this.dnsClients[this.clientIndex]
return [2, this.dnsClients[dohIndex]
.query(question)

@@ -150,5 +150,5 @@ .then(function (result) {

}
_this.clientIndex = (_this.clientIndex + 1) % _this.dnsClients.length;
loglevel_1.default.warn("Switching to DoH: " + _this.dnsClients[_this.clientIndex].getResolver().name + " due to " + JSON.stringify(e));
return _this._getRecordFromDns(query, checkDnsSecValidity, attempts - 1);
dohIndex = (dohIndex + 1) % _this.dnsClients.length;
loglevel_1.default.warn("Switching to DoH: " + _this.dnsClients[dohIndex].getResolver().name + " due to " + JSON.stringify(e));
return _this._getRecordFromDns(query, checkDnsSecValidity, attempts - 1, dohIndex);
})];

@@ -155,0 +155,0 @@ });

{
"name": "num-client",
"version": "1.0.5",
"version": "1.0.6",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc