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

vault-high-availability

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vault-high-availability - npm Package Compare versions

Comparing version 1.0.45 to 1.0.46

3

index.js

@@ -12,2 +12,3 @@ /**

var init = function (vaultAddress) {
if (process.env.IGNORE_VAULT_LEADER_RESOLVER == "true") {

@@ -34,2 +35,4 @@ this.addressResolver = vaultAddress;

var setStrategey = function (addressResolver) {

@@ -36,0 +39,0 @@ logger.debug("Set strategey --> findActiveIp");

2

package.json
{
"name": "vault-high-availability",
"version": "1.0.45",
"version": "1.0.46",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -188,3 +188,5 @@ 'use strict';

var replaceDnsWithIp = function (url) {
log.debug("replaceDnsWithIp function called");
if (this.ip) {
log.debug("Found the ip, going to replace the url with the ip:" + this.ip);
var urlObject = urlLib.parse(url);

@@ -195,4 +197,6 @@ urlObject.host = undefined;

} else { // in case dns resolving failed on startup we still want to find the active. otherwise it will wait until the first failure.
log.debug("leader IP not found, calling findActiveIp function");
findActiveIp.call(this);
}
log.debug("URL after resolving:" + url);
return url

@@ -199,0 +203,0 @@

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