From e189a39f11951a65b46cc478b7fd90794d41d695 Mon Sep 17 00:00:00 2001 From: Nikolay Kostyurin Date: Mon, 6 Aug 2018 02:07:48 +0200 Subject: [PATCH] feat(core): add helper function to plugin api --- packages/bbob-core/lib/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/bbob-core/lib/index.js b/packages/bbob-core/lib/index.js index d870286..548e88d 100644 --- a/packages/bbob-core/lib/index.js +++ b/packages/bbob-core/lib/index.js @@ -29,7 +29,12 @@ module.exports = function bbob(plugs) { tree.match = match; plugins.forEach((plugin) => { - tree = plugin(tree) || tree; + tree = plugin(tree, { + parse: parseFn, + render: renderFn, + iterate, + match, + }) || tree; }); return {