json-logic-js icon indicating copy to clipboard operation
json-logic-js copied to clipboard

Feature/ Controlled Execution

Open Sykander opened this issue 1 year ago • 0 comments

Changes:

  • Added controlledExecution option on add_operation function
  • Added unit tests controlledExecution

Description

This PR adds functionality so that when registering a custom operator with the add_operator method, you can now pass in a third param options with the property controlledExecution. This option allows you to specify how your operator should be treated during evaluation and also prevents all nested parameters to the operator from being pre-evaluated.

Links https://github.com/jwadhams/json-logic-js/issues/116

Sykander avatar Nov 17 '22 14:11 Sykander