unleash-client
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -1,1 +0,1 @@ | ||
{ "name": "unleash-client-node", "version": "6.1.0", "sdkVersion": "unleash-client-node:6.1.0" } | ||
{ "name": "unleash-client-node", "version": "6.1.1", "sdkVersion": "unleash-client-node:6.1.1" } |
@@ -21,4 +21,5 @@ "use strict"; | ||
function resolveContextValue(context, field) { | ||
var _a, _b, _c, _d; | ||
return (_b = (_a = context[field]) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : (_d = (_c = context.properties) === null || _c === void 0 ? void 0 : _c[field]) === null || _d === void 0 ? void 0 : _d.toString(); | ||
var _a, _b; | ||
const contextValue = (_a = context[field]) !== null && _a !== void 0 ? _a : (_b = context.properties) === null || _b === void 0 ? void 0 : _b[field]; | ||
return contextValue !== undefined && contextValue !== null ? String(contextValue) : undefined; | ||
} | ||
@@ -25,0 +26,0 @@ function safeName(str = '') { |
@@ -60,6 +60,9 @@ "use strict"; | ||
const contextValue = (0, helpers_1.resolveContextValue)(context, contextName); | ||
if (!contextValue || !isStrictSemver(contextValue)) { | ||
if (!contextValue) { | ||
return false; | ||
} | ||
try { | ||
if (!isStrictSemver(contextValue)) { | ||
return false; | ||
} | ||
if (operator === Operator.SEMVER_EQ) { | ||
@@ -66,0 +69,0 @@ return (0, semver_1.eq)(contextValue, value); |
{ | ||
"name": "unleash-client", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Unleash Client for Node", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.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
Sorry, the diff of this file is not supported yet
233902
2945