Skip to content

Commit

Permalink
Building for dist
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgtonge committed Aug 2, 2016
1 parent 35cf908 commit 7f8e33d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
10 changes: 10 additions & 0 deletions lib/underscore-query.amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ parseParamType = function(query) {
o.type = "$" + (paramType.toLowerCase());
o.value = queryParam;
break;
case "Array":
if (utils.includes(utils.compoundKeys, key)) {
o.type = key;
o.value = parseSubQuery(queryParam, key);
o.key = null;
} else {
o.type = "$equal";
o.value = queryParam;
}
break;
case "Object":
size = utils.keys(queryParam).length;
if (utils.includes(utils.compoundKeys, key)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/underscore-query.amd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions lib/underscore-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ The aim of the project is to provide a simple, well tested, way of filtering dat
o.type = "$" + (paramType.toLowerCase());
o.value = queryParam;
break;
case "Array":
if (utils.includes(utils.compoundKeys, key)) {
o.type = key;
o.value = parseSubQuery(queryParam, key);
o.key = null;
} else {
o.type = "$equal";
o.value = queryParam;
}
break;
case "Object":
size = utils.keys(queryParam).length;
if (utils.includes(utils.compoundKeys, key)) {
Expand Down
Loading

0 comments on commit 7f8e33d

Please sign in to comment.