Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mingo

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mingo - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

mingo.min.js

4

mingo.js

@@ -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 '_&lt;array&gt;.&lt;index&gt;_' and '_&lt;document&gt;.&lt;field&gt;_' 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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc