ts-expression-evaluator
Advanced tools
Comparing version 1.3.7 to 1.3.8
@@ -96,2 +96,5 @@ "use strict"; | ||
} | ||
if (t.isMemberExpression(ast.property)) { | ||
return obj[Evaluator_1.evaluate(ast.property, context)]; | ||
} | ||
if (t.isNumericLiteral(ast.property) || t.isStringLiteral(ast.property)) { | ||
@@ -98,0 +101,0 @@ return obj[ast.property.value]; |
@@ -87,2 +87,5 @@ import * as t from './t'; | ||
} | ||
if (t.isMemberExpression(ast.property)) { | ||
return obj[evaluate(ast.property, context)]; | ||
} | ||
if (t.isNumericLiteral(ast.property) || t.isStringLiteral(ast.property)) { | ||
@@ -89,0 +92,0 @@ return obj[ast.property.value]; |
{ | ||
"name": "ts-expression-evaluator", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"description": "Context-based expression parse and evaluator.", | ||
@@ -102,2 +102,2 @@ "main": "build/main/index.js", | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
192989
518