Comparing version 0.2.0 to 0.2.1
0.2.1 / 2013-07-08 | ||
================== | ||
* select no longer accepts arrays as parameters [ebensing](https://github.com/ebensing) | ||
0.2.0 / 2013-07-05 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -1038,2 +1038,6 @@ 'use strict'; | ||
if (arguments.length !== 1) { | ||
throw new Error("Invalid select: select only takes 1 argument"); | ||
} | ||
this._validate('select'); | ||
@@ -1044,3 +1048,3 @@ | ||
if ('string' == type || 'object' == type && 'number' == typeof arg.length) { | ||
if ('string' == type || 'object' == type && 'number' == typeof arg.length && !Array.isArray(arg)) { | ||
if ('string' == type) | ||
@@ -1060,3 +1064,3 @@ arg = arg.split(/\s+/); | ||
if (utils.isObject(arg)) { | ||
if (utils.isObject(arg) && !Array.isArray(arg)) { | ||
var keys = utils.keys(arg); | ||
@@ -1069,3 +1073,3 @@ for (var i = 0; i < keys.length; ++i) { | ||
throw new TypeError('Invalid select() argument. Must be string, object, or array.'); | ||
throw new TypeError('Invalid select() argument. Must be string or object.'); | ||
} | ||
@@ -1072,0 +1076,0 @@ |
{ | ||
"name": "mquery", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Expressive query building for MongoDB", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171307
4695