Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "filtres", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A simple, safe, ElasticSearch Query compiler", | ||
@@ -5,0 +5,0 @@ "main": "filtres.js", |
@@ -49,5 +49,10 @@ /** | ||
if (queryIsValid) { | ||
try { | ||
return JSON.parse(js.join('')); | ||
} else if (failToQuerystring) { | ||
} catch (err) { | ||
if (debug) console.log(js, err); | ||
queryIsValid = false; | ||
} | ||
if (failToQuerystring) { | ||
return { | ||
@@ -54,0 +59,0 @@ "query" : { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
369985
7262