balderdashy/waterline — pull request #130 by bruce808 (2013-09-28 07:10:53+00:00)
Title: Correct utils.normalize to always properly format the WHERE parameter

utils.normalize did not properly format the WHERE parameter if any of the other options were specified since this caused the formatting of the WHERE parameter to be skipped. For example, if you specified the find options as shown here:

Accounts.find({ type: "free", sort: "id ASC" }, fn);

The WHERE parameter { type: "free" } was not created and the query returned all of the account records. This change corrects the issue.