build-query-as-object
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -20,6 +20,4 @@ const Query = require('./query'); | ||
if (entry.id === 'id') { | ||
query.oneOf('id', entry.value); | ||
} else if (entry.id === 'email') { | ||
query.similar('email', entry.value); | ||
if (entry.id === 'id' || entry.id === 'email') { | ||
query.similar(entry.id, entry.value); | ||
} else if (typeof entry.value === 'object' && | ||
@@ -26,0 +24,0 @@ (isNotUndefined(entry.value.startInterval) || |
{ | ||
"name": "build-query-as-object", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Build query as an object. Somewhat similar to mongodb query language or objection-find, but a bit different.", | ||
@@ -5,0 +5,0 @@ "main": "lib/builder.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3024
3
78
1