Comparing version 0.0.2 to 0.0.3
@@ -73,3 +73,3 @@ (function (root) { | ||
build: function (token) { | ||
build: function (token, options) { | ||
var type = token.type; | ||
@@ -79,5 +79,5 @@ var builder = jseb.builder[type]; | ||
var postprocessor = jseb.postprocessor[type]; | ||
var result = preprocessor && preprocessor(token) || token; | ||
var result = preprocessor && preprocessor(token, options) || token; | ||
result = builder(result); | ||
return postprocessor && postprocessor(result) || result; | ||
return postprocessor && postprocessor(result, options) || result; | ||
}, | ||
@@ -84,0 +84,0 @@ |
{ | ||
"name": "jseb", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "JavaScript Expression Builder which build JS expression from jsep parsed AST tokens.", | ||
@@ -5,0 +5,0 @@ "keywords": ["expression", "builder", "ast"], |
4463