northwesternmutual/regent

Explain on one-sided rules throws error

Closed this issue · 2 comments

const rule = {
  left: '@test',
  fn: 'empty'
}

const data = {
  test: 'thing'
}

console.log(explain(rule, data)) // throws regent.explain must be called with a regent rule​​
console.log(evaluate(rule, data)) // executes fine

Working on this now...

Fixed in v2.0.3