Comparing version 0.0.4 to 0.0.5
@@ -1,5 +0,5 @@ | ||
import { ExecutionContext, Expression, Value, Value4 } from './ts'; | ||
export declare type EvaluateExpression = (context: ExecutionContext) => Value; | ||
export declare const compileOperand: (operand: Value4) => EvaluateExpression; | ||
export declare const compileExpression: (exp: Expression) => EvaluateExpression; | ||
import { ExecutionContext, Expression, Value, Value3 } from './ts'; | ||
export declare type EvaluateExpression<Context extends ExecutionContext = ExecutionContext> = (context: Context) => Value; | ||
export declare const compileOperand: (operand: Value3) => EvaluateExpression<ExecutionContext>; | ||
export declare const compileExpression: <Context extends ExecutionContext = ExecutionContext>(exp: Expression) => EvaluateExpression<Context>; | ||
//# sourceMappingURL=compileExpression.d.ts.map |
@@ -13,5 +13,3 @@ "use strict"; | ||
var getV2_1 = exports.compileOperand(exp[2]); | ||
return function (context) { | ||
return getV1_1(context) === getV2_1(context); | ||
}; | ||
return function (context) { return getV1_1(context) === getV2_1(context); }; | ||
} | ||
@@ -21,5 +19,3 @@ case operator_1.NotEqual: { | ||
var getV2_2 = exports.compileOperand(exp[2]); | ||
return function (context) { | ||
return getV1_2(context) !== getV2_2(context); | ||
}; | ||
return function (context) { return getV1_2(context) !== getV2_2(context); }; | ||
} | ||
@@ -215,3 +211,14 @@ case operator_1.GreaterThan: { | ||
var name_1 = exp[1]; | ||
return function (context) { return context[name_1]; }; | ||
return exp.length < 2 | ||
? function (context) { return context[name_1]; } | ||
: function (context) { | ||
var val = context[name_1]; | ||
for (var i = 2, len = exp.length; i < len; i += 1) { | ||
if (val == null) { | ||
return null; | ||
} | ||
val = val[exp[i]]; | ||
} | ||
return val; | ||
}; | ||
} | ||
@@ -218,0 +225,0 @@ } |
@@ -1,4 +0,4 @@ | ||
import { ExecutionContext, Expression, Value, Value4 } from './ts'; | ||
export declare const evaluateOperand: (operand: Value4, context: ExecutionContext) => Value; | ||
export declare const evaluateExpression: (exp: Expression, context: ExecutionContext) => Value; | ||
import { ExecutionContext, Expression, Value, Value3 } from './ts'; | ||
export declare const evaluateOperand: (operand: Value3, context: ExecutionContext) => Value; | ||
export declare const evaluateExpression: <Context extends ExecutionContext = ExecutionContext>(exp: Expression, context: Context) => Value; | ||
//# sourceMappingURL=evaluateExpression.d.ts.map |
@@ -167,3 +167,10 @@ "use strict"; | ||
case operator_1.Var: { | ||
return context[exp[1]]; | ||
var val = context[exp[1]]; | ||
for (var i = 2, len = exp.length; i < len; i += 1) { | ||
if (val == null) { | ||
return null; | ||
} | ||
val = val[exp[i]]; | ||
} | ||
return val; | ||
} | ||
@@ -170,0 +177,0 @@ } |
@@ -6,3 +6,3 @@ export { isExpression, isOperator } from './common'; | ||
export { Operator, OperatorName, OperatorToName } from './operatorMap'; | ||
export { ExecutionContext, Expression, Expression1, Expression2, Expression3, Value, Value2, Value3, Value4, } from './ts'; | ||
export { ExecutionContext, Expression, Expression1, Expression2, Value, Value2, Value3, } from './ts'; | ||
//# sourceMappingURL=index.d.ts.map |
import { Add, And, Divide, Equal, GreaterThan, GreaterThanOrEqual, IfThenElse, In, LessThan, LessThanOrEqual, Modulo, Multiply, Not, NotEqual, NotIn, Or, Subtract, Var } from './operator'; | ||
export declare type Value = null | boolean | number | string | Array<null | boolean | number | string>; | ||
export declare type Expression1 = [Equal, Value, Value] | [NotEqual, Value, Value] | [GreaterThan, Value, Value] | [GreaterThanOrEqual, Value, Value] | [LessThan, Value, Value] | [LessThanOrEqual, Value, Value] | [Add, Value, Value] | [Subtract, Value, Value] | [Multiply, Value, Value] | [Divide, Value, Value] | [Modulo, Value, Value] | [Not, Value] | [And, ...Value[]] | [Or, ...Value[]] | [IfThenElse, Value, Value, Value] | [In, Value, Value[]] | [NotIn, Value, Value[]] | [Var, string]; | ||
export declare type Expression1 = [Equal, Value, Value] | [NotEqual, Value, Value] | [GreaterThan, Value, Value] | [GreaterThanOrEqual, Value, Value] | [LessThan, Value, Value] | [LessThanOrEqual, Value, Value] | [Add, Value, Value] | [Subtract, Value, Value] | [Multiply, Value, Value] | [Divide, Value, Value] | [Modulo, Value, Value] | [Not, Value] | [And, ...Value[]] | [Or, ...Value[]] | [IfThenElse, Value, Value, Value] | [In, Value, Value[]] | [NotIn, Value, Value[]] | [Var, ...string[]]; | ||
export declare type Value2 = Value | Expression1; | ||
export declare type Expression2 = [Equal, Value2, Value2] | [NotEqual, Value2, Value2] | [GreaterThan, Value2, Value2] | [GreaterThanOrEqual, Value2, Value2] | [LessThan, Value2, Value2] | [LessThanOrEqual, Value2, Value2] | [Add, Value2, Value2] | [Subtract, Value2, Value2] | [Multiply, Value2, Value2] | [Divide, Value2, Value2] | [Modulo, Value2, Value2] | [Not, Value2] | [And, ...Value2[]] | [Or, ...Value2[]] | [IfThenElse, Value2, Value2, Value2] | [In, Value2, Value2[]] | [NotIn, Value2, Value2[]] | [Var, string]; | ||
export declare type Expression2 = [Equal, Value2, Value2] | [NotEqual, Value2, Value2] | [GreaterThan, Value2, Value2] | [GreaterThanOrEqual, Value2, Value2] | [LessThan, Value2, Value2] | [LessThanOrEqual, Value2, Value2] | [Add, Value2, Value2] | [Subtract, Value2, Value2] | [Multiply, Value2, Value2] | [Divide, Value2, Value2] | [Modulo, Value2, Value2] | [Not, Value2] | [And, ...Value2[]] | [Or, ...Value2[]] | [IfThenElse, Value2, Value2, Value2] | [In, Value2, Value2[]] | [NotIn, Value2, Value2[]] | [Var, ...string[]]; | ||
export declare type Value3 = Value | Expression1 | Value2 | Expression2; | ||
export declare type Expression3 = [Equal, Value3, Value3] | [NotEqual, Value3, Value3] | [GreaterThan, Value3, Value3] | [GreaterThanOrEqual, Value3, Value3] | [LessThan, Value3, Value3] | [LessThanOrEqual, Value3, Value3] | [Add, Value3, Value3] | [Subtract, Value3, Value3] | [Multiply, Value3, Value3] | [Divide, Value3, Value3] | [Modulo, Value3, Value3] | [Not, Value3] | [And, ...Value3[]] | [Or, ...Value3[]] | [IfThenElse, Value3, Value3, Value3] | [In, Value3, Value3[]] | [NotIn, Value3, Value3[]] | [Var, string]; | ||
export declare type Value4 = Value | Expression1 | Value2 | Expression2 | Value3 | Expression3; | ||
export declare type Expression = [Equal, Value4, Value4] | [NotEqual, Value4, Value4] | [GreaterThan, Value4, Value4] | [GreaterThanOrEqual, Value4, Value4] | [LessThan, Value4, Value4] | [LessThanOrEqual, Value4, Value4] | [Add, Value4, Value4] | [Subtract, Value4, Value4] | [Multiply, Value4, Value4] | [Divide, Value4, Value4] | [Modulo, Value4, Value4] | [Not, Value4] | [And, ...Value4[]] | [Or, ...Value4[]] | [IfThenElse, Value4, Value4, Value4] | [In, Value4, Value4[]] | [NotIn, Value4, Value4[]] | [Var, string]; | ||
export declare type Expression = [Equal, Value3, Value3] | [NotEqual, Value3, Value3] | [GreaterThan, Value3, Value3] | [GreaterThanOrEqual, Value3, Value3] | [LessThan, Value3, Value3] | [LessThanOrEqual, Value3, Value3] | [Add, Value3, Value3] | [Subtract, Value3, Value3] | [Multiply, Value3, Value3] | [Divide, Value3, Value3] | [Modulo, Value3, Value3] | [Not, Value3] | [And, ...Value3[]] | [Or, ...Value3[]] | [IfThenElse, Value3, Value3, Value3] | [In, Value3, Value3[]] | [NotIn, Value3, Value3[]] | [Var, ...string[]]; | ||
export interface ExecutionContext { | ||
[key: string]: Value; | ||
[key: string]: any; | ||
} | ||
//# sourceMappingURL=ts.d.ts.map |
@@ -1,5 +0,5 @@ | ||
import { ExecutionContext, Expression, Value, Value4 } from './ts'; | ||
export declare type EvaluateExpression = (context: ExecutionContext) => Value; | ||
export declare const compileOperand: (operand: Value4) => EvaluateExpression; | ||
export declare const compileExpression: (exp: Expression) => EvaluateExpression; | ||
import { ExecutionContext, Expression, Value, Value3 } from './ts'; | ||
export declare type EvaluateExpression<Context extends ExecutionContext = ExecutionContext> = (context: Context) => Value; | ||
export declare const compileOperand: (operand: Value3) => EvaluateExpression<ExecutionContext>; | ||
export declare const compileExpression: <Context extends ExecutionContext = ExecutionContext>(exp: Expression) => EvaluateExpression<Context>; | ||
//# sourceMappingURL=compileExpression.d.ts.map |
@@ -205,3 +205,14 @@ "use strict"; | ||
const name = exp[1]; | ||
return (context) => context[name]; | ||
return exp.length < 2 | ||
? (context) => context[name] | ||
: (context) => { | ||
let val = context[name]; | ||
for (let i = 2, len = exp.length; i < len; i += 1) { | ||
if (val == null) { | ||
return null; | ||
} | ||
val = val[exp[i]]; | ||
} | ||
return val; | ||
}; | ||
} | ||
@@ -208,0 +219,0 @@ } |
@@ -1,4 +0,4 @@ | ||
import { ExecutionContext, Expression, Value, Value4 } from './ts'; | ||
export declare const evaluateOperand: (operand: Value4, context: ExecutionContext) => Value; | ||
export declare const evaluateExpression: (exp: Expression, context: ExecutionContext) => Value; | ||
import { ExecutionContext, Expression, Value, Value3 } from './ts'; | ||
export declare const evaluateOperand: (operand: Value3, context: ExecutionContext) => Value; | ||
export declare const evaluateExpression: <Context extends ExecutionContext = ExecutionContext>(exp: Expression, context: Context) => Value; | ||
//# sourceMappingURL=evaluateExpression.d.ts.map |
@@ -165,3 +165,10 @@ "use strict"; | ||
case operator_1.Var: { | ||
return context[exp[1]]; | ||
let val = context[exp[1]]; | ||
for (let i = 2, len = exp.length; i < len; i += 1) { | ||
if (val == null) { | ||
return null; | ||
} | ||
val = val[exp[i]]; | ||
} | ||
return val; | ||
} | ||
@@ -168,0 +175,0 @@ } |
@@ -6,3 +6,3 @@ export { isExpression, isOperator } from './common'; | ||
export { Operator, OperatorName, OperatorToName } from './operatorMap'; | ||
export { ExecutionContext, Expression, Expression1, Expression2, Expression3, Value, Value2, Value3, Value4, } from './ts'; | ||
export { ExecutionContext, Expression, Expression1, Expression2, Value, Value2, Value3, } from './ts'; | ||
//# sourceMappingURL=index.d.ts.map |
import { Add, And, Divide, Equal, GreaterThan, GreaterThanOrEqual, IfThenElse, In, LessThan, LessThanOrEqual, Modulo, Multiply, Not, NotEqual, NotIn, Or, Subtract, Var } from './operator'; | ||
export declare type Value = null | boolean | number | string | Array<null | boolean | number | string>; | ||
export declare type Expression1 = [Equal, Value, Value] | [NotEqual, Value, Value] | [GreaterThan, Value, Value] | [GreaterThanOrEqual, Value, Value] | [LessThan, Value, Value] | [LessThanOrEqual, Value, Value] | [Add, Value, Value] | [Subtract, Value, Value] | [Multiply, Value, Value] | [Divide, Value, Value] | [Modulo, Value, Value] | [Not, Value] | [And, ...Value[]] | [Or, ...Value[]] | [IfThenElse, Value, Value, Value] | [In, Value, Value[]] | [NotIn, Value, Value[]] | [Var, string]; | ||
export declare type Expression1 = [Equal, Value, Value] | [NotEqual, Value, Value] | [GreaterThan, Value, Value] | [GreaterThanOrEqual, Value, Value] | [LessThan, Value, Value] | [LessThanOrEqual, Value, Value] | [Add, Value, Value] | [Subtract, Value, Value] | [Multiply, Value, Value] | [Divide, Value, Value] | [Modulo, Value, Value] | [Not, Value] | [And, ...Value[]] | [Or, ...Value[]] | [IfThenElse, Value, Value, Value] | [In, Value, Value[]] | [NotIn, Value, Value[]] | [Var, ...string[]]; | ||
export declare type Value2 = Value | Expression1; | ||
export declare type Expression2 = [Equal, Value2, Value2] | [NotEqual, Value2, Value2] | [GreaterThan, Value2, Value2] | [GreaterThanOrEqual, Value2, Value2] | [LessThan, Value2, Value2] | [LessThanOrEqual, Value2, Value2] | [Add, Value2, Value2] | [Subtract, Value2, Value2] | [Multiply, Value2, Value2] | [Divide, Value2, Value2] | [Modulo, Value2, Value2] | [Not, Value2] | [And, ...Value2[]] | [Or, ...Value2[]] | [IfThenElse, Value2, Value2, Value2] | [In, Value2, Value2[]] | [NotIn, Value2, Value2[]] | [Var, string]; | ||
export declare type Expression2 = [Equal, Value2, Value2] | [NotEqual, Value2, Value2] | [GreaterThan, Value2, Value2] | [GreaterThanOrEqual, Value2, Value2] | [LessThan, Value2, Value2] | [LessThanOrEqual, Value2, Value2] | [Add, Value2, Value2] | [Subtract, Value2, Value2] | [Multiply, Value2, Value2] | [Divide, Value2, Value2] | [Modulo, Value2, Value2] | [Not, Value2] | [And, ...Value2[]] | [Or, ...Value2[]] | [IfThenElse, Value2, Value2, Value2] | [In, Value2, Value2[]] | [NotIn, Value2, Value2[]] | [Var, ...string[]]; | ||
export declare type Value3 = Value | Expression1 | Value2 | Expression2; | ||
export declare type Expression3 = [Equal, Value3, Value3] | [NotEqual, Value3, Value3] | [GreaterThan, Value3, Value3] | [GreaterThanOrEqual, Value3, Value3] | [LessThan, Value3, Value3] | [LessThanOrEqual, Value3, Value3] | [Add, Value3, Value3] | [Subtract, Value3, Value3] | [Multiply, Value3, Value3] | [Divide, Value3, Value3] | [Modulo, Value3, Value3] | [Not, Value3] | [And, ...Value3[]] | [Or, ...Value3[]] | [IfThenElse, Value3, Value3, Value3] | [In, Value3, Value3[]] | [NotIn, Value3, Value3[]] | [Var, string]; | ||
export declare type Value4 = Value | Expression1 | Value2 | Expression2 | Value3 | Expression3; | ||
export declare type Expression = [Equal, Value4, Value4] | [NotEqual, Value4, Value4] | [GreaterThan, Value4, Value4] | [GreaterThanOrEqual, Value4, Value4] | [LessThan, Value4, Value4] | [LessThanOrEqual, Value4, Value4] | [Add, Value4, Value4] | [Subtract, Value4, Value4] | [Multiply, Value4, Value4] | [Divide, Value4, Value4] | [Modulo, Value4, Value4] | [Not, Value4] | [And, ...Value4[]] | [Or, ...Value4[]] | [IfThenElse, Value4, Value4, Value4] | [In, Value4, Value4[]] | [NotIn, Value4, Value4[]] | [Var, string]; | ||
export declare type Expression = [Equal, Value3, Value3] | [NotEqual, Value3, Value3] | [GreaterThan, Value3, Value3] | [GreaterThanOrEqual, Value3, Value3] | [LessThan, Value3, Value3] | [LessThanOrEqual, Value3, Value3] | [Add, Value3, Value3] | [Subtract, Value3, Value3] | [Multiply, Value3, Value3] | [Divide, Value3, Value3] | [Modulo, Value3, Value3] | [Not, Value3] | [And, ...Value3[]] | [Or, ...Value3[]] | [IfThenElse, Value3, Value3, Value3] | [In, Value3, Value3[]] | [NotIn, Value3, Value3[]] | [Var, ...string[]]; | ||
export interface ExecutionContext { | ||
[key: string]: Value; | ||
[key: string]: any; | ||
} | ||
//# sourceMappingURL=ts.d.ts.map |
@@ -1,5 +0,5 @@ | ||
import { ExecutionContext, Expression, Value, Value4 } from './ts'; | ||
export declare type EvaluateExpression = (context: ExecutionContext) => Value; | ||
export declare const compileOperand: (operand: Value4) => EvaluateExpression; | ||
export declare const compileExpression: (exp: Expression) => EvaluateExpression; | ||
import { ExecutionContext, Expression, Value, Value3 } from './ts'; | ||
export declare type EvaluateExpression<Context extends ExecutionContext = ExecutionContext> = (context: Context) => Value; | ||
export declare const compileOperand: (operand: Value3) => EvaluateExpression<ExecutionContext>; | ||
export declare const compileExpression: <Context extends ExecutionContext = ExecutionContext>(exp: Expression) => EvaluateExpression<Context>; | ||
//# sourceMappingURL=compileExpression.d.ts.map |
@@ -203,3 +203,14 @@ import { isExpression } from './common'; | ||
const name = exp[1]; | ||
return (context) => context[name]; | ||
return exp.length < 2 | ||
? (context) => context[name] | ||
: (context) => { | ||
let val = context[name]; | ||
for (let i = 2, len = exp.length; i < len; i += 1) { | ||
if (val == null) { | ||
return null; | ||
} | ||
val = val[exp[i]]; | ||
} | ||
return val; | ||
}; | ||
} | ||
@@ -206,0 +217,0 @@ } |
@@ -1,4 +0,4 @@ | ||
import { ExecutionContext, Expression, Value, Value4 } from './ts'; | ||
export declare const evaluateOperand: (operand: Value4, context: ExecutionContext) => Value; | ||
export declare const evaluateExpression: (exp: Expression, context: ExecutionContext) => Value; | ||
import { ExecutionContext, Expression, Value, Value3 } from './ts'; | ||
export declare const evaluateOperand: (operand: Value3, context: ExecutionContext) => Value; | ||
export declare const evaluateExpression: <Context extends ExecutionContext = ExecutionContext>(exp: Expression, context: Context) => Value; | ||
//# sourceMappingURL=evaluateExpression.d.ts.map |
@@ -163,3 +163,10 @@ import { isExpression } from './common'; | ||
case Var: { | ||
return context[exp[1]]; | ||
let val = context[exp[1]]; | ||
for (let i = 2, len = exp.length; i < len; i += 1) { | ||
if (val == null) { | ||
return null; | ||
} | ||
val = val[exp[i]]; | ||
} | ||
return val; | ||
} | ||
@@ -166,0 +173,0 @@ } |
@@ -6,3 +6,3 @@ export { isExpression, isOperator } from './common'; | ||
export { Operator, OperatorName, OperatorToName } from './operatorMap'; | ||
export { ExecutionContext, Expression, Expression1, Expression2, Expression3, Value, Value2, Value3, Value4, } from './ts'; | ||
export { ExecutionContext, Expression, Expression1, Expression2, Value, Value2, Value3, } from './ts'; | ||
//# sourceMappingURL=index.d.ts.map |
import { Add, And, Divide, Equal, GreaterThan, GreaterThanOrEqual, IfThenElse, In, LessThan, LessThanOrEqual, Modulo, Multiply, Not, NotEqual, NotIn, Or, Subtract, Var } from './operator'; | ||
export declare type Value = null | boolean | number | string | Array<null | boolean | number | string>; | ||
export declare type Expression1 = [Equal, Value, Value] | [NotEqual, Value, Value] | [GreaterThan, Value, Value] | [GreaterThanOrEqual, Value, Value] | [LessThan, Value, Value] | [LessThanOrEqual, Value, Value] | [Add, Value, Value] | [Subtract, Value, Value] | [Multiply, Value, Value] | [Divide, Value, Value] | [Modulo, Value, Value] | [Not, Value] | [And, ...Value[]] | [Or, ...Value[]] | [IfThenElse, Value, Value, Value] | [In, Value, Value[]] | [NotIn, Value, Value[]] | [Var, string]; | ||
export declare type Expression1 = [Equal, Value, Value] | [NotEqual, Value, Value] | [GreaterThan, Value, Value] | [GreaterThanOrEqual, Value, Value] | [LessThan, Value, Value] | [LessThanOrEqual, Value, Value] | [Add, Value, Value] | [Subtract, Value, Value] | [Multiply, Value, Value] | [Divide, Value, Value] | [Modulo, Value, Value] | [Not, Value] | [And, ...Value[]] | [Or, ...Value[]] | [IfThenElse, Value, Value, Value] | [In, Value, Value[]] | [NotIn, Value, Value[]] | [Var, ...string[]]; | ||
export declare type Value2 = Value | Expression1; | ||
export declare type Expression2 = [Equal, Value2, Value2] | [NotEqual, Value2, Value2] | [GreaterThan, Value2, Value2] | [GreaterThanOrEqual, Value2, Value2] | [LessThan, Value2, Value2] | [LessThanOrEqual, Value2, Value2] | [Add, Value2, Value2] | [Subtract, Value2, Value2] | [Multiply, Value2, Value2] | [Divide, Value2, Value2] | [Modulo, Value2, Value2] | [Not, Value2] | [And, ...Value2[]] | [Or, ...Value2[]] | [IfThenElse, Value2, Value2, Value2] | [In, Value2, Value2[]] | [NotIn, Value2, Value2[]] | [Var, string]; | ||
export declare type Expression2 = [Equal, Value2, Value2] | [NotEqual, Value2, Value2] | [GreaterThan, Value2, Value2] | [GreaterThanOrEqual, Value2, Value2] | [LessThan, Value2, Value2] | [LessThanOrEqual, Value2, Value2] | [Add, Value2, Value2] | [Subtract, Value2, Value2] | [Multiply, Value2, Value2] | [Divide, Value2, Value2] | [Modulo, Value2, Value2] | [Not, Value2] | [And, ...Value2[]] | [Or, ...Value2[]] | [IfThenElse, Value2, Value2, Value2] | [In, Value2, Value2[]] | [NotIn, Value2, Value2[]] | [Var, ...string[]]; | ||
export declare type Value3 = Value | Expression1 | Value2 | Expression2; | ||
export declare type Expression3 = [Equal, Value3, Value3] | [NotEqual, Value3, Value3] | [GreaterThan, Value3, Value3] | [GreaterThanOrEqual, Value3, Value3] | [LessThan, Value3, Value3] | [LessThanOrEqual, Value3, Value3] | [Add, Value3, Value3] | [Subtract, Value3, Value3] | [Multiply, Value3, Value3] | [Divide, Value3, Value3] | [Modulo, Value3, Value3] | [Not, Value3] | [And, ...Value3[]] | [Or, ...Value3[]] | [IfThenElse, Value3, Value3, Value3] | [In, Value3, Value3[]] | [NotIn, Value3, Value3[]] | [Var, string]; | ||
export declare type Value4 = Value | Expression1 | Value2 | Expression2 | Value3 | Expression3; | ||
export declare type Expression = [Equal, Value4, Value4] | [NotEqual, Value4, Value4] | [GreaterThan, Value4, Value4] | [GreaterThanOrEqual, Value4, Value4] | [LessThan, Value4, Value4] | [LessThanOrEqual, Value4, Value4] | [Add, Value4, Value4] | [Subtract, Value4, Value4] | [Multiply, Value4, Value4] | [Divide, Value4, Value4] | [Modulo, Value4, Value4] | [Not, Value4] | [And, ...Value4[]] | [Or, ...Value4[]] | [IfThenElse, Value4, Value4, Value4] | [In, Value4, Value4[]] | [NotIn, Value4, Value4[]] | [Var, string]; | ||
export declare type Expression = [Equal, Value3, Value3] | [NotEqual, Value3, Value3] | [GreaterThan, Value3, Value3] | [GreaterThanOrEqual, Value3, Value3] | [LessThan, Value3, Value3] | [LessThanOrEqual, Value3, Value3] | [Add, Value3, Value3] | [Subtract, Value3, Value3] | [Multiply, Value3, Value3] | [Divide, Value3, Value3] | [Modulo, Value3, Value3] | [Not, Value3] | [And, ...Value3[]] | [Or, ...Value3[]] | [IfThenElse, Value3, Value3, Value3] | [In, Value3, Value3[]] | [NotIn, Value3, Value3[]] | [Var, ...string[]]; | ||
export interface ExecutionContext { | ||
[key: string]: Value; | ||
[key: string]: any; | ||
} | ||
//# sourceMappingURL=ts.d.ts.map |
{ | ||
"name": "expjson", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Super lightweight, fast, and optimized evaluate-able and compilable expressions in JSON written in TypeScript", | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
"@types/jest": "^24.0.15", | ||
"@types/node": "^12.6.2", | ||
"@types/node": "^12.6.9", | ||
"coveralls": "^3.0.4", | ||
@@ -59,0 +59,0 @@ "jest": "^24.8.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
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
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
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
Sorry, the diff of this file is not supported yet
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
1617
146844