Comparing version 1.7.8 to 1.7.9
@@ -82,3 +82,3 @@ import { Type } from './type'; | ||
type(expression: string, useCache?: boolean): string; | ||
eval(expression: string, data?: any): any; | ||
eval(expression: string, data?: any, useCache?: boolean): any; | ||
run(expression: string, data?: any, useCache?: boolean): any; | ||
@@ -85,0 +85,0 @@ subscribe(observer: ActionObserver): void; |
@@ -55,3 +55,3 @@ import { Operand, IExpressions, IParameterManager, IBuilder, Parameter, Format, IOperandBuilder, OperatorMetadata, ITypeManager, IModelManager, ActionObserver, FunctionAdditionalInfo, OperatorAdditionalInfo } from './contract'; | ||
*/ | ||
eval(expression: string, data?: any): any; | ||
eval(expression: string, data?: any, useCache?: boolean): any; | ||
run(expression: string, data?: any, useCache?: boolean): any; | ||
@@ -58,0 +58,0 @@ subscribe(observer: ActionObserver): void; |
@@ -140,7 +140,7 @@ "use strict"; | ||
*/ | ||
eval(expression, data) { | ||
eval(expression, data, useCache = true) { | ||
const context = new contract_1.Context(new contract_1.Data(data)); | ||
try { | ||
this.beforeExecutionNotify(expression, context); | ||
const operand = this.build(expression); | ||
const operand = this.build(expression, useCache); | ||
const result = operand.eval(context); | ||
@@ -147,0 +147,0 @@ this.afterExecutionNotify(expression, context, result); |
{ | ||
"name": "3xpr", | ||
"version": "1.7.8", | ||
"version": "1.7.9", | ||
"description": "expressions", | ||
@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@hotmail.com>", |
Sorry, the diff of this file is not supported yet
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
547830