New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

af-consul

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

af-consul - npm Package Compare versions

Comparing version 2.0.19 to 2.0.20

10

dist/cjs/src/access-points/access-points-updater.js

@@ -26,3 +26,3 @@ "use strict";

async function updateAccessPoint(clOptions, accessPoint) {
var _a, _b, _c, _d, _e, _f, _g;
var _a, _b, _c, _d, _e, _f, _g, _h;
if (!accessPoint.updateIntervalIfSuccessMillis) {

@@ -56,3 +56,7 @@ accessPoint.updateIntervalIfSuccessMillis = UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS;

accessPoint.lastSuccessUpdate = 0;
const wasReachable = accessPoint.isReachable;
accessPoint.isReachable = false;
if (wasReachable) {
(_d = clOptions.em) === null || _d === void 0 ? void 0 : _d.emit('access-point-updated', { accessPoint, changes: [['isReachable', true, false]] });
}
return -1;

@@ -67,6 +71,6 @@ }

const properties = accessPoint.retrieveProps(host, meta);
const changes = (_f = (_e = (_d = accessPoint.setProps) === null || _d === void 0 ? void 0 : _d.call(accessPoint, properties)) === null || _e === void 0 ? void 0 : _e.getChanges) === null || _f === void 0 ? void 0 : _f.call(_e);
const changes = (_g = (_f = (_e = accessPoint.setProps) === null || _e === void 0 ? void 0 : _e.call(accessPoint, properties)) === null || _f === void 0 ? void 0 : _f.getChanges) === null || _g === void 0 ? void 0 : _g.call(_f);
if (changes === null || changes === void 0 ? void 0 : changes.length) {
accessPoint.meta = meta;
(_g = clOptions.em) === null || _g === void 0 ? void 0 : _g.emit('access-point-updated', { accessPoint, changes });
(_h = clOptions.em) === null || _h === void 0 ? void 0 : _h.emit('access-point-updated', { accessPoint, changes });
}

@@ -73,0 +77,0 @@ else {

@@ -23,3 +23,3 @@ /* eslint-disable no-console */

export async function updateAccessPoint(clOptions, accessPoint) {
var _a, _b, _c, _d, _e, _f, _g;
var _a, _b, _c, _d, _e, _f, _g, _h;
if (!accessPoint.updateIntervalIfSuccessMillis) {

@@ -53,3 +53,7 @@ accessPoint.updateIntervalIfSuccessMillis = UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS;

accessPoint.lastSuccessUpdate = 0;
const wasReachable = accessPoint.isReachable;
accessPoint.isReachable = false;
if (wasReachable) {
(_d = clOptions.em) === null || _d === void 0 ? void 0 : _d.emit('access-point-updated', { accessPoint, changes: [['isReachable', true, false]] });
}
return -1;

@@ -64,6 +68,6 @@ }

const properties = accessPoint.retrieveProps(host, meta);
const changes = (_f = (_e = (_d = accessPoint.setProps) === null || _d === void 0 ? void 0 : _d.call(accessPoint, properties)) === null || _e === void 0 ? void 0 : _e.getChanges) === null || _f === void 0 ? void 0 : _f.call(_e);
const changes = (_g = (_f = (_e = accessPoint.setProps) === null || _e === void 0 ? void 0 : _e.call(accessPoint, properties)) === null || _f === void 0 ? void 0 : _f.getChanges) === null || _g === void 0 ? void 0 : _g.call(_f);
if (changes === null || changes === void 0 ? void 0 : changes.length) {
accessPoint.meta = meta;
(_g = clOptions.em) === null || _g === void 0 ? void 0 : _g.emit('access-point-updated', { accessPoint, changes });
(_h = clOptions.em) === null || _h === void 0 ? void 0 : _h.emit('access-point-updated', { accessPoint, changes });
}

@@ -70,0 +74,0 @@ else {

{
"name": "af-consul",
"version": "2.0.19",
"version": "2.0.20",
"description": "A highly specialized function library",

@@ -5,0 +5,0 @@ "main": "./dist/cjs/src/index.js",

@@ -59,3 +59,7 @@ /* eslint-disable no-console */

accessPoint.lastSuccessUpdate = 0;
const wasReachable = accessPoint.isReachable;
accessPoint.isReachable = false;
if (wasReachable) {
clOptions.em?.emit('access-point-updated', { accessPoint, changes: [['isReachable', true, false]] });
}
return -1;

@@ -62,0 +66,0 @@ }

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

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