af-consul
Advanced tools
Comparing version 1.0.91 to 1.0.93
@@ -18,3 +18,3 @@ "use strict"; | ||
}; | ||
const UPDATE_INTERVAL_IF_SUCCESS_MILLIS = 2 * 60000; | ||
const UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS = process.env.UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS || (2 * 60000); | ||
// A stub in case such a function is not set for the access point in the configuration | ||
@@ -29,3 +29,3 @@ function retrieveProps(accessPoint, host, meta) { | ||
if (!accessPoint.updateIntervalIfSuccessMillis) { | ||
accessPoint.updateIntervalIfSuccessMillis = UPDATE_INTERVAL_IF_SUCCESS_MILLIS; | ||
accessPoint.updateIntervalIfSuccessMillis = UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS; | ||
} | ||
@@ -32,0 +32,0 @@ if (Date.now() - (accessPoint.lastSuccessUpdate || 0) < accessPoint.updateIntervalIfSuccessMillis) { |
@@ -15,3 +15,3 @@ /* eslint-disable no-console */ | ||
}; | ||
const UPDATE_INTERVAL_IF_SUCCESS_MILLIS = 2 * 60000; | ||
const UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS = process.env.UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS || (2 * 60000); | ||
// A stub in case such a function is not set for the access point in the configuration | ||
@@ -26,3 +26,3 @@ function retrieveProps(accessPoint, host, meta) { | ||
if (!accessPoint.updateIntervalIfSuccessMillis) { | ||
accessPoint.updateIntervalIfSuccessMillis = UPDATE_INTERVAL_IF_SUCCESS_MILLIS; | ||
accessPoint.updateIntervalIfSuccessMillis = UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS; | ||
} | ||
@@ -29,0 +29,0 @@ if (Date.now() - (accessPoint.lastSuccessUpdate || 0) < accessPoint.updateIntervalIfSuccessMillis) { |
{ | ||
"name": "af-consul", | ||
"version": "1.0.91", | ||
"version": "1.0.93", | ||
"description": "A highly specialized function library", | ||
@@ -27,17 +27,17 @@ "main": "./dist/cjs/src/index.js", | ||
"@types/debug": "^4.1.7", | ||
"@types/jest": "^27.0.3", | ||
"@types/jest": "^27.4.0", | ||
"@types/lodash": "^4.14.178", | ||
"@types/node": "^17.0.5", | ||
"@types/node": "^17.0.8", | ||
"@types/xxhashjs": "^0.2.2", | ||
"@typescript-eslint/eslint-plugin": "^5.8.1", | ||
"@typescript-eslint/parser": "^5.8.1", | ||
"af-logger": "^2.0.15", | ||
"dotenv": "^10.0.0", | ||
"eslint": "^8.5.0", | ||
"@typescript-eslint/eslint-plugin": "^5.9.1", | ||
"@typescript-eslint/parser": "^5.9.1", | ||
"af-logger": "^2.0.17", | ||
"dotenv": "^11.0.0", | ||
"eslint": "^8.6.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"jest": "^27.4.5", | ||
"jest": "^27.4.7", | ||
"np": "^7.6.0", | ||
"shx": "^0.3.3", | ||
"shx": "^0.3.4", | ||
"ts-jest": "^27.1.2", | ||
@@ -44,0 +44,0 @@ "ts-node": "^10.4.0", |
@@ -20,3 +20,3 @@ /* eslint-disable no-console */ | ||
const UPDATE_INTERVAL_IF_SUCCESS_MILLIS = 2 * 60_000; | ||
const UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS = process.env.UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS || (2 * 60_000); | ||
@@ -33,3 +33,3 @@ // A stub in case such a function is not set for the access point in the configuration | ||
if (!accessPoint.updateIntervalIfSuccessMillis) { | ||
accessPoint.updateIntervalIfSuccessMillis = UPDATE_INTERVAL_IF_SUCCESS_MILLIS; | ||
accessPoint.updateIntervalIfSuccessMillis = UPDATE_INTERVAL_IF_CONSUL_REGISTER_SUCCESS_MILLIS; | ||
} | ||
@@ -36,0 +36,0 @@ if (Date.now() - (accessPoint.lastSuccessUpdate || 0) < accessPoint.updateIntervalIfSuccessMillis) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
251369
18