mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat(core): Add Tournament as the new default expression evaluator (#6964)
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
14
packages/cli/src/ExpressionEvalator.ts
Normal file
14
packages/cli/src/ExpressionEvalator.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import config from '@/config';
|
||||
import { ErrorReporterProxy, ExpressionEvaluatorProxy } from 'n8n-workflow';
|
||||
|
||||
export const initExpressionEvaluator = () => {
|
||||
ExpressionEvaluatorProxy.setEvaluator(config.getEnv('expression.evaluator'));
|
||||
ExpressionEvaluatorProxy.setDifferEnabled(config.getEnv('expression.reportDifference'));
|
||||
ExpressionEvaluatorProxy.setDiffReporter((expr) => {
|
||||
ErrorReporterProxy.warn('Expression difference', {
|
||||
extra: {
|
||||
expression: expr,
|
||||
},
|
||||
});
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user