Comparing version 0.3.1 to 0.3.2
@@ -1178,4 +1178,4 @@ // Mingo.js 0.3.1 | ||
if (_.isUndefined(array)) { | ||
return undefined; | ||
if (_.isUndefined(array) || _.isNull(array)) { | ||
return array; | ||
} | ||
@@ -1182,0 +1182,0 @@ if (!_.isArray(expr)) { |
{ | ||
"name": "mingo", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "JavaScript implementation of MongoDB query language", | ||
@@ -11,3 +11,3 @@ "main": "mingo.js", | ||
"test": "tape test/*.js", | ||
"build": "uglifyjs mingo.js -c -m -o mingo-min.js" | ||
"build": "uglifyjs mingo.js -c -m -o mingo.min.js" | ||
}, | ||
@@ -18,3 +18,3 @@ "repository": { | ||
}, | ||
"files": ["mingo.js", "mingo-min.js", "README.md", "LICENSE"], | ||
"files": ["mingo.js", "mingo.min.js", "README.md", "LICENSE"], | ||
"dependencies": { | ||
@@ -21,0 +21,0 @@ "underscore": ">=1.5.2" |
@@ -19,6 +19,7 @@ # Mingo | ||
<script type="text/javascript" src="./underscore-min.js"></script> | ||
<script type="text/javascript" src="./mingo-min.js"></script> | ||
<script type="text/javascript" src="./mingo.min.js"></script> | ||
``` | ||
## Features | ||
- Supports Dot Notation for both '_<array>.<index>_' and '_<document>.<field>_' selectors | ||
- Comparisons Operators ($gt, $gte, $lt, $lte, $ne, $nin, $in) | ||
@@ -36,3 +37,3 @@ - Logical Operators ($and, $or, $nor, $not) | ||
- Projection Operators ($elemMatch, $slice) | ||
- JSON stream filtering and projection. ***NodeJS only*** | ||
- JSON stream filtering and projection. *_NodeJS only_* | ||
@@ -166,3 +167,3 @@ ## Usage | ||
- ```remove(collection)``` Remove matching documents from the collection and return the remainder | ||
- ```stream()``` Return a ```Mingo.Stream``` to filter and transform JSON objects from a readable stream. **NodeJS only** | ||
- ```stream()``` Return a ```Mingo.Stream``` to filter and transform JSON objects from a readable stream. *_NodeJS only_* | ||
@@ -189,3 +190,3 @@ ### Mingo.Aggregator(expressions) | ||
### Mingo.Stream(query, [options]) - NodeJS only | ||
### Mingo.Stream(query, [options]) - _NodeJS only_ | ||
A Transform stream that can be piped from/to any readable/writable JSON stream. | ||
@@ -192,0 +193,0 @@ |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
67861
209