odata-query
Advanced tools
Comparing version 3.3.2 to 3.3.3
@@ -168,10 +168,8 @@ 'use strict'; | ||
}).join(' or ')); | ||
} else if (BOOLEAN_FUNCTIONS.indexOf(op) !== -1) { | ||
// Simple boolean functions (startswith, endswith, contains) | ||
result.push(op + '(' + propName + ',' + handleValue(value[op]) + ')'); | ||
} else { | ||
if (BOOLEAN_FUNCTIONS.indexOf(op) !== -1) { | ||
// Simple boolean functions (startswith, endswith, contains) | ||
result.push(op + '(' + propName + ', ' + handleValue(value[op]) + ')'); | ||
} else { | ||
// Nested property | ||
result.push(propName + '/' + buildFilter(value)); | ||
} | ||
// Nested property | ||
result.push(buildFilter(value, propName)); | ||
} | ||
@@ -178,0 +176,0 @@ }); |
{ | ||
"name": "odata-query", | ||
"version": "3.3.2", | ||
"version": "3.3.3", | ||
"author": "Sean Lynch <techniq35@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -172,3 +172,3 @@ # odata-query | ||
buildQuery({ filter }) | ||
=> "$filter=contains(PropName, 'foo')" | ||
=> "$filter=contains(PropName,'foo')" | ||
``` | ||
@@ -175,0 +175,0 @@ Supported operators: `startswith`, `endswith`, `contains` |
20846
234