@routr/location 2.0.8-alpha.12 → 2.0.8-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -46,7 +46,7 @@ exports.getConfig = void 0;
|
|
|
46
46
|
* limitations under the License.
|
|
47
47
|
*/
|
|
48
48
|
const types_1 = require("../types");
|
|
49
|
-
const
|
|
49
|
+
const common_1 = require("@routr/common");
|
|
50
50
|
const schema_1 = require("./schema");
|
|
51
51
|
const ajv_1 = __importDefault(require("ajv"));
|
|
52
52
|
const E = __importStar(require("fp-ts/Either"));
|
|
@@ -59,7 +59,7 @@ const hasBadAlgorithm = (backends) => backends.some((b) => b.balancingAlgorithm
|
|
|
59
59
|
b.balancingAlgorithm !== types_1.LoadBalancingAlgorithm.LEAST_SESSIONS);
|
|
60
60
|
const getConfig = (path) => {
|
|
61
61
|
var _a, _b, _c;
|
|
62
|
-
const c =
|
|
62
|
+
const c = common_1.Helper.readConfigFile(path);
|
|
63
63
|
if (!validate(Object.assign({}, c))) {
|
|
64
64
|
return E.left(new errors_1.InvalidSchemaConfiguration(JSON.stringify(validate.errors[0].message)));
|
|
65
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/location",
|
|
3
|
-
"version": "2.0.8-alpha.
|
|
3
|
+
"version": "2.0.8-alpha.14",
|
|
4
4
|
"description": "Creates and maintains a list of routes to all registered endpoints",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@opentelemetry/sdk-trace-base": "^1.0.4",
|
|
36
36
|
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
|
37
37
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
|
38
|
-
"@routr/common": "^2.0.8-alpha.
|
|
39
|
-
"@routr/processor": "^2.0.8-alpha.
|
|
38
|
+
"@routr/common": "^2.0.8-alpha.14",
|
|
39
|
+
"@routr/processor": "^2.0.8-alpha.14",
|
|
40
40
|
"ajv": "^6.12.6",
|
|
41
41
|
"fp-ts": "^2.11.8",
|
|
42
42
|
"redis": "^4.0.4"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"bugs": {
|
|
49
49
|
"url": "https://github.com/fonoster/routr/issues"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "e91abb1fd9bc49ede80dd7fc8a13f97362f4c1f1"
|
|
52
52
|
}
|