af-consul
Advanced tools
Comparing version 3.0.17 to 3.0.18
@@ -11,2 +11,5 @@ "use strict"; | ||
const addAdditionalAPProps = (accessPoint) => { | ||
if (accessPoint.noConsul) { | ||
return; | ||
} | ||
Object.defineProperty(accessPoint, 'isAP', { value: true }); | ||
@@ -73,2 +76,5 @@ Object.defineProperty(accessPoint, 'lastSuccessUpdate', { value: 0, writable: true }); | ||
} | ||
if (apData.noConsul) { | ||
return undefined; | ||
} | ||
if (!apData.consulServiceName) { | ||
@@ -75,0 +81,0 @@ this[_logger_].error(`"${apKey}" access point not added because it lacks "consulServiceName" property`); |
@@ -8,2 +8,5 @@ /* eslint-disable no-await-in-loop */ | ||
const addAdditionalAPProps = (accessPoint) => { | ||
if (accessPoint.noConsul) { | ||
return; | ||
} | ||
Object.defineProperty(accessPoint, 'isAP', { value: true }); | ||
@@ -70,2 +73,5 @@ Object.defineProperty(accessPoint, 'lastSuccessUpdate', { value: 0, writable: true }); | ||
} | ||
if (apData.noConsul) { | ||
return undefined; | ||
} | ||
if (!apData.consulServiceName) { | ||
@@ -72,0 +78,0 @@ this[_logger_].error(`"${apKey}" access point not added because it lacks "consulServiceName" property`); |
{ | ||
"name": "af-consul", | ||
"version": "3.0.17", | ||
"version": "3.0.18", | ||
"description": "A highly specialized function library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/src/index.js", |
@@ -12,2 +12,5 @@ /* eslint-disable no-await-in-loop */ | ||
const addAdditionalAPProps = (accessPoint: Record<string, any>) => { | ||
if (accessPoint.noConsul) { | ||
return; | ||
} | ||
Object.defineProperty(accessPoint, 'isAP', { value: true }); | ||
@@ -82,2 +85,5 @@ Object.defineProperty(accessPoint, 'lastSuccessUpdate', { value: 0, writable: true }); | ||
} | ||
if (apData.noConsul) { | ||
return undefined; | ||
} | ||
if (!apData.consulServiceName) { | ||
@@ -84,0 +90,0 @@ this[_logger_].error(`"${apKey}" access point not added because it lacks "consulServiceName" property`); |
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
314140
4571